/* ==========================================================
   GRUPO PROSECO - styles.css (v5 - final multipágina)
   ========================================================== */

:root {
    --primary: #1a3a5c;
    --primary-dark: #0f2538;
    --primary-light: #2c5f8d;
    --secondary: #e63946;
    --secondary-dark: #c9283e;
    --accent: #f4a261;
    --accent-dark: #e2924f;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --border: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 14px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 62px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 8px);
    overflow-x: clip;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: clip;
}

img { max-width: 100%; display: block; }

.container { max-width: 1240px; margin: 0 auto; }
.container.narrow { max-width: 900px; }
.text-center { text-align: center; }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header { background: #fff; }

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.4rem 1.5rem 1.8rem;
    background: linear-gradient(180deg, #ffffff 0%, #f2f6fa 100%);
}

.logo-link img {
    width: clamp(380px, 62vw, 780px);
    height: auto;
    margin: 0 auto;
    transition: var(--transition);
}

.logo-link:hover img { transform: scale(1.02); }

.nav-placeholder { display: none; }
.nav-placeholder.active { display: block; }

.nav-bar {
    position: static;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.nav-bar.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: var(--shadow-lg);
}

.nav-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0 1.5rem;
    position: relative;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.15rem;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.88rem;
    white-space: nowrap;
    position: relative;
    transition: var(--transition);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--secondary);
    transition: var(--transition);
}

nav a:hover, nav a.active { color: var(--primary); }
nav a:hover::after, nav a.active::after { width: 60%; }

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary);
    color: #fff;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.contact-pill:hover { background: var(--secondary-dark); transform: scale(1.05); }

.nav-toggle {
    display: none;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 2px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    font-size: 1.15rem;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav-toggle:hover { background: var(--primary); color: #fff; }

/* Logo compacto dentro de la barra fija (oculto por defecto) */
.nav-logo {
    display: none;
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* ==========================================================
   SLIDER (home)
   ========================================================== */
.slider {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: calc(100vh - var(--nav-height));
    min-height: 480px;
    overflow: hidden;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 55%,
        rgba(0, 0, 0, 0.38) 100%
    );
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 960px;
    padding: 2rem 1.5rem 4rem;
    animation: slideIn 0.8s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(35px); }
    to   { opacity: 1; transform: translateY(0); }
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
}

.slide-content h2 {
    font-size: clamp(2rem, 5.2vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.slide-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.96;
    max-width: 720px;
    margin: 0 auto 2rem;
    line-height: 1.65;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.slider-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--secondary);
    color: #fff;
    padding: 0.95rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.45);
    transition: var(--transition);
}

.slider-btn:hover { transform: translateY(-3px); background: var(--secondary-dark); }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-arrow:hover { background: var(--secondary); border-color: var(--secondary); }
.slider-arrow.prev { left: 1.8rem; }
.slider-arrow.next { right: 1.8rem; }

