/*
Theme Name:   SOJA Óptico Child
Theme URI:    https://corporativoopticosoja.online
Description:  Child theme para Corporativo Óptico SOJA — basado en Hello Elementor
Author:       Corporativo Óptico SOJA
Author URI:   https://corporativoopticosoja.online
Template:     hello-elementor
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  soja-child
*/

/* ══════════════════════════════════════════════
   VARIABLES GLOBALES SOJA
══════════════════════════════════════════════ */
:root {
    --blue:        #1A3FA6;
    --blue-dark:   #122E80;
    --blue-light:  #3B63D4;
    --blue-mid:    #2250C8;
    --blue-xlight: #C7D7FF;
    --yellow:      #FFD700;
    --green:       #00A86B;
    --orange:      #FF6B35;
    --white:       #FFFFFF;
    --gray-50:     #F8F9FF;
    --gray-100:    #EEF0F8;
    --gray-200:    #DDE1F0;
    --gray-600:    #5A6282;
    --gray-700:    #3D4466;
    --gray-900:    #1A1E35;
    --wa-green:    #25D366;
    --radius:      .5rem;
    --radius-lg:   1rem;
    --shadow:      0 2px 16px rgba(26,63,166,.10);
    --shadow-lg:   0 8px 32px rgba(26,63,166,.15);
    --shadow-xl:   0 16px 48px rgba(26,63,166,.20);
}

/* ══════════════════════════════════════════════
   RESET Y BASE
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ══════════════════════════════════════════════
   TIPOGRAFÍA
══════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}
.eyebrow {
    display: inline-block;
    background: var(--blue-xlight);
    color: var(--blue);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: .3rem .9rem;
    border-radius: 2rem;
    margin-bottom: .75rem;
    font-family: 'Montserrat', sans-serif;
}
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: .75rem; }
.section-header p { color: var(--gray-600); font-size: 1.05rem; max-width: 620px; margin: 0 auto; }

/* ══════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════ */
.soja-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.soja-section { padding: 4rem 0; }

/* ══════════════════════════════════════════════
   BOTONES
══════════════════════════════════════════════ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--yellow);
    color: var(--blue-dark);
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    padding: .95rem 2rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(255,215,0,.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,215,0,.5);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: var(--white);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    padding: .9rem 1.75rem;
    border-radius: var(--radius);
    border: 2px solid rgba(255,255,255,.5);
    cursor: pointer;
    font-size: .95rem;
    transition: all .2s;
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

/* ══════════════════════════════════════════════
   NAVEGACIÓN
══════════════════════════════════════════════ */
.soja-nav {
    position: sticky;
    top: 0;
    z-index: 400;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(26,63,166,.10);
    padding: .75rem 0;
}
.soja-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    gap: 1rem;
}
.soja-nav-logo img { height: 48px; object-fit: contain; }
.soja-nav-cta {
    display: flex;
    gap: .75rem;
    align-items: center;
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.soja-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--blue-light) 100%);
    color: var(--white);
    padding: 4.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.soja-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.soja-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
@media (max-width: 768px) {
    .soja-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.soja-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}
.soja-hero h1 span { color: var(--yellow); }
.soja-hero-sub {
    font-size: 1.1rem;
    opacity: .9;
    margin-bottom: 2rem;
    line-height: 1.7;
}
.soja-hero-bullets {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.soja-hero-bullets li {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .95rem;
}
.soja-hero-bullets li::before {
    content: '✓';
    background: var(--yellow);
    color: var(--blue-dark);
    font-weight: 900;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   COUNTDOWN
══════════════════════════════════════════════ */
.soja-countdown {
    background: rgba(0,0,0,.25);
    border-radius: .75rem;
    padding: .9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin: 1.5rem auto 0;
    max-width: 520px;
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(4px);
}
.soja-countdown-label {
    color: rgba(255,255,255,.92);
    font-size: .85rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}
.soja-countdown-timer { display: flex; align-items: center; gap: .35rem; }
.soja-countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,.12);
    border-radius: .4rem;
    padding: .4rem .7rem;
    min-width: 52px;
}
.soja-countdown-unit span {
    font-size: 1.6rem;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    color: var(--yellow);
    line-height: 1;
}
.soja-countdown-unit small {
    font-size: .62rem;
    color: rgba(255,255,255,.7);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 2px;
}
.soja-countdown-sep {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--yellow);
    line-height: 1;
    margin-bottom: 12px;
}

