/* ==========================================================================
   LAS RETADAS - ESTILOS ESPECÍFICOS
   Solo los estilos que no están en inde.css
   ========================================================================== */

/* Variables específicas de las retadas */
:root {
    --rosa-principal: #c2185b;
    --rosa-claro: #f8bbd9;
    --rosa-oscuro: #8e0038;
    --rosa-suave: #e91e63;
}

/* Hero específico para las retadas - mobile first */
.hero-retadas {
    position: relative;
    color: white;
    padding: 3rem 1rem 2.5rem;
    text-align: center;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(142, 0, 56, 0.85) 0%, rgba(194, 24, 91, 0.78) 100%),
        url('img/retadas1.webp') center 30% / cover no-repeat;
    overflow: hidden;
}

.hero-retadas::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 36px;
    background: linear-gradient(to bottom, transparent, var(--blanco));
    pointer-events: none;
}

.hero-retadas .container {
    position: relative;
    z-index: 1;
}

.hero-retadas h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle,
.hero-retadas p {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    margin: 0 auto 2rem;
    max-width: 640px;
    line-height: 1.55;
    opacity: 0.96;
}

/* Estadísticas del hero */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.12);
    padding: 1rem 0.6rem;
    border-radius: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.25s ease, background 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.18);
}

.stat-number {
    display: block;
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-label {
    font-size: clamp(0.7rem, 1.7vw, 0.85rem);
    opacity: 0.92;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Contenido principal */
.content-retadas {
    padding: 2.5rem 0 3.5rem;
}

.content-section {
    margin-bottom: 2.5rem;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.content-section h2 {
    color: var(--rosa-principal);
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.content-section p {
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: #2b2b2b;
}

.content-section a {
    color: var(--rosa-principal);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    font-weight: 500;
}

.content-section a:hover {
    color: var(--rosa-oscuro);
}

.content-section strong {
    color: var(--rosa-principal);
}

/* Imagen destacada en el contenido */
.imagen-destacada {
    margin: 1.5rem 0 2.5rem;
    text-align: center;
}

.imagen-destacada img {
    width: 100%;
    max-width: 720px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
}

/* Quote destacada */
.quote-destacada {
    background: linear-gradient(135deg, var(--rosa-claro) 0%, #fce4ec 100%);
    padding: 2rem 1.5rem 2rem 2.5rem;
    border-radius: 16px;
    border-left: 5px solid var(--rosa-principal);
    margin: 2rem 0;
    font-style: italic;
    position: relative;
    text-align: center;
    font-size: clamp(1.1rem, 2.8vw, 1.5rem);
    font-weight: 600;
    color: var(--rosa-oscuro);
    box-shadow: 0 8px 24px rgba(194, 24, 91, 0.08);
}

.quote-destacada::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 5rem;
    color: var(--rosa-principal);
    position: absolute;
    top: -12px;
    left: 1rem;
    line-height: 1;
    opacity: 0.7;
}

.quote-destacada p {
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Sedes de entrenamiento */
.sedes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .sedes-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
}

.sede-card {
    background: white;
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.sede-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--rosa-principal), var(--rosa-suave));
}

.sede-card:hover {
    transform: translateY(-4px);
    border-color: var(--rosa-claro);
    box-shadow: 0 14px 32px rgba(194, 24, 91, 0.18);
}

.sede-card h3 {
    color: var(--rosa-principal);
    margin: 0.25rem 0 1rem;
    font-size: 1.15rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.35;
}

.sede-card h3 i {
    color: var(--rosa-suave);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.sede-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sede-card li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.sede-card li::before {
    content: '✓';
    color: var(--rosa-principal);
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-weight: 700;
}

/* Ventajas grid */
.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

@media (min-width: 600px) {
    .ventajas-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.25rem;
    }
}

.ventaja-item {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    text-align: center;
    border: 2px solid transparent;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ventaja-item:hover {
    transform: translateY(-4px);
    border-color: var(--rosa-claro);
    box-shadow: 0 14px 28px rgba(194, 24, 91, 0.15);
}

.ventaja-item i {
    font-size: 2rem;
    color: var(--rosa-principal);
    margin-bottom: 0.75rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--rosa-claro), #fce4ec);
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 50%;
}

.ventaja-item h3 {
    color: var(--negro);
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.ventaja-item p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Galería - mosaic responsive */
.gallery-section {
    margin: 3rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-header {
    text-align: center;
    margin-bottom: 1.75rem;
    padding: 0 1rem;
}

.gallery-header h2 {
    color: var(--rosa-principal);
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    margin-bottom: 0.5rem;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.gallery-header p {
    color: #555;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    max-width: 560px;
    margin: 0 auto;
}

/* Galería estilo masonry: columnas CSS para que cada foto mantenga su proporción natural */
.gallery-grid {
    column-count: 1;
    column-gap: 0.75rem;
    padding: 0 0.5rem;
}

@media (min-width: 520px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 0.85rem;
    }
}

@media (min-width: 900px) {
    .gallery-grid {
        column-count: 3;
        column-gap: 1rem;
        padding: 0 1rem;
    }
}

@media (min-width: 1280px) {
    .gallery-grid {
        column-count: 4;
    }
}

.gallery-item {
    margin: 0 0 0.85rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    display: block;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(194, 24, 91, 0.25);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* Imagen en línea con texto */
.contenido-con-imagen {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
    align-items: center;
}

@media (min-width: 768px) {
    .contenido-con-imagen {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

.contenido-con-imagen img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* FAQ */
.faq-retadas {
    margin: 3rem 0;
}

.faq-retadas > p {
    margin-bottom: 1.5rem;
    color: #555;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: #fff;
    border: 1px solid #eee;
    border-left: 4px solid var(--rosa-principal);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.faq-item[open] {
    box-shadow: 0 10px 24px rgba(194, 24, 91, 0.12);
    transform: translateY(-2px);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: #1f1f1f;
    line-height: 1.4;
    min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.6rem;
    line-height: 1;
    color: var(--rosa-principal);
    font-weight: 300;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin-top: 0.85rem;
    color: #444;
    line-height: 1.65;
    font-size: 0.97rem;
}

.faq-item a {
    color: var(--rosa-principal);
    font-weight: 500;
}

/* CTA específico */
.cta-retadas {
    background: linear-gradient(135deg, var(--rosa-principal) 0%, var(--rosa-oscuro) 100%);
    color: white;
    padding: 2.75rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    margin: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(194, 24, 91, 0.25);
}

.cta-retadas::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-retadas::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-retadas h2,
.cta-retadas p,
.cta-retadas .btn-retadas {
    position: relative;
    z-index: 1;
}

.cta-retadas h2 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.cta-retadas p {
    margin-bottom: 1.75rem;
    opacity: 0.95;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-retadas {
    background: white;
    color: var(--rosa-principal);
    padding: 0.95rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.02rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    min-height: 48px;
    letter-spacing: 0.3px;
}

.btn-retadas::after {
    content: '→';
    font-size: 1.15rem;
    transition: transform 0.25s ease;
}

.btn-retadas:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

.btn-retadas:hover::after {
    transform: translateX(4px);
}

/* Responsive (small screens) */
@media (max-width: 540px) {
    .hero-retadas {
        padding: 2.5rem 0.75rem;
        min-height: 50vh;
    }

    .stats-grid {
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.75rem 0.5rem;
        border-radius: 12px;
    }

    .content-retadas {
        padding: 2rem 0 3rem;
    }

    .content-section {
        margin-bottom: 2rem;
    }

    .quote-destacada {
        padding: 1.75rem 1rem 1.5rem 1.5rem;
    }

    .quote-destacada::before {
        font-size: 3.5rem;
    }

    .cta-retadas {
        padding: 2.25rem 1rem;
        border-radius: 16px;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .gallery-section {
        margin: 2rem 0;
    }

    .gallery-header {
        padding: 0 0.5rem;
        margin-bottom: 1.25rem;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .gallery-item,
    .gallery-item img,
    .sede-card,
    .ventaja-item,
    .faq-item,
    .btn-retadas,
    .stat-card {
        transition: none;
    }

    .gallery-item:hover,
    .gallery-item:hover img,
    .sede-card:hover,
    .ventaja-item:hover,
    .btn-retadas:hover,
    .stat-card:hover {
        transform: none;
    }
}