/* ==========================================================================
   1. VARIABLES, RESET Y MAQUETACIÓN GLOBAL
   ========================================================================== */
:root {
    --cl-blue: #008006;
    --cl-blue-light: #05990c;
    --cl-green: #008006;
    --cl-dark: #1a1a1a;
    --cl-text: #4a4a4a;
    --cl-bg-gray: #f8f9fa;
    --cl-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.cl-wrapper {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--cl-text);
    background-color: #fff;
    overflow-x: hidden; /* Control total sobre desbordes móviles */
}

/* Contenedor estándar de la web para mantener el mismo ancho alineado */
.container-vicon {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ==========================================================================
   2. HERO SECCIÓN (DISEÑO FLUIDO)
   ========================================================================== */
.cl-hero {
    position: relative;
    min-height: 450px;
    height: 65vh; /* Proporción limpia según la pantalla */
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    padding: 40px 0;
    box-sizing: border-box;
}

.cl-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 100%), var(--bg-url);
    background-size: cover;
    background-position: center;
    filter: blur(1px);
    transform: scale(1.02);
    z-index: 1;
}

.cl-hero-content { 
    position: relative; 
    z-index: 2;
    max-width: 700px; 
    width: 100%;
}

.cl-tag { 
    color: var(--cl-blue-light); 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-weight: 700; 
    font-size: clamp(0.75rem, 1.5vw, 0.85rem); 
    display: inline-block;
    margin-bottom: 5px;
}

.cl-hero h1 { 
    font-size: clamp(1.8rem, 4.5vw, 3.5rem); /* Escalado perfecto en smartphones */
    line-height: 1.15; 
    margin: 15px 0; 
    font-weight: 800; 
}

.cl-hero-line { 
    width: 60px; 
    height: 5px; 
    background: var(--cl-green); 
    border-radius: 10px; 
}

/* ==========================================================================
   3. SECCIÓN MÁQUINAS (REJILLA ADAPTABLE)
   ========================================================================== */
.cl-main-section { 
    padding: clamp(50px, 8vw, 100px) 0; 
}

.cl-header-center { 
    text-align: center; 
    margin-bottom: 50px; 
}

.cl-section-title { 
    font-size: clamp(1.6rem, 4vw, 2.5rem); 
    color: var(--cl-dark); 
    font-weight: 800; 
    margin-bottom: 10px;
}

.cl-section-subtitle { 
    color: var(--cl-text); 
    font-size: clamp(0.95rem, 2vw, 1.1rem); 
}

.cl-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Evita que las tarjetas colapsen */
    gap: 30px;
}

.cl-product-card {
    background: #fff;
    border-radius: 20px;
    padding: clamp(25px, 4vw, 40px) clamp(20px, 3vw, 30px);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.cl-product-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--cl-shadow); 
    border-color: var(--cl-blue-light); 
}

.cl-img-container { 
    height: 220px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 25px; 
}

.cl-img-container img { 
    max-height: 100%; 
    max-width: 100%;
    object-fit: contain; 
}

.cl-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cl-card-body h3 { 
    font-size: 1.5rem; 
    color: var(--cl-dark); 
    margin-bottom: 15px; 
    font-weight: 700;
}

.cl-desc { 
    font-size: 0.95rem; 
    color: var(--cl-text); 
    line-height: 1.6; 
    margin-bottom: 20px; 
}

.cl-features-list { 
    list-style: none; 
    padding: 0; 
    margin-top: auto; /* Empuja la lista y footer hacia abajo uniformemente */
    margin-bottom: 30px; 
    text-align: left; 
}

.cl-features-list li { 
    margin-bottom: 12px; 
    font-size: 0.9rem; 
    color: var(--cl-dark); 
    font-weight: 600; 
    display: flex;
    align-items: flex-start;
}

.cl-features-list span { 
    color: var(--cl-green); 
    margin-right: 10px; 
    font-weight: bold;
}

/* BOTONES */
.cl-card-footer { 
    display: flex; 
    gap: 12px; 
}

.cl-btn { 
    flex: 1; 
    padding: 12px 8px; 
    border-radius: 8px; 
    font-weight: 700; 
    text-decoration: none; 
    font-size: 0.85rem; 
    transition: 0.3s ease; 
    text-align: center;
    box-sizing: border-box;
}

.cl-btn-primary { 
    background: var(--cl-blue); 
    color: #fff; 
}

.cl-btn-secondary { 
    border: 2px solid var(--cl-blue); 
    color: var(--cl-blue); 
    background: transparent;
}

