/* ============================================
   U.E. COLEGIO PAULO VI - ESTILOS PRINCIPALES
   ============================================ */

:root {
    --azul-principal: #87CEEB;
    --azul-oscuro: #2E86AB;
    --azul-claro: #B8E0F0;
    --rojo-cruz: #C41E3A;
    --rojo-oscuro: #8B0000;
    --dorado: #FFD700;
    --dorado-oscuro: #DAA520;
    --blanco: #FFFFFF;
    --texto-oscuro: #1a1a2e;
    --texto-claro: #666666;
    --fondo-claro: #f8f9fa;
    --sombra: rgba(0,0,0,0.1);
    --sombra-fuerte: rgba(0,0,0,0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--texto-oscuro);
    background: var(--blanco);
    overflow-x: hidden;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-principal));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.preloader-logo {
    width: 120px;
    animation: pulse 1.5s infinite;
}

.preloader-text {
    color: var(--blanco);
    margin-top: 20px;
    font-size: 1.2rem;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: var(--dorado);
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ============================================
   PARTICLES
   ============================================ */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -20px;
    background: radial-gradient(circle, var(--dorado), transparent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-principal));
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 20px var(--sombra);
    transition: all 0.3s ease;
}

.main-header.scrolled {
    padding: 10px 0;
    background: rgba(46, 134, 171, 0.98);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--dorado);
    transition: transform 0.3s;
}

.logo-img:hover {
    transform: rotate(10deg) scale(1.1);
}

.school-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blanco);
}

.school-name span {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--dorado);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.15);
    color: var(--dorado);
}

.nav-link i {
    font-size: 0.9rem;
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--blanco);
    min-width: 240px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 9999;
    padding: 8px 0;
}

/* Mostrar dropdown en hover - DESKTOP */
.nav-item:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mostrar dropdown con clase activa - MOBILE */
.nav-item.dropdown-open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Chevron rotation */
.nav-item:hover > .nav-link .fa-chevron-down,
.nav-item.dropdown-open > .nav-link .fa-chevron-down {
    transform: rotate(180deg);
}

.nav-link .fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
    margin-left: 3px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--rojo-cruz), var(--dorado), var(--azul-principal));
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--texto-oscuro);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-link:hover {
    background: var(--fondo-claro);
    color: var(--azul-oscuro);
    padding-left: 25px;
}

.dropdown-link i {
    width: 20px;
    color: var(--azul-oscuro);
}

.menu-toggle {
    display: none;
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--blanco);
    font-size: 1.5rem;
}

/* ============================================
   NOTIFICATION MODAL
   ============================================ */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notification-modal.active {
    opacity: 1;
    visibility: visible;
}

.notification-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.notification-modal.active .notification-content {
    transform: scale(1);
}

.notification-header {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-principal));
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-header h3 i {
    color: var(--dorado);
}

.notification-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: var(--rojo-cruz);
    transform: rotate(90deg);
}

.notification-body {
    padding: 25px;
    text-align: center;
}

.notification-body img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.notification-body h4 {
    color: var(--azul-oscuro);
    margin-bottom: 10px;
}

.notification-body p {
    color: var(--texto-claro);
}

.notification-footer {
    padding: 15px 25px 25px;
    text-align: center;
}

.notification-btn {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-principal));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(46, 134, 171, 0.4);
}

/* ============================================
   HERO CAROUSEL
   ============================================ */
.hero-carousel {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 90px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-slide.active {
    opacity: 1;
}

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

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 134, 171, 0.7), rgba(0,0,0,0.5));
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-content {
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 20px;
}

.carousel-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.carousel-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.carousel-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--dorado);
    color: var(--texto-oscuro);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

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

.carousel-dot.active {
    background: var(--dorado);
    transform: scale(1.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background: var(--dorado);
    color: var(--texto-oscuro);
}

.carousel-arrow.prev { left: 30px; }
.carousel-arrow.next { right: 30px; }

/* ============================================
   SECTIONS GENERAL
   ============================================ */
.section {
    padding: 80px 0;
    position: relative;
}

.section-light {
    background: var(--fondo-claro);
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--texto-oscuro);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--texto-claro);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   CATEGORIES / SERVICES GRID
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--sombra);
    transition: all 0.4s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--sombra-fuerte);
}

