/* vtomarket - Frontend anunciantes */
.vto-frontend { width: 100%; max-width: none; margin: 40px 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #1f2937; }
/* Cuando el plugin renderiza dentro de .vto-page-content (page.php) el
   padding exterior ya lo aporta esa capa, asi que no duplicamos margen. */
.vto-page-content .vto-frontend { margin: 8px 0 24px; padding: 0; }

/* ============================================================
   ANCHO COMPLETO: el tema hijo ya usa header/footer propios y
   page.php envuelve el contenido en .vto-page-content, por lo
   que estos limites de Neve ya no aplican. Se mantienen como
   salvaguarda en caso de que alguna plantilla de Neve se use.
   ============================================================ */
body.page .neve-main > .container.single-page-container,
body.page .neve-main > .container {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}
body.page .single-page-container .nv-single-page-wrap.col {
    max-width: 100%;
    width: 100%;
    flex-basis: 100%;
}
body.page .nv-content-wrap.entry-content {
    width: 100%;
    max-width: none;
    margin: 0;
}
.container-fluid.single-page-container .nv-single-page-wrap.col { max-width: 100%; }
.vto-frontend h1, .vto-frontend h2, .vto-frontend h3 { color: #0f172a; }

/* Hero planes */
.vto-hero-planes { text-align: center; margin-bottom: 40px; }
.vto-hero-planes h1 { font-size: 36px; font-weight: 800; margin: 0 0 12px; }
.vto-hero-planes p { color: #5b6577; font-size: 16px; }

/* Grid */
/* min(260px,100%) evita que las columnas se salgan de la pantalla en
   phones angostos (el minmax fijo desbordaba la pagina). */
.vto-grid { display: grid; gap: 20px; }
.vto-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(260px,100%), 1fr)); }
.vto-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(260px,100%), 1fr)); }
.vto-grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(240px,100%), 1fr)); }

/* Los 5 planes en una sola hilera en pantallas grandes */
@media (min-width: 1200px) {
  .vto-planes-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
  .vto-planes-grid .vto-plan-card { padding: 24px 16px; }
}
.vto-mt-2 { margin-top: 16px; }
.vto-mt-3 { margin-top: 24px; }
.vto-text-center { text-align: center; }