.cl-btn:hover { 
    filter: brightness(1.1); 
    box-shadow: 0 4px 12px rgba(0,128,6,0.15);
}

/* ==========================================================================
   4. SECCIÓN APP CASHLOGY (DISEÑO GRID INTELIGENTE)
   ========================================================================== */
.cl-app-section {
    padding: clamp(40px, 8vw, 80px) 0;
    background-color: #fff;
    font-family: 'Open Sans', sans-serif;
}

.cl-app-container {
    display: grid;
    /* Distribución proporcional equilibrada para ordenadores */
    grid-template-columns: 1.2fr 0.8fr 1.2fr; 
    gap: 40px;
    align-items: start;
}

/* Bloque Izquierdo */
.cl-accent-title {
    color: var(--cl-green);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cl-app-subtitle {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--cl-dark);
}

.cl-app-desc {
    margin-bottom: 25px;
    line-height: 1.6;
}

.cl-app-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cl-app-checklist li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 14px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.cl-app-checklist li::before {
    content: "•";
    position: absolute;
    left: 5px;
    top: -2px;
    color: var(--cl-green);
    font-weight: bold;
    font-size: 22px;
}

/* Mockup Central */
.cl-app-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cl-app-mockup img {
    width: 100%;
    max-width: 260px; /* Tamaño optimizado del dispositivo central */
    height: auto;
    display: block;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.1));
}

/* Bloque Derecho (CTA) */
.cl-app-cta-box {
    display: flex;
    flex-direction: column;
}

.cl-cta-title {
    color: var(--cl-green);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 0; /* Eliminado el margen excesivo de 100px */
}

.cl-cta-desc {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.cl-btn-download {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--cl-green);
    color: var(--cl-green);
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    text-align: center;
    align-self: flex-start; /* Evita que el botón ocupe todo el ancho en PC */
}

.cl-btn-download:hover {
    background-color: var(--cl-green);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,128,6,0.2);
}

.cl-cta-extra-text p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Distribución de las Badges de Tiendas */
.cl-download-badges {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap; /* Permite que se apilen si no caben en pantallas intermedias */
}

.cl-download-badges img {
    height: 42px; /* Proporción exacta internacional */
    width: auto;
    border-radius: 6px;
    transition: transform 0.2s;
}

.cl-download-badges img:hover {
    transform: scale(1.04);
}

/* ==========================================================================
   5. MEDIA QUERIES (ADAPTACIÓN TABLETS Y SMARTPHONES)
   ========================================================================== */

/* Tablets Horizontales e Interfaces Medianas */
@media (max-width: 1024px) {
    .cl-app-container {
        grid-template-columns: 1fr 1fr; /* Cambia a 2 columnas para dar espacio */
        gap: 35px;
    }
    
    .cl-app-mockup {
        grid-column: 2;
        grid-row: 1 / 3; /* El teléfono flota a la derecha en tablets ocupando todo el alto */
    }
    
    .cl-app-text {
        grid-column: 1;
    }
    
    .cl-app-cta-box {
        grid-column: 1;
    }
    
    .cl-btn-download {
        align-self: flex-start;
    }
}

/* Teléfonos y Tablets Verticales */
@media (max-width: 768px) {
    .cl-hero {
        height: 55vh;
        min-height: 380px;
    }

    .cl-app-container {
        grid-template-columns: 1fr; /* Columna única total */
        text-align: center;
        gap: 40px;
    }
    
    /* Reajuste del orden estructural para móviles */
    .cl-app-text { order: 1; }
    .cl-app-mockup { order: 2; grid-column: auto; grid-row: auto; }
    .cl-app-cta-box { order: 3; grid-column: auto; }

    .cl-app-checklist {
        text-align: left;
        display: inline-block; /* Centra la lista pero mantiene la alineación del texto interno */
    }

    .cl-btn-download {
        align-self: center; /* Centrado del botón de descarga */
        width: 100%;
        max-width: 280px;
    }

    .cl-download-badges {
        justify-content: center; /* Centrado de los iconos App Store y Google Play */
    }
}

/* Smartphones muy pequeños (Modo Vertical Estricto) */
@media (max-width: 420px) {
    .cl-hero-content {
        text-align: center;
    }
    .cl-hero-line {
        margin: 0 auto;
    }
    .cl-card-footer {
        flex-direction: column; /* Apila botones Saber Más y PDF en teléfonos pequeños */
        gap: 10px;
    }
    .cl-btn {
        width: 100%;
    }
}