/* Sitio informativo de Tendexa (tendexa.com). Colores de la marca: verde petróleo y dorado. */
:root {
    --teal: #0F6E70;
    --teal-dark: #0A4B4D;
    --teal-deep: #073638;
    --teal-soft: #E6F2F1;
    --gold: #D4A437;
    --gold-dark: #B8891F;
    --cream: #FAF7F0;
    --text: #1E2A2B;
    --muted: #5F6B6C;
    --border: #E3DED2;
    --white: #FFFFFF;
    --radius: 16px;
    --shadow: 0 18px 50px rgba(7, 54, 56, .14);
    --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--white); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3, h4 { line-height: 1.18; margin: 0; color: var(--teal-deep); letter-spacing: -.015em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; border: 0; background: var(--teal); color: var(--white); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--teal-deep); box-shadow: inset 0 0 0 2px var(--teal); }
.btn-ghost:hover { background: var(--teal-soft); }
.btn-gold { background: var(--gold); color: var(--teal-deep); }
.btn-gold:hover { background: #E2B54A; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 12px; }
.hero .eyebrow { background: rgba(212, 164, 55, .14); color: var(--teal-dark); padding: 6px 14px; border-radius: 999px; letter-spacing: .06em; }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: .06em; color: var(--teal-deep); }
.brand-a { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.nav a:hover { color: var(--teal); }
.nav .btn { color: var(--white); }
.nav-login { color: var(--teal) !important; font-weight: 600 !important; }
.menu-btn { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; font-size: 20px; padding: 6px 12px; cursor: pointer; color: var(--teal-deep); }

/* Portada */
.hero { background: radial-gradient(circle at 85% 20%, rgba(212, 164, 55, .16), transparent 45%), linear-gradient(180deg, var(--cream), var(--white)); padding: 72px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.1vw, 48px); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; }
.hl { color: var(--teal); background: linear-gradient(transparent 64%, rgba(212, 164, 55, .38) 64%); }
.lead { font-size: 18px; color: var(--muted); margin: 22px 0 30px; max-width: 560px; }
.lead strong { display: block; color: var(--teal-deep); font-size: 21px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.01em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--teal-dark); font-weight: 500; font-size: 14px; }

/* Ilustración de la portada */
.mock { position: relative; }
.mock-browser { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--border); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F1EEE6; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D9D3C6; }
.mock-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); background: var(--white); padding: 2px 12px; border-radius: 8px; }
.mock-announce { background: var(--teal); color: var(--white); font-size: 10px; font-weight: 600; text-align: center; padding: 5px; letter-spacing: .05em; }
.mock-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 12px; border-bottom: 1px solid var(--border); }
.mock-head b { color: var(--teal-deep); }
.mock-search { flex: 1; height: 20px; border-radius: 10px; background: #F3F1EB; }
.mock-banner { margin: 12px 16px; border-radius: 10px; padding: 22px 18px; background: linear-gradient(120deg, var(--teal-deep), var(--teal)); color: var(--white); display: flex; flex-direction: column; }
.mock-banner strong { font-size: 18px; }
.mock-banner span { font-size: 12px; color: var(--gold); font-weight: 600; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px 16px; }
.mock-card { border: 1px solid var(--border); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 3px; font-size: 11px; }
.mock-img { height: 58px; border-radius: 6px; background: linear-gradient(135deg, #EEE9DD, #F7F4ED); }
.mock-card b { color: var(--teal); font-size: 12px; }
.mock-card span { margin-top: 4px; text-align: center; background: var(--teal); color: var(--white); border-radius: 6px; padding: 3px; font-size: 10px; }
.mock-toast { position: absolute; left: -28px; bottom: 34px; display: flex; gap: 10px; align-items: center; background: var(--white); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); border-left: 4px solid var(--gold); animation: float 5s ease-in-out infinite; }
.mock-toast b { display: block; font-size: 13px; color: var(--teal-deep); }
.mock-toast small { font-size: 12px; color: var(--muted); }
.mock-toast-icon { font-size: 22px; }
.mock-chip { position: absolute; right: -14px; top: 64px; background: var(--gold); color: var(--teal-deep); font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .mock-toast, .mock-chip { animation: none; } html { scroll-behavior: auto; } }

/* Franja de beneficios */
/* Franja fina de color entre la portada y las funciones */
.strip { height: 14px; background: var(--teal-deep); border-top: 3px solid var(--gold); }

/* Secciones */
.section { padding: 88px 0; }
.section-alt { background: var(--cream); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2, .contact-grid h2 { font-size: clamp(25px, 2.9vw, 36px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; margin: 14px 0 0; }
/* "Por qué elegirnos": la etiqueta más grande y el título más chico */
.section-head-why .eyebrow { font-size: 16px; letter-spacing: .12em; margin-bottom: 10px; }
.section-head-why h2 { font-size: clamp(21px, 2.3vw, 28px); font-weight: 700; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: box-shadow .2s, transform .2s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--teal-soft); font-size: 24px; margin-bottom: 14px; }
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--border); position: relative; }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--teal-deep); font-weight: 800; font-size: 18px; margin-bottom: 16px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }

