/* ============================================================
   site.css — InnovTEC (Sitio Público)
   Mismo sistema de diseño que DentiControl
   ============================================================ */

/* ── Variables (idénticas a DentiControl) ─────────────────── */
:root {
    --azul:           #1B4EA8;
    --azul-grad:      linear-gradient(135deg, #1B4EA8, #163d85);
    --turquesa:       #E8431A;
    --turquesa-light: rgba(232,67,26,0.10);
    --blanco:         #ffffff;
    --gris-claro:     #f7f9fa;
    --gris:           #e2e8ea;
    --texto:          #1a2e35;
    --texto-suave:    #6b7280;
    --radio:          14px;
    --sombra:         0 2px 16px rgba(27,78,168,0.08);
    --navbar-h:       64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    background: var(--blanco);
    color: var(--texto);
    overflow-x: hidden;
}

/* ── CONTAINER ────────────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--blanco);
    border-bottom: 1px solid var(--gris);
    box-shadow: 0 2px 12px rgba(27,78,168,0.07);
    height: var(--navbar-h);
}

.navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo-wrap {
    width: 36px;
    height: 36px;
    background: rgba(27,78,168,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.brand-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--azul);
}

.brand-accent { color: var(--turquesa); }

/* Nav links */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.nav-link {
    color: var(--texto-suave);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.45rem 0.875rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
}

.nav-link:hover { background: var(--gris-claro); color: var(--azul); }
.nav-link.active { background: rgba(27,78,168,0.08); color: var(--azul); }

/* Dropdown */
.nav-dropdown { position: relative; }

.dropdown-toggle { display: flex; align-items: center; gap: 0.3rem; }
.caret { font-size: 0.75rem; }

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--blanco);
    border: 1px solid var(--gris);
    border-top: 3px solid var(--turquesa);
    border-radius: 0 0 12px 12px;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(27,78,168,0.12);
    padding: 0.4rem 0;
    z-index: 300;
}

.dropdown-menu.show { display: block; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--texto);
    text-decoration: none;
    transition: background 0.12s;
    cursor: pointer;
}

.dropdown-item:hover { background: var(--gris-claro); color: var(--azul); }
.dropdown-item.disabled { color: var(--texto-suave); cursor: default; pointer-events: none; }

.dbadge {
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 700;
    margin-left: auto;
}

.dbadge-ok   { background: rgba(27,78,168,0.10);  color: var(--azul); }
.dbadge-soon { background: var(--turquesa-light); color: var(--turquesa); }

/* Btn demo */
.btn-demo {
    background: var(--azul-grad);
    color: white;
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    margin-left: auto;
    transition: opacity 0.15s;
}

.btn-demo:hover { opacity: 0.88; }

/* Hamburger */
.btn-hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--azul);
    margin-left: auto;
}

/* ── BOTONES ──────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--azul-grad);
    color: white;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.88; color: white; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: var(--azul);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.68rem 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--azul);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-secondary:hover { background: rgba(27,78,168,0.07); }

.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #25d366;
    color: white;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    transition: opacity 0.15s;
}

.btn-wa:hover { opacity: 0.88; color: white; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, rgba(27,78,168,0.06) 0%, var(--blanco) 70%);
    padding: 5rem 0 4rem;
    border-bottom: 1px solid var(--gris);
    text-align: center;
}

.eyebrow-tag {
    display: inline-block;
    background: rgba(27,78,168,0.08);
    color: var(--azul);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.03em;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--texto);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero h1 em {
    font-style: normal;
    color: var(--azul);
}

.hero-sub {
    font-size: 1rem;
    color: var(--texto-suave);
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── SECCIONES ────────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-gray { background: var(--gris-claro); }

.section-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--turquesa);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--texto);
    margin-bottom: 0.5rem;
}

.section-sub {
    color: var(--texto-suave);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── PRODUCTS GRID ────────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.product-card {
    background: var(--blanco);
    border: 1px solid var(--gris);
    border-radius: var(--radio);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--sombra);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
    border-color: var(--azul);
    box-shadow: 0 6px 24px rgba(27,78,168,0.13);
    transform: translateY(-2px);
}

.product-card.featured {
    border: 2px solid var(--azul);
}

.prod-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--texto);
    margin-bottom: 0.5rem;
}

.product-card p {
    font-size: 0.86rem;
    color: var(--texto-suave);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.prod-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.badge-ok   { background: rgba(27,78,168,0.10);  color: var(--azul); }
.badge-soon { background: var(--turquesa-light); color: var(--turquesa); }

.prod-link {
    display: block;
    margin-top: 0.875rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--azul);
    text-decoration: none;
}

.prod-link:hover { text-decoration: underline; }

/* ── STATS ────────────────────────────────────────────────── */
.stats-section {
    background: var(--azul-grad);
    padding: 3rem 0;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat-item { color: white; padding: 0.5rem; }

.stat-num {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── POR QUÉ ──────────────────────────────────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: center;
}

.why-features { display: flex; flex-direction: column; gap: 1.1rem; }

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 44px;
    min-width: 44px;
    height: 44px;
    background: rgba(27,78,168,0.08);
    color: var(--azul);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.feature-item h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--texto);
}

.feature-item p {
    font-size: 0.84rem;
    color: var(--texto-suave);
    line-height: 1.6;
    margin: 0;
}

/* ── CTA SECTION ──────────────────────────────────────────── */
.cta-section {
    background: var(--gris-claro);
    padding: 4rem 0;
    border-top: 4px solid var(--turquesa);
}

.cta-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--texto);
}

.cta-section p {
    color: var(--texto-suave);
    font-size: 0.97rem;
    margin-bottom: 1.75rem;
}

