:root {
    --bg-dark: #050508;
    --bg-card: rgba(15, 15, 20, 0.7);
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Ambient Background */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
}
.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.3);
    top: -100px;
    left: -100px;
    animation: float 10s infinite ease-in-out alternate;
}
.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(16, 185, 129, 0.2);
    bottom: 20%;
    right: -200px;
    animation: float 15s infinite ease-in-out alternate-reverse;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

/* Typography */
.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.header-logo-img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(52, 211, 153, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.header-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(52, 211, 153, 0.5));
}

.footer-logo-img {
    height: 56px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(52, 211, 153, 0.3));
}

.logo-icon {
    color: var(--accent);
}

/* WhatsApp Button */
.btn-outline.btn-lg svg {
    fill: #25D366;
}

.btn-outline.btn-lg:hover {
    background: rgba(37, 211, 102, 0.1);
    border-color: #25D366;
    color: #25D366;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--text-secondary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.badge-pill {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.stat-item h3 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Glass Card & Mockup */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.mockup-card {
    padding: 24px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.mockup-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.dots {
    display: flex;
    gap: 8px;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
}

.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #eab308; }
.dots span:nth-child(3) { background: #22c55e; }

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.tracking-step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    opacity: 0.5;
    position: relative;
}

.tracking-step.active {
    opacity: 1;
}

.tracking-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 50px;
    bottom: -10px;
    width: 2px;
    background: var(--border-color);
}

.tracking-step.active:not(:last-child)::after {
    background: var(--primary);
}

.step-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    z-index: 2;
}

.tracking-step.active .step-icon {
    background: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.step-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.step-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.section-title {
    font-size: 40px;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
}

.perk {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.perk-icon {
    font-size: 24px;
}

.perk-text {
    font-weight: 500;
}

/* Form Styles */
.contact-form-wrapper {
    padding: 40px;
}

.form-header {
    margin-bottom: 32px;
}

.form-header h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.required {
    color: #ef4444;
}

input, select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

/* Loader inside button */
.loader {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Trust Bar */
.trust-bar {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.trust-label {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logos-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    opacity: 0.6;
}

.trust-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--text-secondary);
    filter: grayscale(1);
    transition: all 0.3s;
}

.trust-logo:hover {
    filter: grayscale(0);
    color: var(--text-primary);
    opacity: 1;
}

/* How it Works */
.text-center { text-align: center; }
.section-header { margin-bottom: 60px; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.step-num {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.2;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.step-card p {
    color: var(--text-secondary);
}

/* WhatsApp Detection Badge & Phone Inputs */
.phone-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 12px;
    transition: all 0.3s;
}

.phone-input-group:focus-within {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.phone-input-group input {
    background: transparent;
    border: none;
    padding: 12px 4px;
    border-radius: 0;
}

.phone-input-group input:focus {
    box-shadow: none;
    background: transparent;
}

.phone-prefix {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    user-select: none;
}

.input-area {
    width: 60px !important;
}

.input-with-badge {
    position: relative;
    flex: 1;
}

.wa-detect-badge {
    margin-top: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    animation: fadeInDown 0.3s ease;
    width: fit-content;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive updates */
@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* Coverage Grid replacing Map */
.coverage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.coverage-card {
    padding: 40px 32px;
    border-radius: 24px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.coverage-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.coverage-card:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(14, 165, 233, 0.1);
}

.coverage-card:hover::before {
    opacity: 1;
}

.coverage-icon {
    font-size: 48px;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.coverage-card h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.coverage-card p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
}

.coverage-tags-wrapper {
    max-height: 180px;
    overflow-y: auto;
    padding-bottom: 20px;
    padding-right: 8px;
    /* Efecto de desvanecimiento en la parte inferior */
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Custom Scrollbar for Coverage Tags */
.coverage-tags-wrapper::-webkit-scrollbar {
    width: 4px;
}

.coverage-tags-wrapper::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.3);
    border-radius: 4px;
}

.coverage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coverage-tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.coverage-tags span:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.coverage-tags .highlight-tag {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* =========================================
   RESPONSIVE — TABLET (max-width: 992px)
   ========================================= */
@media (max-width: 992px) {
    .section {
        padding: 60px 0;
    }

    .hero {
        padding-top: 120px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-visual {
        display: none;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .coverage-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .badge-item {
        padding: 20px 8px;
    }

    .badge-icon {
        font-size: 32px;
    }

    .badge-item h4 {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .map-label {
        font-size: 7px;
    }
}

/* =========================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 48px 0;
    }

    .header-container {
        height: 64px;
    }

    .nav {
        gap: 12px;
    }

    .nav a:not(.btn) {
        font-size: 14px;
    }

    .nav .btn-sm {
        padding: 6px 12px;
        font-size: 13px;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        margin-bottom: 32px;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .stat-item h3 {
        font-size: 24px;
    }

    .steps-grid {
        gap: 20px;
    }

    .step-card {
        padding: 24px;
    }

    .coverage-container-real {
        gap: 16px;
    }

    .real-map-container {
        height: 350px;
        border-radius: 12px;
    }

    .coverage-info-side {
        padding: 20px;
        max-height: 250px;
        border-radius: 12px;
    }

    .info-header h3 {
        font-size: 22px;
    }

    .info-item {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* FORM — Critical mobile fix */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form-wrapper {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-header h3 {
        font-size: 20px;
    }

    input, select {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 14px 16px;
    }

    .btn-block {
        padding: 16px;
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .badges-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .badge-item {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 20px;
    }

    .badge-icon {
        font-size: 32px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .badge-item h4 {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .badge-item p {
        font-size: 13px;
    }

    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .map-label {
        font-size: 6px;
    }

    .map-label-loc {
        font-size: 0px !important;
    }
}

/* =========================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ========================================= */
@media (max-width: 480px) {
    .logo {
        font-size: 20px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 15px;
    }

    .contact-form-wrapper {
        padding: 20px 12px;
    }

    .perk {
        padding: 12px;
        gap: 12px;
    }

    .perk-text {
        font-size: 14px;
    }

    .real-map-container {
        height: 280px;
    }

    .coverage-info-side {
        max-height: 200px;
        padding: 16px;
    }
}
