/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #F2FAEC; /* verde muy claro */
    color: #333;
}

/* HEADER */
header {
    background-color: #2B4A1D; /* verde oscuro */
    color: white;
    padding: 20px 0;
    text-align: center;
}


header .logo {
    display: flex;
    align-items: center;
    justify-content: center; /* centra todo horizontalmente */
    gap: 15px; /* espacio entre logo, título y mascota */
}

header .logo h1 {
    margin: 0;
    font-size: 3.5rem;
    color: #D6F200; /* amarillo lima */
}

/* Imágenes en el logo */
.logo-img,
.mascota-img {
    height: 50px;
    width: auto;
}


nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #6AB42F; /* verde medio */
}

/* Hero Section */
.hero {
    background: url('path_to_your_image.jpg') no-repeat center center/cover;
    color: #fff;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px; /* Agregamos padding para mejor visualización en pantallas pequeñas */
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); /* Agrega sombra a las letras para mayor legibilidad */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* Agrega sombra ligera para texto */
}

.hero-buttons .btn {
    background-color: #6AB42F; /* verde medio */
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    margin: 5px;
    border-radius: 5px;
}

.hero-buttons .btn:hover {
    background-color: #2B4A1D; /* verde oscuro */
}

/* About Section */
.about {
  padding: 80px 20px;
  background-color: #ffffff;
  color: #1a1a1a;
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  max-width: 1200px;
  margin: 0 auto;
}

.about-intro {
  text-align: center;
  margin-bottom: 60px;
}

.about-intro h2 {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.about-intro p {
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 750px;
  margin: 0 auto;
  color: #555;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 0 20px;
}

/* Estilo base de las tarjetas */
.value-card {
  border-radius: 12px;
  padding: 24px 20px;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
  color: #1a1a1a;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  border: 1px solid transparent;
}

.value-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  transform: translateY(-4px);
}

/* Colores por tarjeta */
.card-pasion {
  background-color: #ffe3e3;
  border-color: #ffcccc;
}

.card-colaboracion {
  background-color: #e3f2fd;
  border-color: #bbdefb;
}

.card-responsabilidad {
  background-color: #e8f5e9;
  border-color: #c8e6c9;
}

.card-solidaridad {
  background-color: #f3e5f5;
  border-color: #e1bee7;
}

.card-educativo {
  background-color: #fffde7;
  border-color: #fff9c4;
}

.card-disfrute {
  background-color: #e0f7fa;
  border-color: #b2ebf2;
}

.card-pertenencia {
  background-color: #ede7f6;
  border-color: #d1c4e9;
}



/* Classes Section */
.classes {
    background-color: #EAF7E2; /* verde muy claro */
    padding: 40px;
    color: #333; /* Texto negro para contraste */
    text-align: center;
}

.classes h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.testimonials blockquote {
    font-size: 1.2rem;
    margin-top: 20px;
    font-style: italic;
    color: #555; /* Texto en gris para las citas */
}


.classes-title {
    font-size: 1.55em;
    margin-bottom: 30px;
    color: #222;
}

.evento-lista {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 700px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* distribuye en columnas */
    gap: 12px 24px; /* espacio entre filas y columnas */
    justify-content: center;
}

.evento-lista li {
    font-size: 1.1em;
    position: relative;
    padding-left: 20px;
    text-align: left;
}

.evento-lista li::before {
    content: "➤";
    position: absolute;
    left: 0;
    color: #6BA539;
    font-size: 0.85em;
    top: 2px;
}

.evento-lista-notas {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #333;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: #EAF7E2; /* verde muy claro */
  border-left: 4px solid #6AB42F; /* verde medio */
  border-right: 4px solid #6AB42F; /* verde medio */
  border-radius: 8px;
  padding: 1rem 1.5rem;
}



/* Join Form */
.join {
    display: none;
    padding: 40px;
    background-color: #fff;
    text-align: center;
    color: #333; /* Texto negro para contraste */
}

.join form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.join form label {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
}

.join form input,
.join form select,
.join form button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.join form button {
    background-color: #6AB42F; /* verde medio */
    color: #fff;
    cursor: pointer;
}

.join form button:hover {
    background-color: #2B4A1D; /* verde oscuro */
}

/* BUTTONS */
.btn {
    background-color: #6AB42F; /* verde medio */
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #2B4A1D; /* verde oscuro */
}

/* Footer */
footer {
    background-color: #2B4A1D; /* verde oscuro */
    color: #fff;
    padding: 20px;
    text-align: center;
}

footer .socials a {
    color: #D6F200; /* amarillo lima */
    text-decoration: none;
    margin: 0 10px;
}

footer .socials a:hover {
    text-decoration: underline;
    color: #fff;
}

/* Estilo para las clases */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.class-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.class-card:hover {
    transform: scale(1.02);
}

.class-card h3 {
    margin-bottom: 10px;
    color: #6AB42F; /* verde medio */
}

