﻿/* ================================================
   HERO
   ================================================ */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-img-wrapper {
    margin-top: 62px;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 6;
    min-height: 380px;
    max-height: 560px;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.hero-text-block {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    pointer-events: none;
}

    .hero-text-block .container {
        pointer-events: auto;
    }

.hero-text {
/*    max-width: 560px;*/
}

.hero-wave-inner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 3;
    line-height: 0;
    pointer-events: none;
}

    .hero-wave-inner svg {
        width: 100%;
        height: 100%;
        display: block;
    }

.hero-title {
    font-size: clamp(26px, 4.5vw, 52px);
    font-weight: 400;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 14px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

    .hero-title .hero-bold,
    .hero-title .hero-regular {
        font-weight: 700;
    }

.hero-deadline {
    font-size: clamp(16px, 2.4vw, 24px);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 28px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

    .hero-deadline strong {
        font-weight: 700;
        color: var(--gold);
    }

@media (max-width: 1024px) {
    .hero-img-wrapper {
        aspect-ratio: 16 / 8;
        min-height: 420px;
    }

    .hero-text {
        max-width: 60%;
    }
}

@media (max-width: 760px) {
    .hero-img-wrapper {
        min-height: 500px;
        aspect-ratio: unset;
        max-height: unset;
    }

    .hero-img {
        object-position: 65% center;
    }

    .hero-img-wrapper::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
    }

    .hero-text-block {
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        bottom: 0;
        align-items: flex-end;
        justify-content: center;
        padding: 0 24px 44px;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(22px, 6vw, 32px);
        margin-bottom: 8px;
        text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    }

    .hero-deadline {
        font-size: clamp(14px, 3.5vw, 17px);
        margin-bottom: 16px;
    }

    .hero-wave-inner {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-img-wrapper {
        aspect-ratio: 4 / 5;
        min-height: 480px;
    }

    .hero-deadline {
        margin-bottom: 22px;
    }
}

/* ================================================
   ¿QUÉ ES?
   ================================================ */
#que-es, #registrate, #tutoriales, #preguntas {
    scroll-margin-top: 62px;
}

#que-es {
    background: var(--white);
    padding: 30px 0 60px;
}

.que-es-inner {
    text-align: center;
}

.section-title-center {
    font-size: clamp(22px, 3.5vw, 36px);
    font-weight: 700;
    color: var(--vino-800);
    margin-bottom: 20px;
    text-align: center;
}

.section-lead-center {
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto 17px;
}

    .section-lead-center strong {
        color: var(--negro);
    }

.ine-container {
    margin: 38px auto 0;
    max-width: 560px;
    width: 55%;
}

.ine-img {
    width: 100%;
    border-radius: var(--radius-lg);
}

@media (max-width: 900px) {
    .ine-container {
        margin: 40px auto 0;
        max-width: 460px;
        width: 80%;
    }
}

@media (max-width: 760px) {
    .ine-container {
        margin: 32px auto 0;
        width: 90%;
        max-width: 420px;
    }
}

/* ================================================
   ¿CÓMO ME REGISTRO?
   ================================================ */
#registrate {
    background: #f2f2f2;
    padding: 33px 0 43px 0;
    border-radius: 0;
    background: #f0f0f0 !important;
    scroll-margin-top: 62px;
}

    #registrate > .container > .section-title-center,
    #tutoriales > .container > .section-title-center {
        text-align: center;
    }

.registro-grid {
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    align-items: start;
    gap: 0 40px;
    max-width: 860px;
    margin: 0 auto;
    padding: 0;
}

.registro-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.registro-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.registro-icon {
    flex-shrink: 0;
    font-size: 26px;
    /*color: var(--vino-800);*/
}

.registro-svg {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.registro-title {
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 700;
    color: var(--vino-900);
    white-space: nowrap;
}

.registro-desc {
    font-size: 16px;
    line-height: 1.65;
}

    .registro-desc a {
        color: var(--vino-800);
        font-weight: 700;
        text-decoration: underline;
    }

.registro-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    align-self: center;
}

    .registro-qr img {
        width: 180px;
        height: 180px;
        border: none;
        padding: 0;
    }

.registro-divider {
    width: 2.3px;
    height: 180px;
    background: var(--vino-400);
    align-self: center;
}

.registro-btn-mobile {
    display: none;
}

@media (max-width: 760px) {
    .registro-grid {
        grid-template-columns: 1fr;
        gap: 32px 0;
        padding: 32px 24px;
    }

    .registro-qr {
        display: none;
    }

    .registro-divider {
        width: 100%;
        height: 1px;
    }

    .registro-btn-mobile {
        display: inline-flex;
        margin-top: 4px;
    }

    .registro-title {
        white-space: normal;
    }
}

/* ================================================
   ¿CÓMO REGISTRO MI LÍNEA?
   ================================================ */
#como-registro {
    background: var(--white);
    padding: 60px 0;
    scroll-margin-top: 62px;
}

    #como-registro .section-title-center {
        margin-bottom: 50px;
    }

.pasos-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.paso-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    position: relative;
    padding: 0 8px;
}

    .paso-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 34px;
        left: calc(50% + 32px);
        right: calc(-60% + 32px);
        height: 2px;
        background: var(--gray-300);
        z-index: 0;
    }

.paso-icon {
    position: relative;
    z-index: 1;
    width: 70px;
    height: 70px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s, background 0.2s;
    padding: 10px;
}

    .paso-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.paso-item:hover .paso-icon {
    transform: translateY(-3px);
    border-radius:50px;
}

