/* ==========================================================================
   1. VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
:root {
    --primary-purple: #4a148c;
    --btn-purple: #5836be;
    --btn-green: #25D366;
    --bg-gradient-top: #e0f7fa;
    --bg-gradient-bottom: #d1c4e9;
    --bg-green-brand: #3bbca8;
    --text-dark: #333;
    --white: #ffffff;
}

body {
    background: linear-gradient(to bottom, var(--bg-gradient-top), var(--bg-gradient-bottom));
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 1366px) {
    .container { max-width: 1000px; }
}

/* ==========================================================================
   2. HERO SECTION (BANNER PRINCIPAL)
   ========================================================================== */
.hero-brevete {
    height: auto;
    min-height: 600px;
    /* Altura mínima para PC */
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    background: linear-gradient(123.79deg, rgba(250, 255, 254, 0) 50.71%, rgba(255, 255, 255, 0.2) 52.17%),
        linear-gradient(280.42deg, rgba(59, 188, 168, 0.176) 13.12%, rgba(255, 251, 251, 0.2) 45.24%),
        linear-gradient(101.84deg, rgba(59, 188, 168, 0.384) 18.18%, rgba(238, 249, 247, 0.6) 46.15%),
        url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?q=80&w=1000&auto=format&fit=crop');
    background-size: cover;
    background-position: 50% 10%;
    padding: 100px 20px;
    text-align: center;
}

.hero-content h1 {
    color: var(--primary-purple);
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.btn {
    padding: 16px 45px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.btn-purple {
    background-color: var(--btn-purple);
}

.btn-green {
    background-color: var(--btn-green);
}

.subtitle {
    padding: 15px 0;
    color: #2E1A5F;
    margin-bottom: 40px;
    font-style: italic;
}

/* ESTADÍSTICAS */
.stats-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    padding: 30px 40px;
    align-items: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.stat-item {
    padding: 0 20px;
    text-align: center;
}

.stat-number {
    font-size: 4.6rem;
    font-weight: 700;
    color: var(--bg-green-brand);
    line-height: 1;
    display: block;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
}

.stat-desc {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    max-width: 150px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
}

.divider {
    width: 2px;
    height: 45px;
    background-color: #eee;
}

/* ==========================================================================
   3. TÍTULOS DE SECCIÓN (ARREGLADO)
   ========================================================================== */
/* --- ICONO MOTO BIIC (Swap Azul a Verde) --- */

.icono-moto-biic {
    width: 60px;
    /* Tamaño del icono */
    height: 60px;
    margin: 0 auto;
    /* Para centrarlo si es necesario */

    /* ESTADO NORMAL: MOTO AZUL */
    background-image: url('https://res.cloudinary.com/dtozni6ik/image/upload/f_auto,q_auto/v1769788854/002-bicitaxi-1_ul2toz.png');

    background-size: contain;
    /* Que la imagen entre completa sin cortarse */
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
    /* Suaviza el cambio */
}

/* ESTADO HOVER: Cuando pasas el mouse por la tarjeta */
/* IMPORTANTE: Reemplaza ".card" por la clase de tu tarjeta si se llama distinto */
.card:hover .icono-moto-biic {

    /* CAMBIO A: MOTO VERDE */
    background-image: url('https://res.cloudinary.com/dtozni6ik/image/upload/f_auto,q_auto/v1769788854/003-bicitaxi-2_ijeg45.png');

    transform: scale(1.1);
    /* Efecto de "zoom" ligero */
}

.category-section {
    position: relative;
    padding: 60px 0 20px;
    background: 
        linear-gradient(to bottom, rgba(224, 247, 250, 0.92), rgba(209, 196, 233, 0.92)),
        url('https://res.cloudinary.com/dtozni6ik/image/upload/f_auto,q_auto/v1770052294/imagen_2026-02-02_121134302_jufbvu.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.category-section > * {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-icon {
    font-size: 3rem;
    /* Icono grande */
    color: var(--primary-purple);
    margin-bottom: 15px;
    display: block;
}

.section-title {
    color: var(--primary-purple);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 2rem;
    line-height: 1.2;
    margin: 0;
}

/* ==========================================================================
   4. TARJETAS INTERACTIVAS (ACORDEÓN - AUTOVÍAS)
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
    align-items: start;
}

.license-card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

/* Interacción Hover */
.license-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    border-color: #3bbca8;
}

/* Cabecera Tarjeta */
.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    z-index: 2;
    background: white;
}

.col-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f0fdfa;
    /* Fondo suave */
    display: grid;
    place-items: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.icon-card {
    font-size: 2.5rem;
    color: #1e5a8e;
    transition: 0.3s;
}

.license-card:hover .col-icon {
    background: #e0f2f1;
    transform: scale(1.1);
}

.license-card:hover .icon-card {
    color: #3bbca8;
}

.license-card h3 {
    color: #1e5a8e;
    font-weight: 800;
    font-size: 1.3rem;
    margin: 0;
    text-transform: uppercase;
    text-align: center;
}

/* Cuerpo Acordeón */
.card-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease;
}