.class-card p {
    margin-bottom: 8px;
}

/* Estilo para el contenedor de la tabla */
.schedule-table-container {
    overflow-x: auto;
    margin-top: 30px;
}

/* ============================= */
/* HORARIO / SCHEDULE STYLING   */
/* ============================= */

.schedule-table-container {
    overflow-x: auto;
    margin: 40px auto;
    max-width: 1000px;
    padding: 0 20px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    font-size: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.schedule-table thead {
    background-color: #6AB42F; /* verde medio */
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
}

/* Solo la primera columna del cuerpo de la tabla (horas) */
.schedule-table tbody td:first-child {
    background-color: #EAF7E2 !important; /* verde muy claro */
    font-weight: bold;
    color: #2B4A1D; /* verde oscuro */
    text-align: center;
    width: 120px;
}


.schedule-table th,
.schedule-table td {
    padding: 20px 15px;
    text-align: center;
    border: 1px solid #eee;
}

.schedule-table td:not(:empty) {
    background-color: #F2FAEC; /* verde claro */
    color: #333;
    font-weight: 500;
    transition: background 0.3s;
}

.schedule-table td:not(:empty):hover {
    background-color: #D6F200; /* amarillo lima */
    color: #2B4A1D; /* verde oscuro */
}

.schedule-table td small {
    display: block;
    font-size: 0.8rem;
    color: #555;
    margin-top: 4px;
}


@media (max-width: 768px) {
    #mobile-schedule-view {
        padding: 20px;
        max-width: 600px;
        margin: 0 auto;
    }

    .day-block {
        margin-bottom: 30px;
        background: #F2FAEC;
        border-left: 5px solid #6AB42F;
        padding: 15px 20px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    .day-block h4 {
        color: #2B4A1D;
        margin-bottom: 10px;
        font-size: 1.2rem;
    }

    .class-item {
        margin-bottom: 10px;
    }

    .class-item strong {
        display: block;
        color: #6AB42F;
    }



    .badge {
        display: inline-block;
        margin-top: 4px;
        padding: 2px 6px;
        font-size: 0.75rem;
        background-color: #6AB42F;
        color: white;
        border-radius: 4px;
    }

    .badge.estandar {
        background-color: #007BFF;
    }

    .badge.freestyle {
        background-color: #E83E8C;
    }
}



/* Overlay para quitar acceso a horario */
  #overlay-horario {
    position: fixed;
    inset: 0;
    background-color: rgba(255,255,255,0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }

  #overlay-horario .mensaje {
    font-size: 1.1em;
    color: #333;
    text-align: center;
    background: #F2FAEC;
    border: 1px solid #6AB42F;
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }

  #overlay-horario button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1em;
    background-color: #6AB42F;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  #overlay-horario button:hover {
    background-color: #2B4A1D;
  }

  #thank-you-message {
    display: none;
    max-width: 400px;
    margin: 60px auto;
    padding: 0;
    color: inherit;
    text-align: center;
    font-size: 1em;
  }

  /* Badge base */
.schedule-table td small.badge {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
}

/* Lugares */
.badge.torrejon { background-color: #6AB42F; } /* verde medio */
.badge.alcala   { background-color: #2B4A1D; } /* verde oscuro */

/* Intensidad por tipo */
.badge.freestyle { filter: brightness(1.2); }        /* más intenso */
.badge.competicion { filter: sepia()  }        /* más intenso */
.badge.estandar  { filter: brightness(1); }      /* más suave */


.badge[title] {
    position: relative;
    cursor: help;
}

.badge[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2B4A1D;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 999;
    opacity: 1;
}


/* ==== TARIFAS ==== */
#tarifas {
  text-align: center;
  margin: 3rem auto;
  max-width: 1000px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

#tarifas h2 {
  color: #2B4A1D; /* verde oscuro */
  font-size: 2.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

#tarifas h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #444;
  font-size: 1.4rem;
  border-bottom: 2px solid #6AB42F; /* verde medio */
  display: inline-block;
  padding-bottom: 4px;
}

.tarifas-grid {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tarifa-card {
  background: #F2FAEC; /* verde claro */
  border: 2px solid #6AB42F; /* verde medio */
  border-radius: 16px;
  padding: 1.5rem;
  width: 250px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tarifa-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.tarifa-card h3 {
  color: #2B4A1D; /* verde oscuro */
  margin-bottom: .5rem;
  font-size: 1.2rem;
}

.tarifa-card p {
  margin: 0.5rem 0;
  color: #333;
  font-size: 0.95rem;
}

.tarifa-card span {
  display: block;
  font-size: 1.6rem;
  font-weight: bold;
  margin-top: 1rem;
  color: #6AB42F; /* verde medio */
}

.tarifas-notas {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #333;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: #EAF7E2; /* verde muy claro */
  border-left: 4px solid #6AB42F; /* verde medio */
  border-radius: 8px;
  padding: 1rem 1.5rem;
}

