/* ============================================
   U.E. COLEGIO PAULO VI - ESTILOS PRINCIPALES
   Colores basados en el logo institucional
   ============================================ */

:root {
    --azul-principal: #87CEEB;
    --azul-oscuro: #5BA3C6;
    --azul-claro: #B8E0F0;
    --azul-profundo: #2E86AB;
    --rojo-cruz: #C41E3A;
    --rojo-oscuro: #8B0000;
    --dorado: #FFD700;
    --dorado-oscuro: #DAA520;
    --blanco: #FFFFFF;
    --gris-suave: #F8F9FA;
    --texto-oscuro: #2C3E50;
    --texto-claro: #666666;
    --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;
    background: linear-gradient(135deg, var(--azul-claro) 0%, var(--blanco) 50%, var(--azul-principal) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--texto-oscuro);
    line-height: 1.6;
}

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

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

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

.preloader-logo {
    width: 120px;
    animation: pulse-logo 1.5s ease-in-out 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 0;
    animation: spin 1s linear infinite;
}

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

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

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

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, var(--dorado) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
    opacity: 0.6;
}

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

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

.main-header.scrolled {
    padding: 5px 0;
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-profundo) 100%);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-img {
    width: 55px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-img {
    transform: scale(1.1);
}

.school-name {
    font-family: 'Playfair Display', serif;
    color: var(--blanco);
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.school-name span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
    font-family: 'Poppins', sans-serif;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--blanco);
    text-decoration: none;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

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

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--blanco);
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--sombra-fuerte);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: hidden;
}

.nav-item.dropdown-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.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: 12px 20px;
    color: var(--texto-oscuro);
    text-decoration: none;
    font-size: 0.9rem;
    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(--azul-claro);
    color: var(--azul-profundo);
    padding-left: 25px;
}

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

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

/* ============================================
   HERO / PAGE HEADER
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-profundo) 100%);
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    background-size: 100px;
    opacity: 0.5;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--blanco);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

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

.breadcrumb a:hover {
    color: var(--blanco);
}

.breadcrumb span {
    color: rgba(255,255,255,0.6);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    margin-top: 80px;
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

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

.section-subtitle {
    color: var(--texto-claro);
    text-align: center;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* ============================================
   CARDS
   ============================================ */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.info-card {
    background: var(--blanco);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 40px var(--sombra);
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

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

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px var(--sombra-fuerte);
    border-color: var(--azul-principal);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--azul-principal), var(--azul-oscuro));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(91, 163, 198, 0.3);
}

.card-icon i {
    font-size: 2rem;
    color: var(--blanco);
}

.card-icon.red {
    background: linear-gradient(135deg, var(--rojo-cruz), var(--rojo-oscuro));
    box-shadow: 0 10px 20px rgba(196, 30, 58, 0.3);
}

.card-icon.gold {
    background: linear-gradient(135deg, var(--dorado), var(--dorado-oscuro));
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--texto-oscuro);
    margin-bottom: 15px;
}

.card-text {
    color: var(--texto-claro);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ============================================
   CONTENT SECTION
   ============================================ */
.content-section {
    background: var(--blanco);
    border-radius: 25px;
    padding: 50px;
    margin: 30px auto;
    max-width: 1000px;
    box-shadow: 0 20px 50px var(--sombra);
    position: relative;
}

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

.content-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--texto-oscuro);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.content-section h2 i {
    color: var(--azul-oscuro);
}

.content-section p {
    color: var(--texto-claro);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.content-section ul {
    list-style: none;
    padding: 0;
}

.content-section ul li {
    padding: 12px 0 12px 35px;
    position: relative;
    color: var(--texto-claro);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.content-section ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--azul-oscuro);
}

/* ============================================
   DONATION SECTION
   ============================================ */