.category-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category-icon.blue { background: linear-gradient(135deg, var(--azul-principal), var(--azul-oscuro)); }
.category-icon.green { background: linear-gradient(135deg, #4CAF50, #2E7D32); }
.category-icon.orange { background: linear-gradient(135deg, #FF9800, #E65100); }
.category-icon.red { background: linear-gradient(135deg, var(--rojo-cruz), var(--rojo-oscuro)); }
.category-icon.purple { background: linear-gradient(135deg, #9C27B0, #6A1B9A); }
.category-icon.teal { background: linear-gradient(135deg, #009688, #00695C); }

.category-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    object-fit: cover;
}

.category-icon i {
    font-size: 3rem;
    color: white;
}

.category-content {
    padding: 25px;
}

.category-content h3 {
    color: var(--texto-oscuro);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.category-content p {
    color: var(--texto-claro);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px var(--sombra);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--azul-principal), var(--dorado));
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 5px solid var(--azul-claro);
}

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

.team-card h3 {
    color: var(--texto-oscuro);
    margin-bottom: 5px;
}

.team-card .position {
    color: var(--azul-oscuro);
    font-weight: 500;
    margin-bottom: 15px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--fondo-claro);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul-oscuro);
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--azul-oscuro);
    color: white;
}

/* ============================================
   INSTAGRAM SECTION
   ============================================ */
.instagram-section {
    background: linear-gradient(135deg, var(--fondo-claro), white);
}

.instagram-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.instagram-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--texto-oscuro);
    margin-bottom: 20px;
}

.instagram-info p {
    color: var(--texto-claro);
    margin-bottom: 25px;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #E1306C, #833AB4, #405DE6);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.instagram-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(131, 58, 180, 0.4);
}

.instagram-feed {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px var(--sombra);
    min-height: 400px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--sombra);
}

.contact-form h3 {
    color: var(--texto-oscuro);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--texto-oscuro);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--azul-principal);
    box-shadow: 0 0 0 4px rgba(135, 206, 235, 0.2);
}

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

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-principal));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(46, 134, 171, 0.4);
}

.contact-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--sombra);
    height: 100%;
    min-height: 500px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: linear-gradient(135deg, var(--texto-oscuro), #16213e);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.footer-section h4 {
    color: var(--dorado);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--dorado);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact-item i {
    color: var(--dorado);
    margin-top: 4px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--dorado);
    color: var(--texto-oscuro);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* ============================================
   PAGE HERO (Internal Pages)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-principal));
    padding: 150px 0 80px;
    text-align: center;
    color: white;
    margin-top: 90px;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-hero p {
    opacity: 0.9;
    font-size: 1.2rem;
}

.breadcrumb {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--dorado);
    text-decoration: none;
}

.breadcrumb span {
    opacity: 0.7;
}

/* ============================================
   BACK TO TOP & CHATBOT
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--azul-oscuro);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px var(--sombra);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dorado);
    color: var(--texto-oscuro);
    transform: translateY(-5px);
}

.chatbot-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--rojo-cruz), var(--rojo-oscuro));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 5px 25px rgba(196, 30, 58, 0.4);
    transition: all 0.3s ease;
}

.chatbot-button:hover {
    transform: scale(1.1);
}

.chatbot-button i {
    color: white;
    font-size: 1.8rem;
}

.chatbot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--rojo-cruz);
    animation: chatPulse 2s infinite;
}

@keyframes chatPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Chatbot Container */
.chatbot-container {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--sombra-fuerte);
    display: none;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
}

.chatbot-container.active {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-principal));
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--dorado);
}

.chatbot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chatbot-info h4 {
    margin: 0;
    font-size: 1rem;
}

.chatbot-info span {
    font-size: 0.8rem;
    opacity: 0.8;
}

.chatbot-close {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 300px;
}

.chatbot-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
    gap: 10px;
}

.chatbot-input input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 25px;
    outline: none;
}

.chatbot-input input:focus {
    border-color: var(--azul-principal);
}

.chatbot-input button {
    background: var(--azul-oscuro);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--azul-oscuro);
        flex-direction: column;
        padding: 20px;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        border-radius: 8px;
        margin-top: 5px;
        padding: 0;
        transition: all 0.3s ease;
    }
    
    /* En mobile solo funciona con click */
    .nav-item:hover > .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        max-height: 0;
    }
    
    .nav-item.dropdown-open > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding: 8px 0;
    }
    
    .dropdown-link {
        color: var(--blanco);
    }
    
    .dropdown-link:hover {
        background: rgba(255,255,255,0.1);
        color: var(--dorado);
    }
    
    .hero-carousel {
        margin-top: 80px;
        height: 70vh;
    }
    
    .carousel-content h1 {
        font-size: 2.2rem;
    }
    
    .instagram-container,
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .carousel-content h1 {
        font-size: 1.8rem;
    }
    
    .carousel-content p {
        font-size: 1rem;
    }
    
    .carousel-arrow {
        width: 45px;
        height: 45px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .chatbot-container {
        width: calc(100% - 40px);
        right: 20px;
    }
}
