/* ==========================================================================
   CRISTALCHILE - Página Compra
   Estilos específicos para las páginas de compra (compra y compra-2)
   ========================================================================== */

.compra-main,
.compra-2-main {
    background-color: #f5f5f5;
}

/* ==========================================================================
   HERO SECTION - Estilos compartidos entre compra y compra-2
   ========================================================================== */
.compra-hero,
.compra-2-hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.compra-hero__background,
.compra-2-hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.compra-hero__image,
.compra-2-hero__image,
.compra-hero__image img,
.compra-2-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compra-hero__overlay,
.compra-2-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.compra-hero__content,
.compra-2-hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 0 110px 113px;
}

.compra-hero__container,
.compra-2-hero__container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

.compra-hero__title,
.compra-2-hero__title {
    font-family: 'Myriad Pro', var(--font-display), sans-serif;
    font-size: 70px;
    font-weight: 700;
    line-height: 1.1;
    color: #FFFFFF;
    margin: 0 0 20px;
    max-width: 1211px;
}

.compra-hero__description {
    font-family: 'Myriad Pro', var(--font-display), sans-serif;
    font-size: 25px;
    font-weight: 400;
    line-height: normal;
    color: var(--color-white);
    margin: 0 0 40px;
    max-width: 898px;
}

.compra-2-hero__description {
    font-family: 'Myriad Pro', var(--font-display), sans-serif;
    font-size: 25px;
    font-weight: 400;
    line-height: normal;
    color: #FFFFFF;
    margin: 0;
    max-width: 1152px;
}

/* Estilos específicos de compra-hero */
.compra-hero__actions {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.compra-hero__btn-primary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-white);
    padding: 19px 28px;
    font-size: 24px;
    font-weight: 700;
    border-radius: 10px;
    display: inline-block;
    transition: all 0.3s ease;
    min-width: 279px;
    text-align: center;
}

.compra-hero__btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.compra-hero__link-secondary {
    color: var(--color-white);
    font-size: 18px;
    font-weight: 700;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
    margin-left: auto;
}

.compra-hero__link-secondary:hover {
    opacity: 0.8;
}

.compra-hero__link-secondary svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Números destacados - Estilos compartidos */
.compra-hero__featured-number,
.compra-2-hero__featured-number {
    position: absolute;
    top: 561px;
    right: calc(95.83% - 114.5px);
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
    pointer-events: none;
}

.compra-hero__number,
.compra-2-hero__number {
    font-family: 'Myriad Pro', var(--font-display), sans-serif;
    font-size: 60px;
    font-weight: 700;
    line-height: 1.5;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: -0.66px;
}

.compra-hero__number-label,
.compra-2-hero__number-label {
    font-family: 'Geologica', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: -0.198px;
    margin-top: 15px;
}

/* ==========================================================================
   PRODUCTOS SECTION
   ========================================================================== */
.compra-products {
    background: linear-gradient(153deg, #033E84 8%, #D84141 100%);
    padding: 80px 0;
    position: relative;
}

.compra-products__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 64px;
    text-align: center;
}

.compra-products__title {
    font-family: 'Myriad Pro', var(--font-display), sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.4;
    color: #E9F5FF;
    margin: 0 0 40px;
    letter-spacing: -0.352px;
}

.compra-products__title strong {
    font-weight: 600;
}

.compra-products__btn {
    background-color: #FFFFFF;
    color: #D84141;
    border: 2px solid #FFFFFF;
    padding: 17px 11px;
    font-family: 'Myriad Pro', var(--font-display), sans-serif;
    font-size: 22px;
    font-weight: 700;
    border-radius: 10px;
    display: inline-block;
    transition: all 0.3s ease;
    min-width: 267px;
    text-align: center;
    line-height: 1.5;
    letter-spacing: -0.242px;
    text-decoration: none;
}

.compra-products__btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   ACCORDEONES SECTION
   ========================================================================== */
.compra-accordions {
    background-color: #f5f5f5;
    padding: 80px 0 120px;
}

.compra-accordions__container {
    max-width: 1223px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 29px;
}

/* Acordeón destacado (primero) */
.compra-accordion--featured {
    margin-bottom: 150px;
}

.compra-accordion--featured + .compra-accordion {
    margin-top: 0;
}

.compra-accordion {
    background-color: var(--color-white);
    border: 0.5px solid rgba(105, 97, 88, 0.3);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.compra-accordion__header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    position: relative;
    min-height: 77px;
}

.compra-accordion__icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.compra-accordion__icon img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Solo mostrar icono en el acordeón destacado */
.compra-accordion:not(.compra-accordion--featured) .compra-accordion__icon {
    display: none;
}

