/* =========================================
   1. RESET Y VARIABLES GLOBALES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blanco: #ffffff;
    --negro: #1a1a1a;
    --azul-oscuro: #0f2a4a;
    --azul-claro: #1e4b7a;
    --gris-fondo: #f9f9f9;
    --azul-muy-claro: #f0f4f8;
    --fuente: 'Inter', sans-serif;
    --sombra-suave: 0 4px 15px rgba(0,0,0,0.05);
    --sombra-media: 0 8px 20px rgba(0,0,0,0.1);
    --radio: 12px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--fuente);
    background-color: var(--blanco);
    color: var(--negro);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   2. UTILIDADES Y LAYOUT
   ========================================= */
.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

.section-padding {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--gris-fondo);
}

.bg-light-blue {
    background-color: var(--azul-muy-claro);
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--azul-oscuro);
    line-height: 1.3;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: #555;
    font-size: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   3. COMPONENTES (Botones, Tarjetas)
   ========================================= */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 320px;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--azul-oscuro);
    color: var(--blanco);
}

.btn-primary:hover {
    background-color: var(--azul-claro);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--azul-oscuro);
    border: 2px solid var(--azul-oscuro);
}

.btn-secondary:hover {
    background-color: var(--azul-oscuro);
    color: var(--blanco);
}

.card {
    background: var(--blanco);
    padding: 2rem 1.5rem;
    border-radius: var(--radio);
    box-shadow: var(--sombra-suave);
    border: 1px solid #eee;
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card:hover {
    transform: translateY(-5px);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.card h3 {
    color: var(--azul-oscuro);
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
}

.card p {
    font-size: 0.95rem;
    color: #555;
}

.grid-3, .grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* =========================================
   4. HEADER
   ========================================= */
.header {
    background-color: var(--blanco);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.logo {
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo-img {
    height: 45px;
    width: auto;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 1.5rem;
    width: 100%;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--negro);
    transition: color 0.3s;
    white-space: nowrap;
}

.nav a:hover {
    color: var(--azul-oscuro);
}

.btn-nav {
    background-color: var(--azul-oscuro);
    color: var(--blanco) !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
}

.nav-tiendas {
    color: var(--azul-oscuro) !important;
    font-weight: 700 !important;
}

/* =========================================
   5. HERO
   ========================================= */
.hero {
    background-color: var(--gris-fondo);
    padding: 3rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--negro);
    line-height: 1.2;
}

.hero p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: #444;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

/* =========================================
   6. SECCIÓN IPHONE
   ========================================= */
.split-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.split-text {
    flex: 1;
    width: 100%;
}

.split-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #333;
    line-height: 1.7;
}

.check-list {
    margin-bottom: 2rem;
}

.check-list li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: #333;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.split-image {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.split-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radio);
    box-shadow: var(--sombra-media);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* =========================================
   7. SECCIÓN SOFTWARE
   ========================================= */
.software-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.card-software {
    background: var(--blanco);
    padding: 2rem 1.5rem;
    border-radius: var(--radio);
    border-left: 5px solid var(--azul-oscuro);
    box-shadow: var(--sombra-suave);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-software:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-media);
}

