:root {
    --primary: #1A1A1A;      /* Negro grafito */
    --secondary: #6E6E6E;    /* Gris medio */
    --accent: #C81D31;       /* Rojo corporativo DAFO */
    --bg-light: #F4ECE3;     /* Beige / Crema suave DAFO */
    --bg-border: #E2D7CC;    /* Bordes tono crema neutro */
    --text-dark: #1A1A1A;
    --text-muted: #6E6E6E;
    --error: #C81D31;        /* Rojo validación */
    --success: #10B981;      /* Verde validación */
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* Header & Nav Unificados */
header {
    background-color: var(--primary);
    color: white;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    padding: 0.7rem 5%;
    background-color: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 1001;
    transition: transform 0.3s ease;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    line-height: 1.15;
    display: inline-block;
}

.logo:hover {
    transform: scale(1.01);
}

.logo span {
    color: var(--accent);
    font-weight: 800;
}

/* Botón Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.25;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
    display: inline-block;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--accent);
}

nav a:hover::after {
    width: 100%;
}

@media (max-width: 850px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0 5%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
        box-shadow: 0 10px 15px rgba(0,0,0,0.2);
    }

    nav.active {
        max-height: 350px;
        padding: 1.5rem 5%;
    }

    nav a {
        margin: 0.5rem 0;
        font-size: 1.05rem;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 0.5rem;
    }

    nav a::after {
        display: none;
    }

    nav a:last-child {
        border-bottom: none;
    }

    nav a br {
        display: none;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.92), rgba(200, 29, 49, 0.85)), 
                url('../img/banner-cabecera-primaria.webp') center/cover;
    color: white;
    padding: 5.5rem 5% 6.5rem 5%;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInDown 0.8s ease-out forwards;
    font-weight: 700;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: var(--bg-light);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero .btn {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.85rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(200, 29, 49, 0.25);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 26, 26, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 1.2rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-outline:hover {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(200, 29, 49, 0.2);
}

/* Section Layout */
.section {
    padding: 5rem 5%;
}

.section-bg {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2.5rem;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0.5rem auto 0 auto;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: var(--secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.reveal:hover .section-title::after {
    width: 90px;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.grid-iso-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* ESTILOS HOMOGÉNEOS DE TARJETAS */
.card {
    background: white;
    border: 1px solid var(--bg-border);
    border-radius: 6px;
    padding: 2rem;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card:hover {
    top: -6px;
    box-shadow: 0 12px 25px rgba(200, 29, 49, 0.12);
    border-color: var(--accent);
}

.card > div:not(.card-carousel-wrapper) {
    display: flex;
    flex-direction: column;
}

.card h3 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.card:hover h3 {
    color: var(--accent);
}

.card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.card ul {
    list-style: none;
    margin-top: 1.5rem; 
    padding: 0;
}

.card ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.45;
}

.card ul li:last-child {
    margin-bottom: 0;
}

.card ul li::before {
    content: '✓';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Carruseles en Tarjetas de Proyectos */
.card-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    background-color: var(--primary);
}

.card-carousel-slides {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    height: 100%;
}

.card-carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.card-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.card-carousel-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.card-carousel-btn.prev { left: 8px; }
.card-carousel-btn.next { right: 8px; }

/* Tarjetas ISO */
.iso-card {
    background: white;
    border: 1px solid var(--bg-border);
    border-top: 4px solid var(--primary);
    border-radius: 6px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s ease;
}

.iso-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(200, 29, 49, 0.1);
    border-top-color: var(--accent);
}

.iso-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.iso-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.iso-badge {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.iso-card:hover .iso-badge {
    transform: scale(1.08);
    color: var(--accent);
}

/* Sección Taller / Carrusel Principal */
.taller-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.taller-title {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.taller-desc {
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.taller-list {
    list-style: none;
    margin-bottom: 1.5rem;
    padding: 0;
}

.taller-list li {
    margin-bottom: 0.6rem;
    padding-left: 2rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.check-icon {
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    background-color: var(--primary);
}

.carousel-slides {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    height: 380px;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26, 26, 26, 0.95));
    color: white;
    padding: 1.5rem 1rem 1rem 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.slide-caption strong {
    display: block;
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 10px;
    right: 15px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent);
    width: 20px;
    border-radius: 5px;
}

/* Sección de Contacto */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background-color: white;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--bg-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.contact-title {
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.3;
}

.company-data-list {
    list-style: none;
    margin-top: 1rem;
    padding: 0;
}

.company-data-list li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.company-data-list strong {
    color: var(--primary);
}

/* Formulario */
.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.form-group input:not([type="checkbox"]), 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--bg-border);
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
    color: var(--primary);
}

.form-group input:not([type="checkbox"]):focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 29, 49, 0.15);
    background-color: #FFFFFF;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 0.88rem;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1.4;
    margin-bottom: 0;
}

.checkbox-group label a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
}