.compra-accordion__title {
    font-family: 'Myriad Pro', var(--font-display), sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    flex: 1;
    margin: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%), 
                linear-gradient(177.55deg, #033E84 8%, #D84141 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.compra-accordion__chevron {
    flex-shrink: 0;
    width: 22px;
    height: 12px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.compra-accordion--open .compra-accordion__chevron {
    transform: rotate(180deg);
}

.compra-accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.compra-accordion__content--open {
    max-height: 1000px;
}

.compra-accordion__body {
    padding: 0 24px 32px;
    padding-left: calc(24px + 30px + 24px); /* Padding + icon width + gap */
}

/* Intro text (primer párrafo) */
.compra-accordion__intro {
    font-family: 'Arial', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    color: #242424;
    margin: 0 0 24px;
}

.compra-accordion__body p:last-child {
    margin-bottom: 0;
}

/* Separador después del intro */
.compra-accordion__separator {
    border: none;
    border-top: 1px solid rgba(105, 97, 88, 0.3);
    margin: 0 0 24px;
    width: 100%;
}

/* Sections dentro del acordeón */
.compra-accordion__section {
    margin-top: 50px;
    margin-bottom: 32px;
}

.compra-accordion__section:last-child {
    margin-bottom: 0;
}

.compra-accordion__section-title {
    font-family: 'Myriad Pro', var(--font-display), sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: #242424;
    margin: 0 0 16px;
}

/* Lists */
.compra-accordion__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.compra-accordion__list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.compra-accordion__bullet {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.compra-accordion__bullet img {
    width: 100%;
    height: 100%;
    display: block;
}

.compra-accordion__list-text {
    font-family: 'Arial', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    color: #242424;
    flex: 1;
}

/* Email contact */
.compra-accordion__contact {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.compra-accordion__email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Arial', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #033E84;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.compra-accordion__email:hover {
    opacity: 0.8;
}

.compra-accordion__email img {
    width: 40px;
    height: 24px;
    flex-shrink: 0;
}

.compra-accordion__email-separator {
    font-family: 'Arial', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #242424;
}

/* Si el acordeón no tiene icono, ajustar padding */
.compra-accordion:not(.compra-accordion--featured) .compra-accordion__body {
    padding-left: 24px;
}

/* ==========================================================================
   BENEFICIOS SECTION - Página Compra 2
   ========================================================================== */
.compra-2-beneficios {
    background-color: #f5f5f5;
    padding: 80px 0;
}

.compra-2-beneficios__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 112px;
}

.compra-2-beneficios__title {
    font-family: 'Myriad Pro', var(--font-display), sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: normal;
    color: #164984;
    margin: 0 0 40px;
}

.compra-2-beneficios__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.compra-2-beneficio-card {
    background-color: #4f78a9;
    border-radius: 10px;
    padding: 90px 30px 30px 30px;
    min-height: 204px;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    text-align: center;
    position: relative;
}

.compra-2-beneficio-card__icon {
    position: absolute;
    top: 25px;
    right: 25px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.compra-2-beneficio-card__icon img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80px;
    display: block;
    object-fit: contain;
}

.compra-2-beneficio-card__text {
    font-family: 'Myriad Pro', var(--font-display), sans-serif;
    font-size: 25px;
    font-weight: 400;
    line-height: normal;
    color: #FFFFFF;
    margin: 0;
    text-align: left;
}

/* ==========================================================================
   CTA SECTION - Página Compra 2
   ========================================================================== */
.compra-2-cta {
    background-color: #f5f5f5;
    padding: 0 0 80px 0;
}

.compra-2-cta__container {
    width: 100%;
    display: flex;
    gap: 0;
}

.compra-2-cta__block {
    flex: 1 1 50%;
    padding: 60px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
}

.compra-2-cta__block--left {
    background-color: #033E84;
}

.compra-2-cta__block--right {
    background-color: #D84141;
}

.compra-2-cta__question,
.compra-2-cta__text {
    font-family: 'Myriad Pro', var(--font-display), sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: normal;
    color: #E9F5FF;
    margin: 0 0 40px;
    letter-spacing: -0.352px;
}

.compra-2-cta__btn {
    display: inline-block;
    padding: 17px 28px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-family: 'Arial', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    border: 2px solid #FFFFFF;
    transition: all 0.3s ease;
    letter-spacing: -0.22px;
    width: fit-content;
}

.compra-2-cta__btn--white {
    background-color: #FFFFFF;
    color: #033E84;
}

.compra-2-cta__btn--white:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.compra-2-cta__btn--white-red {
    background-color: #FFFFFF;
    color: #D84141;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.242px;
}

.compra-2-cta__btn--white-red:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   CÓMO FUNCIONA SECTION - Página Compra 2
   ========================================================================== */
.compra-2-como-funciona {
    background-color: #f5f5f5;
    padding: 0 0 90px 0;
}

.compra-2-como-funciona__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 112px;
}

