/* =========================
   INDEX PAGE — estilos exclusivos del homepage
   (hero, planes-wrapper, beneficios-grid, ventajas)
   Cargado solo en views/site/index.php via IndexAsset.
========================= */

/* =========================
   HERO
   Figma: 1440×900, overlay oscuro, contenido centrado
========================= */
.hero {
    position: relative;
    background: url('../images/hero.jpg') center top / cover no-repeat;
    width: 100%;
    height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.hero > .overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 750px;
    padding: 0 20px;
}

.hero h1 {
    font-family: var(--font-family-heading);
    font-size: var(--text-title-size);
    line-height: var(--text-title-line);
    font-weight: var(--text-title-weight);
    color: #ffffff;
    margin: 0 auto 16px auto;
    letter-spacing: 0;
    max-width: 980px;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.hero p {
    font-family: var(--font-family-heading);
    font-size: var(--text-subtitle-size);
    line-height: var(--text-subtitle-line);
    font-weight: 500;
    color: #ffffff;
    opacity: 1;
    margin: 0 0 68px 0;
    letter-spacing: 0;
    text-align: center;
}

/* =========================
   PLANES (wrapper homepage — solapado con hero)
   Figma: cards 405×400, row gap 34px, radius 16, padding 16
========================= */
.planes {
    margin-top: -120px;
    padding-bottom: 60px;
    position: relative;
    z-index: 5;
}

.planes .row {
    gap: 34px 0;
    justify-content: center;
}

/* --- CTA de planes --- */
.planes__cta {
    text-align: center;
    margin-top: 40px;
}

/* =========================
   BENEFICIOS (mini-grid 4 columnas homepage)
   Figma: grid 4 cols, cards Fill×210, radius 16, padding 16, gap 10, color #65B2E8
   Font: Inter 500 20px, line-height 100%, center
========================= */
.beneficios {
    padding: 80px 0;
}

.beneficios h3 {
    text-align: center;
    font-family: var(--font-family-heading);
    font-size: var(--text-subtitle-size);
    line-height: var(--text-subtitle-line);
    font-weight: var(--text-subtitle-weight);
    color: #333333;
    margin-bottom: 40px;
    letter-spacing: 0;
}

.beneficios .row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px;
    justify-content: center;
}

.beneficios .row [class*="col"] {
    width: calc(25% - 8px) !important;
    max-width: calc(25% - 8px) !important;
    padding: 0 !important;
    flex: none !important;
}

.beneficio-box {
    background: #65B2E8;
    color: #ffffff;
    height: 210px;
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-base);
    font-weight: var(--text-body-md-weight);
    font-size: var(--text-body-md-size);
    line-height: var(--text-body-md-line);
    letter-spacing: 0;
}

/* =========================
   VENTAJAS (homepage)
   Figma: bg #F7F7F7, titulo Inter 700 40px, subtitulo Inter 500 16px (672px)
   Items: icon 100×100, title Inter 700 32px (385px), desc Inter 500 20px
   Alternating white/var(--color-primary) via --blue modifier
========================= */
.ventajas {
    background: #ffffff;
    padding-bottom: 80px;
}

.ventajas__header {
    text-align: center;
    padding: 80px 0 40px;
}

.ventajas__title {
    font-family: var(--font-family-heading);
    font-weight: var(--text-subtitle-weight);
    font-size: var(--text-subtitle-size);
    line-height: var(--text-subtitle-line);
    color: #000000;
    margin: 0 0 16px 0;
    letter-spacing: 0;
}

.ventajas__subtitle {
    font-family: var(--font-family-base);
    font-weight: var(--text-body-secondary-weight);
    font-size: var(--text-body-secondary-size);
    line-height: var(--text-body-secondary-line);
    color: #666666;
    max-width: 672px;
    margin: 0 auto;
    letter-spacing: 0;
}

.ventaja-item {
    padding: 42px 0;
    background: #F7F7F7;
}

.ventaja-item--blue {
    background: var(--color-primary);
}

.ventaja-item .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    padding-left: 72px;
    padding-right: 72px;
}

.ventaja-item__icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ventaja-item--blue .ventaja-item__icon {
    background: #ffffff;
}

.ventaja-item__icon svg {
    width: 44px;
    height: 44px;
    stroke: #ffffff;
    fill: none;
}

.ventaja-item__icon-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.ventaja-item__content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 32px;
}

.ventaja-item h4 {
    font-family: var(--font-family-heading);
    font-weight: var(--text-subtitle-weight);
    font-size: var(--text-subtitle-size);
    line-height: var(--text-subtitle-line);
    color: #000000;
    margin: 0;
    width: 385px;
    min-width: 385px;
    letter-spacing: 0;
}

.ventaja-item--blue h4 {
    color: #ffffff;
}

.ventaja-item p {
    font-family: var(--font-family-base);
    font-weight: var(--text-body-md-weight);
    font-size: var(--text-body-md-size);
    line-height: var(--text-body-md-line);
    color: #333333;
    margin: 0;
    width: 663px;
    max-width: 663px;
    letter-spacing: 0;
}

