@keyframes glow-green { from { opacity: 1; } to { opacity: 1; } }
@keyframes glow { from { opacity: 1; } to { opacity: 1; } }
@keyframes pulse-glow { from { opacity: 1; } to { opacity: 1; } }
@keyframes pulse-glow-secondary { from { opacity: 1; } to { opacity: 1; } }
a, button, .clickable, .service-card, .nav-link {
    transition: transform 0.2s ease, color 0.2s ease;
}
.nav-link:hover {
    color: var(--gold);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.header {
    background-color: var(--primary-blue);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.nav-menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}
.header-donate-btn {
    background: #10b981;
    border: 2px solid #10b981;
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}
.header-donate-btn:hover {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.8), 0 0 40px rgba(16, 185, 129, 0.6), 0 4px 12px rgba(16, 185, 129, 0.4);
    /* animation: glow-green 1.5s ease-in-out infinite alternate; */ /* Desactivado para reducir consumo */
}
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
}
.cuenta-btn {
    margin-right: auto;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-weight: bold;
}
.logo-image {
    height: 60px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}
.logo-text {
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 1px;
    color: var(--white);
}
.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    display: inline-block;
    font-size: 1.2em;
    line-height: 1;
    vertical-align: middle;
}
.flag-icon-small {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 0.5rem;
    vertical-align: middle;
}
.nav-menu {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}
.nav-menu a:hover {
    color: var(--gold);
}
.nav-menu a.active {
    color: var(--gold);
}
.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
}
.header-btn {
    padding: 0.75rem 1.5rem;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.header-btn.squishy-btn {
    box-shadow: 0 8px 0 rgba(10, 31, 68, 0.3);
}
.header-btn.squishy-btn:hover {
    transform: translateY(4px);
    box-shadow: 0 4px 0 rgba(10, 31, 68, 0.3);
}
.language-selector {
    position: relative;
}
.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-size: 0.9rem;
}
.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--gold);
}
.btn-donate {
    background: #10b981;
    border: 2px solid #10b981;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 600;
}
.btn-donate:hover {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.8), 0 0 40px rgba(16, 185, 129, 0.6), 0 4px 12px rgba(16, 185, 129, 0.4);
    /* animation: glow-green 1.5s ease-in-out infinite alternate; */ /* Desactivado para reducir consumo */
}
@keyframes glow-green {
    from {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.8), 0 0 40px rgba(16, 185, 129, 0.6), 0 4px 12px rgba(16, 185, 129, 0.4);
    }
    to {
        box-shadow: 0 0 30px rgba(16, 185, 129, 1), 0 0 60px rgba(16, 185, 129, 0.8), 0 4px 12px rgba(16, 185, 129, 0.4);
    }
}
.lang-btn i:last-child {
    font-size: 0.7rem;
}
.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    overflow: hidden;
}
.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-dropdown a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color 0.3s;
}
.lang-dropdown a:hover {
    background-color: var(--light-gray);
}
.page-container {
    position: relative;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.btn-primary {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: var(--white);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}
.btn-reservar-glow:hover {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.8), 0 0 40px rgba(245, 158, 11, 0.6), 0 4px 12px rgba(245, 158, 11, 0.4);
    /* animation: glow 1.5s ease-in-out infinite alternate; */ /* Desactivado para reducir consumo */
}
.btn-primary.btn-large:hover {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.8), 0 0 40px rgba(245, 158, 11, 0.6), 0 4px 12px rgba(245, 158, 11, 0.4);
    /* animation: glow 1.5s ease-in-out infinite alternate; */ /* Desactivado para reducir consumo */
}
@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.8), 0 0 40px rgba(245, 158, 11, 0.6), 0 4px 12px rgba(245, 158, 11, 0.4);
    }
    to {
        box-shadow: 0 0 30px rgba(245, 158, 11, 1), 0 0 60px rgba(245, 158, 11, 0.8), 0 4px 12px rgba(245, 158, 11, 0.4);
    }
}
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}
.hero {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%),
                url('/assets/img/hero/hero-beach.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 2rem 2rem;
    border-top: 4px solid var(--white);
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    right: -10%;
    bottom: 0;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%),
                url('/assets/img/hero/hero-beach.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
}
.hero.section-page {
    opacity: 1;
    transform: none;
}
.hero.section-page.active {
    opacity: 1;
    transform: none;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 52, 96, 0.6);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.btn-secondary {
    background: var(--light-gray);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}