/* Comparación */
.compare { max-width: 940px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; }
.compare-row > span { padding: 16px 20px; border-top: 1px solid var(--border); font-size: 15px; }
.compare-head > span { border-top: 0; font-weight: 700; background: #F4F1EA; }
.compare-row > span:first-child { font-weight: 600; color: var(--teal-deep); }
.compare-us { background: var(--teal-soft); color: var(--teal-deep); font-weight: 600; }
.compare-head .compare-us { background: var(--teal); color: var(--white); }
.compare-them { color: var(--muted); }

/* Para quién */
.section-dark { background: linear-gradient(135deg, var(--teal-deep), var(--teal)); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--gold); }
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audiences > div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 26px; }
.audiences h3 { font-size: 19px; margin-bottom: 8px; }
.audiences p { margin: 0; color: #D7E8E7; }
.rubros { text-align: center; margin: 32px 0 0; color: #CFE3E2; font-size: 15px; }

/* Preguntas */
.faqs { display: flex; flex-direction: column; gap: 12px; }
.faq { border: 1px solid var(--border); border-radius: 14px; background: var(--white); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; color: var(--teal-deep); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--gold-dark); }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-points { list-style: none; padding: 0; margin: 0 0 20px; color: var(--teal-dark); font-weight: 500; line-height: 2; }
.contact-card { background: var(--white); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: -1px; border-color: var(--teal); }
.error { color: #B3261E; font-size: 13px; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { text-align: center; padding: 30px 10px; }
.sent span { font-size: 44px; }
.sent h3 { margin: 10px 0 6px; font-size: 22px; }
.sent p { color: var(--muted); margin: 0; }

/* Cierre */
.cta-final { background: var(--cream); padding: 80px 0; text-align: center; border-top: 1px solid var(--border); }
.cta-final h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.cta-final p { color: var(--muted); font-size: 18px; margin: 14px auto 28px; max-width: 620px; }
.cta-final .btn-gold { background: var(--teal); color: var(--white); }
.cta-final .btn-gold:hover { background: var(--teal-dark); }

/* Pie */
.foot { background: var(--teal-deep); color: #CFE3E2; padding: 56px 0 24px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { color: var(--white); font-size: 15px; margin-bottom: 12px; }
.foot a { display: block; color: #CFE3E2; text-decoration: none; margin-bottom: 8px; }
.foot a:hover { color: var(--gold); }
.brand img { height: 44px; width: auto; }
/* En el pie (fondo oscuro) va la versión clara del logo, integrada al fondo */
.foot .brand-light { display: inline-flex; margin-bottom: 14px; }
.brand-light img { height: 40px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 32px; padding-top: 20px; text-align: center; color: #9FC2C0; }

/* Tablet y celular */
@media (max-width: 1000px) {
    .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .mock { max-width: 560px; margin: 0 auto; width: 100%; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1040px) {
    .menu-btn { display: block; }
    .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 8px 20px 18px; box-shadow: 0 12px 24px rgba(0, 0, 0, .08); }
    .nav.open { display: flex; }
    .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
    .nav .btn { margin-top: 12px; border-bottom: 0; }
}
@media (max-width: 700px) {
    body { font-size: 15px; }
    .hero { padding: 44px 0 56px; }
    .section { padding: 60px 0; }
    .features, .steps, .audiences { grid-template-columns: 1fr; }
    .compare-row { grid-template-columns: 1fr 1fr; }
    .compare-row > span:first-child { grid-column: 1 / -1; background: #F4F1EA; padding-bottom: 8px; }
    .compare-head > span:first-child { display: none; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .mock-toast { left: 6px; bottom: -18px; }
    .mock-chip { right: 6px; top: -14px; }
    .contact-card { padding: 22px 18px; }
    .hero-cta .btn { width: 100%; }
}
