/* Web pública del club (templates/club/). Los colores llegan como variables desde la plantilla. */
/* --red-brand y --black-brand se definen en la plantilla con los colores de Ajustes. */
:root {
    --dark-gray: #1F1F1F;
    --white: #FFFFFF;
    --light-gray: #F4F4F4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--black-brand);
    color: var(--white);
    line-height: 1.6;
}

/* HEADER & NAV */
header {
    background-color: var(--black-brand);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--red-brand);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--red-brand);
}

.btn-nav {
    background-color: var(--red-brand);
    padding: 8px 18px;
    border-radius: 4px;
    color: var(--white) !important;
}

.btn-nav:hover {
    background-color: #b81b21;
}

/* HERO SECTION */
/*.hero {
    position: relative;
    background-color: var(--black-brand);
    background-position: center center;  
    background-size: cover;             
    background-repeat: no-repeat;
    min-height: 75vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}*/

.hero {
    position: relative;
    width: 100%;
    height: 500px; /* 👈 AQUí defines el alto exacto que quieres para la portada */
    background-color: var(--black-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Oculta lo que sobresalga del alto fijo */
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* Llena todo el ancho y alto sin deformar */
    object-position: center; /* Mantiene el centro de la imagen enfocado */
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, color-mix(in srgb, var(--black-brand) 85%, transparent) 0%, color-mix(in srgb, var(--red-brand) 75%, transparent) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

/*.hero-content {
    max-width: 900px;
}*/

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero h1 span {
    color: var(--red-brand);
    background: var(--white);
    padding: 10px 10px;
    display: inline-block;
}

.hero p.subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.btn-cta {
    background-color: var(--white);
    color: var(--black-brand);
    font-size: 1.2rem;
    font-weight: 900;
    padding: 15px 35px;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 30px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-cta:hover {
    background-color: var(--red-brand);
    color: var(--white);
    transform: translateY(-3px);
}

/* SECCIÓN CARACTERÍSTICAS */
.features {
    padding: 80px 5% 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 50px;
    position: relative;
    color: var(--white);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--red-brand);
    margin: 10px auto 0;
}

.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--dark-gray);
    border-radius: 10px;
    padding: 35px 25px;
    text-align: center;
    border-bottom: 4px solid var(--red-brand);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.icon-box {
    width: 70px;
    height: 70px;
    border: 3px solid var(--red-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 1.8rem;
    color: var(--red-brand);
}

.feature-card h3 {
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--white);
}

.feature-card p {
    color: #CCCCCC;
    font-size: 0.95rem;
}

.price-highlight {
    font-size: 1.4rem;
    color: var(--red-brand);
    font-weight: 900;
    margin-top: 10px;
    display: block;
}

/* SECCIÓN SOBRE EL CLUB */
.about-club {
    padding: 80px 5%;
    background-color: var(--dark-gray);
    border-top: 2px solid #2a2a2a;
    border-bottom: 2px solid #2a2a2a;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-text p {
    color: #CCCCCC;
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-box-highlight {
    background-color: var(--black-brand);
    border: 2px solid var(--red-brand);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.about-box-highlight i {
    font-size: 2.5rem;
    color: var(--red-brand);
    margin-bottom: 15px;
}

.about-box-highlight h4 {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--white);
}

.about-box-highlight p {
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* SECCIÓN CARRUSEL DE FOTOS */
.carousel-section {
    padding: 60px 5%;
    background-color: #1a1a1a;
    max-width: 1000px;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.carousel img {
    border-radius: 8px;
    max-height: 500px;
    object-fit: cover;
}

.carousel-item img {
    max-height: 450px;
    object-fit: contain; /* Muestra la foto entera sin recortar */
}

/* BANNER CONTACTO */
.call-banner {
    background-color: var(--red-brand);
    padding: 40px 5%;
    text-align: center;
    margin-top: 40px;
}

.call-banner h2 {
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 10px;
}

.phone-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    letter-spacing: 2px;
}

/* FOOTER */
footer {
    background-color: var(--red-brand);
    /* background-color: #0A0A0A; */
    padding: 40px 5% 20px 5%;
    text-align: center;
    border-top: 1px solid #333;
}

.social-links {
    margin-bottom: 25px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--red-brand);
}

.social-links span {
    font-size: 1rem;
    font-weight: 700;
    margin-left: 5px;
}

footer p.copy {
    font-size: 0.85rem;
    color: #777;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p.subtitle { font-size: 1.2rem; }
    .phone-number { font-size: 2.2rem; }
}

/* --- Añadido al hacer la web editable --------------------------------------- */
.hero-noimage { background: linear-gradient(135deg, var(--black-brand), var(--red-brand)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-cta.btn-cta-light { background: var(--white); color: var(--black-brand); }
.btn-cta.btn-cta-light:hover { background: var(--light-gray); color: var(--black-brand); }
.carousel-caption-box { background: rgba(0, 0, 0, 0.6); border-radius: 6px; padding: 10px; }
.section-title.mb-gallery { margin-bottom: 30px; }

.web-section { padding: 70px 5%; }
.web-section.alt { background-color: var(--dark-gray); }
.web-container { max-width: 1100px; margin: 0 auto; }
.web-text { color: #DDDDDD; }
.web-text h3 { color: var(--white); font-weight: 900; text-transform: uppercase; font-size: 1.15rem; margin: 1.5rem 0 .6rem; }
.web-text ul { padding-left: 1.2rem; }
.web-text a { color: var(--white); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card-web { background: var(--dark-gray); border-radius: 10px; padding: 22px; border-left: 4px solid var(--red-brand); }
.web-section.alt .card-web { background: var(--black-brand); }
.card-web h3 { font-size: 1.1rem; font-weight: 900; text-transform: uppercase; margin-bottom: .4rem; }
.card-web .meta { color: #AAAAAA; font-size: .9rem; margin-bottom: .6rem; }
.card-web p { color: #CCCCCC; font-size: .95rem; margin-bottom: .6rem; }
.card-web a { color: var(--white); font-weight: 700; }

.contact-lines { color: var(--white); margin-bottom: 18px; }
.contact-lines a { color: var(--white); }
.legal-links { margin-top: 10px; font-size: .9rem; }
.legal-links a { color: var(--white); margin: 0 8px; }
.copy-line { color: var(--white); text-align: center; margin-top: 12px; }

.legal-page { max-width: 860px; margin: 0 auto; padding: 60px 5%; }
.legal-page h1 { font-weight: 900; text-transform: uppercase; margin-bottom: .3rem; }
.legal-page .meta { color: #AAAAAA; margin-bottom: 2rem; }
.draft-banner { background: #7a5b00; color: var(--white); padding: 10px 5%; text-align: center; }
