/* ==========================================================
   TelcoB2B – Hoja de estilos principal
   ========================================================== */
/* Las declaraciones @font-face de Inter están en línea en el <head>
   de includes/header.php (no aquí), para que el navegador las
   descubra en paralelo a este CSS y no en cadena tras él. */

/* ---- Reset básico ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Variables ---- */
:root {
    --teal: #2d7d7b;
    --teal-dark: #256867;
    --navy: #1b3a5c;
    --accent: #4ab3f4;
    --accent-dark: #2b96da;
    --bg-light: #f8f9fa;
    --text: #333;
    --muted: #6b7580;
    --white: #fff;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(27, 58, 92, 0.10);
    --shadow-lg: 0 20px 50px rgba(27, 58, 92, 0.16);
    --container: 1160px;
    --transition: .28s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---- Tipografía ---- */
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; font-weight: 800; }
h2.section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); text-align: center; margin-bottom: .6rem; }
.section-subtitle { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 3rem; font-size: 1.05rem; }
section { padding: 5rem 0; }

/* ---- Botones ---- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 1.8rem; border-radius: 50px; font-weight: 600; font-size: 1rem;
    cursor: pointer; border: 2px solid transparent; transition: var(--transition);
    line-height: 1;
}
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 8px 20px rgba(74,179,244,.35); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-secondary:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-teal { background: var(--teal); color: var(--white); box-shadow: 0 8px 20px rgba(45,125,123,.30); }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(27,58,92,.08);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(27,58,92,.10); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand-logo { height: 44px; width: auto; }

.nav-list { display: flex; align-items: center; gap: .3rem; }
.nav-list > li { position: relative; }
.nav-list > li > a {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .6rem .95rem; border-radius: 8px; font-weight: 600; color: var(--navy);
    transition: var(--transition); font-size: .97rem;
}
.nav-list > li > a:hover, .nav-list > li > a.active { color: var(--teal); background: rgba(45,125,123,.08); }
.caret { font-size: .7rem; transition: transform var(--transition); }

.nav-cta { background: var(--teal); color: var(--white) !important; }
.nav-cta:hover { background: var(--teal-dark) !important; }

/* Dropdown */
.has-dropdown .dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: var(--transition); border: 1px solid rgba(27,58,92,.06);
}
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown li a { display: block; padding: .7rem .9rem; border-radius: 8px; font-size: .93rem; color: var(--text); transition: var(--transition); }
.dropdown li a:hover { background: rgba(74,179,244,.10); color: var(--teal); }

/* Hamburguesa */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
    background: linear-gradient(135deg, #12283f 0%, var(--navy) 45%, var(--teal-dark) 100%);
    color: var(--white); position: relative; overflow: hidden;
    padding: 6rem 0 6.5rem;
}
.hero::after {
    content: ''; position: absolute; top: -30%; right: -10%; width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(74,179,244,.35) 0%, transparent 65%); pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.3rem); margin-bottom: 1.4rem; }
.hero p { color: rgba(255,255,255,.90); font-size: 1.08rem; margin-bottom: 1.1rem; }
.hero p a { color: var(--accent); font-weight: 600; }
.hero p a:hover { text-decoration: underline; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ==========================================================
   CARDS SERVICIOS
   ========================================================== */
.services { background: var(--bg-light); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.card {
    background: var(--white); border-radius: var(--radius); padding: 2rem 1.8rem;
    box-shadow: var(--shadow); border: 1px solid rgba(27,58,92,.05);
    transition: var(--transition); display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-icon {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--teal), var(--accent)); color: var(--white); margin-bottom: 1.2rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 1.2rem; flex-grow: 1; }
.card-link { color: var(--teal); font-weight: 600; font-size: .93rem; display: inline-flex; align-items: center; gap: .35rem; transition: gap var(--transition); }
.card:hover .card-link { gap: .6rem; }

/* ==========================================================
   POR QUÉ ELEGIRNOS
   ========================================================== */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.4rem; }
.benefit { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem; border-radius: var(--radius); background: var(--bg-light); transition: var(--transition); }
.benefit:hover { background: rgba(74,179,244,.08); }
.benefit-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal); color: var(--white); }
.benefit-icon svg { width: 22px; height: 22px; }
.benefit p { margin: 0; font-size: .97rem; color: var(--text); }

