/* css/components.css */

/* --- Typography System Classes --- */
.display-xl {
    font-size: clamp(3rem, 7vw, 5.5rem);
    letter-spacing: -0.02em;
}

.display-lg {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
}

.display-md {
    font-size: clamp(2rem, 4vw, 3.25rem);
    letter-spacing: -0.01em;
}

.display-sm {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

.section__title {
    font-size: clamp(2.25rem, 4vw, 3rem);
    margin-bottom: var(--space-sm);
    color: var(--clr-accent); /* Lime Green highlighting */
}

/* Secondary Section Titles for Content Pages */
.content-title {
    font-size: 2rem;
    color: var(--clr-primary);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.section__body {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    color: var(--clr-text-main);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    border-radius: 2px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn--primary {
    background: var(--gradient-primary);
    background-color: var(--clr-primary); /* fallback */
    color: var(--clr-text-light);
}

.btn--primary:hover {
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

.btn--secondary {
    background-color: transparent;
    border: 2px solid #ffffff; /* Explicitly white and thicker border */
    color: #ffffff;
    font-weight: 700;
}

/* Color change removed per user standardization */


.btn--white {
    background-color: #ffffff;
    color: var(--clr-tertiary);
    border: 2px solid #ffffff;
}

/* Color change removed per user standardization */


/* --- Navigation Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background-color: rgba(28, 28, 23, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.header__logo .logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition-fast);
    filter: brightness(0) invert(1); /* Invert logo for dark header */
}

/* Mobile Nav */
.header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 45%;
    height: 100vh;
    background-color: var(--clr-background);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 20px rgba(0,0,0,0.2);
}

.header__nav.open {
    right: 0;
}

.nav__list {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
    margin-bottom: var(--space-md);
}

.nav__list a {
    font-family: var(--font-body), sans-serif !important;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-text-main);
    transition: var(--transition-fast);
    font-weight: 600;
}

.nav__list a:hover {
    color: var(--clr-primary);
}

.nav__highlight {
    border: 1px solid var(--clr-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    color: var(--clr-primary) !important;
}

.nav__highlight:hover {
    /* Color change removed per user standardization */
    transform: translateY(-2px);
}

.header__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.lang-toggle {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--clr-text-main);
    cursor: pointer;
    font-size: 12px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.05em;
}

.lang-toggle span {
    opacity: 0.5;
    transition: var(--transition-fast);
}

.lang-toggle span.active {
    opacity: 1;
    color: var(--clr-primary);
}

.lang-toggle .separator {
    opacity: 0.3;
    cursor: default;
}


.header__menu-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.header__menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--clr-text-main);
    transition: 0.3s;
}

.header__menu-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.header__menu-btn.open span:nth-child(2) {
    opacity: 0;
}
.header__menu-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Desktop Nav */
@media (min-width: 1024px) {
    .header__menu-btn { display: none; }
    
    .header__nav {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        box-shadow: none;
        background: transparent;
        justify-content: space-between;
        flex: 1;
        margin-left: var(--space-lg);
    }
    
    .nav__list {
        flex-direction: row;
        gap: var(--space-md);
        margin-bottom: 0;
    }
    
    .nav__list a {
        font-size: 12px;
        font-family: var(--font-body);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .header__actions {
        flex-direction: row;
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--clr-text-light);
    overflow: hidden;
    margin-top: 60px; /* Offset for header roughly */
}

@media (min-width: 1024px) {
    .hero { margin-top: 0; }
}

.hero__bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0, 0.4), rgba(28, 28, 23, 0.8));
    z-index: -1;
}

.hero__content {
    max-width: 900px;
    padding: 0 var(--space-sm);
    animation: fadeInUp 1s ease-out forwards;
}

.hero__title {
    color: var(--clr-text-light); /* Closer to white for readability */
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 10px rgba(0,0,0,0.4); /* Extra legibility on top of any photo */
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    opacity: 0.9;
    font-weight: 300;
}

.hero__cta {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Specific Hero button visibility */
.hero__cta .btn--secondary {
    border: 2px solid #ffffff;
    color: #ffffff;
}

.hero__cta .btn--secondary:hover {
    background-color: #ffffff;
    color: var(--clr-tertiary); /* Contrast on hover */
}

/* --- Cards / Features --- */
.feature-card {
    position: relative;
    padding: var(--space-lg) var(--space-md);
    transition: var(--transition-smooth);
    border-radius: 8px;
    border-top: none; /* Removed the top-only border for a more balanced look */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle full border */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertical alignment */
    align-items: center;     /* Horizontal alignment */
    text-align: center;      /* Center and improve text reading */
    min-height: 360px;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Persistent dark gradient for text contrast by default */
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(7, 26, 15, 0.85)); 
    z-index: -1;
    transition: background 0.4s ease;
}

