/* --- Variables y Estilos Globales --- */
:root {
    --color-negro: #000000;
    --color-gris-oscuro: #111111;
    --color-rojo: #e42220;
    --color-texto: #EAEAEA;
    --fuente-titulos: 'Bebas Neue', sans-serif;
    --fuente-cuerpo: 'Roboto Condensed', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--fuente-cuerpo);
    line-height: 1.6;
    background-color: var(--color-negro);
    color: var(--color-texto);
    margin: 0;
    padding-top: 70px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.grid-layout { display: grid; gap: 30px; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.section-title {
    font-family: var(--fuente-titulos);
    font-size: 4rem;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 50px;
}

.gold-gradient-text {
    background: linear-gradient(to right, #fee765, #f7a422);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    fill-color: transparent;
}

.btn-cta {
    display: inline-block;
    background: linear-gradient(to right, #fee765, #f7a422);
    color: #000;
    padding: 15px 35px;
    font-family: var(--fuente-titulos);
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(247, 164, 34, 0.5);
}
.btn-red { background: var(--color-rojo); color: #fff; }
.btn-red:hover { box-shadow: 0 0 20px rgba(228, 34, 32, 0.5); }


/* --- Header y Navegación --- */
.header {
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.navbar { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-family: var(--fuente-titulos); font-size: 2.2rem; letter-spacing: 1px; color: var(--color-texto); }
.logo-sub { background: linear-gradient(to right, #fee765, #f7a422); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 1.5rem; }
.nav-links { list-style: none; display: flex; gap: 40px; }
.nav-links a { font-family: var(--fuente-titulos); font-size: 1.4rem; color: var(--color-texto); text-decoration: none; transition: color 0.3s ease; }
.nav-links a:hover { color: #f7a422; }

/* --- Secciones --- */
section { padding: 80px 0; }

/* Hero */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: url('../material/hero.jpg') no-repeat center center/cover;
}
.hero-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.9) 85%); }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 6rem; line-height: 1.1; margin-bottom: 20px; }
.hero p { font-size: 1.5rem; letter-spacing: 1px; max-width: 700px; margin: 0 auto 30px auto; }

/* Pilares */
.pillars { background-color: var(--color-gris-oscuro); }
.pillar-card { text-align: center; }
.pillar-card h4 { font-family: var(--fuente-titulos); font-size: 2rem; color: #f7a422; }

/* Galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 5px;
}
.gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    padding: 20px 10px 10px 10px;
    font-weight: 700;
    text-align: center;
    transition: opacity 0.3s ease;
}

/* Atletas */
.athletes { background-color: var(--color-gris-oscuro); }
.athletes .grid-layout { align-items: center; }
.athletes-image {
    background: url('../material/2.jpg') no-repeat center center/cover;
    min-height: 400px;
    border-radius: 5px;
}
.athletes .section-title { text-align: left; }

/* Contacto */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-info a { color: #f7a422; text-decoration: none; }
.social-links { display: flex; gap: 20px; margin-top: 20px; }
.social-links a { font-family: var(--fuente-titulos); font-size: 1.3rem; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: var(--color-gris-oscuro);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--color-texto);
    font-family: var(--fuente-cuerpo);
}

/* Footer */
.footer { background-color: #000; color: #777; text-align: center; padding: 30px 0; border-top: 1px solid #222; }
.footer a { color: #ccc; }

/* WhatsApp Fancy Button */
.whatsapp-fancy{position:fixed;bottom:20px;left:20px;background:#25d366;color:#fff;padding:12px 20px;font-family:var(--fuente-cuerpo);font-weight:bold;border-radius:50px;box-shadow:0 8px 16px rgba(0,0,0,.3);display:flex;gap:10px;align-items:center;z-index:9999;transition:background .3s, transform .2s}
.whatsapp-fancy:hover{background:#1ebe5d;transform:scale(1.05)}
.whatsapp-fancy i{font-size:1.5rem}

/* Responsividad */
@media (max-width: 768px) {
    body { padding-top: 60px; }
    .header { height: 60px; }
    .nav-links { display: none; }
    .hero h1 { font-size: 3.5rem; }
    .section-title { font-size: 2.5rem; }
    .contact-wrapper, .athletes .grid-layout { grid-template-columns: 1fr; }
    .athletes .section-title { text-align: center; }
}

/* --- Nueva Sección de Productos (Cards) --- */
.product-deck {
    background-color: var(--color-gris-oscuro);
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(247, 164, 34, 0.1);
}

.product-image-slider {
    /* Se eliminan las propiedades de flex y scroll */
    width: 100%;
    height: 300px; 
    cursor: pointer; /* Añadimos un cursor para indicar que es clickeable */
}

.product-image-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el área sin deformarse */
}

.product-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Para que el contenido ocupe el espacio restante */
}

.product-card-content h3 {
    font-family: var(--fuente-titulos);
    font-size: 1.8rem;
    color: #f7a422;
    margin-top: 0;
    margin-bottom: 10px;
}

.product-card-content p {
    font-size: 0.95rem;
    color: #ccc;
    flex-grow: 1; /* Empuja el precio y botón hacia abajo */
    margin-bottom: 20px;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-texto);
    margin-bottom: 20px;
}

/* CSS para que el botón ocupe el 100% del ancho */
.btn-whatsapp {
    width: 100%; /* Hace que el botón ocupe todo el ancho disponible */
    text-align: center; /* Centra el texto DENTRO del botón */
    font-size: 1.2rem;
    box-sizing: border-box; /* Buena práctica para que el padding no afecte el ancho total */
    /* La propiedad 'align-self: center;' se elimina para permitir que se estire */
}

/* --- Nuevo Banner de Descarga --- */
.cta-banner {
    position: relative;
    padding: 100px 0;
    background: url('../material/hero.jpg') no-repeat center center/cover;
    text-align: center;
    color: var(--color-texto);
}

.cta-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
}

.cta-banner-content {
    position: relative;
    z-index: 2;
}

.cta-banner h2 {
    font-family: var(--fuente-titulos);
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.cta-banner p {
    max-width: 600px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
    color: #ccc;
}

/* AJUSTE PARA DESCRIPCIÓN LARGA */
.product-card-content p {
    flex-grow: 1; /* Esto empuja el precio y el botón hacia abajo */
    margin-bottom: 20px;
    
    /* Magia para el scroll */
    max-height: 150px; /* Altura máxima antes de que aparezca el scroll */
    overflow-y: auto; /* El scroll solo aparece si el contenido excede la altura máxima */
    padding-right: 10px; /* Espacio para que el texto no choque con el scrollbar */
}

/* Estilo del scrollbar para que se vea bien en temas oscuros (funciona en Chrome/Safari/Edge) */
.product-card-content p::-webkit-scrollbar {
    width: 8px;
}
.product-card-content p::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}
.product-card-content p::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
    border: 2px solid #2a2a2a;
}
.product-card-content p::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}

/* AJUSTE PARA PRECIO REGULAR Y DE OFERTA */
.product-price-container {
    display: flex;
    align-items: baseline;
    gap: 15px; /* Espacio entre los dos precios */
    margin-bottom: 20px;
}

.regular-price {
    font-size: 1.1rem;
    color: #888;
    text-decoration: line-through; /* Tacha el precio antiguo */
}

.offer-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-dorado); /* Destaca el precio de oferta con el color dorado */
}