/* =====================================================
   Estilos completos para VHAO System
   - Archivo: style.css
   - Contiene: estilos generales, header, hero, sección productos,
     cards, botones, slider interno, responsive y ajustes para
     reducir espacio entre texto e imagen dentro del card.
   - Comentarios incluidos para cada bloque.
   ===================================================== */

/* --- Estilos Generales --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Contenedor principal centrado */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header / Navegación --- */
/* Header sticky en la parte superior con separación y borde */
header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    transition: box-shadow 0.3s ease;
}

header .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #444;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

/* Navegación principal */
header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

header nav li {
    margin-left: 30px;
}

header nav a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
}

/* --- Hero — solo texto --- */
.hero {
    padding: 60px 0 40px;
}

.hero-text .brand {
    font-weight: bold;
    color: #555;
    font-size: 1.1em;
}

.hero-text h1 {
    font-size: 3.2em;
    margin: 10px 0;
    line-height: 1.05;
    color: #222;
}

.hero-text p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
}

/* CTA principal */
.cta-button {
    display: inline-block;
    background-color: #2522d6;
    color: #ffffff;
    padding: 14px 32px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.cta-button:hover  { background-color: #3022b6; }
.cta-button.active { background-color: #444; color: #fff; }

/* --- Botón Descargar (estilo base) --- */
/* Clase base para botones de descarga (usada en varios lugares) */
.download-btn {
    background-color: #0a8510;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    color: #fff !important;
    transition: 0.2s ease;
    border: none;
}
.download-btn:hover { background-color: #0b6f0d; }

/* =====================================================
   SECCIÓN PRODUCTOS
   ===================================================== */

/* Contenedor de la sección productos con decoraciones */
.productos-section {
    padding: 48px 0 80px;
    position: relative;
    overflow: visible;
}

/* Elementos decorativos circulares */
.productos-section::before,
.productos-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 4px solid #f97316;
    pointer-events: none;
}

.productos-section::before {
    width: 220px; height: 220px;
    bottom: -90px; left: -90px;
    opacity: 0.35;
}

.productos-section::after {
    width: 150px; height: 150px;
    top: -40px; right: 40px;
    opacity: 0.25;
}

/* --- Grid controlado para cards --- */
/* Ajusta gap para controlar separación entre cards */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 18px; /* reducido para acercar cards entre sí */
    align-items: start;
}

/* =====================================================
   CARD (producto-card)
   - Hacemos los cards más largos y compactos verticalmente
   - Ajustes para reducir separación entre texto e imagen
   ===================================================== */

/* Card base: mayor altura mínima para que quepa todo */
.producto-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.06);
    padding: 24px;           /* reducido para acercar contenido */
    min-height: 520px;       /* reducido desde 640px para compactar */
    display: flex;
    flex-direction: column;  /* texto arriba, imagen abajo */
    justify-content: flex-start; /* no distribuir con mucho espacio */
    gap: 12px;               /* menos espacio entre bloques internos */
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.18s ease;
}

.producto-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    transform: translateY(-6px);
}

/* Bloque de información (título, párrafo, botones) */
.producto-info {
    flex: 0 0 auto;
    margin-bottom: 4px; /* pequeño margen para acercar al slider */
}

.producto-info h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #111;
    margin: 0 0 6px 0; /* menos margen inferior */
    letter-spacing: 0.4px;
}

.producto-info p {
    font-size: 1.02rem;
    color: #555;
    margin: 0 0 8px 0; /* menos separación entre texto y botones */
    line-height: 1.5;
}

/* =====================================================
   BOTONES DENTRO DEL CARD (agrupación y estilos)
   ===================================================== */

/* Contenedor de botones dentro del card */
.producto-buttons {
    display: flex;
    gap: 10px; /* menos gap para acercar botones entre sí */
    align-items: center;
    margin-top: 6px; /* reducido */
    flex-wrap: nowrap;
}

/* Asegura que los botones compartan espacio y se vean consistentes */
.producto-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

/* Botón EXPLORAR (azul) */
.btn-explorar {
    background-color: #2522d6;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(37,34,214,0.08);
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.btn-explorar:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37,34,214,0.12);
}