@media (max-width: 968px) {
.hero h1 {
        font-size: 2rem;
    }
.hero p {
        font-size: 1.2rem;
    }
}
@media (max-width: 768px) {
.nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
.header-content {
        justify-content: space-between;
    }
.header-right {
        flex-direction: row;
        gap: 0.5rem;
    }
.cuenta-btn {
        margin-right: 0;
    }
.lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
.lang-dropdown {
        right: auto;
        left: 0;
    }
.hero {
        min-height: 500px;
        padding: 2rem 1rem;
    }
.hero h1 {
        font-size: 1.5rem;
    }
.hero p {
        font-size: 1rem;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}
.mobile-menu-toggle:hover {
    background: var(--white);
    color: var(--primary-blue);
}
.mobile-menu-toggle[aria-expanded="true"] i::before {
    content: "\f00d"; /* Icono X cuando estÃ¡ abierto */
}
@media (max-width: 768px) {
.mobile-menu-toggle {
        display: block;
    }
.nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-blue);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 999;
    }
.nav-menu.active {
        display: flex;
    }
.nav-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
.header-content {
        grid-template-columns: auto auto auto;
        gap: 1rem;
    }
}
.btn.loading {
    position: relative;
    color: transparent;
}
.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}
.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10001;
    border-radius: 4px;
    font-weight: 600;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    z-index: 10001;
}
.hero-enhanced {
    min-height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 31, 68, 0.85) 0%, rgba(15, 52, 96, 0.75) 100%),
                url('/assets/img/hero/hero-beach.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInDown 0.8s ease;
}
.hero-subtitle-large {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}
.btn-hero-glow {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
    /* animation: pulse-glow 2s ease-in-out infinite; */ /* Desactivado para reducir consumo */
}
.btn-hero-glow-secondary {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    /* animation: pulse-glow-secondary 2s ease-in-out infinite; */ /* Desactivado para reducir consumo */
}
@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
    }
    50% { 
        box-shadow: 0 0 50px rgba(245, 158, 11, 0.9);
    }
}
@keyframes pulse-glow-secondary {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    }
    50% { 
        box-shadow: 0 0 50px rgba(59, 130, 246, 0.9);
    }
}
.hero-features-mini {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}
.hero-feature-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 0.95rem;
    opacity: 0.9;
}
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.5rem;
    /* animation: bounce 2s infinite; */ /* Desactivado para reducir consumo */
    cursor: pointer;
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {
.hero-enhanced {
        min-height: 70vh;
    }
.hero-subtitle-large {
        font-size: 1.1rem;
    }
.hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
.hero-cta-group .btn {
        width: 100%;
    }
.hero-features-mini {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ==========================================================================
   Complementos de cabecera/portada (comportamiento heredado de la web anterior)
   ========================================================================== */

/* Cabecera y portada: se conservan las transiciones/animaciones tal y como estaban */
.header *, .header *::before, .header *::after,
.hero-enhanced, .hero-enhanced *, .hero-enhanced *::before, .hero-enhanced *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.05s !important;
}
.header a:hover, .header button:hover,
.hero-enhanced a:hover, .hero-enhanced button:hover {
    transform: translateY(-2px);
}
.header a, .header button, .hero-enhanced a, .hero-enhanced button { transition: transform 0.2s ease, color 0.2s ease; }

/* Botones de la cabecera: en movil se muestran dentro del menu desplegable */
@media (max-width: 768px) {
    .header-right .header-donate-btn,
    .header-right .btn-reservar-glow { display: none !important; }
}
.mobile-menu-actions { display: none; }
@media (max-width: 768px) {
    .mobile-menu-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.15);
    }
    .mobile-menu-action {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.9rem 1rem;
        border: none;
        border-radius: 10px;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        text-align: left;
        text-decoration: none;
    }
    .mobile-donate-btn { background: #10b981; color: #ffffff; }
    .mobile-book-btn { background: #f59e0b; color: #ffffff; }
}

/* Imagen de portada ligera en pantallas pequenas (misma foto) */
@media (max-width: 768px) {
    .hero::before { background-image: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%), url('/assets/img/hero/hero-beach-sm.webp'); }
    .hero-background-video { background-image: linear-gradient(135deg, rgba(10, 31, 68, 0.85) 0%, rgba(15, 52, 96, 0.75) 100%), url('/assets/img/hero/hero-beach-sm.webp'); }
}

/* Enlaces accesibles a teclado en la cabecera */
.header a:focus-visible, .header button:focus-visible,
.hero-enhanced a:focus-visible, .hero-enhanced button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}
/* Las banderas del selector de idioma (SVG) */
.lang-dropdown a[aria-current="true"] { background: var(--light-gray); font-weight: 600; }

/* Fidelidad: los botones de la portada y la cabecera eran <button>; ahora son enlaces <a> con el mismo aspecto */
.header a.btn, .hero-enhanced a.btn, .header a.header-donate-btn, .mobile-menu-action {
    line-height: normal;
    font-family: system-ui, 'Segoe UI', sans-serif;
}
.header a.header-btn { font-size: 13.3333px; }
.header a.header-donate-btn { text-decoration: none; }
.hero-enhanced a.btn-primary, .header a.btn-primary { color: var(--white); }

.hero-enhanced .btn i, .header .btn i { margin-right: 0; }

