﻿/* ============================================================================
   Estilos extraídos de index.html (P0.2 cleanup)
   Movidos del <style> inline al external stylesheet el 2026-08-16.
   ============================================================================ */


        /* === ANIMACIÓN PARA BOTÓN MACHACACACHAS === */
        @keyframes shine {
            0% {
                left: -50%;
            }
            100% {
                left: 150%;
            }
        }
        
        .btn-machacacachas-hero:hover {
            transform: scale(1.05) translateY(-3px);
            box-shadow: 0 15px 40px rgba(221, 47, 47, 0.7) !important;
        }
        
        .btn-machacacachas-hero:active {
            transform: scale(0.98);
        }
        
        @media (max-width: 768px) {
            .btn-machacacachas-hero {
                font-size: 1rem !important;
                padding: 1rem 1.75rem !important;
            }
            .btn-machacacachas-hero span span {
                font-size: 1rem !important;
            }
        }
        
        @media (max-width: 480px) {
            .btn-machacacachas-hero {
                font-size: 0.9rem !important;
                padding: 0.9rem 1.5rem !important;
            }
            .btn-machacacachas-hero span span {
                font-size: 1.2rem !important;
            }
        }
        
        /* === DISEÑO COMPLETO NUEVO DE TARJETAS === */
        
        /* Grid de rutas */
        .rutas-grid {
            display: grid;
            gap: 2rem;
            margin-top: 3rem;
        }
        
        @media (min-width: 1200px) {
            .rutas-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }
        
        @media (min-width: 768px) and (max-width: 1199px) {
            .rutas-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 767px) {
            .rutas-grid {
                grid-template-columns: 1fr;
            }
        }
        
        /* Tarjeta base */
        .ruta-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            text-decoration: none;
            color: inherit;
        }
        
        .ruta-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
        }
        
        /* Contenedor de imagen */
        .ruta-card-image {
            position: relative;
            width: 100%;
            height: 200px;
            background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
            overflow: hidden;
        }
        
        .ruta-card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center center;
            display: block;
        }
        
        .ruta-card:hover .ruta-card-image img {
            transform: scale(1.08);
            transition: transform 0.4s ease;
        }
        
        /* Badge de tipo (MTB, Carretera, etc) */
        .ruta-tipo-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            background: rgba(0, 0, 0, 0.85);
            color: white;
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 0.875rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
            backdrop-filter: blur(10px);
            z-index: 10;
        }
        
        /* Contenido de la tarjeta */
        .ruta-card-content {
            padding: 1.5rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        /* Header con título y badge de nivel */
        .ruta-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        
        .ruta-card-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #1a1a1a;
            line-height: 1.3;
            flex: 1;
        }
        
        .ruta-nivel-badge {
            background: #e0e0e0;
            color: #333;
            padding: 5px 10px;
            border-radius: 12px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            white-space: normal;
            text-align: center;
            line-height: 1.2;
            flex-shrink: 0;
            max-width: 100px;
        }
        
        .ruta-nivel-badge.badge-infantil {
            background: linear-gradient(135deg, #ff6b6b, #feca57);
            color: white;
        }
        
        .ruta-nivel-badge.badge-extreme {
            background: linear-gradient(135deg, #ee0979, #ff6a00);
            color: white;
        }
        
        .ruta-nivel-badge.badge-medium {
            background: linear-gradient(135deg, #4facfe, #00f2fe);
            color: white;
        }
        
        /* Información de la ruta */
        .ruta-card-info {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            margin-top: 0;
        }
        
        .ruta-info-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #666;
            font-size: 0.9rem;
        }
        
        .ruta-info-item svg {
            width: 18px;
            height: 18px;
            stroke-width: 2;
            flex-shrink: 0;
        }
        
        
        /* Descripción */
        .ruta-card-description {
            color: #666;
            font-size: 0.875rem;
            line-height: 1.5;
            margin-top: 0.75rem;
        }
        
        /* Colores específicos por tipo */
        .mtb-card {
            border-top: 4px solid #8B4513;
        }
        
        .carretera-card {
            border-top: 4px solid #2196F3;
        }
        
        .gravel-card {
            border-top: 4px solid #FF9800;
        }
        
        .dia-bicicleta-card {
            border-top: 4px solid #9C27B0;
        }
        
        /* Placeholder sin imagen */
        .ruta-card-image.no-image {
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-size: 4rem;
        }
        
        .badge-infantil {
            background: linear-gradient(135deg, #ff6b6b, #feca57);
            color: white;
        }

        /* Estilos para el banner de preinscripción de la escuela */
        .btn-escuela-cta:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
            background: #f8f8f8;
        }

        @media (max-width: 968px) {
            .escuela-banner-content {
                text-align: center;
            }

            .escuela-banner-text h2 {
                font-size: 2rem !important;
            }

            .escuela-banner-text > div:first-child {
                justify-content: center;
            }

            .escuela-banner-text > div:last-child {
                justify-content: center;
            }
        }

        @media (max-width: 768px) {
            .escuela-preinscripcion-banner {
                padding: 2rem 0 !important;
            }

            .escuela-banner-content {
                gap: 2rem !important;
            }

            .escuela-banner-text h2 {
                font-size: 1.5rem !important;
            }

            .escuela-banner-text p:first-of-type {
                font-size: 1rem !important;
            }

            .escuela-banner-text p:nth-of-type(2) {
                font-size: 1rem !important;
            }

            .escuela-banner-text > div:first-child span {
                font-size: 2rem !important;
            }

            .btn-escuela-cta {
                padding: 1rem 2rem !important;
                font-size: 1.1rem !important;
            }
        }
    


        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
    

/* ============================================================================
   Botón destacado Machacacachas (hero)
   Estado controlado por data-state="open" | "closed" desde JS.
   ============================================================================ */

#machacacachas-cta {
    margin: 2rem 0 1.5rem 0;
}

#machacacachas-cta[data-state="closed"] {
    display: none;
}

#machacacachas-cta .btn-machacacachas-hero {
    display: inline-block;
    background: linear-gradient(135deg, #dd2f2f 0%, #8b0000 100%);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(221, 47, 47, 0.5);
    transition: all 0.3s ease;
    letter-spacing: 1px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

#machacacachas-cta .cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

#machacacachas-cta .cta-icon {
    font-size: 1.5rem;
}

#machacacachas-cta .cta-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