.paso-desc {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.55;
    max-width: 200px;
}

    .paso-desc strong {
        color: var(--negro);
        font-weight: 700;
    }

@media (max-width: 900px) {
    .pasos-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 24px;
        max-width: 520px;
    }

    .paso-item:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 560px) {
    #como-registro {
        padding: 48px 0;
    }

        #como-registro .section-title-center {
            margin-bottom: 36px;
        }

    .pasos-list {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 320px;
    }

    .paso-desc {
        max-width: 100%;
        font-size: 15px;
    }
}

@media(min-width: 760px){

    .tutorial-card:hover {
        transform: translateY(-5px);
        --transition-speed: 0.2s;
        box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    }
}
/* ================================================
   TUTORIALES
   ================================================ */
#tutoriales {
    background: linear-gradient(to right, var(--vino-700) 0%, var(--vino-900) 60%, var(--vino-950) 100%);
    padding: 55px 0 72px 0;
}

.section-title-white {
    color: var(--white) !important;
    margin-bottom: 40px;
    text-align: center;
}

.tutoriales-carousel {
    display: none;
}

.tutoriales-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .tutoriales-grid {
        display: none;
    }

    .tutoriales-carousel {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .tutoriales-track-wrapper {
        overflow: hidden;
        flex: 1;
    }

    .tutoriales-track {
        display: flex;
        gap: 16px;
        transition: transform 0.4s ease;
    }

        .tutoriales-track .tutorial-card {
            width: 100%;
        }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

.carousel-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    color: var(--vino-800);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.2s, transform 0.15s;
}

    .carousel-btn:hover {
        background: var(--gris);
        transform: scale(1.08);
    }

.tutorial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}


.tutorial-thumb {
    position: relative;
    background: var(--white);
    overflow: hidden;
    border-radius: var(--radius-lg);
}

    .tutorial-thumb img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }

.tutorial-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

    .tutorial-play i {
        width: 52px;
        height: 52px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: var(--white);
        padding-left: 4px;
    }

.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

    .video-modal.open {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
}

.video-modal-inner {
    position: relative;
    z-index: 1;
    width: 90vw;
    max-width: 900px;
    background: var(--vino-950);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--white);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

    .video-modal-close:hover {
        background: rgba(255,255,255,0.3);
    }

.video-modal-frame {
    aspect-ratio: 16/9;
    width: 100%;
}

    .video-modal-frame iframe {
        width: 100%;
        height: 100%;
        border: none;
        display: block;
    }


/* ================================================
   PREGUNTAS FRECUENTES
   ================================================ */
:target {
    background-color: transparent !important;
}

#preguntas {
    background: var(--white);
    padding: 80px 0;
}

    #preguntas .section-title-center {
        margin-bottom: 36px;
        color: var(--vino-800);
    }

.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s;
    background: var(--white);
}

    .faq-item.is-open {
        border-color: var(--vino-400);
    }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--negro);
    line-height: 1.5;
    transition: background 0.15s;
}

    .faq-question:hover {
        background: var(--vino-50);
    }

.faq-item.is-open > .faq-question {
    background: var(--vino-50);
    color: var(--vino-900);
}

.faq-num {
    color: var(--vino-800);
    font-weight: 700;
    flex-shrink: 0;
    min-width: 26px;
}

.faq-q-text {
    flex: 1;
}

.faq-chevron {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--gray-500);
    transition: background 0.3s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open > .faq-question .faq-chevron {
    background: var(--vino-800);
    color: var(--white);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0 20px;
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.7;
}

.faq-item.is-open > .faq-answer {
    max-height: 500px;
    padding: 0 20px 18px;
}

/* ---- Acordeón padre "Otras preguntas" ---- */
.faq-item--parent {
    margin-top: 14px;
}

    .faq-item--parent > .faq-question {
        background: var(--vino-50);
        color: var(--vino-900);
        font-size: 17px;
    }

    .faq-item--parent.is-open > .faq-answer {
        max-height: 8000px;
        padding: 0 20px 18px;
    }

.faq-sublist {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 14px;
}
/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 480px) {
    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 32px 0 80px;
    }

    #que-es, #registrate, #tutoriales, #preguntas {
        padding: 56px 0;
    }

    .ine-container {
        margin: 17px auto 0;
        max-width: 460px;
        width: 77%;
    }
}

@media (max-width: 760px) {
    .hero-img-wrapper {
        min-height: 560px;
        aspect-ratio: unset;
        max-height: unset;
    }

    /* El celular se ve del lado derecho */
    .hero-img {
        object-position: 85% center;
    }

    /* Gradiente vino sólido a la izquierda, transparente a la derecha */
    .hero-img-wrapper::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
    }
    .hero-text-block {
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        bottom: 0;
        align-items: center; /* centrado vertical */
        justify-content: flex-start; /* a la izquierda */
        padding: 0;
    }

    .hero-text {
        max-width: 75%;
        text-align: left;
    }

    .hero-title {
        font-size: clamp(28px, 7.5vw, 38px);
        margin-bottom: 10px;
        text-shadow: 0 2px 10px rgba(0,0,0,0.5);
        line-height: 1.2;
    }

    .hero-deadline {
        font-size: clamp(15px, 4vw, 19px);
        margin-bottom: 20px;
    }

    .btn-hero {
        align-self: flex-start;
    }

    .hero-wave-inner {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-img-wrapper {
        aspect-ratio: unset;
        min-height: 520px;
    }

    .hero-img {
        object-position: 90% center;
    }

    .hero-text {
        max-width: 78%;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-deadline {
        font-size: 17px;
        margin-bottom: 18px;
    }
}