/* ============================================
   PEÑARANDILLA VUELA - CSS PRINCIPAL
   Paleta vibrante y moderna
   ============================================ */

:root {
    /* Paleta de colores vivos */
    --color-primary: #E63946;       /* Rojo coral del logo */
    --color-secondary: #F77F00;     /* Naranja vibrante */
    --color-accent: #FCBF49;        /* Amarillo cálido */
    --color-tertiary: #06AED5;      /* Cian alegre */
    --color-purple: #7209B7;        /* Morado mariposa */
    --color-pink: #FF6B9D;          /* Rosa mariposa */
    --color-green: #06D6A0;         /* Verde menta */
    
    --color-dark: #1D3557;          /* Azul oscuro */
    --color-light: #F1FAEE;         /* Crema claro */
    --color-white: #FFFFFF;
    --color-text: #2B2D42;
    --color-text-light: #555;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #E63946 0%, #F77F00 100%);
    --gradient-secondary: linear-gradient(135deg, #7209B7 0%, #FF6B9D 100%);
    --gradient-tertiary: linear-gradient(135deg, #06AED5 0%, #06D6A0 100%);
    --gradient-warm: linear-gradient(135deg, #FCBF49 0%, #F77F00 50%, #E63946 100%);
    --gradient-hero: linear-gradient(135deg, #E63946 0%, #7209B7 50%, #06AED5 100%);
    --gradient-soft: linear-gradient(135deg, #FFE5EC 0%, #FFF3E0 100%);
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-colorful: 0 10px 40px rgba(230, 57, 70, 0.3);
    
    /* Tipografía */
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-decorative: 'Pacifico', cursive;
    
    /* Layout */
    --container-max: 1200px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--color-light);
}

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

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

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 0.8rem 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    border: 3px solid var(--color-primary);
}

.brand-text {
    font-weight: 800;
    font-size: 1.3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    padding: 0.6rem 1rem;
    color: var(--color-dark);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-colorful);
}

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

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 6rem 2rem 3rem;
    overflow: hidden;
    flex-wrap: wrap;
    gap: 3rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-50px, -50px) rotate(180deg); }
}

.hero-content {
    color: white;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    animation: slideDown 1s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 500;
    animation: slideUp 1s ease 0.3s both;
}

.hero-description {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
    animation: slideUp 1s ease 0.5s both;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 1s ease 0.7s both;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-hero:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--color-purple);
    transform: translateY(-3px);
}

.hero-image {
    z-index: 2;
    max-width: 380px;
    animation: slideRight 1s ease 0.5s both;
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* ============================================
   SECCIONES PRINCIPALES
   ============================================ */
.section-container {
    padding: 5rem 1.5rem;
    position: relative;
}

.section-container:nth-of-type(even):not(.highlight-section) {
    background: var(--gradient-soft);
}

.highlight-section {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE5EC 50%, #E1F5FE 100%);
    position: relative;
}

.highlight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-warm);
}

.section-content {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--color-dark);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-divider {
    width: 100px;
    height: 5px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 5px;
}

.section-text {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-text p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
    font-weight: 500;
}

.highlight-text {
    text-align: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 2rem;
}

/* ============================================
   GALERÍA / CARRUSEL
   ============================================ */
.gallery-section {
    margin-top: 3rem;
}

.gallery-section h3 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--color-dark);
    margin-bottom: 2rem;
    font-weight: 700;
}

.carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--color-dark);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

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

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

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

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    font-weight: bold;
}

.carousel-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown-wrapper {
    text-align: center;
    margin: 2rem auto;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    max-width: 500px;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--color-primary);
}

.countdown-label {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.countdown {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   TARJETAS (info-card, disease-card, etc)
   ============================================ */
.carrera-info,
.disease-cards,
.activities-grid,
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card,
.disease-card,
.activity-card,
.contact-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.info-card::before,
.disease-card::before,
.activity-card::before,
.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transition: height 0.3s ease;
}

.disease-card::before {
    background: var(--gradient-secondary);
}

.activity-card::before {
    background: var(--gradient-tertiary);
}

.contact-card::before {
    background: var(--gradient-warm);
}

.info-card:hover,
.disease-card:hover,
.activity-card:hover,
.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.info-card:hover::before,
.disease-card:hover::before,
.activity-card:hover::before,
.contact-card:hover::before {
    height: 8px;
}

.card-emoji,
.card-icon,
.activity-icon,
.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s ease infinite;
}

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

.info-card h3,
.disease-card h3,
.activity-card h3,
.contact-card h3 {
    color: var(--color-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.info-card p,
.disease-card p,
.activity-card p,
.contact-card p {
    color: var(--color-text-light);
    line-height: 1.7;
}

.contact-card a {
    color: var(--color-primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--color-secondary);
}

.small-text {
    font-size: 0.9rem !important;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* ============================================
   SECCIONES ESPECÍFICAS
   ============================================ */
.registration-section {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 3rem auto;
    max-width: 700px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--color-primary);
}

.registration-section h3 {
    color: var(--color-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.registration-note {
    background: var(--gradient-soft);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    box-shadow: var(--shadow-colorful);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.4);
}

.poster-section {
    text-align: center;
    margin-top: 3rem;
}

.poster-img {
    max-width: 500px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 5px solid white;
    transition: transform 0.3s ease;
}

.poster-img:hover {
    transform: scale(1.02);
}

/* ============================================
   INFORMATION BOX
   ============================================ */
.information-box {
    background: var(--gradient-secondary);
    color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
    box-shadow: var(--shadow-lg);
}

.information-box h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.information-box ul {
    list-style: none;
    max-width: 500px;
    margin: 0 auto;
}

.information-box li {
    padding: 0.7rem 0;
    font-size: 1.05rem;
    font-weight: 500;
}

/* ============================================
   VYJUVEK
   ============================================ */
.medicine-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.medicine-info {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.medicine-info h3 {
    color: var(--color-purple);
    margin: 1.5rem 0 0.5rem;
    font-size: 1.3rem;
}

.medicine-info h3:first-child {
    margin-top: 0;
}

.medicine-info p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.medicine-highlight .highlight-box {
    background: var(--gradient-secondary);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
}

.medicine-highlight .highlight-box p {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.medicine-highlight .highlight-box p:last-child {
    border-bottom: none;
}

/* ============================================
   MISSION
   ============================================ */
.mission-statement {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    margin-top: 3rem;
    box-shadow: var(--shadow-colorful);
}

.mission-statement h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.mission-statement p {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   CONTACTO - MAPA Y FORM
   ============================================ */
.map-section {
    margin: 3rem 0;
}

.map-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
    font-size: 1.6rem;
}

.map-section iframe {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    text-align: center;
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--color-primary);
}

.contact-form h3 {
    color: var(--color-dark);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-form p {
    margin-bottom: 2rem;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-dark);
    color: white;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-warm);
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--color-primary);
    box-shadow: var(--shadow-colorful);
}

.footer-content p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.85);
}

.footer-mission {
    margin-top: 1.5rem !important;
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .medicine-content {
        grid-template-columns: 1fr;
    }
    
    .medicine-highlight .highlight-box {
        position: static;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: white;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        padding: 2rem 1.5rem;
        gap: 0.5rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 7rem 1rem 3rem;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-container {
        padding: 3rem 1rem;
    }
    
    .carousel-container {
        height: 350px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .mission-statement {
        padding: 2rem 1.5rem;
    }
    
    .countdown {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 280px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-warm);
}