.card-software h3 {
    color: var(--azul-oscuro);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-software p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* =========================================
   8. GALERÍA
   ========================================= */
.gallery-item {
    background: var(--blanco);
    border-radius: var(--radio);
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.gallery-item p {
    padding: 1rem;
    font-weight: 700;
    color: var(--azul-oscuro);
    font-size: 0.95rem;
}

/* =========================================
   9. POR QUÉ ELEGIRNOS
   ========================================= */
.feature-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--blanco);
    border-radius: var(--radio);
    box-shadow: var(--sombra-suave);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-item h3 {
    color: var(--azul-oscuro);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.feature-item p {
    font-size: 0.95rem;
    color: #555;
}

/* =========================================
   10. CONTACTO
   ========================================= */
.contact {
    padding: 4rem 0;
    background-color: var(--azul-oscuro);
    color: var(--blanco);
    text-align: center;
}

.contact h2 {
    color: var(--blanco);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.contact p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--blanco);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
    max-width: 350px;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: scale(1.03);
}

.phone-number {
    margin-top: 1.5rem;
    font-size: 1.05rem;
}

/* =========================================
   11. FOOTER, REDES SOCIALES Y WHATSAPP FLOTANTE
   ========================================= */
.footer {
    background-color: var(--negro);
    color: #aaa;
    text-align: center;
    padding: 2.5rem 0 2rem;
    font-size: 0.85rem;
}

.footer p {
    margin-bottom: 0.4rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1.5rem;
}

.footer-social a {
    display: inline-flex;
    width: 42px;
    height: 42px;
    background-color: #2a2a2a;
    color: #ccc;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--azul-oscuro);
    color: var(--blanco);
    transform: translateY(-3px);
}

.footer-social svg {
    display: block;
}

.footer-copy {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #777;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* =========================================
   12. ESTILOS ESPECÍFICOS PÁGINA TIENDAS
   ========================================= */
.badge {
    display: inline-block;
    background-color: var(--azul-oscuro);
    color: var(--blanco);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-tiendas h1 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.1rem !important;
    max-width: 700px !important;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.step-card {
    background: var(--blanco);
    padding: 2rem 1.5rem;
    border-radius: var(--radio);
    box-shadow: var(--sombra-suave);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--azul-oscuro);
    color: var(--blanco);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.step-card h3 {
    color: var(--azul-oscuro);
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
}

.step-card p {
    font-size: 0.95rem;
    color: #555;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: var(--radio);
    box-shadow: var(--sombra-suave);
    -webkit-overflow-scrolling: touch;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--blanco);
    min-width: 500px;
}

.price-table thead {
    background-color: var(--azul-oscuro);
    color: var(--blanco);
}

.price-table th,
.price-table td {
    padding: 1rem;
    text-align: center;
    font-size: 0.95rem;
}

.price-table th {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-table tbody tr {
    border-bottom: 1px solid #eee;
}

.price-table tbody tr:last-child {
    border-bottom: none;
}

.price-table tbody tr:nth-child(even) {
    background-color: var(--gris-fondo);
}

.highlight-margin {
    color: var(--azul-oscuro);
    font-weight: 700;
    font-size: 1.05rem;
}

.table-note {
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    margin-top: 1rem;
    font-style: italic;
}

.sub-heading {
    color: var(--azul-oscuro);
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.sub-heading:first-child {
    margin-top: 0;
}

.result-text {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--gris-fondo);
    border-radius: 8px;
    border-left: 4px solid var(--azul-oscuro);
    font-size: 0.95rem;
}

.cta-tiendas-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.cta-tiendas-text {
    flex: 1;
}

.cta-tiendas-text h2 {
    color: var(--azul-oscuro);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-tiendas-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #333;
}

.cta-tiendas-icon {
    font-size: 5rem;
    display: none;
}

.cta-slogan {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* =========================================
   13. MEDIA QUERIES (TABLET >= 768px)
   ========================================= */
@media (min-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        gap: 1rem;
    }

    .logo {
        width: auto;
    }

    .logo-img {
        height: 45px;
    }

    .nav {
        width: auto;
        justify-content: flex-end;
        gap: 1.5rem;
    }

    .nav a {
        font-size: 1rem;
    }

    .hero {
        padding: 5rem 0;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .btn {
        width: auto;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .split-layout {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }

    .split-text, .split-image {
        flex: 1;
        width: 50%;
    }

    .software-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-tiendas-content {
        flex-direction: row;
        text-align: left;
        gap: 3rem;
    }

    .cta-tiendas-icon {
        display: block;
        flex-shrink: 0;
    }

    .hero-tiendas h1 {
        font-size: 3rem;
    }
}

/* =========================================
   14. MEDIA QUERIES (ESCRITORIO >= 1024px)
   ========================================= */
@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .split-layout {
        gap: 4rem;
    }

    .split-image img {
        max-width: 550px;
    }

    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-tiendas h1 {
        font-size: 3.4rem;
    }
}