html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to bottom, #440000ef 20%, #640000e7 30%, #bd0909cb 50%, #4b0000 80%); 
    /* El rojo oscuro ocupa menos espacio y se difumina antes */
    color: #ffdfba;
    line-height: 1.6;
    text-align: center;
}


/* Estilos generales del carrusel */
.carrusel {
    position: relative;
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

/* Contenedor de imágenes */
.carrusel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

/* Imágenes del carrusel */
.slide {
    flex: 0 0 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
}

/*  Capa negra semitransparente encima de la imagen */
.overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.548); /* Fondo negro transparente */
    z-index: 1; /* Coloca la capa sobre la imagen */
}

/*  Texto minimalista centrado por encima de todo */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-family:'Times New Roman';
    z-index: 2; /* Asegura que el texto esté por encima del fondo negro */
    width: 80%;
}

.overlay h2 {
    font-size: 5em;
    font-weight: bold;
    margin: 0;
    color: #ffecd7;
    font-family: 'Britannic bold';
}

.overlay p {
    font-size: 2.5em;
    margin-top: 10px;
    color: #ddbf9c;
    font-family: 'BODONI MT';
}

/* Botones del carrusel */
button.prev {
    left: 20px;
    position:absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(121, 121, 121, 0.212);
    color: rgba(255, 255, 255, 0.473);
    border:#947e6098;
    font-size: 2.5em;
    padding: 15px;
    cursor: pointer;
    z-index:5%;
    border-radius: 20%;
}

button.next {
    right: 20px;
    position:absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(121, 121, 121, 0.212);
    color: rgba(255, 255, 255, 0.473);
    border:#947e6098;
    font-size: 2.5em;
    padding: 15px;
    cursor: pointer;
    z-index:5%;
    border-radius: 20%;
}

button:hover {
    background-color: #83705f70;
    color:#e7ceb2c0;
}
/* Indicadores del carrusel */
.indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
}