.slider-controls {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slider-dot.active { background: #fff; width: 32px; }

/* ==========================================================
   HERO DE PÁGINAS INTERIORES
   ========================================================== */
.page-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 46vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 4rem 1.5rem;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 900px;
}

.page-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    margin: 1rem 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.page-hero-content p {
    font-size: 1.15rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ==========================================================
   SECCIONES GENÉRICAS
   ========================================================== */
section { padding: 5.5rem 2rem; }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(26, 58, 92, 0.08);
    color: var(--primary);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.section-badge.light { background: rgba(255, 255, 255, 0.15); color: #fff; }

.section-header h2 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}

.section-header p {
    font-size: 1.08rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto;
}

/* ==========================================================
   CARDS DE SERVICIOS
   ========================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-img-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.card-img-link img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: var(--transition);
}

.card-img-link::after {
    content: '\f061';   /* fa-arrow-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    background: rgba(26, 58, 92, 0.45);
    opacity: 0;
    transition: var(--transition);
}

.card-img-link:hover img { transform: scale(1.06); }
.card-img-link:hover::after { opacity: 1; }

.service-card-body { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; }

.service-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-top: -3.4rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 6px 18px rgba(26, 58, 92, 0.35);
    border: 3px solid #fff;
    position: relative;
}

.service-card h3 { font-size: 1.18rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 0.7rem; }
.service-card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.65; margin-bottom: 1.2rem; flex: 1; }

.card-link {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.card-link:hover { gap: 0.7rem; color: var(--secondary-dark); }

/* ==========================================================
   SECCIONES DETALLE
   ========================================================== */
.detail { background: #fff; }
.detail.alt { background: var(--bg-light); }

.detail-layout {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 3rem;
    align-items: start;
}

.detail-text h2 { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); margin: 2rem 0 1rem; }
.detail-text h3 { font-size: 1.35rem; font-weight: 700; color: var(--primary); margin: 2rem 0 0.9rem; }
.detail-text h3:first-child { margin-top: 0; }
.detail-text h4 { font-size: 1.08rem; font-weight: 700; color: var(--primary-light); margin: 1.5rem 0 0.6rem; }
.detail-text p { line-height: 1.8; margin-bottom: 1rem; }

.arrow-list, .check-list { list-style: none; margin: 0.5rem 0 1.4rem; }
.arrow-list li, .check-list li { position: relative; padding: 0.45rem 0 0.45rem 2rem; line-height: 1.7; }

.arrow-list li::before {
    content: '\f105';   /* fa-angle-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0.4rem;
    top: 0.55rem;
    color: var(--secondary);
}

.check-list li i { position: absolute; left: 0.2rem; top: 0.6rem; color: var(--secondary); }

.highlight-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: var(--radius);
    padding: 1.8rem 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.highlight-box p { color: #fff; font-size: 1.06rem; font-style: italic; line-height: 1.7; margin: 0; }
.highlight-box i { margin-right: 0.6rem; opacity: 0.7; }

.detail-aside {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.aside-figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.aside-figure img { width: 100%; height: auto; transition: var(--transition); }
.aside-figure:hover img { transform: scale(1.04); }

.company-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.company-card img { max-height: 90px; margin: 0 auto 1rem; object-fit: contain; }
.company-card h4 { color: var(--primary); font-size: 0.98rem; margin-bottom: 0.6rem; }
.company-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.iso-card img { max-height: 110px; }

/* Fila de botones CTA (páginas interiores) */
.cta-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================
   CANAL ÉTICO
   ========================================================== */
.canal-section { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; }

.canal-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3rem;
    align-items: center;
}

.canal-figure-link { display: block; transition: var(--transition); }
.canal-figure-link:hover { transform: scale(1.03); }

.canal-figure img {
    max-width: 320px;
    margin: 0 auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35));
}

.canal-text h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.canal-text p { font-size: 1.05rem; line-height: 1.8; opacity: 0.92; margin-bottom: 1.6rem; }

/* ==========================================================
   NOTICIAS
   ========================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}

.news-card {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 5px solid var(--secondary);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.6rem; }
.news-card h3 i { color: var(--secondary); }
.news-card p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }

/* ==========================================================
   CONTACTO + BLOQUE LEGAL
   ========================================================== */
.contact-section { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.contact-section .section-header h2 { color: #fff; }
.contact-section .section-header p { color: rgba(255, 255, 255, 0.85); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.8rem; }
.contact-item { display: flex; gap: 1.2rem; align-items: flex-start; }

.contact-item-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.contact-item p, .contact-item a { color: #fff; opacity: 0.9; text-decoration: none; }
.contact-item a:hover { opacity: 1; text-decoration: underline; }

.contact-form {
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 2.4rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.3rem; }
.form-group label { display: block; font-weight: 500; font-size: 0.88rem; margin-bottom: 0.45rem; }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: inherit;
    font-size: 0.98rem;
    transition: var(--transition);
}

.form-group select option { color: var(--text-dark); background: #fff; }
.form-group ::placeholder { color: rgba(255, 255, 255, 0.5); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.16);
}

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

.legal-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1.3rem 1.4rem;
    margin-bottom: 1.5rem;
}

.legal-box h4 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
}

.legal-box p {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.88;
    margin-bottom: 0.6rem;
    color: #fff;
}

.legal-checkbox {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    user-select: none;
}

