/* ==============================================
   RENOVAR PARA AVANZAR - DR. MÉNDEZ SEXTO
   Estilos Personalizados - Mobile First & Desktop
   ============================================== */


@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Michigan Signature';
    src: url('../fonts/Michigan_Signature.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Variables de Color */
:root {
    --teal-primary: #377e7c;
    --teal-dark: #00897B;
    --teal-light: #4dabaa;
    --teal-extra-light: #B2DFDB;
    --orange-accent: #FF7043;
    --orange-dark: #E64A19;
    --orange-light: #FFAB91;
    --gray-dark: #4A5568;
    --gray-medium: #718096;
    --gray-light: #E2E8F0;
    --white: #FFFFFF;
    --background: #F7FAFC;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --font-primary: 'Montserrat', sans-serif;
    --font-signature: 'Michigan Signature', cursive;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-dark);
    background-color: var(--white);
    line-height: 1.4;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
}

.signature-text,
.title-script {
    font-family: var(--font-signature);
}

.script-font {
    font-family: 'Great Vibes', 'Brush Script MT', cursive;
    font-weight: 400;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========== HEADER ========== */
.header {
    background: white;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #b8b8b8;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 5px 0;
    box-shadow: var(--shadow-md);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* Desktop Navigation - oculto por defecto (móvil) */
.desktop-nav {
    display: none;
}

/* ========== MENU TOGGLE - HAMBURGUESA (MOBILE) ========== */
.menu-toggle {
    background: none;
    border: none;
    font-size: 28px;
    color: #b8b8b8;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    padding: 5px;
    min-width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle.active {
    color: #377e7c;
    transform: none;
}

.menu-toggle:hover {
    color: #377e7c;
    transform: scale(1.1);
}

.menu-toggle span {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.2s ease;
    font-size: 28px;
    line-height: 1;
}

.menu-toggle.active span {
    transform: rotate(180deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999;
    padding: 30px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    display: block;
    padding: 15px 0;
    color: #000 !important;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-light);
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--teal-primary) !important;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

body.menu-open {
    overflow: hidden;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== DESKTOP NAVIGATION ========== */
@media (min-width: 1024px) {
    .header {
        padding: 15px 0;
    }
    
    .navbar {
        padding: 5px 30px;
    }
    
    .logo-img {
        height: 50px;
    }
    
    /* Ocultar hamburger en desktop */
    .menu-toggle {
        display: none !important;
    }
    
    /* Ocultar mobile menu en desktop */
    .mobile-menu {
        display: none !important;
    }
    
    /* Mostrar Desktop Menu Horizontal */
    .desktop-nav {
        display: flex !important;
        gap: 30px;
        align-items: center;
    }
    
    .desktop-nav a {
        color: var(--gray-dark);
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
        transition: color 0.3s ease;
        position: relative;
        padding: 5px 0;
    }
    
    .desktop-nav a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--teal-primary);
        transition: width 0.3s ease;
    }
    
    .desktop-nav a:hover {
        color: var(--teal-primary);
    }
    
    .desktop-nav a:hover::after {
        width: 100%;
    }
}

/* ========== HERO SECTION ========== */
.hero {
    margin-top: 25px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 60%, rgba(241, 241, 241, 1) 100%);
    color: rgb(0, 0, 0);
    padding: 0;
    padding-bottom: 150px;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 7%;
    left: 0;
    right: 0;
    height: 400px;
    background-image: url("../img/backgrounds/foto_home.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        to top, 
        rgba(255, 255, 255, 1) 26%,
        rgba(255, 255, 255, 0.7) 37%,
        rgba(255, 255, 255, 0) 70%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
}

.hero-logo {
    max-width: 350px;
    margin-top: 206px;
    width: 95%;
    height: auto;
    animation: fadeInScale 1s ease;
}

.hero-text {
    font-size: 1.7rem;
    line-height: 2.8;
    font-weight: 500;
    font-style: italic;
    color: #2C3E50;
    max-width: 500px;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
    z-index: 4;
    text-align: center;
}

.hero-author {
    display: block;
    font-size: 1.2rem;
    color: #377e7c;
    font-weight: 700;
    text-align: center;
    font-style: normal;
    margin-top: 10px;
}

/* Desktop Hero */
@media (min-width: 1024px) {
    .hero {
        margin-top: 50px;
        min-height: 1264px;
        padding-bottom: 190px;
    }
    
    .hero::before {
        height: 1200px;
        top: 2%;
    }
    
    .hero-logo {
        max-width: 500px;
        margin-top: 250px;
    }
    
    .hero-text {
        font-size: 2.2rem;
        max-width: 700px;
    }
    
    .hero-author {
        font-size: 1.5rem;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes float-pattern {
    0% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(30px) translateY(-30px); }
    100% { transform: translateX(0) translateY(0); }
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease;
}

.hero .subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-text {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
    z-index: 5;
}

/* ========== COUNTDOWN HERO SECTION ========== */
.countdown-hero-section {
    position: relative;
    background-image: url('../img/backgrounds/foto_countdown.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.countdown-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.countdown-hero-header {
    margin-bottom: 60px;
    animation: fadeInUp 1s ease;
    text-align: center;
}

.countdown-hero-header h2 {
    font-size: 3rem;
    color: white;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    text-align: center;
}

.countdown-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.countdown-display-large {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 50px 0;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

.countdown-number-large {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.countdown-label-large {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.countdown-logo {
    margin-top: 60px;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

.countdown-logo img {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.countdown-logo img:hover {
    transform: scale(1.05);
}

/* Desktop Countdown Hero */
@media (min-width: 1024px) {
    .countdown-hero-section {
        padding: 120px 40px;
        min-height: 600px;
    }
    
    .countdown-hero-header h2 {
        font-size: 3rem;
        white-space: nowrap;
        text-align: center;
    }
    
    .countdown-description {
        font-size: 1.4rem;
    }
    
    .countdown-display-large {
        gap: 60px;
    }
    
    .countdown-number-large {
        font-size: 6rem;
    }
    
    .countdown-label-large {
        font-size: 1.2rem;
    }
    
    .countdown-logo img {
        max-width: 400px;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .countdown-hero-section {
        padding: 60px 0;
        min-height: 500px;
    }
    
    .countdown-hero-header h2 {
        font-size: 2rem;
        white-space: normal; /* Permite que se rompa en móvil si es necesario */
    }
    
    .countdown-description {
        font-size: 1rem;
    }
    
    .countdown-display-large {
        gap: 20px;
    }
    
    .countdown-item-large {
        padding: 20px 25px;
        min-width: 120px;
    }
    
    .countdown-number-large {
        font-size: 2.5rem;
    }
    
    .countdown-label-large {
        font-size: 0.85rem;
    }
    
    .countdown-logo img {
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .countdown-hero-header h2 {
        font-size: 1.6rem;
        white-space: normal; /* Permite que se rompa en pantallas muy pequeñas */
    }
    
    .countdown-item-large {
        padding: 15px 20px;
        min-width: 100px;
    }
    
    .countdown-number-large {
        font-size: 2rem;
    }
    
    .countdown-label-large {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
}

/* ========== FOOTER SIMPLIFICADO ========== */
.footer-simple {
    background: var(--gray-dark);
    color: white;
    padding: 60px 20px 30px;
    text-align: center;
}

.footer-content-simple h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
}

.footer-content-simple .subtitle {
    color: var(--teal-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.social-links {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--teal-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.social-link:hover {
    background: var(--orange-accent);
    transform: translateY(-5px) rotate(360deg);
}

.copyright {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: var(--gray-light);
}

/* Desktop Footer */
@media (min-width: 1024px) {
    .footer-simple {
        padding: 80px 40px 40px;
    }
    
    .footer-content-simple h3 {
        font-size: 2.5rem;
    }
    
    .footer-content-simple .subtitle {
        font-size: 1.3rem;
    }
    
    .social-links {
        gap: 20px;
    }
    
    .social-link {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ========== DOCTOR INTRO SECTION ========== */
.doctor-intro-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f7fafc 100%);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.doctor-intro-section .container {
    max-width: 100%;
    width: 100%;
    padding: 0 15px;
}

.doctor-intro-content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.doctor-intro-logo-wrapper {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

/* Logo Mobile - visible por defecto */
.doctor-intro-logo-mobile {
    max-width: 300px;
    width: 80%;
    height: auto;
    animation: fadeInScale 1s ease;
    display: inline-block;
}

/* Logo Desktop - oculto por defecto */
.doctor-intro-logo-desktop {
    max-width: 300px;
    width: 80%;
    height: auto;
    animation: fadeInScale 1s ease;
    display: none;
}

.doctor-intro-main {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.doctor-intro-text-column {
    flex: 1;
    padding: 0;
}

.doctor-intro-image-wrapper {
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
}

.doctor-intro-photo {
    width: 100%;
    max-width: 500px;
    height: 850px;
    border-radius: 15px;
    position: relative;
    object-fit: cover;
}

.doctor-intro-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #4A5568;
    margin-bottom: 25px;
    text-align: left;
}

.doctor-intro-highlight {
    background: linear-gradient(135deg, #E8F5F4 0%, #D4EBE9 100%);
    padding: 25px 30px;
    border-left: 4px solid #4DB6AC;
    border-radius: 0 15px 15px 0;
    position: relative;
    margin-top: 30px;
}

.doctor-intro-highlight i {
    font-size: 2rem;
    color: #4DB6AC;
    opacity: 0.3;
    position: absolute;
    top: 15px;
    left: 15px;
}

.doctor-intro-highlight p {
    font-size: 1rem;
    line-height: 1.7;
    color: #2C3E50;
    font-style: italic;
    margin: 0;
    padding-left: 35px;
    font-weight: 500;
}

.doctor-intro-right {
    display: none;
}

.doctor-intro-decoration {
    display: none;
}

/* Desktop Doctor Intro */
@media (min-width: 1024px) {
    .doctor-intro-section {
        padding: 60px 40px 120px; /* Menos padding arriba, mantiene abajo */
    }
    
    .doctor-intro-content {
        max-width: 1400px;
    }
    
    /* Logo wrapper en desktop - alineado a la derecha */
    .doctor-intro-logo-wrapper {
        text-align: right;
        margin-bottom: -170px;
        padding-right: 0;
        position: relative;
    }
    
    /* Ocultar logo mobile en desktop */
    .doctor-intro-logo-mobile {
        display: none;
    }
    
    /* Mostrar logo desktop - más grande y alineado a la derecha */
    .doctor-intro-logo-desktop {
        display: inline-block;
        max-width: 600px;
        width: 70%;
        margin-right: 0;
        position: relative;
        top: 260px;
    }
    
    .doctor-intro-main {
        gap: 60px;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .doctor-intro-text-column {
        flex: 1.5;
    }
    
    .doctor-intro-image-wrapper {
        width: 580px;
        max-width: 600px;
    }
    
    .doctor-intro-photo {
        max-width: 500px;
    }
    
    .doctor-intro-text {
        font-size: 1.1rem;
        line-height: 2;
    }
    
    .doctor-intro-highlight {
        padding: 35px 40px;
        margin-top: 40px;
    }
    
    .doctor-intro-highlight p {
        font-size: 1.1rem;
        padding-left: 45px;
    }
}

/* ========== COUNTDOWN SECTION ========== */
.countdown-section {
    position: relative;
    padding: 0;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../img/backgrounds/pattern-line-countdown.png');
    background-size: 610%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.countdown-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

.countdown-section > * {
    position: relative;
    z-index: 3;
}

.countdown-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown-title {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
}

.countdown-display {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    width: 100%;
    flex-wrap: wrap;
}

.countdown-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.countdown-unit {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
}

.countdown-value {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    display: inline-block;
}

.countdown-label {
    font-size: 0.85rem;
    color: #718096;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Desktop Countdown */
@media (min-width: 1024px) {
    .countdown-section {
        height: 250px;
    }
    
    .countdown-section::before {
        background-size: 400%;
    }
    
    .countdown-wrapper {
        gap: 50px;
    }
    
    .countdown-title {
        font-size: 2rem;
    }
    
    .countdown-value {
        font-size: 3rem;
    }
    
    .countdown-label {
        font-size: 1rem;
    }
    
    .countdown-display {
        gap: 25px;
    }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--orange-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 112, 67, 0.3);
}

.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 112, 67, 0.4);
}

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

.btn-outline:hover {
    background: white;
    color: var(--teal-primary);
}

.btn-teal-outline {
    background: transparent;
    color: var(--teal-primary);
    border: 2px solid var(--teal-primary);
}

.btn-teal-outline:hover {
    background: var(--teal-primary);
    color: white;
}

/* Desktop Buttons */
@media (min-width: 1024px) {
    .btn {
        padding: 18px 45px;
        font-size: 1.1rem;
    }
}

/* ========== TEAM SECTION ========== */
.team-section {
    background: linear-gradient(to bottom, #4dabaa 0%, #377e7c 60%);
    color: white;
    padding: 0 20px;
    position: relative;
    padding-bottom: 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(to right, #377e7c 0%, #4dabaa 60%);
    padding: 30px 20px;
    border-radius: 15px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border-radius: 0;
}

.section-header-content {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 15px;
}

.section-header h2 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: white;
    margin: 0;
    font-size: 2rem;
}

.section-header .script {
    font-family: var(--font-signature);
    font-weight: 400;
    color: white;
    margin: 0;
    font-size: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.team-member {
    text-align: center;
    transition: transform 0.3s ease;
}

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

.team-member-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 15px;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: block;
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.team-member .role {
    font-size: 0.9rem;
    opacity: 0.9;
}

.team-member .district {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 3px;
}

.juan-destacado {
    grid-column: span 2;
    margin-top: 30px;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.juan-destacado h3 {
    font-size: 1.5rem;
}

.juan-destacado .role {
    font-size: 0.9rem;
    opacity: 0.9;
}

.juan-destacado .district {
    font-size: 0.8rem;
}

.team-member-image i {
    font-size: 70px;
    color: white;
}

/* Desktop Team */
@media (min-width: 1024px) {
    .team-section {
        padding: 0 40px 80px;
    }
    
    .section-header {
        padding: 50px 40px;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .section-header .script {
        font-size: 4.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        max-width: 1400px;
        margin: 60px auto;
    }
    
    .team-member-image {
        width: 180px;
        height: 180px;
    }
    
    .team-member-image i {
        font-size: 90px;
    }
    
    .team-member h3 {
        font-size: 1.7rem;
    }
    
    .team-member .role {
        font-size: 1rem;
    }
    
    .team-member .district {
        font-size: 0.9rem;
    }
    
    .juan-destacado {
        grid-column: span 1;
        max-width: none;
    }
}

/* ========== STRATEGIC PLAN SECTION ========== */
.strategic-plan {
    position: relative;
    padding: 80px 20px;
    background-color: #fff;
    overflow: hidden;
}

.strategic-plan::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../img/backgrounds/pattern-line.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: .05;
}

.strategic-plan::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top, 
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.8) 70%,
        rgba(255, 255, 255, 0) 80%
    );
    z-index: 2;
}

.strategic-plan > * {
    position: relative;
    z-index: 3;
}

.strategic-plan-header {
    text-align: center;
    margin-bottom: 40px;
}

.strategic-plan-title {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.strategic-plan-title .plan-word {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--teal-primary);
    margin: 0;
}

.strategic-plan-title .estrategico-word {
    font-family: var(--font-signature);
    font-size: 3.5rem;
    font-weight: 400;
    color: #c06737;
    margin: 0;
}

.strategic-plan-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.strategic-plan-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-dark);
    text-align: justify;
    margin-bottom: 40px;
}

.strategic-plan-text .plan-name {
    font-style: italic;
}

.strategic-plan-text .bold-text {
    font-weight: 700;
    color: #2C3E50;
}

.plan-pdf-card {
    background: white;
    border: 2px solid var(--gray-light);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.plan-pdf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--teal-primary);
}

.pdf-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.pdf-title {
    font-size: 1.5rem;
    color: var(--teal-primary);
    margin-bottom: 30px;
    font-weight: 700;
}

.plan-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.plan-btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.plan-btn-primary {
    background: var(--teal-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(55, 126, 124, 0.3);
}

.plan-btn-primary:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(55, 126, 124, 0.4);
}

.plan-btn-secondary {
    background: #c06737;
    color: white;
    box-shadow: 0 4px 15px rgba(192, 103, 55, 0.3);
}

.plan-btn-secondary:hover {
    background: #a85530;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 103, 55, 0.4);
}

/* Desktop Strategic Plan */
@media (min-width: 1024px) {
    .strategic-plan {
        padding: 120px 40px;
    }
    
    .strategic-plan-title .plan-word {
        font-size: 3.5rem;
    }
    
    .strategic-plan-title .estrategico-word {
        font-size: 5rem;
    }
    
    .strategic-plan-content {
        max-width: 1200px;
        padding: 0 40px;
    }
    
    .strategic-plan-text {
        font-size: 1.2rem;
        line-height: 2;
    }
    
    .plan-pdf-card {
        padding: 60px;
    }
    
    .pdf-title {
        font-size: 2rem;
    }
    
    .plan-btn {
        padding: 18px 45px;
        font-size: 1.1rem;
    }
}

/* ========== SPOKESPERSONS SECTION ========== */
.spokespersons-section {
    background: white;
    padding: 0 20px 60px 20px;
    position: relative;
}

.spokespersons-header {
    text-align: center;
    margin-bottom: 50px;
    background: white;
    padding: 30px 20px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.spokespersons-header-content {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 15px;
}

.spokespersons-header h2 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: #377e7c;
    margin: 0;
    font-size: 2rem;
}

.spokespersons-header .script {
    font-family: var(--font-signature);
    font-weight: 400;
    color: #377e7c;
    margin: 0;
    font-size: 3rem;
}

.spokespersons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.spokesperson-card {
    background: #377e7c;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.spokesperson-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spokesperson-card.vacant {
    background: rgba(55, 126, 124, 0.6);
    border: 2px dashed rgba(55, 126, 124, 0.4);
}

.spokesperson-name {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 700;
}

.spokesperson-region {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.9;
}

.spokesperson-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #000000;
    font-size: 0.9rem;
}

.contact-item i {
    color: white;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all;
}

.contact-item a:hover {
    color: white;
    text-decoration: underline;
}

.vacant-text {
    color: white;
    font-style: italic;
    margin: 20px 0;
    font-size: 1rem;
    opacity: 0.8;
}

/* Desktop Spokespersons */
@media (min-width: 1024px) {
    .spokespersons-section {
        padding: 0 40px 100px 40px;
    }
    
    .spokespersons-header {
        padding: 50px 40px;
    }
    
    .spokespersons-header h2 {
        font-size: 3rem;
    }
    
    .spokespersons-header .script {
        font-size: 4.5rem;
    }
    
    .spokespersons-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
        max-width: 1400px;
    }
    
    .spokesperson-card {
        padding: 40px 30px;
    }
    
    .spokesperson-name {
        font-size: 1.5rem;
    }
    
    .spokesperson-region {
        font-size: 1rem;
    }
    
    .contact-item {
        font-size: 1rem;
    }
}

/* ========== DONATION SECTION TEMPORERA ========== */
.donation-section {
    position: relative;
    padding: 80px 20px;
    background: linear-gradient(
        to top right,
        #377e7c 0%,
        #4dabaa 50%,
        #377e7c 100%
    );
    overflow: hidden;
}

.donation-section::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    top: 0;
    background: linear-gradient(
        to top right,
        #c06737 0%,
        rgba(192, 103, 55, 0.6) 25%,
        rgba(192, 103, 55, 0.3) 40%,
        rgba(192, 103, 55, 0.1) 55%,
        transparent 70%
    );
    z-index: 1;
    pointer-events: none;
}

.donation-section::after {
    content: none;
}

.donation-section > * {
    position: relative;
    z-index: 2;
}

.donation-header {
    text-align: center;
    margin-bottom: 25px;
}

.donation-header .title-main {
    font-size: 2.3rem;
    color: white;
    font-weight: 400;
    font-family: var(--font-primary);
}

.donation-header .title-script {
    font-family: var(--font-signature);
    font-size: 4.2rem;
    color: #c06737;
    margin: -15px 0 20px 0;
    font-weight: 400;
    line-height: 1.2;
}

.donation-header .subtitle-text {
    color: white;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
}

.donation-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.donation-method-text {
    color: white;
    margin-bottom: 20px;
    font-size: 1rem;
    opacity: 0.9;
}

.donation-method-text strong {
    font-weight: 700;
    color: white;
}

.ath-handle {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin: 15px 0;
}

.donation-disclaimer {
    text-align: center;
    color: white;
    font-size: 0.9rem;
    margin-top: 30px;
    opacity: 0.85;
    line-height: 1.6;
}

.campaign-hashtag {
    text-align: center;
    color: white !important;
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 40px;
    font-family: var(--font-primary);
}

.donation-image-wrapper {
    text-align: center;
    margin: 40px 0;
    padding: 0 20px;
}

.donation-image {
    max-width: 450px;
    width: 80%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

/* Estilos para los botones de monto */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .amount-grid {
        grid-template-columns: 1fr;
    }
}

.amount-btn {
    background: #E8F0EE;
    border: 2px solid #D1E5E0;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover {
    background: #4DB6AC;
    border-color: #4DB6AC;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(77, 182, 172, 0.3);
}

.amount-btn:hover .amount-value,
.amount-btn:hover .amount-label {
    color: white;
}

.amount-btn.active {
    background: #377e7c;
    border-color: #377e7c;
}

.amount-btn.active .amount-value,
.amount-btn.active .amount-label {
    color: white;
}

.amount-value {
    font-size: 2rem;
    font-weight: 700;
    color: #377e7c;
    display: block;
    margin-bottom: 5px;
}

.amount-label {
    font-size: 0.85rem;
    color: #718096;
}

.custom-amount {
    margin: 25px 0;
    text-align: center;
}

.custom-input-wrapper {
    position: relative;
    max-width: 250px;
    margin: 0 auto;
}

.custom-input-wrapper:before {
    content: "$";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #377e7c;
    font-weight: 700;
}

.custom-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: #E8F0EE;
    border: 2px solid #D1E5E0;
    border-radius: 12px;
    font-size: 1.3rem;
    color: #2C3E50;
    font-weight: 600;
    text-align: center;
}

.custom-input:focus {
    outline: none;
    background: white;
    border-color: #4DB6AC;
    box-shadow: 0 0 0 3px rgba(77, 182, 172, 0.1);
}

.payment-status {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    animation: slideDown 0.5s ease;
}

.payment-status.success {
    background: #D1FAE5;
    border: 2px solid #059669;
    color: #065F46;
}

.payment-status.error {
    background: #FEE2E2;
    border: 2px solid #DC2626;
    color: #991B1B;
}

.payment-status.warning {
    background: #FEF3C7;
    border: 2px solid #F59E0B;
    color: #92400E;
}

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

/* Desktop Donation */
@media (min-width: 1024px) {
    .donation-section {
        padding: 120px 40px;
    }
    
    .donation-header .title-main {
        font-size: 3rem;
    }
    
    .donation-header .title-script {
        font-size: 5.5rem;
    }
    
    .donation-header .subtitle-text {
        font-size: 1.3rem;
        max-width: 800px;
    }
    
    .donation-image-wrapper {
        margin: 60px 0;
    }
    
    .donation-image {
        max-width: 600px;
        width: 60%;
    }
    
    .donation-info {
        padding: 40px 50px;
        margin: 60px auto 40px;
        max-width: 800px;
    }
    
    .donation-method-text {
        font-size: 1.2rem;
    }
    
    .ath-handle {
        font-size: 2.5rem;
    }
    
    .campaign-hashtag {
        font-size: 2rem;
    }
}

/* ========== REGISTER SECTION ========== */
.register-section {
    position: relative;
    padding: 80px 0;
    background-color: #fff;
    overflow: hidden;
}

.register-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../img/backgrounds/pattern-line.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: .05;
}

.register-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top, 
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.8) 70%,
        rgba(255, 255, 255, 0) 80%
    );
    z-index: 2;
}

.register-section > * {
    position: relative;
    z-index: 3;
}

.register-wrapper {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.header-badge {
    background: #4A9B8E;
    color: white;
    padding: 12px 40px;
    border-radius: 50px;
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-primary);
    margin-bottom: 30px;
    background: linear-gradient(to right, #377e7c 0%, #377e7c 5%, #4dabaa 60%);
}

.title-main {
    font-size: 2.3rem;
    color: #2C3E50;
    font-weight: 400;
    font-family: var(--font-primary);
}

.title-script {
    font-family: var(--font-signature);
    font-size: 4.2rem;
    color: #E67E5B;
    margin: -15px 0 0 0;
    font-weight: 400;
    line-height: 1.2;
}

.doctor-name {
    margin: 10px 0;
    text-align: center;
}

.doctor-name img {
    max-width: 270px;
    width: 100%;
    height: auto;
    display: inline-block;
}

.campaign-hashtag {
    color: #414042;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-primary);
    margin-top: 20px;
}

.register-form-container {
    border-radius: 20px;
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-row .form-group {
    margin-bottom: 0;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="tel"],
.register-form input[type="number"],
.register-form textarea {
    width: 100%;
    padding: 15px;
    background: #E8F0EE;
    border: 1px solid #D1E5E0;
    border-radius: 12px;
    font-size: 1rem;
    color: #2C3E50;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.register-form input[type="text"]::placeholder,
.register-form input[type="email"]::placeholder,
.register-form input[type="tel"]::placeholder,
.register-form textarea::placeholder {
    color: #9CA3AF;
    text-align: center;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="tel"],
.register-form textarea {
    text-align: center;
}

.register-form input:focus,
.register-form textarea:focus {
    outline: none;
    background: white;
    border-color: #4A9B8E;
    box-shadow: 0 0 0 3px rgba(74, 155, 142, 0.1);
}

.register-form textarea {
    resize: vertical;
    min-height: 60px;
}

.question-group {
    margin: 25px 0;
    display: grid;
    grid-template-columns: 194px 1fr;
    gap: 10px;
    align-items: center;
}

.question-section {
    background: #4A9B8E;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    margin-bottom: 0;
    font-weight: 500;
    text-align: center;
    font-size: 0.95rem;
    white-space: nowrap;
    background: linear-gradient(to right, #377e7c 0%, #377e7c 5%, #4dabaa 60%);
}

.radio-group {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.years-section {
    margin: 25px 0 !important;
    display: grid !important;
    grid-template-columns: 218px 1fr !important;
    gap: 20px !important;
    align-items: center !important;
    animation: slideDown 0.3s ease;
}

.years-section span {
    background: #4A9B8E;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    display: block;
    background: linear-gradient(to right, #377e7c 0%, #377e7c 5%, #4dabaa 60%);
}

.years-section input[type="number"] {
    width: 80px !important;
    padding: 8px !important;
    background: #E8F0EE !important;
    color: #2C3E50 !important;
    border: 1px solid #D1E5E0 !important;
    border-radius: 12px !important;
    font-weight: 500;
    text-align: center;
    box-shadow: none !important;
    justify-self: start;
}

.years-section input[type="number"]::-webkit-inner-spin-button,
.years-section input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    height: 30px;
}

.years-section input[type="number"] {
    -moz-appearance: auto;
}

.register-submit-btn {
    width: 50%;
    padding: 16px;
    background: #c06737;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    letter-spacing: 1px;
    margin: 30px auto 0;
    display: block;
    font-family: var(--font-primary) !important;
}

.register-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 155, 142, 0.4);
}

.register-submit-btn:active {
    transform: translateY(0);
}

.email-validation {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    display: none;
}

.email-validation.show {
    display: block;
}

.email-validation.error {
    background: #FEE2E2;
    color: #DC2626;
}

.email-validation.warning {
    background: #FEF3C7;
    color: #D97706;
}

.email-validation.success {
    background: #D1FAE5;
    color: #059669;
}

/* Desktop Register */
@media (min-width: 1024px) {
    .register-section {
        padding: 120px 0;
    }
    
    .register-wrapper {
        max-width: 900px;
    }
    
    .header-badge {
        font-size: 1.8rem;
        padding: 15px 50px;
    }
    
    .title-main {
        font-size: 3rem;
    }
    
    .title-script {
        font-size: 5.5rem;
    }
    
    .doctor-name img {
        max-width: 350px;
    }
    
    .campaign-hashtag {
        font-size: 1.8rem;
    }
    
    .register-form-container {
        padding: 60px;
    }
    
    .register-form input[type="text"],
    .register-form input[type="email"],
    .register-form input[type="tel"],
    .register-form textarea {
        padding: 18px;
        font-size: 1.1rem;
    }
    
    .question-group {
        grid-template-columns: 220px 1fr;
    }
    
    .question-section {
        padding: 14px 25px;
        font-size: 1rem;
    }
    
    .years-section {
        grid-template-columns: 240px 1fr !important;
    }
    
    .years-section input[type="number"] {
        width: 100px !important;
        padding: 10px !important;
    }
    
    .register-submit-btn {
        width: 40%;
        padding: 18px;
        font-size: 1.2rem;
    }
}

/* ========== FOOTER ========== */
.footer {
    background: var(--gray-dark);
    color: white;
    padding: 50px 20px 20px;
    text-align: center;
}

.footer-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-content .subtitle {
    color: var(--teal-primary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.countdown-item {
    min-width: 80px;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--teal-primary);
    display: block;
}

.countdown-label {
    font-size: 0.55rem;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: var(--gray-light);
}

/* Desktop Footer */
@media (min-width: 1024px) {
    .footer {
        padding: 80px 40px 40px;
    }
    
    .footer-content h3 {
        font-size: 2.5rem;
    }
    
    .footer-content .subtitle {
        font-size: 1.3rem;
    }
    
    .countdown {
        gap: 50px;
    }
    
    .countdown-item {
        min-width: 100px;
    }
    
    .countdown-number {
        font-size: 3rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
}

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

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

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ========== LOADING ANIMATION ========== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gray-light);
    border-top: 4px solid var(--teal-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== RADIO BUTTONS - DEBE ESTAR AL FINAL ========== */
.register-form .radio-option {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    flex-wrap: nowrap !important;
}

.register-form .radio-option label {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1rem !important;
    color: #2C3E50 !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    width: auto !important;
    flex-shrink: 0 !important;
}

.register-form .radio-option input[type="radio"] {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: #4A9B8E !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.register-form .radio-option > * {
    order: 0 !important;
}

/* ========== CHECKBOX STYLES ========== */
.checkbox-group {
    padding: 15px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #4DB6AC;
    flex-shrink: 0;
}

.checkbox-text {
    color: #333;
    user-select: none;
}

.checkbox-text a {
    color: #4DB6AC;
    text-decoration: underline;
}

.checkbox-text a:hover {
    color: #377e7c;
}

/* Success message styles */
.success-message {
    background: #D1FAE5;
    border: 2px solid #059669;
    color: #065F46;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    display: none;
    animation: slideDown 0.5s ease;
}

.success-message.show {
    display: block;
}

.success-message i {
    color: #059669;
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

/* Estilos para los botones de monto */
.amount-btn:hover {
    background: #4DB6AC !important;
    color: white !important;
    transform: translateY(-2px);
}

.amount-btn.active {
    background: #4DB6AC !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(77, 182, 172, 0.4);
}

/* Estilos para el estado del pago */
.payment-status.success {
    background: #D1FAE5;
    border: 2px solid #059669;
    color: #065F46;
    display: block !important;
}

.payment-status.error {
    background: #FEE2E2;
    border: 2px solid #DC2626;
    color: #991B1B;
    display: block !important;
}

.payment-status.processing {
    background: #DBEAFE;
    border: 2px solid #2563EB;
    color: #1E40AF;
    display: block !important;
}

/* ========== RESPONSIVE MOBILE ADJUSTMENTS ========== */
@media (max-width: 968px) {
    .doctor-intro-main {
        flex-direction: column;
        align-items: center;
    }
    
    .doctor-intro-logo {
        max-width: 260px;
    }
    
    .doctor-intro-image-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    .doctor-intro-photo {
        max-width: 100%;
        max-height: 500px;
    }
    
    .doctor-intro-text-column {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .countdown-hero-section {
        padding: 60px 0;
        min-height: 500px;
    }
    
    .countdown-hero-header h2 {
        font-size: 2rem;
    }
    
    .countdown-description {
        font-size: 1rem;
    }
    
    .countdown-display-large {
        gap: 20px;
    }
    
    .countdown-item-large {
        padding: 20px 25px;
        min-width: 120px;
    }
    
    .countdown-number-large {
        font-size: 2.5rem;
    }
    
    .countdown-label-large {
        font-size: 0.85rem;
    }
    
    .countdown-logo img {
        max-width: 320px;
    }
    
    .register-form-container {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .title-script {
        font-size: 3.5rem;
    }
    
    .doctor-name img {
        max-width: 220px;
    }
    
    .years-section {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .donation-section {
        padding: 60px 20px;
    }
    
    .donation-header .title-main {
        font-size: 2rem;
    }
    
    .donation-header .title-script {
        font-size: 3.5rem;
    }
    
    .ath-handle {
        font-size: 1.6rem;
    }
    
    .campaign-hashtag {
        font-size: 1.3rem;
    }
    
    .donation-section::before {
        background: linear-gradient(
            to top right,
            #c06737 0%,
            rgba(192, 103, 55, 0.5) 30%,
            rgba(192, 103, 55, 0.2) 50%,
            transparent 70%
        );
    }
    
    .plan-pdf-card {
        padding: 30px 20px;
    }
    
    .pdf-title {
        font-size: 1.3rem;
    }
    
    .plan-buttons {
        flex-direction: column;
    }
    
    .plan-btn {
        width: 100%;
        justify-content: center;
    }
    
    .strategic-plan-title .plan-word {
        font-size: 2rem;
    }
    
    .strategic-plan-title .estrategico-word {
        font-size: 2.8rem;
    }
    
    .strategic-plan-text {
        font-size: 1rem;
        text-align: left;
    }
    
    .spokespersons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .spokesperson-card {
        padding: 25px 20px;
    }
    
    .spokesperson-name {
        font-size: 1.2rem;
    }
    
    .contact-item {
        font-size: 0.85rem;
    }
    
    .spokespersons-header h2 {
        font-size: 1.8rem;
    }
    
    .spokespersons-header .script {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .countdown-hero-header h2 {
        font-size: 1.6rem;
    }
    
    .countdown-item-large {
        padding: 15px 20px;
        min-width: 100px;
    }
    
    .countdown-number-large {
        font-size: 2rem;
    }
    
    .countdown-label-large {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    
    .header-badge {
        font-size: 1.9rem;
        padding: 14px 55px;
    }
    
    .title-main {
        font-size: 1.7rem;
    }
    
    .title-script {
        font-size: 2.5rem;
    }
    
    .doctor-name img {
        max-width: 220px;
    }
    
    .campaign-hashtag {
        font-size: 1.45rem;
    }
    
    .countdown-section {
        padding: 40px 15px;
    }
    
    .countdown-title {
        font-size: 1.2rem;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .countdown-display {
        gap: 10px;
    }
    
    .countdown-row {
        gap: 5px;
    }
    
    .donation-section {
        padding: 50px 15px;
    }
    
    .donation-header .title-main {
        font-size: 1.8rem;
    }
    
    .donation-header .title-script {
        font-size: 3rem;
    }
    
    .donation-header .subtitle-text {
        font-size: 1rem;
    }
    
    .donation-info {
        padding: 25px 20px;
    }
    
    .ath-handle {
        font-size: 1.4rem;
    }
    
    .campaign-hashtag {
        font-size: 1.2rem;
    }
    
    .donation-section::before {
        background: linear-gradient(
            to top right,
            #c06737 0%,
            rgba(192, 103, 55, 0.4) 35%,
            transparent 65%
        );
    }
    
    .donation-image-wrapper {
        margin: 25px 0;
        padding: 0 10px;
    }
    
    .donation-image {
        max-width: 225px;
        width: 70%;
    }
    
    .doctor-intro-section {
        padding: 50px 15px;
    }
    
    .doctor-intro-logo-wrapper {
        margin-bottom: 20px;
    }
    
    .doctor-intro-logo {
        max-width: 220px;
    }
    
    .doctor-intro-image-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    .doctor-intro-photo {
        max-width: 100%;
    }
    
    .doctor-intro-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .doctor-intro-highlight {
        padding: 15px 20px;
    }
    
    .doctor-intro-highlight p {
        font-size: 0.85rem;
        padding-left: 25px;
    }
    
    .strategic-plan-title .plan-word {
        font-size: 1.7rem;
    }
    
    .strategic-plan-title .estrategico-word {
        font-size: 2.3rem;
    }
    
    .strategic-plan-text {
        font-size: 0.95rem;
    }
    
    .pdf-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .donation-image-wrapper {
        margin: 30px 0;
        padding: 0 15px;
    }
    
    .donation-image {
        max-width: 270px;
        width: 75%;
    }
    
    .donation-info {
        margin: 35px 0 25px 0;
        padding: 25px 20px;
    }
}