.compra-2-como-funciona__title {
    font-family: 'Myriad Pro', var(--font-display), sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: normal;
    color: #164984;
    margin: 0 0 60px;
}

.compra-2-como-funciona__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.compra-2-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.compra-2-step__number {
    font-size: 90px;
    font-weight: 800;
    line-height: 0.84;
    color: #033E84;
    margin: 0 0 20px;
    text-align: left;
    width: 90%;
    height: 54px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
}

.compra-2-step__text {
    font-family: 'Arial', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: #033E84;
    margin: 0;
}

/* ==========================================================================
   SALA DE VENTAS SECTION - Página Compra 2
   ========================================================================== */
.compra-2-sala-ventas {
    position: relative;
    min-height: 265px;
    overflow: hidden;
}

.compra-2-sala-ventas__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.compra-2-sala-ventas__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compra-2-sala-ventas__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.compra-2-sala-ventas__container {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0 0 112px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    height: 265px;
}

.compra-2-sala-ventas__title {
    font-family: 'Myriad Pro', var(--font-display), sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: normal;
    color: #E9F5FF;
    margin: 0 0 40px;
    letter-spacing: -0.352px;
}

.compra-2-sala-ventas__title strong {
    font-weight: 600;
}

.compra-2-sala-ventas__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.compra-2-sala-ventas__info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.compra-2-sala-ventas__icon {
    flex-shrink: 0; 
    margin-top: 2px;
}

.compra-2-sala-ventas__icon img {
    width: auto;
    height: auto;
    display: block;
}

/* Tamaño específico para el ícono de email */
.compra-2-sala-ventas__info-item:nth-child(3) .compra-2-sala-ventas__icon {
    width: 24px;
    height: 16px;
}

.compra-2-sala-ventas__text {
    font-family: 'Arial', sans-serif;
    font-size: 23px;
    font-weight: 400;
    line-height: normal;
    color: #FFFFFF;
    margin: 0;
    flex: 1;
}

.compra-2-sala-ventas__map {
    width: 100%;
    height: 265px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.compra-2-sala-ventas__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1400px) {
    .compra-hero__content,
    .compra-2-hero__content {
        padding: 0 64px 80px;
    }
    
    .compra-2-beneficios__container,
    .compra-2-como-funciona__container {
        padding: 0 64px;
    }
    
    .compra-2-sala-ventas__container {
        padding: 36px 64px;
    }
}

@media (max-width: 1200px) {
    .compra-hero,
    .compra-2-hero {
        height: 500px;
    }
    
    .compra-hero__title,
    .compra-2-hero__title {
        font-size: 50px;
    }
    
    .compra-hero__description,
    .compra-2-hero__description {
        font-size: 22px;
    }
    
    .compra-hero__featured-number,
    .compra-2-hero__featured-number {
        top: auto;
        bottom: 80px;
        right: 40px;
        transform: none;
    }
    
    .compra-hero__number,
    .compra-2-hero__number {
        font-size: 48px;
    }
    
    .compra-hero__number-label {
        font-size: 16px;
        margin-top: 10px;
    }
    
    .compra-products__title {
        font-size: 28px;
    }
    
    .compra-accordion__title {
        font-size: 28px;
    }
    
    .compra-accordion--featured {
        margin-bottom: 100px;
    }
    
    .compra-2-beneficios__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .compra-2-como-funciona__steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .compra-hero,
    .compra-2-hero {
        height: 450px;
    }
    
    .compra-hero__content,
    .compra-2-hero__content {
        padding: 0 40px 60px;
    }
    
    .compra-hero__title,
    .compra-2-hero__title {
        font-size: 40px;
    }
    
    .compra-hero__description,
    .compra-2-hero__description {
        font-size: 20px;
    }
    
    .compra-hero__btn-primary {
        font-size: 20px;
        min-width: 240px;
        padding: 16px 24px;
    }
    
    .compra-products {
        padding: 60px 0;
    }
    
    .compra-products__container {
        padding: 0 40px;
    }
    
    .compra-products__title {
        font-size: 24px;
    }
    
    .compra-accordions {
        padding: 60px 0 80px;
    }
    
    .compra-accordions__container {
        padding: 0 40px;
        gap: 20px;
    }
    
    .compra-accordion__title {
        font-size: 24px;
    }
    
    .compra-accordion--featured {
        margin-bottom: 60px;
    }
    
    .compra-accordion__body {
        padding-left: calc(20px + 30px + 20px);
    }
    
    .compra-accordion:not(.compra-accordion--featured) .compra-accordion__body {
        padding-left: 20px;
    }
    
    .compra-accordion__intro,
    .compra-accordion__list-text {
        font-size: 18px;
    }
    
    .compra-accordion__section-title {
        font-size: 26px;
    }
    
    .compra-accordion__email {
        font-size: 18px;
    }
    
    .compra-2-beneficios,
    .compra-2-cta,
    .compra-2-como-funciona {
        padding: 60px 0;
    }
    
    .compra-2-beneficios__container,
    .compra-2-como-funciona__container {
        padding: 0 40px;
    }
    
    .compra-2-cta__container {
        flex-direction: column;
    }
    
    .compra-2-sala-ventas__container {
        grid-template-columns: 1fr;
        padding: 36px 40px;
    }
}

