/* ==========================================================================
   PREVENSITU · Hoja de estilos
   Identidad: azul petróleo #163F59 (dominante), naranja #E65C17 (acentos),
   gris carbón #2D2D2D (texto), blanco #FFFFFF. Tipografía Montserrat.
   ========================================================================== */

:root {
    /* Paleta oficial */
    --petrol: #163F59;
    --petrol-dark: #0f2f44;
    --petrol-light: #245a7c;
    --orange: #E65C17;
    --orange-dark: #c84d10;
    --carbon: #2D2D2D;
    --white: #FFFFFF;

    /* Neutros derivados */
    --bg-light: #f3f6f8;
    --line: #dde5ea;
    --text: #2D2D2D;
    --text-muted: #55636d;

    /* Alias de compatibilidad (panel de administración) */
    --primary: var(--petrol);
    --primary-light: var(--petrol-light);
    --primary-dark: var(--petrol-dark);
    --accent: var(--orange);
    --accent-light: #f07a3e;
    --accent-orange: var(--orange);
    --bg-white: var(--white);
    --text-dark: var(--carbon);

    --font-heading: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --topbar-height: 38px;
    --header-height: 92px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 6px rgba(22, 63, 89, .06);
    --shadow-md: 0 10px 28px -8px rgba(22, 63, 89, .18);
    --shadow-lg: 0 22px 44px -12px rgba(22, 63, 89, .28);
    --shadow-glow: 0 0 0 4px rgba(230, 92, 23, .18);
    --transition: all .25s ease;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    padding-top: calc(var(--topbar-height) + var(--header-height));
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange); }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--petrol); line-height: 1.15; letter-spacing: -.01em; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--orange); color: #fff; padding: .6rem 1rem; z-index: 2000; }
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.mt-2 { margin-top: 2.5rem; }

.section { padding: 5.5rem 0; }
.section-light { background: var(--bg-light); }
.section-header { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.section-tag {
    display: inline-block;
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--orange); margin-bottom: .75rem;
}
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.section-subtitle, .lead { font-size: 1.08rem; color: var(--text-muted); }

/* Línea naranja bajo titulares (elemento del manual) */
.rule { display: block; width: 72px; height: 5px; border-radius: 3px; background: var(--orange); margin: 1.25rem 0 1.4rem; }