.license-card:hover .card-body {
    max-height: 500px;
    opacity: 1;
    margin-bottom: 20px;
}

.requirements-list strong {
    display: block;
    color: #3bbca8;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.requirements-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    text-align: left;
}

.requirements-list ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.requirements-list ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #25d366;
    font-weight: bold;
}

/* Botón Acción */
.btn-card-action {
    margin-top: auto;
    display: block;
    width: 100%;
    padding: 12px 0;
    border-radius: 10px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: transparent;
    color: #3bbca8;
    border: 2px solid #3bbca8;
}

.license-card:hover .btn-card-action {
    background-color: #25d366;
    color: white;
    border-color: #25d366;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.text-open {
    display: none;
}

.license-card:hover .text-closed {
    display: none;
}

.license-card:hover .text-open {
    display: inline-block;
}

/* ==========================================================================
   5. INFORMACIÓN ADICIONAL (RECUPERADO)
   ========================================================================== */
.info-section {
    padding: 60px 0 80px;
    position: relative;
    text-align: center;
    /* Fondo con imagen de carretera/conducción */
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.96) 0%, rgba(255, 255, 255, 0.74) 100%),
                url('https://res.cloudinary.com/dtozni6ik/image/upload/f_auto,q_auto/v1770040588/imagen_2026-02-02_085628525_plhjbg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.info-title {
    color: var(--primary-purple);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Grilla de Botones */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Botones Individuales - Más llamativos */
.info-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid var(--primary-purple);
    border-radius: 15px;
    padding: 20px 25px;
    text-decoration: none;
    color: var(--primary-purple);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(74, 20, 140, 0.15);
}

.info-btn i {
    font-size: 2rem;
    color: var(--btn-green);
    flex-shrink: 0;
    /* Para que el icono no se aplaste */
}

/* Hover de botones info - Efecto llamativo */
.info-btn:hover {
    background: linear-gradient(135deg, var(--primary-purple) 0%, #5836be 100%);
    border-color: var(--primary-purple);
    color: white;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(74, 20, 140, 0.3);
}

.info-btn:hover i {
    color: var(--btn-green);
    transform: scale(1.1);
}

.info-btn:hover i {
    color: var(--btn-green);
}

/* ==========================================================================
   6. UTILIDADES Y EXTRAS
   ========================================================================== */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* Se activa con JS */
.visible {
    opacity: 1;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--btn-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ========================================================================== 
   7.1 RESPONSIVE DESIGN (TABLET)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.6rem;
    }

    .stats-box {
        gap: 20px;
        padding: 25px;
    }
}

/* ==========================================================================
   7. RESPONSIVE DESIGN (CELULAR)
   ========================================================================== */
@media (max-width: 768px) {

    /* Hero */
    .hero-brevete {
        padding: 120px 20px 60px 20px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    /* Stats */
    .stats-box {
        flex-direction: column;
        gap: 30px;
    }

    .divider {
        display: none;
    }

    .stat-item {
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
        width: 100%;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    /* Títulos */
    .section-title {
        font-size: 1.5rem;
    }

    .header-icon {
        font-size: 2.5rem;
    }

    .info-title {
        font-size: 1.4rem;
        flex-direction: column;
    }

    /* Tarjetas y Grid */
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    /* Ajuste texto botones */
    .info-btn {
        font-size: 0.85rem;
        padding: 15px;
    }
}