/* ══════════════════════════════════════════════
   FORMULARIO
══════════════════════════════════════════════ */
.soja-form-card {
    background: var(--white);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.soja-form-card h3 {
    font-size: 1.3rem;
    color: var(--blue-dark);
    margin-bottom: 1.25rem;
    font-family: 'Montserrat', sans-serif;
}
.soja-form-group { margin-bottom: 1rem; }
.soja-form-group label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: .35rem;
}
.soja-form-group input,
.soja-form-group select,
.soja-form-group textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: 'Open Sans', sans-serif;
    font-size: .92rem;
    color: var(--gray-900);
    transition: border-color .2s;
    background: var(--white);
}
.soja-form-group input:focus,
.soja-form-group select:focus,
.soja-form-group textarea:focus {
    outline: none;
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(59,99,212,.12);
}
.soja-form-error {
    color: #e53e3e;
    font-size: .78rem;
    margin-top: .3rem;
    display: none;
}
.soja-form-privacy {
    text-align: center;
    font-size: .75rem;
    color: var(--gray-600);
    margin-top: .75rem;
}

/* ══════════════════════════════════════════════
   TARJETAS DE SEGMENTO
══════════════════════════════════════════════ */
.soja-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.soja-seg-card {
    background: var(--white);
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.soja-seg-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(26,63,166,.18);
}
.soja-seg-header {
    padding: 1.75rem 2rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.soja-seg-header.empresas  { background: linear-gradient(135deg,#1A3FA6,#2250C8); }
.soja-seg-header.mayoristas{ background: linear-gradient(135deg,#553C9A,#7C5CBF); }
.soja-seg-header.consumidor{ background: linear-gradient(135deg,#00A86B,#00C97F); }
.soja-seg-header h3 { color: #fff; font-size: 1.2rem; margin: 0; }
.soja-seg-header p { color: rgba(255,255,255,.85); font-size: .8rem; margin: .25rem 0 0; }
.soja-seg-icon {
    width: 52px; height: 52px;
    background: rgba(255,255,255,.2);
    border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.soja-seg-icon svg { fill: #fff; }
.soja-seg-body {
    padding: 1.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.soja-features { list-style: none; margin-bottom: 1.25rem; }
.soja-features li {
    padding: .35rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: .88rem;
    color: var(--gray-700);
}
.soja-features li:last-child { border-bottom: none; }
.soja-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.25rem 0;
    border-top: 2px solid var(--gray-100);
    border-bottom: 2px solid var(--gray-100);
    margin-bottom: 1.25rem;
}
.soja-stat { text-align: center; }
.soja-stat strong {
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--blue);
    font-family: 'Montserrat', sans-serif;
}
.soja-stat span { font-size: .78rem; color: var(--gray-600); }
.btn-seg {
    width: 100%;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: .9rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: .92rem;
    cursor: pointer;
    transition: background .2s, transform .2s;
    margin-top: auto;
}
.btn-seg:hover { background: var(--blue-dark); transform: translateY(-1px); }
.soja-seg-wa {
    display: flex;
    align-items: center;
    gap: .5rem;
    justify-content: center;
    margin-top: .75rem;
    padding: .65rem;
    background: var(--wa-green);
    border-radius: var(--radius);
    color: var(--white);
    font-weight: 700;
    font-size: .85rem;
    transition: filter .2s;
}
.soja-seg-wa:hover { filter: brightness(1.08); }
.soja-seg-wa svg { fill: var(--white); }

/* ══════════════════════════════════════════════
   ESTADÍSTICAS
══════════════════════════════════════════════ */
.soja-stats-section {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: var(--white);
}
.soja-stats-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .soja-stats-grid { grid-template-columns: repeat(4,1fr); }
}
.soja-stat-card {
    text-align: center;
    padding: 1.75rem 1rem;
    transition: transform .3s;
}
.soja-stat-card:hover { transform: translateY(-4px); }
.soja-stat-icon { font-size: 2rem; margin-bottom: .5rem; display: block; }
.soja-stat-num {
    font-size: 2.6rem;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    color: var(--yellow);
    line-height: 1;
    margin-bottom: .4rem;
}
.soja-stat-lbl { font-size: .875rem; opacity: .92; }

/* ══════════════════════════════════════════════
   CARRUSEL
══════════════════════════════════════════════ */
.soja-carousel-wrapper { position: relative; overflow: hidden; }
.soja-carousel-track { display: flex; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.soja-carousel-slide { flex: 0 0 50%; box-sizing: border-box; padding: 0 6px; }
@media (min-width: 768px) { .soja-carousel-slide { flex: 0 0 25%; } }
.soja-carousel-slide img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: contain;
    border-radius: var(--radius-lg);
    background: var(--white);
    padding: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.10);
    display: block;
    transition: transform .35s ease, box-shadow .35s ease;
}
.soja-carousel-slide img:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 30px rgba(0,0,0,.20);
    position: relative;
    z-index: 10;
}
.soja-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.soja-carousel-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid var(--blue-xlight);
    background: var(--white);
    color: var(--blue);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
    box-shadow: var(--shadow);
}
.soja-carousel-btn:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.soja-carousel-dots { display: flex; gap: .4rem; }
.soja-carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gray-200);
    cursor: pointer;
    transition: all .2s;
}
.soja-carousel-dot.active { background: var(--blue); width: 24px; border-radius: 4px; }

/* ══════════════════════════════════════════════
   WA FLOTANTE MÓVIL
══════════════════════════════════════════════ */
.soja-wa-float {
    display: none;
    position: fixed;
    bottom: 90px; right: 18px;
    z-index: 600;
    background: #25D366;
    border-radius: 50%;
    width: 58px; height: 58px;
    align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.5);
    text-decoration: none;
    animation: soja-wa-pulse 2.5s infinite;
}
@media (max-width: 767px) { .soja-wa-float { display: flex; } }
@keyframes soja-wa-pulse {
    0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); }
    50%      { box-shadow: 0 4px 36px rgba(37,211,102,.85), 0 0 0 8px rgba(37,211,102,.15); }
}
.soja-wa-float svg { fill: #fff; }
.soja-wa-tooltip {
    position: absolute;
    right: 66px; top: 50%;
    transform: translateY(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: .4rem .85rem;
    border-radius: .5rem;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}
.soja-wa-float:hover .soja-wa-tooltip { opacity: 1; }

/* ══════════════════════════════════════════════
   STICKY BAR MÓVIL
══════════════════════════════════════════════ */
.soja-sticky-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--white);
    border-top: 2px solid var(--blue-xlight);
    display: flex;
    gap: .5rem;
    padding: .75rem 1rem;
    z-index: 500;
    box-shadow: 0 -4px 16px rgba(26,63,166,.12);
}
@media (min-width: 768px) { .soja-sticky-bar { display: none; } }
.soja-sticky-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .8rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .8rem;
    font-family: 'Montserrat', sans-serif;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.soja-footer {
    background: var(--gray-900);
    color: rgba(255,255,255,.8);
    padding: 3rem 0 1.5rem;
}
.soja-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .soja-footer-grid { grid-template-columns: 1fr; }
}
.soja-footer h4 {
    color: var(--white);
    font-size: .95rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}
.soja-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: .8rem;
    opacity: .6;
}

/* ══════════════════════════════════════════════
   MODALES
══════════════════════════════════════════════ */
.soja-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 900;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}
.soja-modal-overlay.active { display: flex; }
.soja-modal-box {
    background: var(--white);
    border-radius: 1.25rem;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,.3);
    max-height: 90vh;
    overflow-y: auto;
}
.soja-modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--gray-100);
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.soja-modal-close:hover { background: var(--gray-200); }

/* ══════════════════════════════════════════════
   ELEMENTOR OVERRIDES
══════════════════════════════════════════════ */
.elementor-section.soja-full-width {
    width: 100% !important;
    max-width: 100% !important;
}
/* Ocultar elementos de Hello Elementor que no necesitamos */
.site-header.elementor-template { display: none; }