.indicators span {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicators span.active {
    background-color: #ffdfba;
}


/* Header */
.header {
    background-color: #6d1010; /* Rojo oscuro */
    padding: 10px 0;
    text-align: center;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.title {
    font-size: 1.5em;
    margin: 0;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    font-family: 'Impact';
    color: #ffdfba
}

.menu li {
    display: inline-block;
    letter-spacing: 1.5px;
}

.menu a {
    text-decoration: none;
    color:#fde7ce;
    padding: 10px 15px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.menu a:hover, .menu a.active {
    border-bottom: 2px solid hsl(36, 100%, 80%); /* Naranja rojizo */
}

/* Hero Section */
.hero {
    background-color: #d3d3d3; /* Gris claro */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 50px 20px;
    text-align: center;
}

.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    font-size: 2.5em;
    color: #800000; /* Rojo oscuro */
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background-color: #800000;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #ff4500;
}

.hero-image {
    max-width: 45%;
}

.hero-image .responsive-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
/* Sección de introducción */
.intro {
    background-color: #ffffff; /* Blanco */
    padding: 50px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.intro-text {
    max-width: 50%;
}

.intro-text h2 {
    color: #800000; /* Rojo oscuro */
}

.intro-text ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.intro-text ul li {
    margin-bottom: 10px;
    line-height: 1.4;
}

.button-secondary {
    display: inline-block;
    background-color: #ffc997;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.button-secondary:hover {
    background-color: #ff6347; /* Rojo claro */
}

.intro-image {
    max-width: 45%;
}

.intro-image .responsive-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.clubes {
    margin: 50px auto;
    max-width: 90%;
    padding: 20px;
    background-color: #ffecd7;
    border-radius: 10px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
}

.clubes h2 {
    text-align: center;
    color: #800000;
    font-family: 'Britannic bold';
    font-size:30px;
    margin-bottom: 25px;
    text-shadow: 4px 4px 10px rgba(141, 47, 47, 0.8); /* Sombra más fuerte */
    -webkit-text-stroke: 0.5px rgb(102, 51, 15); /* Delineado negro más grueso */
    letter-spacing: 1.3px; /
}

.club-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    background-color: #ffecd7;
}
.club-card {
    width: 300px;
    height: 200px;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden; /* ← este es el que evita que se salga */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  }
  
.club-card:hover .info-overlay {
    transform: translateY(0); /* Muestra la información al pasar el mouse */
}
.club-card:hover {
    transform: scale(1.03);
  }

.club-card img {
    width: 100%; /* La imagen ocupa todo el ancho del contenedor */
    height: 100%; /* La imagen ocupa todo el alto del contenedor */
    object-fit: cover; /* Ajusta la imagen para que llene el espacio sin deformarse */
    display: block;

    image-rendering: auto; /* Evita márgenes adicionales */
}
.club-card img[src*="basquetprin"] {
    object-position: center 40%;
  }
  .club-card img[src*="beisbolprin"] {
    object-position: center 43%;
  }
  .club-card img[src*="taekwondoprin"] {
    object-position: center 36%;
  }
  .club-card img[src*="ameprin"] {
    object-position: center 30%;
 
 }
 .club-card img[src*="voleiprin"] {
    object-position: center 30%;
 }
 .club-card img[src*="porriprin"] {
    object-position: center 30%;
 }
 .club-card img[src*="danzaprin"] {
    object-position: center 30%;
 }
 .club-card img[src*="vocalprin"] {
    object-position: center 30%;
 }
 .club-card img[src*="escprin"] {
    object-position: center 30%;
 }
 .club-card img[src*="luchaprin"] {
    object-position: center 30%;
 }
 .club-card img[src*="artesprin"] {
    object-position: center 30%;
 }
 .club-card img[src*="aereaprin"] {
    object-position: center 30%;
 }
 .club-card img[src*="futprin"] {
    object-position: center 10%;
 }
 .club-card img[src*="tochoprin"] {
    object-position: center 15%;
 }
.info-overlay {
    position: absolute; /* Se superpone a la imagen */
    bottom: 0; /* Se alinea al fondo del contenedor */
    left: 0; /* Alineado al borde izquierdo */
    width: 100%; /* Cubre todo el ancho de la tarjeta */
    height: 300px; /* Altura del sombreado (ajústalo según necesites) */
    background-color: rgba(0, 0, 0, 0.2); /* Fondo oscuro translúcido */
    color: rgb(255, 239, 225); /* Texto blanco */
    text-align: center; /* Centra el texto horizontalmente */
    font-family:Verdana, Geneva, Tahoma, sans-serif; /* Fuente limpia y formal */
    font-size: 1.2em; /* Tamaño del texto */
    font-weight: bold; /* Negrita para destacar */
    line-height: 350px; /* Centra el texto verticalmente */
    z-index: 2; /* Asegura que esté por encima de la imagen */
}

.club-card h3 {
    font-size: 1.3em; /* Tamaño más grande */
    font-weight: bold; /* Hace el texto más grueso */
    color: rgb(255, 224, 199);
    font-family:'Impact' !important;
    margin-bottom: 7px;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.8); /* Sombra más fuerte */
    -webkit-text-stroke: 0.5px rgb(133, 88, 56); /* Delineado negro más grueso */
    letter-spacing: 0.2px; /* Espaciado entre letras para mayor claridad */
}

.club-card {
    position: relative; /* Necesario para posicionar correctamente el overlay */
    overflow: hidden; /* Evita que el contenido sobresalga del contenedor */
    border-radius: 10px; /* Bordes redondeados */
    width: 300px; /* Ancho de la tarjeta */
    height: 200px; /* Altura de la tarjeta (ajústala según necesites) */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Sombra para el contenedor */
    margin: 30px; /* Espaciado entre tarjetas */
    background-color: #fff; /* Fondo blanco por si la imagen no carga */
    cursor: pointer;
}

.club-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

.club-card a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.club-card a:hover {
    text-decoration: underline;
}


.club-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.club-card {
    background-color: rgb(255, 234, 195);
    border: 2px solid #fff7ec;
    border-radius: 8px;
    width: 300px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.club-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.club-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.club-card h3 {
    color: white;
    margin-bottom: 10px;
}

.club-card p {
    margin: 10px 0;
}

.club-card .button {
    display: inline-block;
    background-color: white;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.club-card .button:hover {
    background-color: #ff4500;
}

/* Sección de Eventos */
.eventos {
    background-color: white;
    padding: 50px 20px;
    text-align: center;
}

.event-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.event-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    width: 300px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.event-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.event-content h3 {
    color: #800000;
    margin-bottom: 10px;
}

/* Sección de Contacto */
.contacto {
    background-color: #f0f0f0;
    padding: 50px 20px;
    text-align: center;
}

.contacto form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #800000;
    outline: none;
}

button {
    display: inline-block;
    background-color: #800000;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Footer */
footer {
    background-color: #6d1010;
    color: rgb(255, 247, 236);
    text-align: center;
    padding: 20px;
    font-family:'Impact';
    letter-spacing: 0.4px; /* Espaciado entre letras para mayor claridad */
}

footer p {
    margin: 10px 0;
    text-align: center;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 3px;
}

footer img{
    margin-top: 7px;
}

/* ESTILOS PARA MÓVILES */
@media (max-width: 768px) {
    .logo {
      max-width: 120px;
      margin-bottom: 10px;
    }
  
    .overlay h2 {
      font-size: 1.8em;
    }
  
    .overlay p {
      font-size: 1.1em;
    }
  
    .club-card {
      width: 90%;
      height: auto !important;
      margin: 10px auto;
    }
  
    .info-overlay {
        height: 100%;
        line-height: normal;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.2);
        padding: 0 10px;
        text-align: center;
    }
    
    .info-overlay h3 {
        font-size: 1.2em;
        word-wrap: break-word;
        line-height: 1.4;
    }
    
    .menu {
      flex-direction: column;
      gap: 10px;
    }
  
    .menu a {
      padding: 8px 12px;
      font-size: 1em;
    }
  
    button.prev, button.next {
      font-size: 1.8em;
      padding: 10px;
    }
  
    .overlay {
      width: 90%;
    }
  }
  