.donation-section {
    background: linear-gradient(135deg, var(--rojo-cruz) 0%, var(--rojo-oscuro) 100%);
    border-radius: 25px;
    padding: 50px 40px;
    margin: 50px auto;
    max-width: 1000px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(196, 30, 58, 0.3);
}

.donation-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    animation: rotate-bg 20s linear infinite;
}

@keyframes rotate-bg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.donation-content {
    position: relative;
    z-index: 2;
}

.donation-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--blanco);
    text-align: center;
    margin-bottom: 20px;
}

.donation-subtitle {
    color: rgba(255,255,255,0.9);
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.donation-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.donation-amount {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 15px 30px;
    border-radius: 15px;
    color: var(--blanco);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.donation-amount:hover, .donation-amount.active {
    background: var(--dorado);
    border-color: var(--dorado);
    color: var(--texto-oscuro);
    transform: scale(1.1);
}

.custom-amount {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.custom-amount input {
    padding: 15px 25px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    background: rgba(255,255,255,0.1);
    color: var(--blanco);
    font-size: 1.1rem;
    width: 200px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.custom-amount input::placeholder {
    color: rgba(255,255,255,0.6);
}

.custom-amount input:focus {
    outline: none;
    border-color: var(--dorado);
    background: rgba(255,255,255,0.2);
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--dorado), var(--dorado-oscuro));
    color: var(--texto-oscuro);
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.donate-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
}

.donate-btn i {
    font-size: 1.5rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.payment-method {
    background: rgba(255,255,255,0.9);
    padding: 10px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--texto-oscuro);
    transition: all 0.3s ease;
}

.payment-method:hover {
    transform: scale(1.05);
}

.progress-container {
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    height: 25px;
    margin: 30px auto;
    max-width: 500px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--dorado), #FFF8DC);
    border-radius: 50px;
    width: 0%;
    transition: width 1.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--texto-oscuro);
    font-weight: 700;
    font-size: 0.85rem;
}

/* ============================================
   CONTACT INFO
   ============================================ */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 50px auto;
    padding: 30px;
    background: rgba(255,255,255,0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    max-width: 1000px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--texto-oscuro);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--azul-principal), var(--azul-oscuro));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(91, 163, 198, 0.3);
}

.contact-item span {
    font-weight: 500;
}

/* ============================================
   VALUES SECTION
   ============================================ */
.values-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.value-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--rojo-cruz), var(--dorado));
}

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

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-principal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.value-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--texto-oscuro);
    margin-bottom: 10px;
}

.value-card p {
    color: var(--texto-claro);
    font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-profundo));
    padding: 60px 0 20px;
    margin-top: 60px;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--rojo-cruz), var(--dorado), var(--rojo-cruz));
}

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

.footer-section h4 {
    color: var(--blanco);
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--dorado);
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--dorado);
    padding-left: 10px;
}

.footer-links a i {
    color: var(--dorado);
    font-size: 0.8rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
}

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

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

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

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

/* ============================================
   CHATBOT
   ============================================ */
.chatbot-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--rojo-cruz), var(--rojo-oscuro));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.4);
    z-index: 1001;
    transition: all 0.4s ease;
    border: 3px solid var(--dorado);
}

.chatbot-button:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.5);
}