/* ==========================================================
   TECNOLOGÍA
   ========================================================== */
.tech { background: linear-gradient(135deg, var(--navy), var(--teal-dark)); color: var(--white); }
.tech h2 { color: var(--white); }
.tech .section-subtitle { color: rgba(255,255,255,.85); }
.tech-content { max-width: 820px; margin: 0 auto; text-align: center; }
.tech-content p { color: rgba(255,255,255,.90); font-size: 1.06rem; margin-bottom: 1rem; }
.tech-brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.4rem; }
.tech-brand { padding: .7rem 1.6rem; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.2); border-radius: 50px; font-weight: 600; font-size: .95rem; }

/* ==========================================================
   CTA FINAL
   ========================================================== */
.cta-final { text-align: center; background: var(--bg-light); }
.cta-final h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
.cta-final p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto 2rem; }
.cta-final p a { color: var(--teal); font-weight: 600; }

/* ==========================================================
   PAGE HERO (interior)
   ========================================================== */
.page-hero {
    background: linear-gradient(135deg, #12283f 0%, var(--navy) 55%, var(--teal-dark) 100%);
    color: var(--white); padding: 4.5rem 0; text-align: center; position: relative; overflow: hidden;
}
.page-hero::after { content:''; position:absolute; bottom:-40%; left:-10%; width:520px; height:520px; background: radial-gradient(circle, rgba(74,179,244,.30) 0%, transparent 65%); }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.9rem); position: relative; z-index: 2; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 720px; margin: 1rem auto 0; position: relative; z-index: 2; }

