/* ========================================
   VARIABLES Y CONFIGURACIÓN GENERAL
======================================== */

:root {
    --yellow: #ffe600;
    --dark: #202020;
    --text: #333333;
    --white: #ffffff;
    --light: #f5f5f5;
    --border: #e5e5e5;
    --green: #00a650;

    --max-width: 1200px;

    --font-main: Arial, Helvetica, sans-serif;
}


/* ========================================
   RESET
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background: var(--white);
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    cursor: pointer;
}


/* ========================================
   CONTENEDOR GENERAL
======================================== */

.container {
    width: min(92%, var(--max-width));
    margin: 0 auto;
}

/* ========================================
   HEADER
======================================== */
.header .tpvnet-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 190px;
}


/* PUTO CÓDIGO DEL LOGO TPVNET -- */
.header .tpvnet-logo {
    display: block;
    width: 100%;
    max-width: 150px; /* --PUTO CODIGO PARA EL TAMAÑO DEL LOGO --*/
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .header .tpvnet-brand {
        max-width: 145px;
    }

    .header .tpvnet-logo {
        max-width: 145px;
    }
}

.header {
    background: var(--yellow);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.header-container {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-size: 28px;
    font-weight: 700;
}


.logo small {
    margin-top: 5px;
    font-size: 10px;
    font-weight: 400;
    
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.main-nav a {
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.main-nav a:hover {
    opacity: 0.6;
}


/* ========================================
   BOTONES
======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    padding: 13px 22px;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-header {
    background: var(--dark);
    color: var(--white);
    white-space: nowrap;
}

.btn-primary {
    background: var(--dark);
    color: var(--white);
}

.btn-whatsapp {
    background: var(--green);
    color: var(--white);
}

.btn-ai {
    background: var(--dark);
    color: var(--white);
}

/* ========================================
   HERO
======================================== */

.hero {
    background: var(--yellow);
    padding: 70px 0 80px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-content {
    max-width: 620px;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 22px;
}

.hero h1 span {
    font-weight: 400;
}

.hero h2 {
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 20px;
}

.hero-description {
    max-width: 500px;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 35px;
}


/* ========================================
   CARACTERÍSTICAS DEL HERO
======================================== */

.hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 35px;
}

.hero-feature {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.feature-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: 2px solid var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.hero-feature span {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
}


/* ========================================
   OPCIONES DE COMPRA DEL HERO
======================================== */

.purchase-box {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
}

.purchase-option {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 10px;
    padding: 13px 16px;
    min-width: 175px;
    display: flex;
    flex-direction: column;
}

.purchase-option strong {
    font-size: 13px;
}

.purchase-option span {
    font-size: 11px;
    opacity: 0.75;
}

.purchase-option b {
    margin-top: 5px;
    font-size: 24px;
    line-height: 1;
}

.purchase-option small {
    font-size: 10px;
    margin-top: 3px;
}


/* ========================================
   PRODUCTO
======================================== */

.hero-product {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.hero-product img {
    width: min(100%, 570px);
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.commission-badge {
    position: absolute;
    right: 4%;
    bottom: 12%;
    z-index: 3;

    background: #00a650;
    color: white;

    padding: 12px 18px;
    border-radius: 30px;

    font-size: 15px;
    font-weight: 800;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
}

/* ========================================
   BENEFICIOS
======================================== */

.benefits {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}

.benefits-grid > div {
    min-height: 115px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border);
}

.benefits-grid > div:first-child {
    border-left: 1px solid var(--border);
}

.benefits-grid strong {
    font-size: 14px;
    color: var(--dark);
}

.benefits-grid span {
    font-size: 13px;
    color: #666;
}

/* ========================================
   COMISIONES
======================================== */

.commissions {
    background: #f7f7f7;
    padding: 85px 0;
}

.commission-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.commission-title h2 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
    color: var(--dark);
    margin-bottom: 18px;
}

.commission-title p {
    font-size: 16px;
    color: #666;
}

.commission-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin: 0 auto;
    gap: 20px;
}

.commission-levels > div {
    background: var(--white);
    border-radius: 14px;
    padding: 30px 25px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.commission-levels span {
    display: block;
    min-height: 42px;
    font-size: 14px;
    color: #555;
}

.commission-levels strong {
    display: block;
    margin-top: 12px;
    font-size: 42px;
    line-height: 1;
    color: var(--dark);
}

.commission-levels small {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

/* ========================================
   TARJETAS ACEPTADAS
======================================== */

.accepted-payments {
    background: var(--white);
    padding: 65px 0;
}

.accepted-payments .container {
    text-align: center;
}

.accepted-payments h2 {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 35px;
}

.accepted-payments img {
    width: min(100%, 1050px);
    height: auto;
    margin: 0 auto;
}

/* ========================================
   SOPORTE
======================================== */

.support {
    background: #f5f8fc;
    padding: 70px 0;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.support-card {
    background: var(--white);
    border-radius: 18px;
    padding: 40px;
    border: 1px solid var(--border);
}

.support-card h2 {
    font-size: 28px;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 8px;
}

.support-card h3 {
    font-size: 20px;
    color: #174ea6;
    margin-bottom: 25px;
}

.support-card p {
    color: #555;
    margin-bottom: 22px;
}

.support-card ul {
    list-style: none;
    margin: 0 0 28px;
}

.support-card li {
    position: relative;
    padding-left: 27px;
    margin-bottom: 12px;
    font-size: 14px;
}

.support-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--green);
    font-weight: 800;
}

.btn-whatsapp,
.btn-ai {
    min-width: 190px;
}

/* ========================================
   ENTREGA Y COMPRA
======================================== */

.delivery {
    background: #ffffff;
    padding: 75px 0;
}

.delivery .container {
    text-align: center;
}

.delivery h2 {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--dark);
    margin-bottom: 10px;
}

.delivery-intro {
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1050px;
    margin: 0 auto;
}

.delivery-option {
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: left;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease,
                transform 0.2s ease;
}

.delivery-option:hover {
    border-color: #1769ff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.delivery-icon {
    font-size: 32px;
    margin-bottom: 18px;
}

.delivery-option h3 {
    font-size: 21px;
    color: var(--dark);
    margin-bottom: 2px;
}

.delivery-option > span {
    display: block;
    color: #666;
    font-size: 14px;
}

.delivery-option strong {
    display: block;
    margin: 18px 0 5px;
    font-size: 34px;
    line-height: 1;
    color: #1769ff;
}

.delivery-option strong small {
    font-size: 14px;
}

.delivery-option > small {
    color: #777;
}

.delivery-option p {
    min-height: 48px;
    margin: 18px 0;
    color: #555;
    font-size: 14px;
}

.delivery-select {
    width: 100%;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    background: var(--dark);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.delivery-select:hover {
    background: #333;
}

.calculate-price {
    font-size: 25px !important;
}

/* ========================================
   CÓMO COMPRAR
======================================== */

.how-to-buy {
    background: #f7f7f7;
    padding: 75px 0;
}

.how-to-buy .container {
    text-align: center;
}

.how-to-buy h2 {
    font-size: clamp(32px, 4vw, 46px);
    color: var(--dark);
    margin-bottom: 45px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.steps > div {
    background: white;
    border-radius: 16px;
    padding: 30px 25px;
    border: 1px solid var(--border);
}

.steps span {
    width: 42px;
    height: 42px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--dark);
    font-weight: 800;
    font-size: 18px;
}

.steps h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.steps p {
    color: #666;
    font-size: 14px;
}

/* ========================================
   PREGUNTAS FRECUENTES
======================================== */

.faq {
    background: #ffffff;
    padding: 75px 0;
}

.faq .container {
    max-width: 900px;
}

.faq h2 {
    text-align: center;
    font-size: clamp(32px, 4vw, 46px);
    color: var(--dark);
    margin-bottom: 40px;
}

.faq details {
    border-bottom: 1px solid var(--border);
}

.faq summary {
    padding: 22px 5px;
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    float: right;
    font-size: 24px;
    font-weight: 400;
}

.faq details[open] summary::after {
    content: "−";
}

.faq details p {
    padding: 0 35px 22px 5px;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* ========================================
   FOOTER
======================================== */

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 45px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 25px;
}

.footer-links a {
    font-size: 13px;
    color: #ddd;
}

.footer-links a:hover {
    color: var(--yellow);
}

.footer-legal {
    max-width: 420px;
    text-align: right;
}

.footer-legal p {
    margin-bottom: 6px;
    font-size: 12px;
    color: #bbb;
}

/* =========================================
   TPVNET - ADAPTACIÓN RESPONSIVA
   Solo tabletas y dispositivos móviles
   ========================================= */

/* TABLETAS */
@media (max-width: 1024px) {

    .header-container {
        gap: 18px;
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .main-nav {
        gap: 16px;
        flex-wrap: wrap;
    }

    .hero-container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
        gap: 25px;
    }

    .hero-content,
    .hero-product {
        min-width: 0;
    }

    .hero-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .purchase-option {
        min-width: 0;
        flex: 1 1 160px;
    }

    .hero-product {
        min-height: 380px;
    }

    .commission-badge {
        right: 0;
        font-size: 13px;
        padding: 10px 14px;
    }

    .benefits-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .benefits-grid > div {
        min-width: 0;
        padding: 20px 14px;
    }

    .commission-levels,
    .delivery-grid,
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .commission-levels > div,
    .delivery-option,
    .steps > div {
        min-width: 0;
    }

    .support-grid {
        flex-direction: column;
    }

    .support-card {
        min-width: 0;
        padding: 30px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-content > * {
        min-width: 0;
    }
}


/* TELÉFONOS */
@media (max-width: 768px) {

    /* Encabezado y navegación */
    .header-container {
        min-height: 0;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 14px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .header .tpvnet-brand {
        width: 145px;
        max-width: 145px;
        flex-shrink: 0;
    }

    .header .tpvnet-logo {
        width: 100%;
        max-width: 145px;
        height: auto;
    }

    .main-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .btn-header {
        padding: 10px 12px;
        font-size: 12px;
    }


    /* Sección principal */
    .hero {
        padding: 42px 0 48px;
    }
    
    .hero-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
}

  

    .hero-content {
        max-width: none;
        min-width: 0;
    }

    .hero h1 {
        font-size: clamp(38px, 10vw, 52px);
        overflow-wrap: break-word;
    }

    .hero h2 {
        font-size: clamp(27px, 7vw, 35px);
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }


    /* Características del producto */
    .hero-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
        margin-bottom: 28px;
    }

    .hero-feature {
        min-width: 0;
        gap: 8px;
    }

    .hero-feature span {
        font-size: 12px;
        overflow-wrap: break-word;
    }


    /* Precios y botón de compra */
    .purchase-box {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .purchase-option {
        width: 100%;
        min-width: 0;
        padding: 16px;
    }

    .purchase-box > .btn {
        width: 100%;
        min-width: 0;
        text-align: center;
    }


    /* Imagen de la terminal */
    .hero-product {
        min-height: 0;
        padding: 0 0 42px;
    }

    .hero-product img {
        width: 100%;
        max-width: 420px;
        height: auto;
    }

    .commission-badge {
        right: 0;
        bottom: 0;
        max-width: 100%;
        padding: 9px 13px;
        font-size: 12px;
        text-align: center;
    }


    /* Beneficios */
    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefits-grid > div {
        min-width: 0;
        min-height: 90px;
        padding: 16px 12px;
        border-bottom: 1px solid var(--border);
        overflow-wrap: break-word;
    }

    .benefits-grid strong {
        font-size: 13px;
    }

    .benefits-grid span {
        font-size: 12px;
    }


    /* Espaciado general de las secciones */
    .commissions,
    .accepted-payments,
    .delivery,
    .how-to-buy,
    .faq {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .commission-title {
        margin-bottom: 30px;
    }

    .commission-title p {
        font-size: 14px;
    }


    /* Tarjetas de comisiones */
    .commission-levels {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .commission-levels > div {
        min-width: 0;
        padding: 24px 18px;
    }

    .commission-levels span {
        min-height: 0;
        overflow-wrap: break-word;
    }

    .commission-levels strong {
        font-size: 36px;
    }


    /* Imagen de tarjetas aceptadas */
    .accepted-payments img {
        width: 100%;
        height: auto;
    }

    .accepted-payments h2 {
        font-size: 28px;
        margin-bottom: 25px;
    }


    /* Soporte */
    .support {
        padding: 35px 0;
    }

    .support-grid {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .support-card {
        width: 100%;
        min-width: 0;
        padding: 25px 20px;
    }

    .support-card h2 {
        font-size: 25px;
    }

    .support-card h3 {
        font-size: 18px;
    }

    .btn-whatsapp,
    .btn-ai {
        width: 100%;
        min-width: 0;
        text-align: center;
    }


    /* Opciones de entrega */
    .delivery h2 {
        font-size: clamp(27px, 7vw, 36px);
    }

    .delivery-intro {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .delivery-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .delivery-option {
        min-width: 0;
        padding: 24px 20px;
    }

    .delivery-option p {
        min-height: 0;
    }

    .delivery-select {
        min-height: 46px;
        padding: 12px;
        white-space: normal;
        overflow-wrap: anywhere;
    }


    /* Pasos de compra */
    .how-to-buy h2 {
        font-size: clamp(27px, 7vw, 36px);
        margin-bottom: 30px;
    }

    .steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .steps > div {
        min-width: 0;
        padding: 25px 20px;
    }


    /* Preguntas frecuentes */
    .faq h2 {
        font-size: clamp(27px, 7vw, 36px);
        margin-bottom: 25px;
    }

    .faq summary {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        padding: 18px 5px;
        font-size: 15px;
    }

    .faq summary::after {
        float: none;
        flex-shrink: 0;
    }

    .faq details p {
        padding: 0 5px 20px;
        font-size: 14px;
        overflow-wrap: break-word;
    }


    /* Pie de página */
    .footer-content {
        flex-direction: column;
        gap: 25px;
    }

    .footer-links {
        gap: 14px 18px;
    }

    .footer-legal {
        max-width: 100%;
        text-align: left;
    }

}


/* TELÉFONOS ESTRECHOS */
@media (max-width: 480px) {

    .container {
        width: 92%;
    }

    .header-container {
        column-gap: 10px;
    }

    .header .tpvnet-brand {
        max-width: 125px;
        width: 125px;
    }

    .header .tpvnet-logo {
        max-width: 125px;
    }

    .btn-header {
        padding: 9px 10px;
        font-size: 11px;
    }

    .main-nav {
        gap: 10px 14px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .hero-features {
        gap: 18px 10px;
    }

    .feature-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        font-size: 12px;
    }

    .purchase-option {
        padding: 14px;
    }

    .support-card {
        padding: 22px 16px;
    }

    .delivery-option {
        padding: 22px 16px;
    }

    .tpvnet-chat-toggle {
        right: 15px;
        bottom: 15px;
    }

}









