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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Variables CSS */
:root {
    --primary-color: #0891b2;
    --secondary-color: #0e7490;
    --accent-color: #06b6d4;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --light-background: #f0fdfa;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Contenedores */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header y Navegación */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo-image {
    height: 200px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hide site title by default (desktop) */
.site-title {
    display: none;
}

/* Mobile header grid */
@media (max-width: 768px) {
    .nav-container {
        display: grid;
        grid-template-columns: 88px 1fr 56px;
        grid-template-areas: "left center right";
        align-items: center;
        gap: 8px;
        padding: 0.5rem 0.75rem;
        min-height: 72px;
        width: 100%;
    }
    
    .logo {
        grid-area: left;
        display: flex;
        align-items: center;
        gap: 8px;
        justify-self: start;
    }
    
    .site-title {
        grid-area: center;
        text-align: center;
        font-size: 1.6rem;
        font-weight: 700;
        color: #333;
        margin: 0;
        display: block;
        justify-self: center;
        width: auto;
    }
    
    .hamburger {
        grid-area: right;
        justify-self: end;
        display: flex;
        z-index: 1002;
    }
    
    .logo h1 {
        display: none;
    }
    
    .logo-image {
        height: auto;
        width: auto;
        max-height: 144px;
        max-width: 88px;
        margin-left: -8px;
    }
}

/* Hero Section */
.hero {
    padding: 300px 0 100px;
    margin-top: 20px;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-button {
    background: #fbbf24;
    color: #0891b2;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    background: #f59e0b;
    color: #0e7490;
}

/* Botones de contacto en hero */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid white;
    color: white;
    background: transparent;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #20BA5A);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #20BA5A, #1DA851);
    transform: translateY(-3px);
}

.contact-btn img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.whatsapp-btn:hover .contact-icon {
    filter: none;
}

/* Secciones generales */
section {
    padding: 100px 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

/* Servicios */
.services {
    background: var(--light-background);
    padding: 100px 0;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-card p {
    color: var(--light-text);
    line-height: 1.6;
}

/* About section */
.about {
    background: white;
    padding: 100px 0;
}

.about-school {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-school-text h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.about-school-text p {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-school-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    max-width: 500px;
    margin: 0 auto;
}

.school-photo {
    width: 100%;
    height: 280px !important;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow);
    max-height: 280px !important;
}

.about-teacher-section {
    padding: 2rem 0 1rem 0;
    border-top: 1px solid var(--border-color);
}

.about-teacher-section h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.teacher-section {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.teacher-photo {
    flex-shrink: 0;
}

.teacher-image {
    width: 140px;
    height: 170px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.teacher-text {
    flex: 1;
    color: var(--light-text);
    line-height: 1.8;
    font-size: 1.1rem;
}

.teacher-text p {
    margin-bottom: 1.5rem;
}

/* Cursos */
.courses {
    background: var(--background);
    padding: 80px 0;
}

.courses h2 {
    text-align: center;
}

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

.course-category {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.course-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--light-background);
    padding-bottom: 0.5rem;
}

.course-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-background);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.course-item:last-child {
    margin-bottom: 0;
}

.course-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.course-item p {
    color: var(--light-text);
    line-height: 1.5;
    margin: 0;
}

.coffee-chat {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem;
    border-radius: 20px;
    margin-top: 3rem;
    text-align: center;
}

.coffee-chat h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.coffee-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.coffee-chat p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.coffee-chat p:last-child {
    margin-bottom: 0;
    font-size: 1.1rem;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-item .icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem 1rem;
        box-shadow: var(--shadow);
        border-bottom: 1px solid var(--border-color);
        z-index: 1001;
    }
    
    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
    
    /* Keep only relative positioning; grid layout is defined above */
    .nav-container {
        position: relative;
    }

    /* Ensure the inner h1 inside .logo is hidden on mobile */
    .logo h1 {
        display: none;
    }
    
    /* Keep logo static within its grid cell and within 56px width */
    .logo {
        grid-column: 1 / 2;
        justify-self: start;
    }
    
    .logo-image {
        position: static;
        transform: none;
        height: auto;
        width: auto;
        max-height: 144px;
        max-width: 128px;
        display: block;
        margin: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-btn {
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        min-height: 60vh;
        padding: 150px 0 40px;
    }
    
    .about-school {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .about-school-text h2 {
        text-align: center;
    }
    
    .about-school-photos {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-top: 1.5rem;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .school-photo {
        height: 400px !important;
        min-height: 400px !important;
        width: 100%;
        object-fit: cover;
        border-radius: 15px;
        max-height: 400px !important;
    }
    
    .about-teacher-section {
        text-align: center;
        padding: 1.5rem 0 0.5rem 0;
    }
    
    .teacher-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .teacher-image {
        width: 140px;
        height: 170px;
        margin-bottom: 0;
        border-radius: 15px;
    }
    
    .teacher-text {
        max-width: 100%;
        text-align: center;
    }
    
    .calendar-content {
        margin-top: 1.5rem;
    }
    
    .calendar-item {
        padding: 1.5rem;
    }
    
    .holidays-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .holidays-section h3 {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .holidays-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.8rem;
    }
    
    .holiday-item {
        padding: 0.8rem;
    }
    
    .holiday-item .date {
        font-size: 1rem;
    }
    
    .holiday-item .name {
        font-size: 0.8rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .coffee-chat {
        padding: 2rem;
    }
    
    .coffee-chat h3 {
        font-size: 1.8rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
    
    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

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

.service-card,
.contact-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible para accesibilidad */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.notification-close:hover {
    opacity: 0.8;
}

.notification-success {
    background: #10b981;
}

.notification-error {
    background: #ef4444;
}

.notification-info {
    background: #3b82f6;
} 

/* Calendario */
.calendar {
    background: var(--light-background);
    padding: 100px 0;
}

.calendar h2 {
    text-align: center;
}

.calendar-content {
    display: block;
    margin-top: 2rem;
    text-align: left;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.calendar-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    text-align: left;
    margin-left: 2rem;
}

.calendar-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: left;
}

.calendar-item p {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    text-align: left;
}

.holidays-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.holidays-section h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-align: center;
}

.holidays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.holiday-item {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.holiday-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.holiday-item .date {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.holiday-item .name {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Contact links */
.contact-link {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-icon-img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
}

/* Honeypot field (hidden from humans) */
.form-honeypot {
    display: none;
}