/* Cards */
.vto-card { background: #fff; border: 1px solid #e8ebf1; border-radius: 14px; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.vto-card-header { padding: 36px 32px 0; text-align: center; }
.vto-card-header h1 { margin: 0; font-size: 30px; font-weight: 800; }
.vto-card-header p { margin: 8px 0 0; color: #5b6577; }
.vto-card-body { padding: 32px; }
/* Registro con laterales publicitarios */
.vto-frontend--wide { max-width: 1680px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.vto-register-wrap { display: grid; grid-template-columns: 320px minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.vto-register-main { width: 100%; max-width: none; }
.vto-form--wide { max-width: none; }
.vto-register-side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 18px; }
.vto-ad-slot { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.vto-ad-slot-label { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: #8a93a6; }
.vto-ad-slot-box { display: flex; align-items: center; justify-content: center; border: 1px dashed #c9cfdd; background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); color: #7c859b; font-weight: 700; border-radius: 12px; text-align: center; line-height: 1.2; }
.vto-ad-slot-box--300x250 { width: 300px; height: 250px; }
.vto-ad-slot-box--300x600 { width: 300px; height: 600px; }

@media (max-width: 1500px) {
  .vto-register-wrap { grid-template-columns: 280px minmax(0, 1fr) 280px; gap: 22px; }
}

@media (max-width: 1280px) {
  .vto-register-wrap { grid-template-columns: minmax(0, 1fr); }
  .vto-register-side { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .vto-register-side--left { order: -1; }
  .vto-register-side--right { order: 2; }
}

@media (max-width: 600px) {
  .vto-frontend--wide { padding: 0 18px; }
  .vto-ad-slot-box--300x250 { width: 300px; height: 250px; max-width: 100%; }
  .vto-ad-slot-box--300x600 { width: 300px; height: 250px; max-width: 100%; }
}

.vto-form h3 { margin: 28px 0 16px; font-size: 18px; }
.vto-form-group { margin-bottom: 18px; }
.vto-form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.vto-form-group input, .vto-form-group select { width: 100%; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; box-sizing: border-box; }
.vto-form-group input:focus, .vto-form-group select:focus { outline: none; border-color: #ff6a00; box-shadow: 0 0 0 3px rgba(255,106,0,.12); }

/* Plan picker en registro */
.vto-plan-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px,100%), 1fr)); gap: 12px; align-items: start; }
@media (min-width: 1100px) {
  .vto-form--wide .vto-plan-picker { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  .vto-form--wide .vto-plan-opt { padding: 12px 10px; }
}
.vto-plan-opt { position: relative; border: 2px solid #e8ebf1; border-radius: 12px; padding: 14px 12px; text-align: center; cursor: pointer; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; display: block; }
.vto-plan-opt:hover { border-color: #ffb37a; background: #fffaf6; }
.vto-plan-opt.selected { border-color: #ff6a00; background: #fff5ee; box-shadow: 0 0 0 3px rgba(255,106,0,.12); }
.vto-plan-opt:focus-within { border-color: #ff6a00; box-shadow: 0 0 0 3px rgba(255,106,0,.2); }
.vto-plan-opt.selected::after { content: '\2713'; position: absolute; top: 6px; right: 9px; color: #ff6a00; font-weight: 800; font-size: 13px; }
.vto-plan-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; pointer-events: none; }
.vto-plan-opt strong { display: block; font-size: 15px; }
.vto-plan-opt .vto-plan-opt-price { display: block; font-size: 14px; font-weight: 700; color: #334155; margin-top: 3px; }
.vto-plan-opt .vto-plan-flag { display: inline-block; margin-top: 7px; font-size: 11px; font-weight: 700; color: #065f46; background: #ecfdf5; padding: 3px 9px; border-radius: 999px; }

/* Tooltip con las propiedades de cada plan */
.vto-plan-tip { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 8px); width: 258px; max-width: min(280px, 84vw); background: #10192c; color: #fff; border-radius: 12px; padding: 12px 14px; font-size: 12.5px; line-height: 1.45; text-align: left; box-shadow: 0 18px 44px rgba(15,23,42,.3); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s ease, transform .16s ease, visibility .16s; z-index: 60; }
.vto-plan-tip::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top-color: #10192c; }
.vto-plan-opt:hover .vto-plan-tip, .vto-plan-opt:focus-within .vto-plan-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.vto-plan-tip b { display: block; font-size: 14px; color: #fff; }
.vto-plan-tip i { display: block; font-style: normal; color: #a9b6d0; margin: 3px 0 8px; }
.vto-plan-tip .vto-plan-tip-row { display: block; color: #e6ecf7; padding: 2px 0 2px 16px; position: relative; }
.vto-plan-tip .vto-plan-tip-row::before { content: '\2713'; position: absolute; left: 0; top: 2px; color: #12b76a; font-weight: 700; }

.vto-hint { font-size: 13px; color: #5b6577; margin-top: 8px; }
.vto-plan-summary { min-height: 0; }
.vto-plan-summary:not(:empty) { background: #f8fafc; border: 1px solid #e8ebf1; border-radius: 10px; padding: 10px 12px; color: #334155; }
.vto-plan-summary b { color: #0f172a; }

/* Buttons */
.vto-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: .15s ease; }
.vto-btn-primary { background: linear-gradient(135deg, #ff6a00, #ff2d55); color: #fff; }
.vto-btn-primary:hover { opacity: .92; color: #fff; }
.vto-btn-outline { background: #fff; border-color: #d1d5db; color: #1f2937; }
.vto-btn-outline:hover { border-color: #ff6a00; color: #ff6a00; }
.vto-btn-lg { padding: 14px 32px; font-size: 16px; }
.vto-btn-block { display: flex; width: 100%; }

/* Alerts */
.vto-alert { padding: 16px; border-radius: 10px; margin-bottom: 20px; }
.vto-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.vto-alert-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }

/* Plan cards */
.vto-plan-card { position: relative; border: 2px solid #e8ebf1; border-radius: 14px; padding: 26px 22px; text-align: center; background: #fff; display: flex; flex-direction: column; }
.vto-plan-card.is-free { background: #fafbfc; }
.vto-plan-card.current { border-color: #ff6a00; background: #fff5ee; }
.vto-plan-card h3 { margin: 0 0 6px; font-size: 20px; }
.vto-plan-desc { font-size: 13px; color: #5b6577; min-height: 36px; margin: 0 0 12px; }
.vto-plan-price { font-size: 34px; font-weight: 800; margin: 8px 0; }
.vto-plan-price small { font-size: 14px; font-weight: 500; color: #5b6577; }
.vto-plan-trial { display: inline-block; font-size: 12px; font-weight: 700; color: #065f46; background: #ecfdf5; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.vto-plan-features { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; font-size: 14px; flex: 1; }
.vto-plan-features li { padding: 6px 0 6px 24px; position: relative; border-bottom: 1px solid #f1f5f9; }
.vto-plan-features li:before { content: '✓'; position: absolute; left: 0; color: #12b76a; font-weight: 700; }
.vto-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #111; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.vto-ribbon-free { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #12b76a; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.vto-badge { display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.vto-badge-current { background: #12b76a; color: #fff; }

/* Pago info */
.vto-pago-info { background: #f8fafc; border: 1px solid #e8ebf1; border-radius: 14px; padding: 24px; margin-top: 32px; }
.vto-pago-info h3 { margin: 0 0 16px; }
.vto-pago-info small { color: #5b6577; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

/* Panel */
.vto-panel { width: 100%; max-width: none; }
.vto-panel-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.vto-panel-header h1 { margin: 0; font-size: 28px; }
.vto-panel-welcome { margin: 4px 0 0; color: #5b6577; }
.vto-panel-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid #e8ebf1; padding-bottom: 16px; }
.vto-panel-nav-item { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 999px; text-decoration: none; color: #1f2937; border: 1px solid #e8ebf1; font-size: 14px; font-weight: 500; }
.vto-panel-nav-item:hover { border-color: #ff6a00; color: #ff6a00; }
.vto-panel-nav-item.active { background: #111; color: #fff; border-color: #111; }
.vto-panel-nav-item .dashicons { font-size: 18px; width: 18px; height: 18px; }
.vto-panel-content { background: #fff; padding: 32px; border: 1px solid #e8ebf1; border-radius: 14px; }
.vto-panel-content h2 { margin-top: 0; }
.vto-stat-card { display: block; padding: 22px; border: 1px solid #e8ebf1; border-radius: 14px; text-decoration: none; color: #1f2937; background: #fff; transition: .15s; }
.vto-stat-card:hover { border-color: #ff6a00; box-shadow: 0 4px 14px rgba(255,106,0,.08); }
.vto-stat-card h3 { margin: 8px 0 0; font-size: 28px; }
.vto-stat-card p { margin: 2px 0 0; color: #5b6577; font-size: 14px; }
.vto-stat-card .dashicons { color: #ff6a00; font-size: 26px; width: 26px; height: 26px; }

@media (max-width: 600px) {
    .vto-frontend { padding: 0 18px; }
    .vto-hero-planes h1 { font-size: 26px; }
    .vto-card-body, .vto-panel-content { padding: 20px; }
    .vto-plan-price { font-size: 28px; }

    /* En movil el tooltip se despliega dentro de la tarjeta del plan
       (tap para ver las propiedades del plan elegido) */
    .vto-plan-picker { grid-template-columns: repeat(auto-fit, minmax(min(150px,100%), 1fr)); }
    .vto-plan-opt { text-align: left; padding: 14px; }
    .vto-plan-tip { position: static; transform: none; width: auto; max-width: none; margin-top: 0; padding: 0 12px; max-height: 0; background: #f8fafc; color: #334155; border: 1px solid #e8ebf1; box-shadow: none; opacity: 0; visibility: hidden; overflow: hidden; transition: max-height .22s ease, opacity .2s ease, visibility .2s, padding .2s ease, margin .2s ease; }
    .vto-plan-tip::after { display: none; }
    .vto-plan-opt:hover .vto-plan-tip, .vto-plan-opt:focus-within .vto-plan-tip, .vto-plan-opt.selected .vto-plan-tip { max-height: 300px; opacity: 1; visibility: visible; padding: 10px 12px; margin-top: 10px; }
    .vto-plan-tip b { color: #0f172a; }
    .vto-plan-tip i { color: #5b6577; }
    .vto-plan-tip .vto-plan-tip-row { color: #334155; }
}

/* Pantallas muy anchas: el contenido llena el ancho disponible */
@media (min-width: 1600px) {
    .vto-frontend { padding: 0 5vw; }
    .vto-grid-2, .vto-grid-3, .vto-grid-4 { gap: 28px; }
}