.ventaja-item--blue p {
    color: #ffffff;
}

.ventaja-item + .ventaja-item {
    margin-top: 0;
}

/* =========================
   RESPONSIVE
========================= */

/* --- Tablet landscape / small desktop --- */
@media (max-width: 1200px) {
    .ventaja-item .container {
        padding-left: 40px;
        padding-right: 40px;
    }

    .ventaja-item h4 {
        font-size: var(--text-body-md-size);
        width: 300px;
        min-width: 300px;
    }

    .ventaja-item p {
        font-size: var(--text-body-secondary-size);
        width: auto;
        max-width: none;
    }
}

/* --- Tablet portrait --- */
@media (max-width: 992px) {
    /* Hero */
    .hero {
        height: auto;
        min-height: 600px;
    }

    .hero h1 {
        font-size: var(--text-subtitle-size);
    }

    .hero .extensiones span.extensiones__badge {
        min-width: 70px !important;
        height: 40px !important;
        padding: 8px 12px !important;
        font-size: var(--text-body-secondary-size) !important;
    }

    /* Planes: 2 columnas */
    .planes {
        margin-top: -80px;
    }

    .planes .row [class*="col"] {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* Beneficios: 2 columnas */
    .beneficios .row [class*="col"] {
        width: calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
    }

    .beneficio-box {
        height: 180px;
        font-size: var(--text-body-secondary-size);
    }

    /* Ventajas */
    .ventaja-item .container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .ventaja-item__content {
        flex-direction: column;
        gap: 12px;
        margin-left: 24px;
    }

    .ventaja-item h4 {
        font-size: var(--text-body-md-size);
        width: auto;
        min-width: auto;
    }

    .ventaja-item p {
        font-size: var(--text-body-secondary-size);
        width: auto;
        max-width: none;
    }

    .ventaja-item__icon {
        width: 80px;
        height: 80px;
    }

    .ventaja-item__icon svg {
        width: 36px;
        height: 36px;
    }

    .ventaja-item__icon-img {
        width: 48px;
        height: 48px;
    }

    .ventajas__title {
        font-size: var(--text-subtitle-size);
    }
}

/* --- Mobile --- */
@media (max-width: 768px) {
    /* Hero */
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
        align-items: flex-start;
    }

    .hero h1 {
        font-size: var(--text-subtitle-size);
    }

    .hero p {
        font-size: var(--text-body-secondary-size);
        margin-bottom: 24px;
    }

    .hero > .overlay {
        max-width: 100%;
        padding: 0 16px;
        margin-top: 40px;
    }

    /* Planes: 1 columna */
    .planes {
        margin-top: 0;
        padding: 40px 0;
    }

    .planes .row [class*="col"] {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .planes .row {
        gap: 20px 0 !important;
    }

    .planes__cta {
        margin-top: 24px;
    }

    /* Beneficios */
    .beneficios {
        padding: 50px 0;
    }

    .beneficios h3 {
        font-size: var(--text-body-md-size);
        margin-bottom: 24px;
    }

    .beneficios .row [class*="col"] {
        width: calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
    }

    .beneficio-box {
        height: 150px;
        font-size: var(--text-body-secondary-size);
        padding: 12px;
    }

    /* Ventajas */
    .ventajas__header {
        padding: 50px 16px 30px;
    }

    .ventajas__title {
        font-size: var(--text-body-md-size);
    }

    .ventajas__subtitle {
        font-size: var(--text-body-secondary-size);
    }

    .ventajas {
        padding-bottom: 40px;
    }

    .ventaja-item {
        padding: 24px 0;
    }

    .ventaja-item .container {
        flex-direction: column;
        text-align: center;
        padding-left: 16px;
        padding-right: 16px;
        gap: 16px;
    }

    .ventaja-item__content {
        flex-direction: column;
        margin-left: 0;
        gap: 8px;
        align-items: center;
    }

    .ventaja-item h4 {
        font-size: var(--text-body-md-size);
        width: auto;
        min-width: auto;
        text-align: center;
    }

    .ventaja-item p {
        font-size: var(--text-body-secondary-size);
        width: auto;
        max-width: none;
        text-align: center;
    }

    .ventaja-item__icon {
        width: 70px;
        height: 70px;
    }

    .ventaja-item__icon svg {
        width: 32px;
        height: 32px;
    }

    .ventaja-item__icon-img {
        width: 40px;
        height: 40px;
    }
}

/* --- Small mobile --- */
@media (max-width: 480px) {
    .hero h1 {
        font-size: var(--text-body-md-size);
    }

    .hero p {
        font-size: var(--text-body-secondary-size);
    }

    .beneficios .row [class*="col"] {
        width: 100% !important;
        max-width: 100% !important;
    }

    .beneficio-box {
        height: 120px;
        font-size: var(--text-body-secondary-size);
    }

    .ventajas__title {
        font-size: var(--text-body-md-size);
    }

    .ventaja-item h4 {
        font-size: var(--text-body-secondary-size);
    }

    .ventaja-item p {
        font-size: var(--text-body-secondary-size);
    }
}

