/* =================================
   GENERAL SETUP & VARIABLES
   ================================= */

:root {
    --azul-noche: #0A192F;
    --blanco: #FFFFFF;
    --blanco-marfil: #FFFFF0;
    --gris-claro: #BFBFBF;
    --gris-oscuro: #808080;
    --dorado: #FFD700;
    --dorado-oscuro: #d4b500;
    
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--blanco-marfil);
    color: var(--azul-noche);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--azul-noche);
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

.text-center { 
    text-align: center; 
}

/* =================================
   HEADER & NAVIGATION
   ================================= */

.main-header {
    background-color: var(--blanco);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    height: 80px;
}

.logo img {
    max-height: 65px;
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--azul-noche);
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.nav-contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--dorado);
    color: var(--azul-noche);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    transition: all 0.3s ease;
}

.nav-contact-btn:hover {
    background-color: var(--dorado-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}


/* =================================
   HERO SECTION
   ================================= */

.hero-section {
    background: linear-gradient(rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.7)), url('images/hero-background.jpg') no-repeat center center/cover;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--blanco);
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--blanco);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: var(--blanco-marfil);
}

.cta-button {
    background-color: var(--dorado);
    color: var(--azul-noche);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--dorado-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

/* =================================
   REUSABLE COMPONENTS & SECTIONS
   ================================= */

section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: clamp(1.4rem, 3vw, 1.8rem); /* Título de logos más grande */
    color: var(--gris-oscuro);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: bold;
}

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

@media (min-width: 768px) {
    .two-columns {
        grid-template-columns: 1fr 1fr;
    }
}

/* =================================
   SPECIFIC SECTION STYLING
   ================================= */

/* Social Proof */
.social-proof-section {
    background-color: var(--blanco);
    padding: 3rem 0;
}
.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}
.school-logo {
    height: 80px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}
.school-logo:hover {
    filter: grayscale(0%);
}

/* Problem Section */
.problem-section {
    background-color: var(--azul-noche);
}
.problem-section .section-title, .problem-section p {
    color: var(--blanco);
}
.problem-section .image-content img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Value Prop */
.value-prop-section {
    background-color: var(--blanco);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.feature-item {
    text-align: center;
}
.feature-icon {
    height: 60px;
    margin-bottom: 1rem;
}
.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Gallery - Masonry Layout */
.masonry-gallery {
    column-count: 3;
    column-gap: 1rem;
}
.gallery-item {
    margin-bottom: 1rem;
    display: inline-block;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 215, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item:hover .overlay {
    opacity: 1;
}

.hidden-gallery-item {
    display: none;
}

@media (max-width: 1024px) {
    .masonry-gallery {
        column-count: 2;
    }
}
@media (max-width: 580px) {
    .masonry-gallery {
        column-count: 1;
    }
}

/* Benefits Section */
.benefits-section {
    background-color: var(--azul-noche);
    color: var(--blanco);
}
.benefits-section .section-title, .benefits-section h3 {
    color: var(--blanco);
}
.benefits-section .section-subtitle {
    color: var(--gris-claro);
}
.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.benefit-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.benefit-media {
    width: 100%;
    height: 200px;
}
.benefit-media img, .benefit-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.benefit-text {
    padding: 2rem;
}


/* Form */
.cta-form-section {
    background-color: var(--blanco);
}
#contact-form {
    background-color: var(--blanco-marfil);
    padding: 2rem;
    border-radius: 10px;
}
#contact-form h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}
.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gris-claro);
    border-radius: 5px;
    font-size: 1rem;
}
.form-group input:focus {
    outline: none;
    border-color: var(--dorado);
}
#contact-form .cta-button {
    width: 100%;
    margin-top: 1rem;
}
.privacy-text {
    font-size: 0.8rem;
    text-align: center;
    color: var(--gris-oscuro);
    margin-top: 1rem;
}
#form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    border: 1px solid transparent; /* Borde base */
}

#form-message.success {
    color: #155724; /* Color de texto añadido */
    background-color: #d4edda;
    border-color: #c3e6cb;
}

#form-message.error {
    color: #721c24; /* Color de texto añadido */
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* ESTA REGLA ES IMPORTANTE Y SE DEBE QUEDAR */
.hidden {
    display: none;
}

/* =================================
   FOOTER
   ================================= */

.main-footer {
    background-color: var(--azul-noche);
    color: var(--blanco);
    padding-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}
.footer-col h4 {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dorado);
}
.footer-col p, .footer-col li {
    color: var(--gris-claro);
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 0.5rem;
}
.footer-col a {
    color: var(--gris-claro);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-col a:hover {
    color: var(--dorado);
}
.footer-logo {
    height: 60px; /* Logo del footer más grande */
    margin-bottom: 1rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}