@media (max-width: 768px) {
    .compra-hero__featured-number,
    .compra-2-hero__featured-number {
        display: none;
    }
    
    .compra-hero,
    .compra-2-hero {
        height: 435px;
    }
    
    .compra-hero__content,
    .compra-2-hero__content {
        padding: 0 20px 40px;
    }
    
    .compra-hero__title,
    .compra-2-hero__title {
        font-size: 32px;
    }
    
    .compra-hero__description {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .compra-2-hero__description {
        font-size: 18px;
    }
    
    .compra-hero__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        justify-content: flex-start;
    }
    
    .compra-hero__btn-primary {
        width: 100%;
        font-size: 18px;
        min-width: auto;
    }
    
    .compra-hero__link-secondary {
        font-size: 16px;
        margin-left: 0;
        align-self: flex-end;
    }
    
    .compra-products {
        padding: 40px 0;
    }
    
    .compra-products__container {
        padding: 0 20px;
    }
    
    .compra-products__title {
        font-size: 22px;
        margin-bottom: 30px;
    }
    
    .compra-products__btn {
        width: 100%;
        font-size: 18px;
        min-width: auto;
    }
    
    .compra-accordions {
        padding: 40px 0 60px;
    }
    
    .compra-accordions__container {
        padding: 0 20px;
        gap: 16px;
    }
    
    .compra-accordion__header {
        padding: 16px 20px;
        gap: 16px;
        min-height: auto;
    }
    
    .compra-accordion__icon {
        width: 24px;
        height: 24px;
    }
    
    .compra-accordion__title {
        font-size: 20px;
    }
    
    .compra-accordion--featured {
        margin-bottom: 40px;
    }
    
    .compra-accordion__chevron {
        width: 18px;
        height: 10px;
    }
    
    .compra-accordion__body {
        padding: 0 20px 16px;
        padding-left: calc(20px + 24px + 16px);
    }
    
    .compra-accordion:not(.compra-accordion--featured) .compra-accordion__body {
        padding-left: 20px;
    }
    
    .compra-accordion__intro,
    .compra-accordion__list-text {
        font-size: 16px;
    }
    
    .compra-accordion__section-title {
        font-size: 24px;
    }
    
    .compra-accordion__email {
        font-size: 16px;
    }
    
    .compra-2-beneficios,
    .compra-2-cta,
    .compra-2-como-funciona {
        padding: 40px 0 60px;
    }
    
    .compra-2-beneficios__container,
    .compra-2-como-funciona__container {
        padding: 0 20px;
    }
    
    .compra-2-beneficios__grid,
    .compra-2-como-funciona__steps {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .compra-2-beneficio-card {
        padding: 40px 24px 0;
    }
    
    .compra-2-cta__block {
        padding: 40px 24px;
        min-height: auto;
    }
    
    .compra-2-cta__question,
    .compra-2-cta__text {
        font-size: 24px;
    }
    
    .compra-2-como-funciona__title,
    .compra-2-beneficios__title {
        font-size: 28px;
    }
    
    .compra-2-step__number {
        font-size: 70px;
        width: 90px;
        height: 42px;
        line-height: 0.84;
        overflow: hidden;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .compra-2-step__text {
        font-size: 18px;
    }
    
    .compra-2-sala-ventas__container {
        padding: 24px 20px;
        height: auto;
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .compra-2-sala-ventas__title {
        font-size: 24px;
    }
    
    .compra-2-sala-ventas__text {
        font-size: 18px;
    }
    
    .compra-2-sala-ventas__map {
        height: 250px;
        min-height: 200px;
        width: 100%;
        display: block;
    }
    
    .compra-2-sala-ventas__map iframe {
        width: 100%;
        height: 100%;
        display: block;
    }
}