.chatbot-button i {
    font-size: 1.8rem;
    color: var(--blanco);
}

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

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

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    background: var(--dorado);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--texto-oscuro);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.chatbot-container {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 400px;
    max-width: 95vw;
    background: var(--blanco);
    border-radius: 25px;
    box-shadow: 0 20px 60px var(--sombra-fuerte);
    z-index: 1000;
    overflow: hidden;
    transform: scale(0) translateY(20px);
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

.chatbot-container.active {
    transform: scale(1) translateY(0);
    opacity: 1;
}

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

.chatbot-avatar {
    width: 50px;
    height: 50px;
    background: var(--blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.chatbot-avatar img {
    width: 35px;
    height: auto;
}

.chatbot-info h4 {
    color: var(--blanco);
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.chatbot-info span {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chatbot-info span::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chatbot-close {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: var(--blanco);
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.chatbot-messages {
    height: 350px;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(180deg, #F8FBFD 0%, var(--blanco) 100%);
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--azul-principal);
    border-radius: 3px;
}

.message {
    margin-bottom: 15px;
    animation: slideIn 0.3s ease;
}

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

.message.bot {
    display: flex;
    gap: 10px;
}

.message.bot .avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--azul-principal), var(--azul-oscuro));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message.bot .avatar i {
    color: var(--blanco);
    font-size: 0.9rem;
}

.message-content {
    background: var(--blanco);
    padding: 15px 20px;
    border-radius: 20px;
    border-top-left-radius: 5px;
    box-shadow: 0 3px 10px var(--sombra);
    max-width: 85%;
    line-height: 1.5;
    color: var(--texto-oscuro);
}

.message.user {
    display: flex;
    justify-content: flex-end;
}

.message.user .message-content {
    background: linear-gradient(135deg, var(--azul-principal), var(--azul-oscuro));
    color: var(--blanco);
    border-radius: 20px;
    border-top-right-radius: 5px;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-reply {
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-principal));
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    color: var(--texto-oscuro);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-reply:hover {
    background: linear-gradient(135deg, var(--azul-principal), var(--azul-oscuro));
    color: var(--blanco);
    transform: translateY(-2px);
}

.chatbot-input {
    display: flex;
    padding: 15px;
    background: var(--blanco);
    border-top: 1px solid rgba(0,0,0,0.08);
    gap: 10px;
}

.chatbot-input input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--azul-claro);
    border-radius: 30px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

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

.chatbot-input button {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--rojo-cruz), var(--rojo-oscuro));
    border: none;
    border-radius: 50%;
    color: var(--blanco);
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-input button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4);
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 15px 20px;
    background: var(--blanco);
    border-radius: 20px;
    width: fit-content;
    box-shadow: 0 3px 10px var(--sombra);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--azul-principal);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--azul-principal), var(--azul-oscuro));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(91, 163, 198, 0.4);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(91, 163, 198, 0.5);
}

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

.text-center { text-align: center; }
.text-gold { color: var(--dorado); }
.text-red { color: var(--rojo-cruz); }
.text-blue { color: var(--azul-oscuro); }

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* ============================================
   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: 10px;
        transition: all 0.3s ease, max-height 0.3s ease, opacity 0.3s ease;
    }
    
    .nav-item.dropdown-open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
    }
    
    .dropdown-link {
        color: var(--blanco);
    }
    
    .dropdown-link:hover {
        background: rgba(255,255,255,0.1);
        color: var(--dorado);
    }
    
    .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .school-name {
        font-size: 1.1rem;
    }
    
    .school-name span {
        font-size: 0.65rem;
    }
    
    .page-hero {
        padding: 120px 0 40px;
    }
    
    .page-hero h1 {
        font-size: 1.8rem;
    }
    
    .content-section {
        padding: 30px 20px;
        margin: 20px 15px;
    }
    
    .donation-section {
        padding: 30px 20px;
        margin: 30px 15px;
    }
    
    .donation-title {
        font-size: 1.8rem;
    }
    
    .donation-amount {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .contact-info {
        gap: 20px;
        padding: 20px;
    }
    
    .chatbot-container {
        width: 95vw;
        right: 2.5vw;
        bottom: 100px;
    }
    
    .chatbot-button {
        width: 60px;
        height: 60px;
        right: 20px;
        bottom: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .main-header {
        padding: 8px 0;
    }
    
    .logo-img {
        width: 40px;
    }
    
    .main-content {
        margin-top: 70px;
    }
    
    .cards-container {
        padding: 10px;
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: 25px;
    }
    
    .donate-btn {
        padding: 15px 35px;
        font-size: 1rem;
    }
    
    .back-to-top {
        left: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
}
