/* ============================================================
   SMARTLEASE — LAYOUT PRINCIPAL
   ============================================================
   Contiene los estilos del Hero, el Banner de Experiencia y
   la sección de Soluciones (cards con acordeón).
   Reemplaza al antiguo styles.css.
   Orden de carga: 2° (después de variables.css)
   ============================================================ */


/* ══════════════════════════════════════════════════════════
   SECCIÓN: HERO (Pantalla de entrada con imagen de fondo)
   ══════════════════════════════════════════════════════════ */

.hero {
    /* Altura relativa al viewport para que las imágenes llenen correctamente */
    height: 85vh;
    min-height: 500px;
    max-height: 860px;
    background-size: cover;
    background-position: center center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding-bottom: 80px;
    /* La imagen base (fallback cuando no hay carrusel) */
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7)),
                      url('../img/01.webp');
}

/* Contenedor del texto del Hero */
.hero-bottom-content {
    width: 90%;
    max-width: 1000px;
    color: white;
    z-index: 2;
    animation: fadeInUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Nombre de la empresa en el Hero */
.hero-brand {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Subtítulo del Hero */
.hero-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #ffffff;
}

/* Contenedor de los dos botones del Hero */
.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;    /* FIX: alinea verticalmente los botones */
    flex-wrap: wrap;
}

/* FIX: los btn-primary y btn-secondary usan inline-block,
   dentro de un flex necesitan ser flex items correctamente */
.hero-btns .btn-primary,
.hero-btns .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Hero: móvil */
@media (max-width: 768px) {
    .hero              { height: 52vh; min-height: 300px; max-height: 480px; padding-bottom: 40px; }
    .hero-brand        { font-size: 2.2rem; letter-spacing: 3px; }
    .hero-title        { font-size: 1.1rem; font-weight: 600; color: #ffffff; }
    .hero-btns         { gap: 10px; }
    .btn-primary,
    .btn-secondary     { padding: 13px 25px; font-size: 0.88rem; }
}


/* ══════════════════════════════════════════════════════════
   SECCIÓN: BANNER DE EXPERIENCIA (3 datos estadísticos)
   ══════════════════════════════════════════════════════════ */

.experience-banner {
    background: var(--light-bg);
    padding: 50px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
    border-bottom: 1px solid #eee;
}

/* Cada bloque de dato (número + texto) */
.exp-item {
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* El número grande */
.exp-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
}

/* El texto debajo del número */
.exp-text {
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 500;
}

/* Línea vertical separadora entre los 3 datos */
.exp-divider {
    width: 1px;
    height: 55px;
    background: #ddd;
}

/* Responsive Banner: en móvil se apilan verticalmente */
@media (max-width: 768px) {
    .experience-banner { flex-direction: column; gap: 35px; }
    .exp-divider        { display: none; } /* Se ocultan los separadores verticales */
}


/* ══════════════════════════════════════════════════════════
   SECCIÓN: SOLUCIONES (3 cards con acordeón expandible)
   ══════════════════════════════════════════════════════════ */

/* Contenedor general de la sección Soluciones */
.section-padding {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Título de la sección Soluciones */
.text-center-soluciones {
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    color: var(--dark);
    letter-spacing: 2px;
    margin-bottom: 50px;
}

/* Grid de 3 columnas para las cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

/* ── Card individual de Solución ── */
.card-solucion {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid #f0f0f0;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

@media (hover: hover) {
    .card-solucion:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-strong);
    }
}

/* Imagen dentro de cada card */
.card-solucion img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

/* Título h3 dentro de cada card */
.card-solucion h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

/* Descripción corta */
.short-desc {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Empuja el contenido interactivo hacia abajo */
.card-fixed-content     { flex: 1; }
.card-interactive-content { display: flex; flex-direction: column; }

/* Desktop grande: reducir padding vertical para que quepa en pantalla */
@media (min-width: 1025px) {
    .section-padding        { padding: 60px 5%; }
    .text-center-soluciones { margin-bottom: 35px; }

    /* Las tarjetas de solución no necesitan tanto espacio interno en desktop */
    .card-solucion          { padding: 20px; }
    .card-solucion img      { height: 180px; }
}

/* Tablet (769px – 1024px): ajuste intermedio de Soluciones */
@media (min-width: 769px) and (max-width: 1024px) {
    .section-padding        { padding: 60px 5%; }
    .text-center-soluciones { font-size: 1.6rem; }
    .grid-3                 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* Responsive Soluciones: móvil */
@media (max-width: 768px) {
    .section-padding        { padding: 50px 5%; }
    .text-center-soluciones { font-size: 1.4rem; }
}


/* ══════════════════════════════════════════════════════════
   HERO CARRUSEL — Fade entre imágenes de fondo
   El texto y botones no se afectan (posición absoluta)
   ══════════════════════════════════════════════════════════ */

.hero-carousel {
    position: relative;
    overflow: hidden;
}

/* Cada slide ocupa toda la sección */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* El contenido del hero siempre encima de los slides */
.hero-carousel .hero-bottom-content {
    position: relative;
    z-index: 2;
}


/* ══════════════════════════════════════════════════════════
   HERO TEXT CARD — Tarjeta semitransparente exclusiva del hero.
   Garantiza legibilidad del texto sobre cualquier imagen
   del carrusel independientemente del tono de fondo.
   ══════════════════════════════════════════════════════════ */

.hero-text-card {
    display: inline-block;
    background: rgba(0, 0, 0, 0.42);
    border-radius: 16px;
    padding: 12px 36px;
    margin-bottom: 30px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

@media (max-width: 768px) {
    .hero-text-card {
        padding: 9px 22px;
        border-radius: 12px;
        margin-bottom: 22px;
    }
}