/* Botón INICIAR SESION (VHAO FOOD) - asegurar estilo verde */
.producto-card .producto-info .btn-iniciar,
.producto-card .btn-iniciar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #0a8510; /* verde base */
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid rgba(10,133,16,0.08);
    transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}
.producto-card .producto-info .btn-iniciar:hover,
.producto-card .producto-info .btn-iniciar:focus {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(10,133,16,0.16);
    background-color: #0b6f0d;
}

/* Botón DESCARGAR (verde destacado dentro del card PDV) */
.download-btn {
    background-color: #0a8510;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.98rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid rgba(10,133,16,0.08);
    transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}
.download-btn:hover, .download-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(10,133,16,0.16);
}

/* Variante más prominente si se desea */
.download-prominent {
    background: linear-gradient(180deg,#12a21a 0%, #0a8510 100%);
    box-shadow: 0 10px 36px rgba(10,133,16,0.12);
    padding: 12px 28px;
}

/* Icono dentro del botón */
.icon-download {
    width: 18px;
    height: 18px;
    color: #fff;
    display: inline-block;
    flex-shrink: 0;
}

/* Si quieres que el botón ocupe más espacio que el EXPLORAR */
.producto-buttons .download-btn {
    min-width: 200px;
}

/* =====================================================
   SLIDER / IMAGEN DENTRO DEL CARD (PDV)
   - Reducimos altura y margen superior para acercar al texto
   - Permitir alineación a la izquierda con clase .align-left
   ===================================================== */

/* Contenedor del slider (imagen) */
.card-slider-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;   /* ancho controlado para que no se vea demasiado grande */
    height: 200px;      /* reducido para acercar al texto */
    margin: 6px auto 0; /* margen superior pequeño para acercarlo */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    flex: 0 0 auto;     /* no estira verticalmente */
    align-self: center; /* centrar dentro del card por defecto */
}

/* Clase auxiliar para alinear la imagen a la izquierda del card */
.card-slider-wrap.align-left {
    align-self: flex-start;
    margin-left: 0;
    margin-right: 0;
}

/* Slides internas */
.card-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;   /* contain para que la imagen no recorte */
    object-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.card-slide.active { opacity: 1; }

/* Dots del slider */
.card-slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.cdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: background 0.25s;
}
.cdot.active { background: #2522d6; }

/* Ícono celular Play Store (VHAO FOOD) */
.producto-icon {
    width: 92px;
    min-width: 92px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.playstore-phone { width: 92px; height: 140px; }

/* =====================================================
   RESPONSIVE: Tablets y móviles
   - Ajustes para mantener compactación y legibilidad
   ===================================================== */

@media (max-width: 1000px) {
    .container { max-width: 940px; padding: 0 18px; }
    .producto-card { min-height: 520px; padding: 22px; }
    .card-slider-wrap { max-width: 420px; height: 180px; }
}

@media (max-width: 768px) {
    .container { max-width: 720px; padding: 0 16px; }
    .productos-grid { grid-template-columns: 1fr; }
    .producto-card {
        min-height: auto;            /* altura flexible en móviles */
        padding: 18px;
        align-items: flex-start;
    }
    .card-slider-wrap {
        width: 100%;
        height: 160px;
        margin-top: 12px;
    }
    .producto-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .producto-buttons a { width: 100%; }
    .producto-info h2 { font-size: 1.3rem; }
    .producto-info p { font-size: 1rem; }
}

@media (max-width: 420px) {
    .card-slider-wrap { height: 140px; }
    .btn-explorar { padding: 10px 14px; font-size: 0.95rem; }
    .download-btn { padding: 10px 14px; font-size: 0.95rem; min-width: 140px; }
    .producto-card { padding: 14px; }
}

/* =====================================================
   NOTAS Y RECOMENDACIONES
   - Para acercar aún más texto e imagen: reducir
     .producto-card min-height y .card-slider-wrap height.
   - Para alinear la imagen a la izquierda dentro del card:
     añade la clase "align-left" al div .card-slider-wrap en el HTML.
   - Después de editar style.css, recarga con Ctrl+F5 o usa
     modo incógnito para evitar caché.
   ===================================================== */
