/* Estilos generales */
:root {
    /* Estilos generales */
    --fuenteHeading: 'PT Sans', sans-serif;
    --azulclaro: #4476c3;
    --azuloscuro: #303091;
    --texto: #231f20;
    --pelota: #a3d834;

    /* Estilos sección tarifas */
    --tarifas-color-primario: #0056b3;
    --tarifas-color-secundario: #e9f2ff;
    --tarifas-color-acento: #4CAF50;
    --tarifas-color-texto: #333;
    /* --tarifas-color-fondo: #f8f9fa; */
    --tarifas-sombra: 0 4px 12px rgba(0, 0, 0, 0.08);
    --tarifas-borde: 1px solid #dee2e6;
    --tarifas-radio: 12px;
}

* {
    margin: 0;
    box-sizing: border-box;
}

/* Scrolling suave */
html {
    scroll-behavior: smooth;
}

/* Barra de scroll personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--azulclaro), var(--azuloscuro));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--azuloscuro), var(--azulclaro));
}

@font-face {
    font-family: 'cp';
    src: url('/fonts/LetoSans-Bold.ttf');
    font-display: swap;
}

@font-face {
    font-family: 'fuentecontenido';
    src: url('/fonts/Barlow-Regular.ttf');
    font-display: swap;
}

/* Estilos independientes */
.displaynone {
    display: none;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.textoprincipal {
    text-align: center;
    font-weight: 700;
}

.contenedorcontenido {
    font-family: 'fuentecontenido';
    max-width: 1200px;
    width: 100%;
    margin: 20px auto;
    padding: 0 8px;
}

@media(max-width:340px) {
    .contenedorcontenido {
        padding: 0px 4px;
    }
}

.contenedor-imagenes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 equal columns */
    gap: 20px;
    margin-top: 20px;
}

/* New rule to make the panoramic image span the full width */
.panoramica {
    grid-column: 1 / -1;
}

.imagen-contenedor img {
    width: 100%;
    /* height: 500px; */
    object-fit: cover;
    border: 1px solid var(--azuloscuro);
    border-radius: 10px;
}

.separador {
    height: 3rem;
}

.separadorcorto {
    height: 1.5rem;
}

.textodestacado {
    font-size:1.6rem;
}

/* Estilos 2 columnas responsive */
.contenedor2columnas {
    width: 100%;
    box-sizing: border-box;
}

