:root {
    --primary-red: #d32f2f;
    --dark-bg: #1a1a1a;
    --light-text: #f5f5f5;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    scroll-behavior: smooth;
}

/* Hero */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Capa oscura (gradiente) + Imagen de fondo */
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('../img/sedes/sedealmafuerte4.jpg');
    
    /* Propiedades clave para la imagen */
    background-size: cover;           /* La imagen cubre todo el contenedor */
    background-position: start;      /* La imagen se centra siempre */
    background-repeat: no-repeat;     /* Evita que la imagen se duplique */
    background-attachment: fixed;     /* Opcional: crea un efecto parallax elegante */
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    color: white;
    transition: all 0.5s ease;
}

.hero img{
    width: 50%;
}

.hero p{
    font-size: 2rem;
}

/* SECCION HISTORIA */
.about-section {
    padding: 100px ;
    background-color: #111; /* Un gris muy oscuro para contrastar con el negro puro */
    color: white;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
    align-items: center;
}

/* Columna Imagen */
.about-image {
    position: relative;
}

.about-image img {
    width: 70%;
    border-radius: 8px;
    box-shadow: 20px 20px 0px var(--primary-red); /* Efecto decorativo rojo */
}

.image-experience-badge {
    position: absolute;
    bottom: -20px;
    right: 12vw;
    background: var(--primary-red);
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.image-experience-badge span {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

.image-experience-badge p {
    font-size: 0.7rem;
    margin: 0;
    text-transform: uppercase;
}

/* Columna Texto */
.about-text h4.subtitle {
    color: var(--primary-red);
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.about-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.about-text h2 span {
    color: var(--primary-red);
}

.about-text p {
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 20px;
    text-align: justify;
}

.special-info {
    background: #1a1a1a;
    padding: 25px;
    border-left: 4px solid var(--primary-red);
    margin-top: 30px;
}

.special-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}




/* SECCION DISCIPLINAS */
/* Disciplinas Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 50px;
}

.card {
    background: #2a2a2a;
    padding: 30px;
    border-left: 5px solid var(--primary-red);
    transition: transform 0.3s;
}

.card:hover { transform: translateY(-10px); }


/* Contenedor de la cuadrícula */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 50px;
    background-color: #0a0a0a; /* Fondo muy oscuro como en la imagen */
}

/* Estilo de la Tarjeta */
.card {
    background: #151515; /* Gris oscuro del fondo del texto */
    border-radius: 8px;
    overflow: hidden; /* ¡CLAVE! Evita que la imagen se salga al agrandarse */
    transition: background 0.3s ease;
}

/* Contenedor de la imagen con degradado */
.card-image-container {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Suavizado del zoom */
}

/* Degradado negro en la parte inferior de la imagen */
.card-image-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, #151515, transparent);
}

/* EFECTO HOVER: Zoom a la imagen */
.card:hover .card-image-container img {
    transform: scale(1.1); /* Agranda la imagen un 10% */
}

/* Contenido de texto */
.card-content {
    padding: 25px;
}

.icon-wrapper {
    height: 50px;       /* Ajusta esta altura según tu diseño */
    display: flex;
    align-items: center; /* Centra el icono verticalmente */
    margin-bottom: 15px; /* Espacio antes del título h3 */
}

/* Estilo para las imágenes dentro del contenedor */
.icon-wrapper img {
    height: 100%;       /* La imagen ocupará el alto del contenedor */
    width: auto;        /* Mantiene la proporción */
    object-fit: contain;
}

.icon {
    font-size: 1rem;
    margin-bottom: 15px;
    color: white;
}

.card-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.card-content p {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Link Ver Detalles */
.ver-detalles-btn {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.ver-detalles:hover {
    color: var(--primary-red);
}

.ver-detalles span {
    transition: transform 0.3s;
}

.ver-detalles:hover span {
    transform: translateX(5px);
}


/* SECCION HORARIOS */
/* Sección General */
.practical-info {
    background-color: #050505; /* Un tono más oscuro para separar secciones */
    padding: 80px 50px;
    color: white;
}

.info-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* La tabla es un poco más ancha que el mapa */
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Encabezados de Sección */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.section-header h2 span {
    color: var(--primary-red);
}

.icon-circle {
    background: rgba(211, 47, 47, 0.1);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--primary-red);
}

/* Tabla de Horarios */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto', sans-serif;
}

.schedule-table th {
    text-align: left;
    color: var(--primary-red);
    font-size: 0.75rem;
    letter-spacing: 2px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.schedule-table td {
    padding: 20px 0;
    border-bottom: 1px solid #222;
    font-size: 0.95rem;
    color: #ccc;
}

.td-bold {
    color: white !important;
    font-weight: 700;
}

.td-red {
    color: var(--primary-red) !important;
}

/* Tarjeta de Mapa */
.map-card {
    background: linear-gradient(rgba(0, 0, 0, 0.612), rgba(0, 0, 0, 0.604)), url('../img/sedes/clubalmafuerte.jpg');

    /* PROPIEDADES CRÍTICAS QUE FALTABAN: */
    background-size: cover;       /* Hace que la imagen cubra todo el contenedor */
    background-position: center;  /* Centra la foto para que no se vea solo una esquina */
    background-repeat: no-repeat; /* Evita que la imagen se duplique si es chica */

    border: 1px solid #333;
    border-radius: 4px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5); /* Sombra interna para dar profundidad */
}

.map-placeholder {
    text-align: center;
    padding: 20px;
}

.map-marker {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

/* .map-placeholder p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 25px;
} */

.map-placeholder p {
    color: #ffffff; /* Cambiamos de #666 a blanco para que resalte sobre la foto */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8); /* Sombra de texto para legibilidad */
    font-size: 1.1rem; /* Un poco más grande */
    font-weight: 500;
    margin-bottom: 25px;
}

.map-button {
    display: inline-block;
    padding: 12px 25px;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.map-button:hover {
    background: var(--primary-red);
    color: white;
}

/* Responsivo para móviles */
@media (max-width: 900px) {
    .info-container {
        grid-template-columns: 1fr;
    }
}

/* SECCION FOOTER */
/* Footer General */
.main-footer {
    background-color: #050505;
    padding: 80px 50px 20px 50px;
    border-top: 1px solid #1a1a1a;
    color: #a0a0a0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
}

/* Columna Branding */
.footer-logo {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-logo span {
    color: var(--primary-red);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #151515;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-icon:hover {
    background: var(--primary-red);
}

/* Columna Títulos */
.main-footer h3 {
    color: var(--primary-red);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

/* Columna Contacto */
.footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact li a{
    color: #a0a0a0;
}
.footer-contact li a:hover{
    color: var(--primary-red);
}

/* Columna Boletín */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    background: #111;
    border: 1px solid #333;
    padding: 12px;
    color: white;
    border-radius: 4px;
    outline: none;
}

.newsletter-form button {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: filter 0.3s;
}

.newsletter-form button:hover {
    filter: brightness(1.2);
}

/* Bottom Copyright */
.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    text-align: center;
    font-size: 0.75rem;

}

.footer-bottom a, .footer-bottom p{
    color: #a0a0a0;
}
.footer-bottom a:hover, .footer-bottom p:hover{
    color: var(--primary-red);
}

/* Responsivo */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-links { justify-content: center; }
} 