.checkbox-group label a:hover {
    color: var(--primary);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.form-group.success input:not([type="checkbox"]),
.form-group.success select,
.form-group.success textarea {
    border-color: var(--success);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.form-group.error input:not([type="checkbox"]),
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error);
    box-shadow: 0 0 0 2px rgba(200, 29, 49, 0.15);
}

.checkbox-group.error label {
    color: var(--error);
}

.error-message {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: none;
    font-weight: 500;
}

.error-message.full-width {
    width: 100%;
    flex-basis: 100%;
}

.form-group.error .error-message {
    display: block;
    animation: fadeIn 0.3s ease;
}

.form-status {
    padding: 1rem;
    border-radius: 6px;
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    margin-top: 1rem;
    display: none;
}

.form-status.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(200, 29, 49, 0.9)), 
                url('../img/banner-cabeceras-secundarias.webp') center/cover;
    color: white;
    padding: 5rem 5% 5.5rem 5%;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    font-weight: 700;
}

.page-banner p {
    font-size: 1.1rem;
    color: var(--bg-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Tarjeta de Descarga */
.download-banner-card {
    background-color: var(--primary);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 3.5rem auto 2.5rem auto;
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.download-banner-info h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.download-banner-info p {
    color: #d1d1d1;
    font-size: 0.92rem;
    margin: 0;
}

.btn-download-card {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--accent);
    color: #ffffff;
    padding: 0.85rem 1.4rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-download-card:hover {
    background-color: #a61626;
    transform: translateY(-1px);
}

/* Contenedor Legal */
.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5% 4rem 5%;
}

.intro-card {
    background-color: var(--bg-light);
    border-left: 4px solid var(--accent);
    padding: 1.8rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 3rem;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.legal-section {
    margin-bottom: 3rem;
    background: white;
    border: 1px solid var(--bg-border);
    border-radius: 6px;
    padding: 2.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: border-color 0.3s ease;
}

.legal-section:hover {
    border-color: var(--accent);
}

.legal-section h2 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-light);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
}

.legal-section h2 span {
    color: var(--accent);
}

.company-info-list {
    list-style: none;
    margin-top: 1rem;
    padding: 0;
}

.company-info-list li {
    margin-bottom: 0.7rem;
    padding-left: 1.5rem;
    position: relative;
}

.company-info-list li::before {
    content: '▪';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

.company-info-list strong {
    color: var(--primary);
}

.treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.treatment-card {
    background: var(--bg-light);
    border: 1px solid var(--bg-border);
    border-radius: 6px;
    padding: 1.5rem;
}

.treatment-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.3rem;
    display: inline-block;
}

.treatment-card p {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.treatment-card p strong {
    color: var(--primary);
}

.styled-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.styled-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.6rem;
    position: relative;
    font-size: 0.98rem;
}

.styled-list li::before {
    content: '✓';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.commitment-card {
    background: var(--bg-light);
    border: 1px solid var(--bg-border);
    border-radius: 6px;
    padding: 1.5rem;
}

.commitment-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.6rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.3rem;
    display: inline-block;
}

.commitment-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.doc-footer-info {
    background-color: var(--bg-light);
    border: 1px solid var(--bg-border);
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--bg-light);
    text-align: center;
    padding: 2rem 5%;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer a {
    color: var(--bg-light);
    text-decoration: underline;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent);
}

.footer-links {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.footer-separator {
    margin: 0 0.4rem;
}

/* Animaciones */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), 
                transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Media Queries */
@media (max-width: 900px) {
    .grid-2, .contact-container, .taller-container {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 1.9rem;
    }
    .carousel-slide {
        height: 280px;
    }
    .legal-section {
        padding: 1.5rem;
    }
    .page-banner h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 640px) {
    .download-banner-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 1.5rem;
        margin-top: 2rem;
    }

    .btn-download-card {
        width: 100%;
        justify-content: center;
    }
}

/* --- ESTILOS AGRUPADOS DESDE LOS ARCHIVOS HTML --- */
.highlight-box {
    margin-top: 1rem;
    padding: 1.2rem;
    background: var(--bg-light);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
}

.mt-1 {
    margin-top: 1rem;
}

.doc-date {
    font-size: 0.9rem;
    color: var(--secondary);
}

.doc-signature {
    font-weight: 600;
    color: var(--accent);
}