/* Banda naranja con texto blanco (frase clave) */
mark.band {
    background: var(--orange); color: #fff; font-weight: 800;
    padding: .05em .4em; border-radius: 6px;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
mark.todo { background: #fff3cd; color: #7a5b00; padding: 0 .3em; border-radius: 4px; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .95rem 1.7rem; border-radius: var(--radius-sm); border: 2px solid transparent;
    font-family: var(--font-heading); font-size: .95rem; font-weight: 700; cursor: pointer;
    transition: var(--transition); text-align: center; line-height: 1.2;
}
.btn-primary { background: var(--petrol); color: #fff; }
.btn-primary:hover { background: var(--petrol-dark); color: #fff; }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(230, 92, 23, .6); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--petrol); }
.btn-outline { border-color: var(--petrol); color: var(--petrol); background: transparent; }
.btn-outline:hover { background: var(--petrol); color: #fff; }
.btn-danger { background: #b42318; color: #fff; }
.btn-danger:hover { background: #8f1c13; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: .5rem .9rem; font-size: .82rem; }

/* ---------- Cabecera ---------- */
.header-wrapper { position: fixed; inset: 0 0 auto 0; z-index: 1000; transition: transform .3s ease; }
.header-topbar { background: var(--petrol-dark); color: rgba(255, 255, 255, .85); font-size: .8rem; height: var(--topbar-height); display: flex; align-items: center; }
.topbar-container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.topbar-item i { color: var(--orange); margin-right: .35rem; }
.topbar-actions { display: flex; gap: 1.25rem; align-items: center; }
.topbar-link { color: rgba(255, 255, 255, .85); }
.topbar-link:hover { color: #fff; }
.topbar-link i { color: var(--orange); margin-right: .3rem; }

.main-header { background: #fff; height: var(--header-height); border-bottom: 4px solid var(--orange); box-shadow: var(--shadow-sm); transition: height .3s ease; }
.header-container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo-area { display: flex; align-items: center; height: 100%; padding: 8px 0; }
.header-logo { height: 74px; width: auto; transition: height .3s ease; }
.header-wrapper.shrink .main-header { height: 72px; }
.header-wrapper.shrink .header-logo { height: 56px; }

.main-nav > ul { display: flex; align-items: center; gap: .4rem; }
.nav-link { display: inline-flex; align-items: center; gap: .35rem; padding: .7rem 1rem; font-weight: 700; font-size: .95rem; color: var(--petrol); border-radius: var(--radius-sm); }
.nav-link:hover, .nav-link.active { color: var(--orange); }
.nav-caret { font-size: .65rem; }
.btn-nav { background: var(--orange); color: #fff !important; padding: .75rem 1.4rem; margin-left: .5rem; }
.btn-nav:hover, .btn-nav.active { background: var(--orange-dark); }

.has-dropdown { position: relative; }
.dropdown {
    position: absolute; top: 100%; left: 0; min-width: 310px; background: #fff;
    border-top: 4px solid var(--orange); border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg); padding: .6rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--transition);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; gap: .75rem; align-items: center; padding: .7rem .85rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; color: var(--carbon); }
.dropdown a i { color: var(--orange); width: 20px; text-align: center; }
.dropdown a:hover, .dropdown a.active { background: var(--bg-light); color: var(--petrol); }

.mobile-menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.mobile-menu-toggle .bar { display: block; width: 26px; height: 3px; background: var(--petrol); margin: 5px 0; border-radius: 2px; transition: var(--transition); }
.mobile-menu-toggle.open .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle.open .bar:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero portada ---------- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .08) 0, transparent 45%),
        linear-gradient(135deg, var(--petrol) 0%, var(--petrol-dark) 100%);
}
.hero::before {
    /* Gran "P" decorativa de fondo */
    content: ""; position: absolute; right: -120px; top: -80px; width: 620px; height: 760px;
    border: 90px solid rgba(255, 255, 255, .04); border-left-width: 110px; border-radius: 0 320px 320px 0; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; padding-top: 5rem; padding-bottom: 3rem; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.eyebrow i { color: var(--orange); }
.hero-title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-top: 1rem; max-width: 14ch; }
.hero-claim { font-size: clamp(1.25rem, 2.4vw, 1.65rem); font-weight: 700; line-height: 1.45; margin-bottom: 1.1rem; }
.hero-text { color: rgba(255, 255, 255, .82); font-size: 1.05rem; max-width: 56ch; margin-bottom: 2rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-visual { display: flex; justify-content: center; }
.hero-card { background: #fff; border-radius: var(--radius-lg); padding: 2.5rem 2.75rem; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); transform: rotate(-2deg); }
.hero-card img { width: 230px; }

.hero-strip { position: relative; margin-top: 1rem; }
.hero-strip-wave { display: block; width: 100%; height: 70px; }
.hero-strip-body { background: var(--petrol-dark); padding: .5rem 0 2.5rem; }
.strip-items { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-item { display: flex; flex-direction: column; align-items: center; gap: .7rem; text-align: center; font-weight: 700; color: #fff; padding: .5rem 1rem; }
.strip-item + .strip-item { border-left: 3px solid var(--orange); }
.strip-item i { font-size: 2.1rem; }

/* ---------- Hero de páginas internas ---------- */
.page-hero { position: relative; background: linear-gradient(135deg, var(--petrol) 0%, var(--petrol-dark) 100%); color: #fff; padding: 3.5rem 0 5.5rem; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -140px; top: -120px; width: 460px; height: 560px; border: 70px solid rgba(255, 255, 255, .04); border-left-width: 90px; border-radius: 0 240px 240px 0; }
.page-hero .container { position: relative; }
.page-hero-sm { padding-bottom: 4.5rem; }
.page-hero-icon { display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; background: var(--orange); border-radius: var(--radius-md); font-size: 1.6rem; margin-bottom: 1.25rem; }
.page-title { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; max-width: 22ch; }
.page-lead { font-size: 1.15rem; color: rgba(255, 255, 255, .88); max-width: 62ch; }
.page-lead strong { color: #fff; }
.page-hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 50px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; margin-bottom: 1.5rem; color: rgba(255, 255, 255, .7); }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: var(--orange); }

/* ---------- Tarjetas de servicio ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.services-grid-3 { grid-template-columns: repeat(3, 1fr); }
.service-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 2rem 1.6rem; color: var(--text); position: relative; overflow: hidden; transition: var(--transition);
}
.service-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--orange); transition: width .35s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text); }
.service-card:hover::after { width: 100%; }
.service-icon { width: 60px; height: 60px; border-radius: var(--radius-md); background: var(--petrol); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.55rem; margin-bottom: 1.4rem; }
.service-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .7rem; }
.service-card p { color: var(--text-muted); font-size: .93rem; flex: 1; }
.card-link { margin-top: 1.25rem; font-weight: 700; color: var(--orange); font-size: .9rem; display: inline-flex; gap: .45rem; align-items: center; }
.service-card:hover .card-link i { transform: translateX(4px); }
.card-link i { transition: var(--transition); }

/* ---------- Pasos ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius-md); padding: 2rem 1.6rem; border-top: 4px solid var(--petrol); box-shadow: var(--shadow-sm); }
.step-num { font-size: 2.4rem; font-weight: 800; color: var(--orange); line-height: 1; display: block; margin-bottom: .8rem; }
.step h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .5rem; }
.step p { color: var(--text-muted); font-size: .93rem; }

/* ---------- Sectores ---------- */
.sectors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.sector { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-md); font-weight: 700; color: var(--petrol); }
.sector i { font-size: 1.4rem; color: var(--orange); width: 32px; text-align: center; }

/* ---------- Idea rectora (banda naranja + azul) ---------- */
.motto { padding: 0 0 5.5rem; }
.motto-inner { display: grid; grid-template-columns: 220px 1fr; }
.motto-label { background: var(--orange); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; padding: 1.75rem; border-radius: var(--radius-md) 0 0 var(--radius-md); }
.motto-text { background: var(--petrol); color: #fff; font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.35rem); padding: 1.75rem 2rem; border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.section-light + .motto, .motto:first-child { padding-top: 5.5rem; }

/* ---------- CTA ---------- */
.cta { background: var(--bg-light); padding: 4.5rem 0 6rem; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--petrol); color: #fff; border-radius: var(--radius-lg); padding: 3rem; border-bottom: 6px solid var(--orange); }
.cta-title { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; margin-bottom: .5rem; }
.cta-text { color: rgba(255, 255, 255, .85); }
.cta-btns { display: flex; gap: 1rem; flex-wrap: wrap; flex-shrink: 0; }

/* ---------- Páginas de servicio ---------- */
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3.5rem; align-items: start; }
.prose { font-size: 1.05rem; }
.prose p { margin-bottom: 1.2rem; color: var(--text); }
.prose h2 { font-size: 1.6rem; font-weight: 800; margin: 2rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; font-weight: 700; margin: 1.6rem 0 .8rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.2rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4rem; }
.prose a { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }

.side-card { background: var(--bg-light); border-radius: var(--radius-lg); padding: 2rem; border-top: 5px solid var(--orange); position: sticky; top: 140px; }
.side-card-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 1.2rem; }
.side-card-logo { display: flex; justify-content: center; background: #fff; border: 1px solid var(--line); }
.side-card-logo img { width: 240px; }
.check-list { margin-bottom: 1.75rem; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .8rem; font-weight: 600; }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 0; color: var(--orange); }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-box { background: #fff; border-radius: var(--radius-md); padding: 1.9rem 1.6rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.feature-icon { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--orange); color: var(--orange); font-size: 1.2rem; margin-bottom: 1.1rem; }
.feature-box h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: .5rem; }
.feature-box p { color: var(--text-muted); font-size: .93rem; }

.norms-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 980px; margin: 0 auto; }
.norms-list li { display: flex; flex-direction: column; gap: .2rem; padding: 1.2rem 1.4rem; border-left: 4px solid var(--orange); background: var(--bg-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.norms-list strong { color: var(--petrol); }
.norms-list span { color: var(--text-muted); font-size: .93rem; }

.faqs { display: grid; gap: .9rem; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); }
.faq summary { cursor: pointer; padding: 1.2rem 3.2rem 1.2rem 1.4rem; font-weight: 700; color: var(--petrol); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--orange); font-weight: 600; }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 1.4rem 1.3rem; color: var(--text-muted); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3.5rem; align-items: start; }
.contact-info p { color: var(--text-muted); margin-bottom: 1.8rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.contact-list strong { display: block; color: var(--petrol); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-icon { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--petrol); color: #fff; font-size: 1.1rem; }
.form-container { background: #fff; border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-lg); border-top: 5px solid var(--orange); }
.form-container h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: 1.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group-full { grid-column: 1 / -1; }
.form-label { display: block; font-size: .85rem; font-weight: 700; color: var(--petrol); margin-bottom: .4rem; }
.form-control { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: .95rem; color: var(--text); background: #fff; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(22, 63, 89, .12); }
textarea.form-control { resize: vertical; min-height: 130px; }
.checkbox-item { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.checkbox-item input { margin-top: .3rem; accent-color: var(--orange); width: 17px; height: 17px; flex-shrink: 0; }
.form-legal { font-size: .75rem; color: var(--text-muted); margin: 1.2rem 0; line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: .9rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-size: .93rem; }
.alert i { font-size: 1.3rem; margin-top: .1rem; }
.alert-success { background: #e8f5ee; color: #14532d; border-left: 4px solid #16a34a; }
.alert-error { background: #fdecea; color: #7f1d1d; border-left: 4px solid #dc2626; }
.map-section iframe { display: block; width: 100%; height: 400px; border: 0; }

/* ---------- Noticias ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.news-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: var(--transition); }
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.news-card-thumb-wrapper { display: block; aspect-ratio: 16 / 10; background: var(--bg-light); overflow: hidden; }
.news-card-thumb { width: 100%; height: 100%; object-fit: cover; }
.news-card-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: var(--petrol); color: rgba(255, 255, 255, .5); font-size: 2.6rem; }
.news-card-content { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.news-card-date { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.news-card-date i { color: var(--orange); margin-right: .3rem; }
.news-card-title { font-size: 1.15rem; font-weight: 800; margin: .5rem 0 .7rem; }
.news-card-title a { color: var(--petrol); }
.news-card-title a:hover { color: var(--orange); }
.news-card-summary { color: var(--text-muted); font-size: .93rem; flex: 1; }
.news-card-link { margin-top: 1rem; font-weight: 700; color: var(--orange); font-size: .9rem; }
.pagination-container { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; }
.pagination-item { min-width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--line); font-weight: 700; color: var(--petrol); }
.pagination-item.active, .pagination-item:hover { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.pagination-item.disabled { opacity: .4; pointer-events: none; }

.post-detail-section { padding: 4rem 0 5rem; }
.post-detail-container { max-width: 820px; margin: 0 auto; }
.post-back-btn { display: inline-flex; gap: .5rem; align-items: center; font-weight: 700; margin-bottom: 2rem; }
.post-detail-date { color: var(--text-muted); font-size: .88rem; font-weight: 600; display: flex; gap: .5rem; align-items: center; }
.post-detail-date i { color: var(--orange); }
.post-detail-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin: .8rem 0 1.2rem; }
.post-detail-summary { font-size: 1.15rem; color: var(--text-muted); padding-left: 1.2rem; border-left: 4px solid var(--orange); margin-bottom: 2.2rem; }
.post-detail-image-wrapper { margin-bottom: 2.5rem; border-radius: var(--radius-lg); overflow: hidden; }
.post-content { font-size: 1.06rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content h2 { font-size: 1.6rem; margin: 2.2rem 0 1rem; }
.post-content h3 { font-size: 1.3rem; margin: 1.8rem 0 .8rem; }
.post-content ul, .post-content ol { margin: 0 0 1.25rem 1.4rem; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content a { text-decoration: underline; text-decoration-color: var(--orange); }

/* ---------- Legales ---------- */
.legal h2 { font-size: 1.3rem; }
.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; font-size: .93rem; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; vertical-align: top; }
.legal-table th { background: var(--bg-light); color: var(--petrol); }
.legal-updated { margin-top: 2rem; font-size: .85rem; color: var(--text-muted); }
.error-code { font-size: 6rem; font-weight: 800; color: var(--orange); line-height: 1; }

/* ---------- Pie ---------- */
.main-footer { color: rgba(255, 255, 255, .8); margin-top: -1px; }
.footer-wave svg { display: block; width: 100%; height: 70px; }
.footer-inner { background: var(--petrol); padding-top: 2rem; }
.footer-container { display: grid; grid-template-columns: 1.3fr 1.2fr .8fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo-card { display: inline-block; background: #fff; padding: 1rem 1.2rem; border-radius: var(--radius-md); margin-bottom: 1.2rem; }
.footer-logo { height: 90px; width: auto; }
.footer-desc { font-size: .92rem; max-width: 34ch; }
.footer-title { color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: 1.1rem; padding-bottom: .6rem; position: relative; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--orange); border-radius: 2px; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .8); font-size: .92rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--orange); }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .75rem; font-size: .92rem; align-items: flex-start; }
.footer-contact i { color: var(--orange); margin-top: .3rem; }
.footer-socials { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-socials a { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); display: flex; align-items: center; justify-content: center; color: #fff; }
.footer-socials a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.footer-bottom { background: var(--petrol-dark); padding: 1.3rem 0; font-size: .82rem; }
.footer-bottom-content { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-legal a, .credits a { color: rgba(255, 255, 255, .8); }
.footer-legal a:hover, .credits a:hover { color: var(--orange); }

.whatsapp-float { position: fixed; right: 1.3rem; bottom: 1.3rem; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; box-shadow: var(--shadow-lg); z-index: 900; }
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }

/* ---------- Animación de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.active { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    * { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .services-grid, .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    :root { --header-height: 76px; }
    .header-logo { height: 60px; }
    .topbar-info { display: none; }
    .topbar-container { justify-content: center; }
    .mobile-menu-toggle { display: block; }
    .main-nav {
        position: fixed; top: calc(var(--topbar-height) + var(--header-height)); left: 0; right: 0; bottom: 0;
        background: #fff; padding: 1.5rem; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease;
    }
    .header-wrapper.shrink .main-nav { top: calc(var(--topbar-height) + 72px); }
    .main-nav.open { transform: none; }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: .2rem; }
    .nav-link { display: flex; padding: .9rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav-caret { display: none; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: .2rem 0 .6rem .5rem; min-width: 0; }
    .btn-nav { margin: 1rem 0 0; justify-content: center; border-radius: var(--radius-sm); }

    .hero-grid { grid-template-columns: 1fr; padding-top: 3.5rem; }
    .hero-visual { display: none; }
    .two-col, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .side-card { position: static; }
    .features-grid, .news-grid, .sectors-grid, .services-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .cta-inner { flex-direction: column; align-items: flex-start; padding: 2.25rem; }
}

@media (max-width: 600px) {
    .section { padding: 4rem 0; }
    .services-grid, .steps, .features-grid, .news-grid, .sectors-grid, .services-grid-3, .norms-list, .form-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .strip-items { grid-template-columns: 1fr; gap: .5rem; }
    .strip-item { flex-direction: row; justify-content: flex-start; gap: 1rem; text-align: left; }
    .strip-item br { display: none; }
    .strip-item + .strip-item { border-left: 0; border-top: 2px solid rgba(230, 92, 23, .7); padding-top: 1rem; }
    .strip-item i { font-size: 1.6rem; width: 36px; text-align: center; }
    .motto-inner { grid-template-columns: 1fr; }
    .motto-label { border-radius: var(--radius-md) var(--radius-md) 0 0; padding: 1rem 1.5rem; }
    .motto-text { border-radius: 0 0 var(--radius-md) var(--radius-md); padding: 1.5rem; }
    .form-container { padding: 1.75rem 1.25rem; }
    .topbar-actions { gap: .9rem; font-size: .75rem; }
    .footer-bottom-content { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Panel de administración
   ========================================================================== */
.admin-brand img { background: #fff; border-radius: 6px; padding: 3px 5px; }
.admin-badge { background: var(--orange); color: #fff; border-radius: 999px; padding: 0 .45rem; font-size: .75rem; margin-left: .25rem; }
body.admin-body { padding-top: 0; background: var(--bg-light); }
.adm-bar { background: var(--petrol); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; gap: 1rem; flex-wrap: wrap; border-bottom: 4px solid var(--orange); }
.adm-bar .admin-brand { display: flex; align-items: center; gap: .8rem; font-weight: 800; }
.adm-bar .admin-brand img { height: 45px; width: auto; }
.adm-bar nav { display: flex; gap: 1.4rem; }
.adm-bar nav a { color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .9rem; }
.adm-bar nav a:hover, .adm-bar nav a.is-active { color: var(--orange); }
.adm-main { max-width: 1000px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.adm-title-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.adm-title-row h1 { font-size: 1.7rem; }
.adm-title-row small { display: block; font-size: .85rem; font-weight: 500; color: var(--text-muted); margin-top: .3rem; }
.adm-empty { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.adm-empty i { font-size: 2.6rem; color: var(--line); }
.adm-msg { background: #fff; border-radius: var(--radius-md); padding: 1.4rem 1.6rem; margin-bottom: 1rem; border-left: 4px solid var(--line); box-shadow: var(--shadow-sm); }
.adm-msg.is-unread { border-left-color: var(--orange); }
.adm-msg header { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.adm-msg header strong { color: var(--petrol); }
.adm-msg time { font-size: .82rem; color: var(--text-muted); }
.adm-tag { background: var(--bg-light); color: var(--petrol); font-size: .75rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; margin-left: .5rem; }
.adm-contact { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .88rem; margin-bottom: .8rem; }
.adm-warn { color: #a15c00; }
.adm-body { background: var(--bg-light); border-radius: var(--radius-sm); padding: 1rem 1.1rem; font-size: .93rem; margin-bottom: 1rem; }
.adm-actions { display: flex; gap: .6rem; }
