/* ==== VARIABLES E IMPORTS ==== */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Lato:wght@300;400;700&display=swap');

:root {
    --color-bg: #1A1A1A;
    --color-bg-secondary: #333333;
    --color-text: #F5F5F5;
    --color-accent: #AEFF00;
    --color-black: #111111;
    --color-white: #FFFFFF;

    --font-primary: 'Anton', sans-serif;
    --font-secondary: 'Lato', sans-serif;

    --header-height: 4.5rem; /* 72px */
}

/* ==== RESET Y BASE ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
	overflow-x: hidden;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-secondary);
    line-height: 1.6;
	overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--color-text);
}

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

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--color-white);
}

.text--accent {
    color: var(--color-accent);
}

/* ==== LAYOUT Y UTILIDADES ==== */
.container {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.section__title {
    font-size: 2.5rem; /* 40px */
    margin-bottom: 2rem;
}

.section__subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 600px;
	margin-left: auto;
    margin-right: auto;
}

.section--dark {
    background-color: var(--color-black);
}

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

.align-center {
    align-items: center;
}

.img-fluid {
    width: 100%;
    border-radius: 8px;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid--2-cols {
    grid-template-columns: 1fr;
}

.grid--3-cols {
    grid-template-columns: 1fr;
}

.gap {
    gap: 3rem;
}

.gap-large {
    gap: 4rem;
}

/* ==== BOTONES (CTA) ==== */
.button {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-family: var(--font-secondary);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.button--accent {
    background-color: var(--color-accent);
    color: var(--color-black);
    border-color: var(--color-accent);
}

.button--accent:hover {
    background-color: transparent;
    color: var(--color-accent);
}

.button--outline {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.button--outline:hover {
    background-color: var(--color-accent);
    color: var(--color-black);
}

.button--large {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* ==== HEADER Y NAVEGACIÓN ==== */
.header {
    width: 100%;
    background-color: rgba(26, 26, 26, 0.2); /* Fondo semi-transparente */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-bg-secondary);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--color-accent);
}

.logo {
	height: 40px;
}

.nav__toggle {
    display: flex; /* Visible en móvil */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 110;
}

.nav__toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
}

/* Animación Hamburger */
.nav__toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav__toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.nav__toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav__menu {
    position: fixed;
    top: 0;
    right: 0; /* Oculto fuera de la pantalla */
    width: 70%;
    height: 100vh;
    background-color: var(--color-bg-secondary);
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    z-index: 105;
	
	/* 2. Ocultarlo moviéndolo el 100% DE SU PROPIO ANCHO */
    transform: translateX(100%);
    
    /* 3. Añadir visibility para accesibilidad */
    visibility: hidden;
    
    /* 4. Cambiar la transición a 'transform' */
    transition: transform 0.4s ease-in-out, visibility 0.4s;
}

.nav__menu.active {
	transform: translateX(0);
	visibility: visible;
}

.nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-size: 1.25rem;
    transition: color 0.3s;
}

.nav__link:hover {
    color: var(--color-accent);
}

.nav__button {
    display: block; /* Visible en móvil */
}

/* ==== HERO SECTION ==== */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Imagen de fondo (o video) */
    background: url('./img/heroe.png') no-repeat center center/cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Oscurece la imagen/video */
}

.hero__content {
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: 4rem; /* 64px */
    font-weight: 900;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.5rem;
    font-family: var(--font-secondary);
    margin-bottom: 2.5rem;
}