.feature-card p {
    color: #ffffff; /* Solid white for maximum legibility */
    font-size: 1rem;
    opacity: 0.95;
    max-width: 250px; /* Keep text centered and compact */
}

.feature-card:hover::before {
    background: linear-gradient(to bottom, rgba(76, 175, 80, 0.2), rgba(0,0,0,0.95)); /* Intensify dark at bottom on hover */
}

/* Specific Card Backgrounds */
.card--juego { background-image: url('../assets/images/497876554_1262500969215263_6348859890461748190_n.jpg'); }
.card--entorno { background-image: url('../assets/images/491846002_1233633165435377_6329603860835921702_n.jpg'); }
.card--accesibilidad { background-image: url('../assets/images/649247855_18109476139754736_5834917003672516398_n.jpg'); }

.feature-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--clr-accent);
}

.feature-card__icon {
    font-size: 2.5rem;
    color: var(--clr-primary); /* Keep green but maybe add brightness if needed */
    filter: brightness(1.2); /* Enhance visibility */
    margin-bottom: var(--space-sm);
}

.feature-card__title {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    margin-bottom: var(--space-xs);
    font-family: var(--font-heading);
    color: var(--clr-text-light); /* White for contrast */
}

/* --- Gallery Images --- */
.gallery__item {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: rgba(0,0,0,0.1); /* placeholder map */
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery__item:hover img {
    transform: scale(1.05);
}

/* --- Footer --- */
.footer {
    background-color: var(--clr-tertiary);
    color: var(--clr-text-light);
    padding: var(--space-lg) 0 var(--space-md);
    font-size: 12px;
    line-height: 1.6;
}

.footer__phrase {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-md);
    }
}

.footer h3 {
    color: var(--clr-primary-light);
    margin-bottom: var(--space-sm);
    font-family: var(--font-body);
    font-size: 12px; 
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.2; /* Heading needs some breathing room or it looks squashed */
}

.footer__list li {
    margin-bottom: 0.3rem;
}

.footer__list a {
    font-size: 12px;
    opacity: 0.8;
    transition: var(--transition-fast);
    line-height: 1.4;
}

.footer .btn {
    font-size: 12px;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

/* Specific button for Casa Orquidea */
.btn--casa-orquidea {
    background-color: transparent !important;
    color: var(--clr-primary) !important;
    border: 1px solid var(--clr-primary) !important;
    transition: var(--transition-smooth);
}

.btn--casa-orquidea:hover {
    background-color: var(--clr-primary) !important;
    color: var(--clr-background) !important;
}

/* Color change removed per user standardization */


/* Standard hover effects for footer buttons inherited from .btn:hover */
.footer .btn:not(.btn--casa-orquidea):hover {
    /* Already inherits base .btn:hover */
}

.btn--white {
    background-color: #ffffff;
    color: var(--clr-tertiary);
    border: 1px solid #ffffff;
}

.footer__list a.nav__highlight {
    color: var(--clr-primary-light) !important;
    border: 1px solid var(--clr-primary-light);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
    margin: 0.2rem 0;
}

.footer__list a:not(.btn):hover {
    color: var(--clr-primary);
    opacity: 1;
}

.footer__bottom {
    margin-top: var(--space-lg);
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
}

.footer__bottom p:first-child {
    opacity: 0.8;
}

.footer__bottom p:last-child {
    opacity: 0.5;
}

/* --- WhatsApp CTA persistent --- */
.fab-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: var(--transition-fast);
}

.fab-whatsapp:hover {
    transform: scale(1.1);
}

.fab-whatsapp svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* --- Weather FAB --- */
.fab-weather {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFF;
    min-width: 60px; /* Adapted for text */
    padding: 0 10px;
    height: 60px;
    border-radius: 30px; /* Capsule shape */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition-smooth);
    cursor: pointer;
    overflow: hidden;
}

.fab-weather:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.fab-weather svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.weather-panel {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 320px;
    max-width: 95vw;
    background: rgba(10, 26, 15, 0.9); /* Slightly more opaque for better contrast with smaller text */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.weather-panel.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.weather-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.weather-panel__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--clr-primary);
    letter-spacing: 0.1em;
}

