/* Variables CSS */
:root {
    --primary-pink: #ec4899;
    --primary-purple: #8b5cf6;
    --secondary-purple: #ba9cff;
    --light-pink: #fce7f3;
    --light-purple: #f3e8ff;
    --gradient-pink: linear-gradient(135deg, #ec4899, #8b5cf6);
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --green-500: #10b981;
    --yellow-500: #f59e0b;
    --blue-500: #3b82f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --border-radius: 0.75rem;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 1rem;
    width: 100%;
    max-width: 300px;
}

.btn-primary {
    background: var(--gradient-pink);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 20px -5px rgba(236, 72, 153, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-pink);
    border-color: var(--primary-pink);
}

.btn-outline:hover {
    background: var(--primary-pink);
    color: var(--white);
}

.section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.section-title p {
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

/* Elementos de Fondo Decorativos */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Elementos educativos flotantes */
.floating-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: floatElement 20s infinite linear;
    pointer-events: none;
    z-index: 1;
}

.floating-element.element-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    font-size: 2.5rem;
    opacity: 0.08;
    color: var(--primary-pink);
}

.floating-element.element-2 {
    top: 25%;
    right: 8%;
    animation-delay: 3s;
    font-size: 2.2rem;
    opacity: 0.12;
    color: var(--primary-purple);
}

.floating-element.element-3 {
    bottom: 20%;
    left: 12%;
    animation-delay: 6s;
    font-size: 2rem;
    opacity: 0.09;
    color: var(--green-500);
}

.floating-element.element-4 {
    top: 45%;
    right: 15%;
    animation-delay: 9s;
    font-size: 2.8rem;
    opacity: 0.15;
    color: var(--yellow-500);
}

.floating-element.element-5 {
    bottom: 30%;
    right: 6%;
    animation-delay: 12s;
    font-size: 1.8rem;
    opacity: 0.11;
    color: var(--blue-500);
}

.floating-element.element-6 {
    top: 65%;
    left: 8%;
    animation-delay: 15s;
    font-size: 2.3rem;
    opacity: 0.13;
    color: var(--primary-pink);
}

.floating-element.element-7 {
    top: 35%;
    left: 20%;
    animation-delay: 18s;
    font-size: 2.6rem;
    opacity: 0.14;
    color: var(--primary-purple);
}

.floating-element.element-8 {
    bottom: 15%;
    right: 20%;
    animation-delay: 21s;
    font-size: 2.1rem;
    opacity: 0.1;
    color: var(--green-500);
}

/* Formas abstractas */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    opacity: 0.03;
    animation: floatShape 25s infinite linear;
    pointer-events: none;
}

.floating-shape.shape-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    right: 10%;
    animation-delay: 0s;
}

.floating-shape.shape-2 {
    width: 80px;
    height: 80px;
    bottom: 25%;
    left: 8%;
    animation-delay: 8s;
    background: linear-gradient(135deg, var(--green-500), var(--blue-500));
}

.floating-shape.shape-3 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 5%;
    animation-delay: 16s;
    background: linear-gradient(135deg, var(--yellow-500), var(--primary-pink));
}

.floating-shape.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    left: 15%;
    animation-delay: 24s;
    background: linear-gradient(135deg, var(--primary-purple), var(--green-500));
}

/* Animaciones */
@keyframes floatElement {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }

    25% {
        transform: translateY(-20px) rotate(90deg) scale(1.1);
    }

    50% {
        transform: translateY(0px) rotate(180deg) scale(1);
    }

    75% {
        transform: translateY(20px) rotate(270deg) scale(0.9);
    }

    100% {
        transform: translateY(0px) rotate(360deg) scale(1);
    }
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -40px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 30px) rotate(240deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Asegurar que el contenido tenga buen contraste */
.hero,
.about,
.news,
.testimonials,
.instalaciones,
.admissions,
.contact {
    position: relative;
    z-index: 1;
}

/* Encabezado */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.875rem;
}

.logo-text h1 {
    font-size: 1.125rem;
    color: var(--gray-800);
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 600;
    color: var(--gray-700);
    transition: var(--transition);
    font-size: 0.9375rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-pink);
}