/* ---- Placeholder ---- */
.placeholder-section { text-align: center; }
.placeholder-box { max-width: 640px; margin: 0 auto; background: var(--bg-light); padding: 3rem 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.placeholder-box .big-icon { font-size: 3rem; margin-bottom: 1rem; }
.placeholder-box p { color: var(--muted); margin-bottom: 1.8rem; font-size: 1.05rem; }
.placeholder-box a[href^="mailto"] { color: var(--teal); font-weight: 600; }

/* ==========================================================
   CONTACTO
   ========================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
.contact-info h3 { font-size: 1.3rem; margin-bottom: 1.4rem; }
.contact-info .info-item { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.2rem; }
.contact-info .info-item .ic { flex-shrink:0; width: 40px; height:40px; border-radius: 10px; background: rgba(45,125,123,.10); color: var(--teal); display:grid; place-items:center; }
.contact-info .info-item .ic svg { width: 20px; height: 20px; }
.contact-info .info-item strong { display: block; color: var(--navy); font-size: .95rem; }
.contact-info .info-item span, .contact-info .info-item a { color: var(--muted); font-size: .95rem; }
.contact-info .info-item a:hover { color: var(--teal); }

.contact-form { background: var(--white); padding: 2.4rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid rgba(27,58,92,.05); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .4rem; }
.form-group label .req { color: #e04b4b; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: .8rem 1rem; border: 1.5px solid #dfe4ea; border-radius: 10px;
    font-family: inherit; font-size: .96rem; color: var(--text); transition: var(--transition); background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,179,244,.15); }
.form-group textarea { resize: vertical; min-height: 130px; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: .5rem; }
.turnstile-wrap { margin-bottom: 1.1rem; }

/* Alertas */
.alert { padding: 1rem 1.3rem; border-radius: 10px; margin-bottom: 1.6rem; font-size: .96rem; font-weight: 600; }
.alert-success { background: #e6f6ec; color: #1e6b3a; border: 1px solid #b7e2c5; }
.alert-error { background: #fdeaea; color: #a82c2c; border: 1px solid #f2c4c4; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer { background: #0f2338; color: rgba(255,255,255,.75); padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-logo { height: 40px; background: rgba(255,255,255,.95); padding: 6px 10px; border-radius: 8px; margin-bottom: 1rem; width: fit-content; }
.footer-tagline { font-weight: 600; color: var(--white); margin-bottom: .3rem; }
.footer-mini { font-size: .9rem; color: rgba(255,255,255,.55); }
.footer-col .footer-heading { color: var(--white); font-size: 1.02rem; font-weight: 700; margin-bottom: 1.1rem; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a, .footer-col ul li { font-size: .92rem; color: rgba(255,255,255,.72); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); padding: 1.4rem 0; }
.footer-bottom p { font-size: .86rem; color: rgba(255,255,255,.55); text-align: center; }

/* ==========================================================
   ANIMACIONES SCROLL
   ========================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================
   PÁGINAS DE SERVICIO (contenido largo)
   ========================================================== */
.service-lead { background: var(--bg-light); }
.service-lead p { max-width: 860px; margin: 0 auto; font-size: 1.08rem; color: var(--text); }

.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1.2rem; }
.prose h2:not(:first-child) { margin-top: .4rem; }
.prose p { color: var(--muted); font-size: 1.03rem; margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }

.check-list { display: flex; flex-direction: column; gap: 1rem; max-width: 780px; margin: 0 auto; }
.check-list li { display: flex; gap: .9rem; align-items: flex-start; }
.check-list .ck { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: rgba(45,125,123,.12); color: var(--teal); display: grid; place-items: center; margin-top: 2px; }
.check-list .ck svg { width: 16px; height: 16px; }
.check-list p, .check-list span { color: var(--text); font-size: .98rem; margin: 0; }
.check-list strong { color: var(--navy); }

.plain-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; }
.plain-list li { padding: 1rem 0; border-bottom: 1px solid rgba(27,58,92,.08); color: var(--text); font-size: .98rem; }
.plain-list li:last-child { border-bottom: none; }
.plain-list li strong { color: var(--navy); }

.inline-link { color: var(--teal); font-weight: 600; }
.inline-link:hover { text-decoration: underline; }

/* ---- FAQ: acordeón nativo (details/summary), sin JS ---- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item {
    background: var(--white); border: 1px solid rgba(27,58,92,.08); border-radius: var(--radius);
    padding: 0 1.6rem; box-shadow: var(--shadow); overflow: hidden;
}
.faq-item summary {
    list-style: none; cursor: pointer; padding: 1.2rem 2.2rem 1.2rem 0;
    font-weight: 700; color: var(--navy); font-size: 1rem; position: relative;
    display: flex; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; position: absolute; right: 0; top: 50%; translate: 0 -50%;
    font-size: 1.4rem; font-weight: 400; color: var(--teal); transition: transform var(--transition);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid rgba(27,58,92,.08); }
.faq-item .faq-answer { padding: 1.1rem 0 1.4rem; color: var(--muted); font-size: .97rem; line-height: 1.7; }
.faq-item .faq-answer p { margin: 0; }

/* ---- CTA de cierre en páginas de servicio ---- */
.service-cta { text-align: center; background: linear-gradient(135deg, var(--navy), var(--teal-dark)); color: var(--white); border-radius: var(--radius); padding: 3.5rem 2rem; }
.service-cta h2 { color: var(--white); margin-bottom: .8rem; }
.service-cta p { color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto 1.8rem; }
.service-cta .contact-line { margin-top: 1.6rem; font-size: .95rem; color: rgba(255,255,255,.8); }
.service-cta .contact-line a { color: var(--white); font-weight: 600; }

/* ---- Cuadrícula de plataformas (centralitas cloud, etc.) ---- */
.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; max-width: 900px; margin: 0 auto; }
.platform-card { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border: 1px solid rgba(27,58,92,.05); transition: var(--transition); }
.platform-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.platform-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.platform-card p { color: var(--muted); font-size: .95rem; margin-bottom: 1.1rem; }
.platform-meta { font-size: .88rem; padding-top: .9rem; border-top: 1px solid rgba(27,58,92,.08); }
.platform-meta + .platform-meta { margin-top: .8rem; padding-top: .8rem; }
.platform-meta strong { color: var(--navy); display: block; margin-bottom: .25rem; }
.platform-meta span { color: var(--muted); }