.weather-panel__close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.25rem;
    cursor: pointer;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Forms (Contact) */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group-inline {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .form-group-inline { flex-direction: row; }
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(255,255,255,0.05);
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

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

.form-input:focus {
    border-color: var(--clr-primary);
    background-color: rgba(255,255,255,0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* --- Course Book Gallery & Video --- */
.course-book__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 40px;
}

/* Mobile adjust */
@media (max-width: 768px) {
    .course-book__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .course-book__grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.course-book__item {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    min-height: 100px;
}

/* Only hover and pointer for items with video */
.course-book__item.has-video {
    cursor: pointer;
}

.course-book__item.has-video:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Reveal Animation Utility */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.course-book__img-thumb {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 6px;
}

/* Video Legend below image */
.video-legend {
    display: none;
    color: #4CAF50; /* Institutional green */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-top: 8px;
}

.course-book__item.has-video .video-legend {
    display: block;
}

.video-badge {
    display: none; /* Hide old badge if still in use */
}

/* Video Badge on Grid (Centered Vertically) */
.video-badge {
    position: absolute;
    top: 50%;
    right: 15px; /* Slightly more inside */
    transform: translateY(-50%);
    background: rgba(43, 85, 41, 0.85); /* Institutional green */
    color: #fff;
    width: 40px; /* Slightly larger for visibility */
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: var(--transition-fast);
}

.course-book__item:hover .video-badge {
    transform: translateY(-50%) scale(1.15);
    background: var(--clr-accent); /* Lime on hover */
}

/* Fullscreen Course Book Modal */
.cb-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cb-modal.active {
    display: flex;
}

.cb-modal__header {
    position: absolute;
    top: 0; left: 0; width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.cb-modal__title {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
    font-family: var(--font-heading);
}

.cb-modal__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

.cb-modal__body {
    position: relative;
    width: 100%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-modal__img {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
    background-color: #fff;
    border-radius: 4px;
}

.cb-modal__controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

/* Flyover Toggle Button (Centered at bottom) */
.cb-modal__flyover-btn {
    position: absolute;
    bottom: 85px; /* Above navigation buttons */
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    background-color: var(--clr-primary);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    display: none; 
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
}

.cb-modal__flyover-btn.visible {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cb-modal__flyover-btn:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 15px 45px rgba(213, 182, 101, 0.4);
}

.cb-modal__flyover-btn.active {
    background: var(--clr-secondary);
    border-color: #fff;
}

.video-container {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

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

video.cb-modal__video {
    max-width: 90%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.cb-btn {
    background-color: var(--clr-primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.9;
    font-size: 12px;
}

.cb-btn:hover {
    /* Opacity change removed */
}

.cb-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
    opacity: 0.5;
}

/* --- Players Landing Specifics --- */
.player-table-container {
    width: 100%;
    overflow-x: auto; /* Scroll horizontal en móviles */
    margin: 2rem 0;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.player-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: #fff;
    min-width: 600px; /* Asegura que no se aplaste en móviles */
}

.player-table th, .player-table td {
    padding: 0; /* Reduced to 0 as requested */
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.player-table th {
    background-color: var(--clr-tertiary);
    color: var(--clr-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.player-table tr:nth-child(even) {
    background-color: rgba(255,255,255,0.02);
}

.player-table .row-azul { color: #5d9cec; font-weight: 600; }
.player-table .row-blanco { color: #f0f0f0; font-weight: 600; }
.player-table .row-amarillo { color: #f6bb42; font-weight: 600; }
.player-table .row-rojo { color: #ed5565; font-weight: 600; }
.text-rojo { color: #ed5565; }
.text-sep { color: rgba(255,255,255,0.3); padding: 0 2px; }
.player-table .row-highlight { background-color: rgba(43, 85, 41, 0.2); font-weight: bold; }
.player-table .row-par-highlight td { 
    background-color: rgba(255, 255, 255, 0.6) !important; 
    color: #1a1a1a !important; 
    font-weight: 800 !important; 
    border-color: rgba(0,0,0,0.1) !important;
}
.player-table .row-par-highlight .text-rojo { 
    color: #d90429 !important; /* Slightly more vibrant red for better contrast on white */
}
.player-table .row-par-highlight .text-sep {
    color: rgba(0,0,0,0.2) !important;
}

.rules-list {
    list-style: none;
    padding: 0;
}

.rules-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.rules-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--clr-primary);
    font-weight: bold;
}

.sticky-cta {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: var(--clr-tertiary);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 60px;
    z-index: 100;
}

/* --- Satellite Map Modal --- */
.map-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 26, 15, 0.98);
    z-index: 10000;
    flex-direction: column;
}

.map-modal.active {
    display: flex;
}

.map-modal__header {
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
}

.map-modal__hint {
    font-size: 12px;
    opacity: 0.7;
    font-family: var(--font-body);
}

.map-modal__close {
    background: var(--clr-primary);
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}

.map-modal__close:hover {
    transform: scale(1.1);
}

.map-modal__body {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.map-zoom-container {
    width: 100%;
    height: 100%;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.map-zoom-container:active {
    cursor: grabbing;
}

#sat-map-img,
#satellite-img {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
    max-width: 90vw;
    object-fit: contain;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    user-select: none;
    -webkit-user-drag: none;
}

#sat-map-img.zoomed,
#satellite-img.zoomed {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    cursor: zoom-out;
}

#sat-map-img:not(.zoomed),
#satellite-img:not(.zoomed) {
    cursor: zoom-in;
}

@media (max-width: 768px) {
    .map-modal__hint {
        display: none;
    }
    
    #sat-map-img,
    #satellite-img {
        max-width: none;
        width: 100%;
        height: auto;
    }
    
    .map-zoom-container {
        justify-content: flex-start;
    }
}
/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Staggered delay for children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-stagger.active > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.4s; }

/* --- Utility Classes for Page Optimization --- */
.hero--offset { padding-top: 140px; }
.text-primary { color: var(--clr-primary) !important; }
.text-highlight { font-size: 1.25rem; line-height: 1.8; }
.mt-40 { margin-top: 40px; }
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.gap-20 { gap: 20px; }
.w-100 { width: 100%; }
.rounded-img { border-radius: 6px; }
.shadow-md { box-shadow: 0 10px 25px rgba(0,0,0,0.3); }

.d-flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.max-w-700 { max-width: 700px; margin-left: auto; margin-right: auto; }

.btn--whatsapp { background: #25D366; color: #fff; border: transparent; }
.btn--whatsapp:hover { transform: translateY(-3px) scale(1.02); }

.text-link { color: var(--clr-primary); text-decoration: underline; opacity: 0.8; transition: var(--transition-fast); }
.text-link:hover { opacity: 1; }

.amenities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 40px; }
.amenity-item { display: flex; align-items: center; gap: 15px; background: rgba(255,255,255,0.03); padding: 15px 20px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); transition: var(--transition-fast); }
.amenity-item:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); border-color: rgba(255,255,255,0.1); }
.amenity-icon { width: 28px; height: 28px; opacity: 0.9; }

/* Lightbox Base CSS */
.lightbox-trigger { cursor: zoom-in; }
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 10000; display: flex; justify-content: center; align-items: center; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox__img { max-width: 90%; max-height: 80vh; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); animation: scaleUp 0.3s ease-out forwards; }
.lightbox__close { position: absolute; top: 30px; right: 30px; background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: #fff; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; }
.lightbox__nav:hover { 
    transform: translateY(-50%) scale(1.1);
}
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

@keyframes scaleUp { from { transform: scale(0.95); } to { transform: scale(1); } }

/* Enhanced Button Microactions */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ''; position: absolute; top: 50%; left: 50%; width: 150%; height: 150%; background: rgba(255,255,255, 0.1); transform: translate(-50%, -50%) scale(0); border-radius: 50%; transition: transform 0.4s ease-out; }
.btn:hover::after { transform: translate(-50%, -50%) scale(1); opacity: 0; transition: transform 0.4s ease-out, opacity 0.4s ease-out; }
.btn--primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 25px rgba(76, 175, 80, 0.4); }

/* --- Course Book Grid & Video Overlay --- */
.course-book__item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.course-book__item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border-color: var(--clr-primary);
}

.flyover-badge {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 5;
    white-space: nowrap;
}

.flyover-badge::before {
    content: '▶';
    font-size: 0.6rem;
}



.course-book__img-thumb {
    width: 100%;
    display: block;
}

/* --- Handicap Calculator Modal --- */
.calc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 26, 15, 0.98);
    z-index: 10001;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.calc-modal.active {
    display: flex;
}

.calc-container {
    background: var(--clr-tertiary);
    width: 100%;
    max-width: 600px;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.calc-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.calc-modal__close:hover {
    color: #fff;
    transform: scale(1.1);
}

.calc-title {
    font-family: var(--font-heading);
    color: var(--clr-primary);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.calc-form {
    margin-bottom: 2rem;
}

.calc-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.8);
}

.calc-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 1.25rem;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-fast);
    text-align: center;
}

.calc-input:focus {
    border-color: var(--clr-primary);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.2);
}

.calc-results {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.calc-results th {
    text-align: left;
    padding: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clr-primary-light);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.calc-results td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 1rem;
}

.calc-results tr:last-child td {
    border-bottom: none;
}

.calc-results .tee-name {
    font-weight: 700;
    width: 40%;
}

.calc-results .val-medal, .calc-results .val-85 {
    text-align: center;
    font-weight: 600;
}

.calc-results .row-amarillo { color: #f6bb42; }
.calc-results .row-azul { color: #5d9cec; }
.calc-results .row-blanco { color: #f0f0f0; }
.calc-results .row-rojo { color: #ed5565; }

@media (max-width: 480px) {
    .calc-container {
        padding: 1.5rem;
    }
    .calc-title {
        font-size: 1.5rem;
    }
    .calc-results th, .calc-results td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
}