/* ==== CARDS (Instalaciones, Tienda) ==== */
.card {
    background-color: var(--color-bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.card__img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card__content {
    padding: 2rem;
}

.card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card--shop {
    text-align: center;
}

.card--shop .card__img {
    height: 300px;
}

/* ==== CLASES ==== */
.classes__image-wrapper {
    position: relative;
}

.classes__img {
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* ==== CTA (Hacerse Socio) ==== */
.cta {
    position: relative;
    padding: 8rem 0;
    background: url('https://via.placeholder.com/1920x1080/1A1A1A/AEFF00?text=Abstract+Texture') no-repeat center center/cover;
}

.cta__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.9); /* Casi opaco */
}

.cta__content {
    position: relative;
    z-index: 2;
}

.cta__title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta__content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

/* ==== SECCIÓN PLANES (SOCIO) ==== */
.plan-card {
    background-color: var(--color-bg-secondary);
    border: 2px solid var(--color-bg-secondary); /* Borde sutil */
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden; /* Clave para el badge */
    transition: transform 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
}

/* Estilo destacado para Premium */
.plan-card--premium {
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(174, 255, 0, 0.1);
}

/* Badge "Recomendado" */
.plan-card__badge {
    position: absolute;
    top: 1.5rem;
    right: -45px; /* Posicionamiento inicial para rotar */
    background-color: var(--color-accent);
    color: var(--color-black);
    padding: 0.25rem 3rem; /* Ancho del badge */
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(174, 255, 0, 0.2);
}

.plan-card__title__normal {
	color: var(--color-white);	
}

.plan-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.plan-card__price {
    margin-bottom: 2rem;
}

.plan-card__amount {
    font-family: var(--font-primary);
    font-size: 3.5rem; /* 56px */
    font-weight: 900;
    color: var(--color-white);
}

.plan-card__period {
    font-size: 1rem;
    color: #aaa; /* Un gris sutil */
}

.plan-card__features {
    text-align: left;
    margin-bottom: 2.5rem;
    padding-left: 1rem;
}

.plan-card__features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.plan-card__features .check-icon {
    color: var(--color-accent);
    font-weight: 700;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.plan-card__features strong {
    color: var(--color-accent); /* Destaca el "GRATIS" */
}

.plan-card__button {
    width: 100%; /* El botón ocupa todo el ancho de la tarjeta */
}

/* Hacemos el botón "outline" de la tarjeta normal un poco más sutil */
.plan-card:not(.plan-card--premium) .button--outline {
     border-color: #888; 
     color: var(--color-text);
}

.plan-card:not(.plan-card--premium) .button--outline:hover {
    border-color: var(--color-accent);
    background-color: var(--color-accent);
    color: var(--color-black);
}

/* ==== FOOTER ==== */
.footer {
    background-color: var(--color-black);
    padding: 4rem 0 2rem 0;
    font-size: 0.9rem;
}

.footer__title {
    font-size: 1.25rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.footer__link {
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer__link:hover {
    color: var(--color-accent);
}

.footer__copy {
    border-top: 1px solid var(--color-bg-secondary);
    padding-top: 2rem;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: #888;
}

.footer__horario {
    margin-top: 1.5rem; /* Espacio entre el teléfono y el horario */
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer__horario strong {
    color: var(--color-accent); /* Destacamos los días */
    font-weight: 700;
}

.footer__horario p {
    margin-bottom: 0.5rem;
}

.logo__footer {
	height: 40px;
}

.footer__map-container {
    margin-top: 3rem; /* Espacio entre la info y el mapa */
}

.footer__map {
    width: 100%;
    height: 300px;
    border-radius: 8px; /* Coherencia con el diseño */
    border: 0;
    
    /* ¡Magia! Filtro para modo oscuro */
    /* Invierte colores, quita saturación y ajusta brillo/contraste */
    filter: invert(100%) grayscale(80%) brightness(0.8) contrast(1.2);
}

/* ==== SECCIÓN CONTACTO FINAL ==== */
.contact-box {
    max-width: 600px; /* Más estrecho, es una sola tarjeta */
    margin-left: auto;
    margin-right: auto;
    background-color: var(--color-bg-secondary);
    padding: 3rem;
    border-radius: 8px;
    border: 2px solid var(--color-bg-secondary);
}

.contact-box__title {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.1rem;
    color: #aaa;
    text-transform: uppercase;
}

.contact-box__number {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 3.5rem; /* 56px */
    color: var(--color-accent); /* El número es el protagonista */
    margin-bottom: 1rem;
    line-height: 1.1;
}

.contact-box__prompt {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--color-text);
}

.contact-box__buttons {
    display: flex;
    flex-direction: column; /* Apilados en móvil */
    gap: 1rem;
}

/* Pequeño ajuste para los iconos dentro de los botones */
.button__icon {
    margin-right: 0.5rem;
    display: inline-block; /* Para que el margen funcione */
}

/* ==== EFECTOS DE SCROLL (Intersection Observer) ==== */
.hidden {
    opacity: 0;
    /* Empieza 30px más abajo y se desvanece */
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.6s ease-out;
    /* Asegura que los elementos no afecten al layout antes de aparecer */
    will-change: opacity, transform; 
}

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

/* ==== ESTILOS PÁGINA CLASES (clases.html) ==== */

/* Título de la página */
.page-header {
    padding: 8rem 0;
    position: relative;
    background: url('https://via.placeholder.com/1920x400/1A1A1A/AEFF00?text=Clases+Urban+Padel') no-repeat center center/cover;
    text-align: center;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header__title {
    font-size: 3.5rem;
}

/* Enlace activo en la navegación */
.nav__link--active {
    color: var(--color-accent) !important;
}
/* Subrayado para el enlace activo en escritorio */
@media (min-width: 768px) {
    .nav__link--active::after {
        transform: translateX(0) !important;
    }
}


/* Tarjetas de planes de clases */
.plan-grid-item {
    background-color: var(--color-bg-secondary);
    border-radius: 8px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.plan-grid-item__title {
    font-size: 1.75rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.plan-grid-item__desc {
    color: #ccc;
    margin-bottom: 2rem;
    flex-grow: 1; /* Empuja la lista de precios hacia abajo */
}

/* Lista de precios elegante */
.plan-pricing-list {
    margin-bottom: 1rem;
    border-top: 1px solid #444;
}

.plan-pricing-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #444;
    font-size: 1.1rem;
}

.plan-pricing-list li span:first-child {
    color: var(--color-text);
}

.plan-pricing-list li span:last-child {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-white);
    font-size: 1.25rem;
}

/* Info extra para la tarjeta de Niños */
.plan-extra-info {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #ccc;
}
.plan-extra-info p {
    margin-bottom: 0.75rem;
}
.plan-sublist {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}
.plan-sublist li {
    margin-bottom: 0.25rem;
}


/* Contenedor de Normas */
.normas-container {
    max-width: 800px;
    margin: 2rem auto 0 auto;
    background-color: var(--color-bg-secondary);
    border-radius: 8px;
    padding: 2.5rem;
}

.normas-container ul {
    list-style: none;
}

.normas-container li {
    font-size: 1.1rem;
    line-height: 1.7;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--color-accent);
}

.normas-container li strong {
    color: var(--color-accent);
}

/* ==== MEDIA QUERIES (Responsive Design) ==== */

/* Tablets y Escritorios Pequeños (>= 768px) */
@media (min-width: 768px) {
    .nav__menu {
        position: static;
        flex-direction: row;
        height: auto;
        width: auto;
        background-color: transparent;
        padding: 0;
        right: 0; 
        gap: 2rem;

        /* ---- LÍNEAS AÑADIDAS ---- */
        transform: none;
        visibility: visible;
        /* -------------------------- */
    }    
    
    .grid--2-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--3-cols {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero__title {
        font-size: 7rem; /* 88px */
    }

    .section__title {
        font-size: 3rem; /* 48px */
    }

    .text-center-mobile {
        text-align: left;
    }

    /* --- Navegación en Escritorio --- */
    .nav__toggle {
        display: none; /* Ocultar hamburger */
    }

    .nav__menu {
        position: static;
        flex-direction: row;
        height: auto;
        width: auto;
        background-color: transparent;
        padding: 0;
        right: 0; /* Reseteo */
        gap: 2rem;
    }

    .nav__list {
        flex-direction: row;
        gap: 2rem;
    }

    .nav__link {
		font-size: 1rem;
		position: relative;
		overflow: hidden;
		padding-bottom: 5px;
    }
	
	.nav__link::after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 2px;
		background-color: var(--color-accent); /* Color lima */

		/* Animación: empieza en la izq. y escalada a 0 */
		transform: translateX(-100%);
		transition: transform 0.3s ease-out;
		opacity: 0;
	}

	/* 2. Al pasar el cursor, la línea entra desde la izquierda */
	.nav__link:hover::after {
		opacity: 1;
		transform: translateX(0);
	}

    .nav__button {
        display: inline-block; /* Oculto en móvil por defecto, ahora visible */
        margin-left: 1rem;
    }
}

/* Escritorios Medianos (>= 1024px) */
@media (min-width: 1024px) {
    .classes__image-wrapper {
        /* Efecto de superposición */
        margin-left: -3rem;
    }
}


.tienda__content {
    margin-top: 3rem; /* Espacio entre subtítulo y la imagen/texto */
}

.tienda__img {
    width: 100%;
    max-height: 600px; /* Limita la altura para que no sea excesivamente grande */
    object-fit: cover; /* Asegura que la imagen cubra el área sin distorsionarse */
    border-radius: 8px; /* Mismo radio que otros elementos */
    margin-bottom: 2.5rem; /* Espacio entre la imagen y el texto */
}

.tienda__text p {
    margin-bottom: 1.5rem; /* Espacio entre párrafos de la tienda */
    max-width: 800px; /* Limita el ancho del texto para mejor legibilidad */
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Centramos el texto de la tienda */
}

/* Ajuste para que el subtítulo global de sección se vea bien con este layout */
.section__subtitle.text-center {
    max-width: 800px; /* Para centrar y limitar ancho del subtítulo */
    margin-left: auto;
    margin-right: auto;
}

/* ==== SECCIÓN RESERVA (TARIFAS) ==== */
.rate-card {
    background-color: var(--color-bg-secondary);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 2px solid var(--color-bg-secondary);
    transition: transform 0.3s ease;
}

.rate-card:hover {
    transform: translateY(-5px);
}

/* Destaque sutil para la mejor tarifa */
.rate-card--premium {
    border-color: var(--color-accent);
}

.rate-card__title {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.1rem;
    color: #aaa; /* Menos énfasis en el título */
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.rate-card__price {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 3rem; /* 48px */
    color: var(--color-white);
    line-height: 1.2;
}

.rate-card__note {
    font-size: 0.9rem;
    color: #888;
}