/* ---- Lista de pasos numerados (procesos) ---- */
.process-list { display: flex; flex-direction: column; gap: 1.4rem; max-width: 780px; margin: 0 auto; counter-reset: step; }
.process-list li { display: flex; gap: 1.1rem; align-items: flex-start; }
.process-list li::before {
    counter-increment: step; content: counter(step);
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
    background: var(--teal); color: var(--white); font-weight: 700; font-size: .95rem;
    display: grid; place-items: center; margin-top: 2px;
}
.process-list p { margin: 0; color: var(--text); font-size: .98rem; padding-top: 6px; }
.process-list strong { color: var(--navy); }

/* ---- Tarjetas de planes / precios ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }
.pricing-card {
    background: var(--white); border-radius: var(--radius); padding: 2.2rem 1.7rem 1.8rem;
    box-shadow: var(--shadow); border: 1px solid rgba(27,58,92,.05);
    display: flex; flex-direction: column; text-align: left; position: relative; transition: var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured { border: 2px solid var(--teal); }
.pricing-card.featured::before {
    content: 'A medida'; position: absolute; top: -13px; left: 50%; translate: -50% 0;
    background: var(--teal); color: var(--white); font-size: .72rem; font-weight: 700;
    letter-spacing: .03em; text-transform: uppercase; padding: .35rem 1rem; border-radius: 999px;
}
.pricing-card .pricing-tag { font-size: .8rem; color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .3rem; }
.pricing-card h3 { font-size: 1.2rem; margin-bottom: 1.2rem; }
.pricing-features { list-style: none; margin: 0 0 auto; padding: 0; }
.pricing-features li { font-size: .92rem; color: var(--muted); padding: .6rem 0; border-bottom: 1px dashed rgba(27,58,92,.1); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li strong { color: var(--navy); }

.pricing-note { background: var(--bg-light); border-left: 4px solid var(--accent); border-radius: 10px; padding: 1.4rem 1.6rem; max-width: 780px; margin: 0 auto; }
.pricing-note p { margin: 0; color: var(--text); font-size: .96rem; }

/* ---- Estudio personalizado (secciones sin tarifa cerrada) ---- */
.custom-quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.custom-quote-card { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border: 1px solid rgba(27,58,92,.05); }
.custom-quote-card .cq-icon { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--teal), var(--accent)); color: var(--white); display: grid; place-items: center; margin-bottom: 1rem; }
.custom-quote-card .cq-icon svg { width: 24px; height: 24px; }
.custom-quote-card h3 { font-size: 1.1rem; margin-bottom: .7rem; }
.custom-quote-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---- Páginas legales (aviso legal, privacidad, cookies) ---- */
.legal-content { max-width: 900px; margin: 0 auto; }
.legal-content .legal-updated { font-size: .88rem; color: var(--muted); margin-bottom: 2.4rem; }
.legal-content h2 { font-size: 1.35rem; margin-top: 2.6rem; margin-bottom: 1rem; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 1.05rem; margin-top: 1.6rem; margin-bottom: .6rem; color: var(--navy); }
.legal-content p { color: var(--muted); font-size: .97rem; margin-bottom: 1rem; }
.legal-content ul, .legal-content ol { margin: 0 0 1.2rem 1.4rem; color: var(--muted); font-size: .97rem; }
.legal-content li { margin-bottom: .5rem; }
.legal-content strong { color: var(--navy); }
.legal-content a { color: var(--teal); font-weight: 600; }
.legal-content a:hover { text-decoration: underline; }
.legal-box { background: var(--bg-light); border-radius: 10px; padding: 1.4rem 1.6rem; margin-bottom: 1.4rem; }
.legal-box p { margin-bottom: .4rem; font-size: .95rem; color: var(--text); }
.legal-box p:last-child { margin-bottom: 0; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .9rem; }
.legal-content th, .legal-content td { padding: .7rem .9rem; border: 1px solid rgba(27,58,92,.1); text-align: left; }
.legal-content th { background: var(--bg-light); color: var(--navy); font-weight: 700; }
.legal-content td { color: var(--muted); }

.legal-toc { display: flex; flex-wrap: wrap; gap: .5rem .6rem; margin-bottom: 2.4rem; }
.legal-toc a { font-size: .85rem; padding: .45rem .9rem; background: var(--bg-light); border-radius: 999px; color: var(--navy); font-weight: 600; }
.legal-toc a:hover { background: rgba(45,125,123,.12); color: var(--teal); }