.legal-checkbox input {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.legal-checkbox span:last-child { line-height: 1.4; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 2rem;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary { background: var(--secondary); color: #fff; box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4); }
.btn-primary:hover { background: var(--secondary-dark); transform: translateY(-2px); }

.btn-accent { background: var(--accent); color: var(--primary-dark); box-shadow: 0 4px 20px rgba(244, 162, 97, 0.4); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ==========================================================
   FOOTER
   ========================================================== */
footer { background: var(--primary-dark); color: #fff; padding: 4rem 2rem 2rem; }

.footer-grid {
    max-width: 1240px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.6rem;
}

.footer-logo {
    max-width: 240px;
    margin-bottom: 1.2rem;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-col h4 { color: var(--accent); font-size: 1rem; font-weight: 700; margin-bottom: 1.3rem; }
.footer-col p { font-size: 0.9rem; line-height: 1.7; opacity: 0.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; }

.footer-col ul li a,
.footer-col ul li span {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-col ul li i { font-size: 0.8rem; color: var(--accent); }
.footer-col ul li a i.fa-arrow-up-right-from-square { font-size: 0.7rem; }

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.8rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.84rem;
    opacity: 0.7;
}

/* ==========================================================
   TELÉFONO FLOTANTE (solo responsive)
   ========================================================== */
.float-phone {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(230, 57, 70, 0.45);
    z-index: 999;
    transition: var(--transition);
    animation: phonePulse 2.5s infinite;
}

.float-phone:hover {
    transform: scale(1.1);
    background: var(--secondary-dark);
}

@keyframes phonePulse {
    0%   { box-shadow: 0 6px 24px rgba(230, 57, 70, 0.45), 0 0 0 0 rgba(230, 57, 70, 0.5); }
    70%  { box-shadow: 0 6px 24px rgba(230, 57, 70, 0.45), 0 0 0 18px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 6px 24px rgba(230, 57, 70, 0.45), 0 0 0 0 rgba(230, 57, 70, 0); }
}

/* ==========================================================
   SCROLL TOP + REVEAL
   ========================================================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--secondary); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-aside { position: static; flex-direction: row; flex-wrap: wrap; }
    .detail-aside > * { flex: 1 1 260px; }
    .canal-grid { grid-template-columns: 1fr; text-align: center; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }

    /* Logo principal: siempre visible, ajustado al ancho */
    .header-top { padding: 1.4rem 1rem 1rem; }
    .logo-link { display: flex; justify-content: center; width: 100%; }
    .logo-link img { width: min(100%, 560px); height: auto; }

    /* Logo compacto visible cuando el menú se fija */
    .nav-bar.is-fixed .nav-logo {
        display: block;
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        max-width: 38vw;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 0.8rem 1.2rem 1.2rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    nav.active { display: flex; }
    nav a { padding: 0.9rem 0.6rem; border-bottom: 1px solid var(--border); border-radius: 0; text-align: center; }
    nav a:last-child { border-bottom: none; }
    nav a::after { display: none; }

    .contact-pill { display: none; }   /* deja de tapar los logos */
    .float-phone { display: flex; }    /* teléfono flotante abajo-izquierda */

    .nav-bar-inner { justify-content: center; }
}

@media (max-width: 640px) {
    section { padding: 3.8rem 1.2rem; }
    .slider { padding: 0; height: 70vh; min-height: 420px; }
    .header-top { padding: 1.1rem 0.8rem 0.9rem; }
    .logo-link img { width: 100%; max-width: 560px; }
    .nav-bar.is-fixed .nav-logo { height: 32px; max-width: 45vw; }
    .slider-arrow { width: 42px; height: 42px; }
    .slider-arrow.prev { left: 0.8rem; }
    .slider-arrow.next { right: 0.8rem; }
    .slide-content { padding-bottom: 4rem; }
    .page-hero { min-height: 38vh; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .contact-form { padding: 1.8rem 1.4rem; }
}

/* ==========================================================
   AÑADIDOS v5.1 - versión PHP multipágina
   ========================================================== */

/* Escudos del footer (sustituyen al logo) */
.footer-shields {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.3rem;
}

.footer-shields img {
    max-height: 78px;
    width: auto;
}

/* Bloque "quiénes somos" de la home */
.home-about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.home-about-img img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

/* Hero sin imagen (páginas legales) */
.page-hero.plain {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

@media (max-width: 1100px) {
    .home-about-grid { grid-template-columns: 1fr; }
}