/* Inicio */
.hero {
    background: linear-gradient(135deg, var(--light-pink), var(--light-purple));
    padding-top: 6rem;
    padding-bottom: 3rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-text h1 span {
    color: var(--primary-pink);
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.hero-image {
    position: relative;
}

.hero-image-inner {
    background: var(--gradient-pink);
    padding: 0.25rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

/* Sección de Bienvenida */
.welcome {
    background: var(--gray-50);
}

.welcome-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.welcome-text h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: var(--gray-800);
}

.welcome-text p {
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.feature-item i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    background: var(--light-pink);
    color: var(--primary-pink);
}

.welcome-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Opiniones */
.testimonials {
    padding: 3rem 0 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.testimonial-card {
    background: linear-gradient(135deg, var(--light-pink), var(--light-purple));
    padding: 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9375rem;
}

/* Nosotros */
.about {
    background: var(--gray-50);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.about-text p {
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.value-item i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
}

.value-item:nth-child(1) i {
    background: var(--light-pink);
    color: var(--primary-pink);
}

.value-item:nth-child(2) i {
    background: var(--light-purple);
    color: var(--primary-purple);
}

.value-item:nth-child(3) i {
    background: #dcfce7;
    color: var(--green-500);
}

.value-item:nth-child(4) i {
    background: #fef3c7;
    color: var(--yellow-500);
}

.about-team {
    background: var(--light-pink);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.about-team h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.team-member:last-child {
    margin-bottom: 0;
}

.team-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 1.5rem;
}

.team-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.team-info p {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin: 0;
}

/* Instalaciones */
.instalaciones {
    background: linear-gradient(135deg, var(--light-pink), var(--light-purple));
}

.facilities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.facility-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.facility-image {
    height: 200px;
    background: var(--gradient-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.facility-card:hover .facility-image img {
    transform: scale(1.05);
}

.facility-content {
    padding: 1.25rem;
    background: var(--white);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.facility-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
    text-align: center;
}

.facility-content p {
    color: var(--gray-600);
    font-size: 0.875rem;
    text-align: center;
    margin: 0;
}

/* Placeholder para imágenes que no cargan */
.facility-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
    opacity: 0.1;
    z-index: 1;
}

.facility-image .placeholder-icon {
    position: absolute;
    font-size: 3rem;
    color: var(--white);
    opacity: 0.8;
    z-index: 2;
}

/* ====== GALERÍA DE INSTALACIONES ====== */
.facility-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.facility-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.gallery-btn {
    background: var(--gradient-pink);
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.gallery-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Modal */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.gallery-modal.show {
    display: flex;
}

.gallery-modal-content {
    background: #fff;
    border-radius: var(--border-radius);
    max-width: 900px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
    padding: 1.25rem 1.25rem 3.5rem;
}

.gallery-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #555;
    line-height: 1;
}

.gallery-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: #f3f4f6;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-controls {
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 100%;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.gallery-nav {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    pointer-events: auto;
    font-size: 1.25rem;
    color: #444;
    transition: 0.2s;
}

.gallery-nav:hover {
    background: #fff;
    transform: scale(1.05);
}

.gallery-title {
    background: rgba(255, 255, 255, 0.85);
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    pointer-events: auto;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-modal-content {
        padding-bottom: 4rem;
    }

    .gallery-controls {
        gap: 0.5rem;
    }
}

/* Admisiones */
.admissions {
    background: var(--white);
}

.admissions-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 0.75rem;
}

.contact-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.contact-icon:nth-child(1) {
    color: var(--primary-pink);
}

.contact-icon:nth-child(2) {
    color: var(--primary-purple);
}

.contact-icon:nth-child(3) {
    color: var(--green-500);
}

.contact-text h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-text p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.875rem;
}

.pricing-card {
    background: linear-gradient(135deg, var(--light-pink), var(--light-purple));
    padding: 1.25rem;
    border-radius: var(--border-radius);
    color: var(--gray-800);
}

.pricing-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.pricing-card p {
    color: var(--gray-700);
    font-size: 0.875rem;
    margin: 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9375rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-card {
    background: linear-gradient(135deg, var(--light-pink), var(--light-purple));
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.form-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--gray-800);
}

/* Noticias y Eventos */
.news {
    background: var(--gray-50);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.news-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 160px;
    background: var(--gray-200);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 2rem;
}

.news-content {
    padding: 1.25rem;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.news-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.news-content p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.news-read-more {
    color: var(--primary-pink);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    transition: var(--transition);
}

.news-read-more:hover {
    color: var(--primary-purple);
}

/* ----- Modal de Noticias ----- */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    margin: auto;
    padding: 2rem;
    border-radius: var(--border-radius, 10px);
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

#modalTitle {
    margin-bottom: 1rem;
}

#modalText {
    white-space: pre-line;
}

.close-btn {
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: 0.2s;
}

.close-btn:hover {
    color: #000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Contacto */
.contact {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.875rem;
}

.social-link:nth-child(1) {
    background: var(--light-pink);
    color: var(--primary-pink);
}

.social-link:nth-child(2) {
    background: var(--light-purple);
    color: var(--primary-purple);
}

.social-link:nth-child(3) {
    background: #dbeafe;
    color: var(--blue-500);
}

.social-link:hover {
    transform: translateY(-2px);
}

.map-container {
    margin-top: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border: none;
}

/* Footer */
footer {
    background: var(--gray-800);
    color: var(--white);
    padding: 2rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.875rem;
    padding: 4px;
}

.footer-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.footer-text {
    color: #9ca3af;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.footer-column h4 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.footer-contact p,
.footer-hours p {
    color: #9ca3af;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-contact p i,
.footer-hours p i {
    width: 16px;
    color: #6b7280;
}

.footer-policies {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
}

.footer-policies a {
    color: #9ca3af;
    font-size: 0.875rem;
    transition: var(--transition);
    margin: 0 0.5rem;
}

.footer-policies a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.8125rem;
}

/* Banner de Cookies */
.cookie-banner-full {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 1rem 0;
    border-top: 3px solid var(--primary-pink);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner-full.show {
    transform: translateY(0);
}

.cookie-content-full {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text-full {
    flex: 1;
    max-width: 600px;
}

.cookie-text-full h3 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.cookie-text-full p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.cookie-buttons-full {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Botones de Cookies */
.btn-cookie {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    white-space: nowrap;
}

.btn-cookie-primary {
    background: var(--gradient-pink);
    color: var(--white);
}

.btn-cookie-secondary {
    background: var(--gray-200);
    color: var(--gray-800);
}

.btn-cookie-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-cookie:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Modal de Configuración de Cookies */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.cookie-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    margin: 2rem;
}

.cookie-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    color: var(--gray-800);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.cookie-close:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.cookie-category:hover {
    border-color: var(--primary-pink);
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: var(--transition);
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked+.cookie-slider {
    background: var(--gradient-pink);
}

input:checked+.cookie-slider:before {
    transform: translateX(26px);
}

input:disabled+.cookie-slider {
    background-color: var(--gray-400);
    cursor: not-allowed;
}

.cookie-category-info h4 {
    color: var(--gray-800);
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.cookie-category-info p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Animaciones CSS - VERSIÓN RÁPIDA */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animaciones iniciales rápidas */
.animate-on-load {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-content.animate-on-load {
    animation-delay: 0.1s;
}

.hero-image.animate-on-load {
    animation-delay: 0.2s;
}

.section-title.animate-on-load {
    animation-delay: 0.1s;
}

/* Animaciones al scroll rápidas */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos y animaciones del NAV-MENU (CONSERVAR/AGREGAR) */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-pink);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Header con animación suave */
header {
    transition: all 0.3s ease;
}

/* Responsive para el banner full width */
@media (max-width: 768px) {
    .cookie-content-full {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cookie-text-full {
        max-width: none;
    }

    .cookie-buttons-full {
        flex-direction: column;
        width: 100%;
    }

    .btn-cookie {
        width: 100%;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-category-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-toggle {
        align-self: flex-start;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .cookie-content-full {
        gap: 1.5rem;
    }

    .cookie-buttons-full {
        flex-direction: column;
    }

    .btn-cookie {
        min-width: 160px;
    }
}

/* Responsive para tablets (768px - 1023px) */
@media (min-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .hero {
        padding-top: 7rem;
        padding-bottom: 4rem;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .hero-text h1 {
        font-size: 2.25rem;
    }

    .hero-text p {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }

    .btn {
        width: auto;
        max-width: none;
    }

    .welcome-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .about-values {
        grid-template-columns: repeat(2, 1fr);
    }

    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admissions-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Responsive para desktop (1024px+) */
@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .facilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Menu Mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--gray-800);
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--gray-100);
}

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

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: var(--shadow-md);
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }
}

/* Contenedor del botón Valóranos - RESPONSIVE */
.rating-button-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding: 2rem 1rem;
}

.rating-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 280px;
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Estilos responsive para móvil */
@media (max-width: 768px) {
    .rating-button-container {
        margin-top: 2rem;
        padding: 1.5rem 0.5rem;
    }

    .rating-btn {
        max-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .rating-button-container {
        margin-top: 1.5rem;
        padding: 1rem 0;
    }

    .rating-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        margin: 0 0.5rem;
    }
}