/* Mobile first - vertical layout (≤768px) */
.columna1,
.columna2 {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.columna2 {
    word-break: break-all;
    word-wrap: break-word;
}

/* Desktop - horizontal layout (>768px) */
@media (min-width: 769px) {
    .contenedor2columnas {
        display: flex;
        flex-wrap: wrap;
    }

    .columna1,
    .columna2 {
        width: 50%;
        flex: 0 0 50%;
    }
}

/* Alternative approach using max-width for mobile */
@media (max-width: 768px) {

    .columna1,
    .columna2 {
        width: 100%;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .contenedor-imagenes {
        grid-template-columns: 1fr;
        /* Single column on mobile */
        gap: 30px;
    }

}

/* Sitio web */

body {
    font-family: 'fuentecontenido', Roboto, Arial, sans-serif;
    display: grid;
    min-height: 100dvh;
    grid-template-rows: auto 1fr auto;
}

/* Header / Navigation */

/* 1. Change from sticky to fixed for reliable off-screen animation */
.site-header {
    position: fixed;
    /* Changed from sticky */
    top: 0;
    left: 0;
    width: 100%;
    /* Important for fixed positioning */
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #e9e9e9;
    /* 2. Add a transition for the transform property */
    transition: transform 0.3s ease-in-out;
}

/* 3. This class will be added/removed by JavaScript */
.site-header.header--hidden {
    transform: translateY(-100%);
}

/* 4. Add padding to the top of your <main> element
      to prevent content from jumping under the fixed header */
main {
    padding-top: 113px;
    /* Adjust this value to match your header's height */
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    max-width: 1300px;
    margin: 0 auto;
}

.site-header__brand {
    color: #111;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.2px;
    flex: 0 0 auto;
}

.site-header__brand img {
    height: 80px;
    /* Default for desktop */
    max-height: 80px;
    width: auto;
    /* Maintain aspect ratio */
    transition: height 0.3s ease;
}

/* For tablets */
@media (max-width: 1024px) {
    .site-header__brand img {
        height: 70px;
    }
}

/* For mobile devices */
@media (max-width: 768px) {
    .site-header__brand img {
        height: 65px;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .site-header__brand img {
        height: 60px;
    }
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    row-gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
}

.site-nav__link {
    text-decoration: none;
    color: #111;
    font-weight: 500;
    white-space: nowrap;
}

.site-nav__link:hover {
    text-decoration: underline;
}

.site-header__toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
}

.burger {
    display: inline-block;
    width: 22px;
    height: 2px;
    background: #111;
    position: relative;
    transition: all 0.3s ease;
}

.burger::before,
.burger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #111;
    transition: all 0.3s ease;
}

.burger::before {
    top: -7px;
}

.burger::after {
    top: 7px;
}

/* NEW: Transform burger to X when aria-expanded="true" */
.site-header__toggle[aria-expanded="true"] .burger {
    background: transparent;
    /* Hide middle bar */
}

.site-header__toggle[aria-expanded="true"] .burger::before {
    top: 0;
    transform: rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .burger::after {
    top: 0;
    transform: rotate(-45deg);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .site-header__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e9e9e9;
        padding: 10px 16px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-header__inner {
        position: relative;
    }
}

/* Estilos home */

.h2home {
    text-align: center;
    margin: 1rem;
    font-size: 1.8rem;
}

/* Servicios Home */

.servicios-home {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;

    /* Center the whole section on the page */
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 16px;
}

.servicio-home {
    /* Cards: wrap to next line when there isn't space */
    flex: 0 1 260px;
    min-width: 220px;
    border-radius: 1rem;
    overflow: hidden;
    border-radius: 28px;
    -webkit-box-shadow: 0px 0px 24px -4px rgba(68, 119, 195, 0.719);
    -moz-box-shadow: 0px 0px 24px -4px rgba(68, 118, 195, 0.719);
    box-shadow: 0px 0px 24px -4px rgba(68, 118, 195, 0.719);

    /* Smooth transition */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.servicio-home:hover {
    transform: scale(1.05);
    -webkit-box-shadow: 0px 0px 24px -4px rgba(68, 118, 195, 0.97);
    -moz-box-shadow: 0px 0px 24px -4px rgba(68, 118, 195, 0.97);
    box-shadow: 0px 0px 24px -4px rgba(68, 118, 195, 0.97);
}

.servicio-home a {
    text-decoration: none;
}

.servicio-home-imagen {
    overflow: hidden;
    height: 10rem;
    position: relative;
    /* border-radius:1rem; */
}

.servicio-home-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Use 'contain' to see full image without cropping */
    object-position: center;
    /* Adjust focus area */
    display: block;
    /* Removes bottom gap */
}

.servicio-home-titulo {
    background-color: var(--azuloscuro);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pelota);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    text-transform: uppercase;
}

.servicio-home-descripcion {
    color: var(--azuloscuro);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    text-align: center;
    height: 10rem;
    padding: 0.6rem;
    background-color: white;
}

.separador-home {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* Vertically center items */
    justify-content: center;
    /* Horizontally center everything */
    gap: 10px;
    /* Space between elements */
}

.separador-home img {
    background-color: white;
    border-radius: 50%;
    padding: 8px;
    /* Creates white space around the image */
    box-shadow: 0 0 0 2px white;
    /* Optional: extra white border */
}

.separador-home hr {
    flex: 1;
    /* Makes HR take available space */
    /* height: 0; /* Line thickness */
    border: none;
    background-color: var(--azulclaro);
    /* Line color */
    margin: 0;
    /* Remove default margins */
    flex: 1;
    height: 1px;
    border: none;
    background-image: radial-gradient(circle, #000 2px, transparent 2.5px);
    background-size: 10px 10px;
    /* Adjust spacing between dots */
    background-position: 0 0;
    background-repeat: repeat-x;
}

.servicios-adicionales {
    text-align: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    /* Center the whole section on the page */
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 16px;
}

.servicio-adicional {
    background-color: #f5f9ff;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200rem;
    gap: 1rem;
    flex: 0 1 260px;
    min-width: 220px;
    overflow: hidden;
}

.servicio-adicional-icono {
    border: 1px solid blue;
    border-radius: 14px;
    padding: 0.6rem;
}

/* Consolidated CSS for the .icon class */
.icon {
    width: 24px;
    height: 24px;
    /* Inherit the parent's text color via the SVG's internal fill="currentColor" */
    color: inherit;
    /* Remove any potential box model interference */
    background: none !important;
    border: none !important;
    /* Optional: Improves alignment with text */
    vertical-align: middle;
}

/* INFORMACIÓN DEL CLUB */

.contenedor-informacion {
    text-align: center;
    margin-bottom: 1rem;
}

.informacion-enlace {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    /* Critical: prevents text/icon splitting */
    min-height: 48px;
    min-width: min-content;
    /* Ensures button stays together */
    font-size: 1.4rem;
    border-radius: 32px;
    padding: 12px 24px;
    background-color: var(--azulclaro);
    color: white;
    text-decoration: none;
    margin: 0 0.5rem 0.6rem 0;
    /* Added horizontal spacing */
    text-shadow: #303091;
}

/* NEW: Container for icon+text alignment */
.enlace-contenido {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space between icon and text */
}

/* NEW: Icon styling in CSS */
.icon {
    width: 1.2em;
    height: 1.2em;
    color: inherit;
    flex-shrink: 0;
    /* Prevents icon from shrinking */
}

/* Your existing hover and mobile styles */
.informacion-enlace:hover {
    color: var(--azuloscuro);
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.75);
    background-color: var(--pelota);
}

@media (max-width: 480px) {
    .informacion-enlace {
        display: flex;
        /* Changed from 'block' */
        margin: 1rem 10%;
        justify-content: center;
    }
}

/* Links a redes sociales home */
.links-rrss {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem auto;
}

.links-rrss a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.links-rrss a::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(45deg, var(--azulclaro), var(--pelota)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.links-rrss a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.links-rrss a:hover::after {
    opacity: 1;
}

.links-rrss img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

/* Estilos footer */
.footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: white;
    background-color: #434343;
    text-align: center;
    padding: 1rem;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer img {
    vertical-align: middle;
}

@media(min-width:481px) {
    .deputacionimg {
        margin-left: 1rem;
    }
}

@media(max-width:480px) {
    .footer img {
        margin-top: 0.8rem;
    }
}

/* A partir de ~700px
@media (max-width: 700px) {
    .footer {
        display:flex;
    }
    .footer-texto {
        flex-direction: row;
        align-items: center;
        justify-content:center;
    }
    
    .footer-imgdeputacion {
        flex-direction: row;
    }
} */

/* Secciones */

.contenedor-cabecera {
    height: 24rem;
}

.cabecera {
    position: absolute;
    left: 0px;
    right: 0px;
    color: var(--pelota);
    -webkit-text-stroke: 2px black;
    font-family: 'cp';
    font-size: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20rem;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.8;
}

.h1seccion {
    font-family: 'cp';
    -webkit-text-stroke: 1.4px black;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 50px;
    text-align: center;
    color: var(--pelota);
    background-color: var(--azuloscuro);
    font-size: 4rem;
    background-blend-mode: overlay;
    background-color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    /* 10% black = 90% opacity */
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

/* Mobile - stack with dash */
@media (max-width: 768px) {
    .h1seccion {
        flex-direction: column;
        align-items: center;
        gap: 0;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    .h1seccion {
        font-size: 2.5rem;
        /* Much smaller font size for mobile */
        padding: 30px 20px;
        /* Reduced padding */
        -webkit-text-stroke: 1px black;
        /* Thinner stroke for small text */
    }
}

@media (max-width: 400px) {
    .h1seccion {
        font-size: 2rem;
        /* Even smaller */
        padding: 25px 15px;
        /* Less padding */
    }
}

.h1seccion-texto {
    display: inline-block;
}

.h1seccion.padel {
    background-image: url('/img/seccion-padel.webp');
}

.h1seccion.ximnasio {
    background-image: url('/img/seccion-ximnasio.webp');
}

.h1seccion.tarifas {
    background-image: url('/img/seccion-tarifas.webp');
}

.h1seccion.horarios {
    background-image: url('/img/seccion-horarios.webp');
}

.h1seccion.reservas {
    background-image: url('/img/seccion-reservas.webp');
}

.h1seccion.cafeteria-tenda {
    background-image: url('/img/seccion-cafeteria-tenda.webp');
}

.h1seccion.patrocinadores-colaboradores {
    background-image: url('/img/seccion-patrocinadores-colaboradores.webp');
}

.h1seccion.como-chegar {
    background-image: url('/img/seccion-como-chegar.webp');
}

.h1seccion.contacto {
    background-image: url('/img/seccion-contacto.webp');
}

/* Estilos tarifas */
.tarifas-contenedor-principal {
    color: var(--tarifas-color-texto);
    /* background-color: var(--tarifas-color-fondo); */
    /* line-height: 1.6; */
    /* padding: 1rem; */
    max-width: 1200px;
    margin: 0 auto;
}

@media(max-width:420px) {
    .tarifas-contenedor-principal {
        margin-left:-1rem;
        margin-right:-1rem;
    }
}

/* ===== HEADER & NAVIGATION ===== */
.tarifas-cabecera {
    text-align: center;
    /* margin-bottom: 3rem; */
    /* padding-bottom: 1.5rem; */
    border-bottom: var(--tarifas-borde);
}

/* .tarifas-titulo-principal {
    color: var(--tarifas-color-primario);
    font-size: 2.5rem;
    margin-bottom: 1rem;
} */

.tarifas-navegacion-principal,
.tarifas-navegacion-interna {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    margin: 1.5rem 0; /* Separación selector tarifas pádel / Ximnasio (dejar como está) */
}

.tarifas-navegacion-principal a,
.tarifas-navegacion-interna a {
    color: var(--tarifas-color-primario);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0.5rem;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.tarifas-navegacion-principal a:hover,
.tarifas-navegacion-interna a:hover {
    border-color: var(--tarifas-color-primario);
    background-color: var(--tarifas-color-secundario);
}

/* ===== SECTIONS & ARTICLES ===== */
.tarifas-seccion {
    margin-bottom: 4rem;
}

.tarifas-seccion>h2 {
    color: var(--tarifas-color-primario);
    border-left: 5px solid var(--tarifas-color-acento);
    padding-left: 1rem;
    margin-top: 3rem;
}

.tarifas-articulo {
    background: white;
    border-radius: var(--tarifas-radio);
    padding: 0.6rem 0.6rem;
    margin: 2.5rem 0;
    box-shadow: var(--tarifas-sombra);
    border-top: 4px solid var(--tarifas-color-primario);
}

.tarifas-articulo h3 {
    color: var(--tarifas-color-primario);
    margin-top: 0;
    font-size: 1.5rem;
}

.tarifas-descripcion {
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
}

.tarifas-nota {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: var(--tarifas-borde);
}

/* ===== RESPONSIVE TABLES ===== */
.tarifas-tabla-contenedor {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--tarifas-radio);
    border: var(--tarifas-borde);
}

.tarifas-tabla {
    width: 100%;
    border-collapse: collapse;
    /* min-width: 600px; */
}

/* ===== OCULTAR TEXTO REPETIDO EN PC ===== */
@media screen and (min-width: 769px) {
    .tarifas-tabla strong.oculto {
        display: none;
    }
}

.tarifas-tabla thead {
    background-color: var(--tarifas-color-primario);
    color: white;
}

.tarifas-tabla th {
    padding: 1.1rem 1rem;
    text-align: left;
    font-weight: 600;
}

.tarifas-tabla tbody tr {
    border-bottom: var(--tarifas-borde);
    transition: background-color 0.2s;
}

.tarifas-tabla tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.tarifas-tabla tbody tr:hover {
    background-color: var(--tarifas-color-secundario);
}

.tarifas-tabla td {
    padding: 1rem;
    vertical-align: top;
}

.tarifas-tabla td:first-child {
    font-weight: 500;
}

.tarifas-tabla strong {
    color: var(--tarifas-color-primario);
    display: block;
    margin-bottom: 0.3rem;
}

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    .tarifas-contenedor-principal {
        padding: 0.75rem;
    }

    /* .tarifas-titulo-principal {
        font-size: 2rem;
    } */
    .tarifas-articulo {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .tarifas-navegacion-principal,
    .tarifas-navegacion-interna {
        gap: 0.75rem;
    }

    .tarifas-navegacion-principal a,
    .tarifas-navegacion-interna a {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }

    .tarifas-tabla th,
    .tarifas-tabla td {
        padding: 0.8rem;
    }

    /* ADD THESE NEW STYLES FOR TABLES: */
    .tarifas-tabla {
        font-size: 0.9rem;
    }

    .tarifas-tabla th,
    .tarifas-tabla td {
        padding: 0.6rem 0.5rem;
    }

    .tarifas-tabla td:first-child,
    .tarifas-tabla th:first-child {
        position: sticky;
        left: 0;
        background-color: inherit;
        z-index: 1;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .tarifas-tabla {
        font-size: 0.85rem;
    }

    .tarifas-tabla th,
    .tarifas-tabla td {
        padding: 0.5rem 0.4rem;
    }

    .tarifas-tabla td br {
        display: none;
        /* Prevent line breaks from taking too much space */
    }

    .tarifas-tabla td strong {
        display: inline;
        /* Change from block to inline to save space */
    }

    .tarifas-navegacion-principal a,
    .tarifas-navegacion-interna a {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* ===== ADAPTACIÓN A MÓVILES (VISTA TARJETAS) ===== */
@media screen and (max-width: 768px) {
    
    /* Ocultamos la cabecera original de la tabla */
    .tarifas-tabla thead {
        display: none;
    }

    /* Forzamos a que los elementos de la tabla se comporten como bloques */
    .tarifas-tabla, 
    .tarifas-tabla tbody, 
    .tarifas-tabla tr, 
    .tarifas-tabla td {
        display: block;
        width: 100%;
    }

    /* Diseñamos cada fila (<tr>) para que parezca una tarjeta */
    .tarifas-tabla tr {
        margin-bottom: 1.5rem;
        border: 1px solid #e0e0e0;
        border-radius: var(--tarifas-radio);
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        background-color: white !important; /* Evitamos el cebra (even/odd) en móvil para mayor claridad */
    }

    /* Flexbox en la celda para separar la etiqueta (izquierda) del valor (derecha) */
    .tarifas-tabla td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .tarifas-tabla td:last-child {
        border-bottom: none;
    }

    /* Inyectamos el texto del encabezado usando el atributo data-label del HTML */
    .tarifas-tabla td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--tarifas-color-primario);
        text-align: left;
        padding-right: 1rem;
        flex-shrink: 0; /* Evita que la etiqueta se encoja si el valor es largo */
    }

    /* Quitamos el margen inferior de la etiqueta strong (LUNS A VENRES) para alinear bien */
    .tarifas-tabla strong {
        display: inline;
        margin-bottom: 0;
    }
}

/* FIX TABLAS RESPONSIVE */
@media (max-width: 768px) {
    .tarifas-tabla-contenedor {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        width: calc(100% + 1.5rem);
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
    
    .tarifas-tabla {
        min-width: unset;
    }
}

/* Contenido secciones */

.contenidosecciones {
    text-align: center;
    line-height: 1.6;
    padding: 20px;
}

.contenidosecciones a {
    display: inline-block;
    background-color: #4CAF50;
    /* Green color - you can change this */
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    margin: 10px 5px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contenidosecciones a:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.contenidosecciones a:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contenidosecciones p {
    margin-top: 20px;
    color: #333;
    font-size: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Optional: Different colors for each button if desired */
.contenidosecciones a[href*="play.google.com"] {
    background-color: #4285F4;
    /* Google Play blue */
}

.contenidosecciones a[href*="apps.apple.com"] {
    background-color: #000000;
    /* Apple black */
}

.contenidosecciones a[href*="play.google.com"]:hover {
    background-color: #3367D6;
}

.contenidosecciones a[href*="apps.apple.com"]:hover {
    background-color: #333333;
}

/* ===== CONTACT FORM STYLES ===== */

/* Form container styling */
.contenedor2columnas form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form input groups */
.contenedor2columnas form>div {
    margin-bottom: 0.5rem;
}

/* Labels */
.contenedor2columnas label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--azuloscuro);
    font-size: 1.1rem;
}

/* Required field indicator */
.contenedor2columnas label[for]:has(+ input[required]),
.contenedor2columnas label[for]:has(+ textarea[required]) {
    position: relative;
}

.contenedor2columnas label[for]:has(+ input[required])::after,
.contenedor2columnas label[for]:has(+ textarea[required])::after {
    content: "*";
    color: #e74c3c;
    margin-left: 4px;
    font-size: 1.2rem;
}

/* Input fields and textarea */
.contenedor2columnas input[type="text"],
.contenedor2columnas input[type="email"],
.contenedor2columnas input[type="tel"],
.contenedor2columnas textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'fuentecontenido', Roboto, Arial, sans-serif;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Focus states */
.contenedor2columnas input[type="text"]:focus,
.contenedor2columnas input[type="email"]:focus,
.contenedor2columnas input[type="tel"]:focus,
.contenedor2columnas textarea:focus {
    outline: none;
    border-color: var(--azulclaro);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(68, 119, 195, 0.2);
}

/* Textarea specific */
.contenedor2columnas textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.5;
}

/* Checkbox styling */
.contenedor2columnas input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
    cursor: pointer;
    accent-color: var(--azulclaro);
}

.contenedor2columnas input[type="checkbox"]+label {
    display: inline;
    font-weight: normal;
    font-size: 1rem;
    cursor: pointer;
}

/* Privacy policy text */
.contenedor2columnas small {
    display: block;
    color: #666;
    line-height: 1.6;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f0f7ff;
    border-radius: 8px;
    border-left: 4px solid var(--azulclaro);
}

.contenedor2columnas small p {
    margin-bottom: 0.8rem;
}

.contenedor2columnas small strong {
    color: var(--azuloscuro);
}

/* Submit button */
.contenedor2columnas button[type="submit"] {
    background: linear-gradient(135deg, var(--azulclaro), var(--azuloscuro));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(68, 119, 195, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contenedor2columnas button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--pelota), #8bc34a);
    z-index: -1;
    transition: transform 0.5s ease;
    transform: scaleX(0);
    transform-origin: right;
    border-radius: 50px;
}

.contenedor2columnas button[type="submit"]:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.contenedor2columnas button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(68, 119, 195, 0.4);
}

.contenedor2columnas button[type="submit"]:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(68, 119, 195, 0.4);
}

/* Contact info column styling */
.columna2 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.columna2 p {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    padding: 0.8rem 1rem;
    background-color: #f0f7ff;
    border-radius: 12px;
    border-left: 4px solid var(--azulclaro);
}

.columna2 strong {
    color: var(--azuloscuro);
    font-size: 1.3rem;
    min-width: 30px;
    text-align: center;
}

.columna2 a {
    color: var(--azuloscuro);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.columna2 a:hover {
    color: var(--azulclaro);
    text-decoration: underline;
}

/* Mobile optimizations */
@media (max-width: 768px) {

    .contenedor2columnas input[type="text"],
    .contenedor2columnas input[type="email"],
    .contenedor2columnas input[type="tel"],
    .contenedor2columnas textarea {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .contenedor2columnas button[type="submit"] {
        width: 100%;
        padding: 1rem;
    }

    .columna2 p {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 1rem;
    }

    .columna2 strong {
        align-self: flex-start;
        margin-bottom: 0.3rem;
    }
}

/* Validation styling */
.contenedor2columnas input:invalid:not(:focus):not(:placeholder-shown),
.contenedor2columnas textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #e74c3c;
    background-color: #fff5f5;
}

/* Placeholder styling */
.contenedor2columnas ::placeholder {
    color: #999;
    font-style: italic;
}

/* Form success/focus enhancement */
.contenedor2columnas input:valid:focus,
.contenedor2columnas textarea:valid:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
    border-left: 3px solid #dc3545;
}

.privacy-error {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

input.error-field,
textarea.error-field {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

input[type="checkbox"].error-field {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

/* Botón Whatsapp */

/* Mantén tu clase base */
.boton-whatsapp {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s, background-color 0.3s;
}

/* Efectos hover */
.boton-whatsapp:hover {
    transform: scale(1.1);
}

/* Ajuste del SVG dentro */
.boton-whatsapp svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Título textos legales */
.titulo-textos-legales {
    text-align:center;
    padding: 1rem 0;
}

/* Estilos contenedor vídeo */

.video-wrapper {
    position: relative;
    width: 96%;
    max-width: 840px; /* Mantén tu tamaño máximo deseado */
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    
    /* --- EL FIX MAGICO AQUI --- */
    /* Forzamos la proporción 16:9 (horizontal estándar).
       Si tu vídeo tiene otra proporción, cámbiala.
       Ejemplos: 1 / 1 (cuadrado), 9 / 16 (vertical). */
    aspect-ratio: 16 / 9;
    /* --------------------------- */
  }

  @media(max-width:1000px) {
    .video-wrapper {
        margin: 0rem auto;
    }
  }

  @media(min-width:1001px) {
    .video-wrapper {
        margin: 2rem auto;
    }
  }
  
  video {
    /* Hacemos que el vídeo siempre ocupe el 100% de su wrapper proporconal */
    width: 100%;
    height: 100%; /* Forzamos la altura también */
    display: block;
    
    /* --- OTRO FIX IMPORTANTE --- */
    /* Esto asegura que el vídeo Y EL POSTER cubran todo el área
       del wrapper, sin estirarse ni deformarse. Actúa como
       background-size: cover; */
    object-fit: cover;
    /* --------------------------- */
  }
  
  /* El resto del CSS de la capa overlay y el icono sigue igual,
     funcionará perfecto sobre este nuevo layout */
  .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    transition: opacity 0.4s ease;
    z-index: 10; /* Asegura que el botón esté arriba */
  }
  
  .play-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
  }
  
  .play-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #000;
  }
  
  .video-wrapper.is-playing .play-overlay {
    opacity: 0;
    pointer-events: none;
  }

  /* --- Ajustes para pantallas móviles (menos de 768px) --- */
@media (max-width: 768px) {
  .play-icon {
    /* Reducimos el tamaño del círculo blanco */
    width: 50px;
    height: 50px;
  }

  .play-icon::after {
    /* Reducimos proporcionalmente el tamaño del triángulo negro */
    border-width: 10px 0 10px 18px;
    /* Ajustamos la posición para que siga pareciendo centrado */
    left: 55%; 
  }
}