/* ── PAGE HERO (páginas internas) ─────────────────────────── */
.page-hero {
    background: var(--azul-grad);
    padding: 3.5rem 0 2.75rem;
    text-align: center;
    color: white;
}

.page-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.page-hero p {
    color: rgba(255,255,255,0.75);
    font-size: 0.97rem;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

.breadcrumb {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.75rem;
}

.breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.breadcrumb a:hover { color: white; }

/* ── SERVICIOS GRID ───────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.service-card {
    background: var(--blanco);
    border: 1px solid var(--gris);
    border-top: 4px solid var(--azul);
    border-radius: var(--radio);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--sombra);
    transition: box-shadow 0.2s, border-top-color 0.2s;
}

.service-card:hover { box-shadow: 0 6px 24px rgba(27,78,168,0.12); border-top-color: var(--turquesa); }
.service-card.accent { border-top-color: var(--turquesa); }

.service-icon-wrap {
    font-size: 2rem;
    margin-bottom: 0.875rem;
    display: block;
}

.service-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.97rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--texto);
}

.service-card p {
    font-size: 0.86rem;
    color: var(--texto-suave);
    line-height: 1.6;
    margin-bottom: 0.875rem;
}

.service-card ul {
    padding-left: 1.1rem;
    margin: 0;
}

.service-card ul li {
    font-size: 0.84rem;
    color: var(--texto-suave);
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

/* ── HEALTH GRID ──────────────────────────────────────────── */
.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.health-card {
    background: var(--blanco);
    border: 1px solid var(--gris);
    border-radius: var(--radio);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--sombra);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.health-card:hover { border-color: var(--azul); box-shadow: 0 4px 16px rgba(27,78,168,0.10); }

.health-icon { font-size: 2.4rem; display: block; margin-bottom: 0.75rem; }

.health-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--texto);
}

.health-card p { font-size: 0.82rem; color: var(--texto-suave); margin-bottom: 0.875rem; }

/* ── PROCESO ──────────────────────────────────────────────── */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.process-step { padding: 0.5rem; }

.step-num {
    width: 52px;
    height: 52px;
    background: var(--azul);
    color: white;
    border-radius: 50%;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
}

.process-step h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--texto);
}

.process-step p { font-size: 0.84rem; color: var(--texto-suave); line-height: 1.6; }

/* ── CARD (reutilizable) ──────────────────────────────────── */
.card {
    background: var(--blanco);
    border-radius: var(--radio);
    padding: 1.5rem;
    box-shadow: var(--sombra);
    border: 1px solid var(--gris);
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--azul);
    margin-bottom: 1rem;
}

/* ── FORMULARIO ───────────────────────────────────────────── */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }

.form-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--texto);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    border: 1px solid var(--gris);
    border-radius: 8px;
    padding: 0.6rem 0.875rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.875rem;
    color: var(--texto);
    background: var(--blanco);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(27,78,168,0.10);
}

.form-textarea { resize: vertical; min-height: 120px; }

.field-error {
    font-size: 0.78rem;
    color: #dc2626;
    margin-top: 2px;
}

/* ── CONTACTO GRID ────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.75rem;
    align-items: flex-start;
}

.info-item {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.info-icon {
    width: 38px;
    min-width: 38px;
    height: 38px;
    background: rgba(27,78,168,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.info-item strong { font-size: 0.8rem; font-weight: 700; display: block; margin-bottom: 2px; color: var(--texto); }
.info-item span   { font-size: 0.82rem; color: var(--texto-suave); }
.info-item a      { font-size: 0.82rem; color: var(--azul); text-decoration: none; }
.info-item a:hover { text-decoration: underline; }

.horario-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--gris);
    color: var(--texto-suave);
}

.horario-row span:last-child { font-weight: 700; color: var(--texto); }

.wa-banner {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: #25d366;
    border-radius: var(--radio);
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    transition: opacity 0.15s;
}

.wa-banner:hover { opacity: 0.88; color: white; }

/* ── ALERTS ───────────────────────────────────────────────── */
.alert {
    padding: 0.875rem 1.1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
    background: #0f2553;
    color: #b0c4de;
    padding: 3rem 0 1rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-brand span { color: var(--turquesa); }

.footer-desc { font-size: 0.83rem; color: #7a9abf; line-height: 1.6; }

.footer-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: white;
    margin-bottom: 0.875rem;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: #b0c4de;
    text-decoration: none;
    margin-bottom: 0.45rem;
    transition: color 0.15s;
}

.footer-col a:hover { color: white; }

.btn-footer-cta {
    display: inline-block;
    background: var(--turquesa);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.15s;
}

.btn-footer-cta:hover { opacity: 0.88; color: white; }

.footer-copy {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #4a6a8a;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .navbar-links { display: none; flex-direction: column; position: absolute; top: var(--navbar-h); left: 0; right: 0; background: white; padding: 1rem; border-bottom: 1px solid var(--gris); box-shadow: 0 8px 24px rgba(0,0,0,0.08); gap: 0.25rem; }
    .navbar-links.open { display: flex; }
    .btn-demo { display: none; }
    .btn-hamburger { display: flex; }
    .navbar { position: relative; }

    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .why-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }

    .dropdown-menu { position: static; border: none; border-left: 3px solid var(--turquesa); border-radius: 0; box-shadow: none; padding-left: 0.5rem; }
    .dropdown-menu.show { display: block; }
}

@media (max-width: 600px) {
    .hero { padding: 3rem 0 2.5rem; }
    .hero h1 { font-size: 1.7rem; }
    .section { padding: 2.5rem 0; }
    .products-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .health-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-copy { flex-direction: column; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}