/* ==========================================================
   BANNER DE COOKIES
   ========================================================== */
.cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    background: var(--navy); color: rgba(255,255,255,.92);
    padding: 1.3rem 1.8rem; display: none;
    box-shadow: 0 -8px 28px rgba(0,0,0,.18);
}
.cookie-banner.visible { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.cookie-banner__text { max-width: 760px; }
.cookie-banner__text p { margin: 0; font-size: .87rem; line-height: 1.6; color: rgba(255,255,255,.85); }
.cookie-banner__text a { color: #7fd6c9; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }

.btn-cookie { border: none; cursor: pointer; padding: .65rem 1.3rem; border-radius: 999px; font-size: .86rem; font-weight: 700; transition: var(--transition); font-family: inherit; }
.btn-cookie-ghost { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-cookie-ghost:hover { border-color: #fff; }
.btn-cookie-solid { background: var(--teal); color: #fff; border: 1px solid var(--teal); }
.btn-cookie-solid:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

/* ---- Panel de configuración (modal) ---- */
.cookie-modal { position: fixed; inset: 0; z-index: 1001; background: rgba(15,30,48,.55); display: none; align-items: center; justify-content: center; padding: 1.4rem; }
.cookie-modal.visible { display: flex; }
.cookie-modal__box { background: #fff; border-radius: var(--radius); max-width: 480px; width: 100%; padding: 2rem; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; }
.cookie-modal__box h3 { margin-bottom: .6rem; color: var(--navy); font-size: 1.2rem; }
.cookie-modal__box > p { color: var(--muted); font-size: .9rem; margin-bottom: .6rem; }
.cookie-modal__row { display: flex; justify-content: space-between; gap: 1.2rem; align-items: flex-start; padding: 1rem 0; border-top: 1px solid rgba(27,58,92,.08); }
.cookie-modal__row:first-of-type { border-top: none; }
.cookie-modal__row strong { display: block; color: var(--navy); font-size: .95rem; margin-bottom: .3rem; }
.cookie-modal__row p { color: var(--muted); font-size: .85rem; margin: 0; }
.cookie-modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .8rem; margin-top: 1.6rem; }

/* Interruptor tipo switch */
.cookie-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch span { position: absolute; inset: 0; background: #ccd3da; border-radius: 999px; transition: var(--transition); cursor: pointer; }
.cookie-switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: var(--transition); }
.cookie-switch input:checked + span { background: var(--teal); }
.cookie-switch input:checked + span::before { transform: translateX(20px); }
.cookie-switch--locked span { opacity: .55; cursor: not-allowed; }

@media (max-width: 640px) {
    .cookie-banner { padding: 1.2rem; }
    .cookie-banner__actions { width: 100%; flex-direction: column; }
    .cookie-banner__actions .btn-cookie { width: 100%; justify-content: center; text-align: center; }
    .cookie-modal__box { padding: 1.6rem; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 2.2rem; }
    .platform-grid { grid-template-columns: 1fr; }
    .custom-quote-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.6rem; }
}
@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; top: 74px; right: 0; width: min(320px, 85vw); height: calc(100vh - 74px);
        background: var(--white); box-shadow: -10px 0 40px rgba(0,0,0,.12); padding: 1.4rem;
        transform: translateX(105%); transition: transform var(--transition); overflow-y: auto;
    }
    .main-nav.open { transform: translateX(0); }
    .nav-list { flex-direction: column; align-items: stretch; gap: .2rem; }
    .nav-list > li > a { padding: .85rem 1rem; border-radius: 10px; }
    .nav-cta { text-align: center; justify-content: center; margin-top: .5rem; }
    .has-dropdown .dropdown {
        position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
        max-height: 0; overflow: hidden; padding: 0; transition: max-height var(--transition); border: none;
        background: var(--bg-light); border-radius: 10px; margin: .2rem 0 .2rem .5rem;
    }
    .has-dropdown.open .dropdown { max-height: 500px; padding: .4rem; }
}
@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
    section { padding: 3.5rem 0; }
    .hero { padding: 4rem 0 4.5rem; }
    .contact-form { padding: 1.6rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}
