/* ========================================
   PAGES CSS - eSIM & Empresas
   Shared styles for internal pages
   ======================================== */

/* Page Hero */
.page-hero {
    padding: 10rem 0 4rem;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0a0a1a 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 60%),
                radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero-enterprise::before {
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 60%),
                radial-gradient(circle at 70% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
}

.page-hero-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.page-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.page-hero-content p {
    font-size: 1.125rem;
    color: #a0a0c0;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #a5b4fc;
    margin-bottom: 1.5rem;
}

/* Page Sections */
.page-section {
    padding: 5rem 0;
}

.page-section-alt {
    background: rgba(255, 255, 255, 0.02);
}

.section-title-centered {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 2.5rem;
}

/* Steps Grid (eSIM) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: border-color 0.3s;
}

.step-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-card h3 {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: #a0a0b0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* eSIM Search */
.esim-search-box {
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
}

.esim-search-box svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.esim-search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, background 0.3s;
}

.esim-search-box input:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.08);
}

.esim-search-box input::placeholder {
    color: #6b7280;
}

/* eSIM Tabs */
.esim-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.esim-tab {
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: #a0a0b0;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.esim-tab:hover {
    border-color: rgba(99, 102, 241, 0.4);
    color: #fff;
}

.esim-tab.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    color: #fff;
}

/* eSIM Loading */
.esim-loading {
    text-align: center;
    padding: 3rem;
    color: #a0a0b0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* eSIM Results */
.esim-continent-section {
    margin-bottom: 3rem;
}

.esim-continent-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.esim-country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.esim-country-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.esim-country-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.esim-country-card.expanded {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.esim-country-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.esim-country-header h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.esim-plan-count {
    font-size: 0.75rem;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.esim-country-price {
    color: #a0a0b0;
    font-size: 0.875rem;
}

.esim-country-price strong {
    color: #a5b4fc;
    font-size: 1.125rem;
}

/* eSIM Plans Dropdown */
.esim-country-plans {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.esim-plan-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.esim-plan-row:last-of-type {
    border-bottom: none;
}

.esim-plan-info {
    color: #c0c0d0;
    font-size: 0.875rem;
}

.esim-plan-price {
    color: #a5b4fc;
    font-weight: 600;
    font-size: 0.9375rem;
}

.esim-buy-btn {
    display: block;
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.esim-buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

/* eSIM Empty State */
.esim-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
    text-align: center;
    color: #a0a0b0;
}

/* ========================================
   ENTERPRISE PAGE STYLES
   ======================================== */

/* Connectivity Solutions Grid */
.enterprise-solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.solution-card-v2 {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    transition: border-color 0.3s, transform 0.2s;
}

.solution-card-v2:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.solution-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.solution-card-icon svg {
    width: 22px;
    height: 22px;
    color: #a5b4fc;
}

.solution-card-v2 h4 {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.solution-card-v2 > p {
    color: #a0a0b0;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.solution-card-v2 ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution-card-v2 ul li {
    color: #c0c0d0;
    font-size: 0.8125rem;
    padding: 0.3rem 0;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.4;
}

.solution-card-v2 ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #6366f1;
    font-size: 0.75rem;
}

/* Additional Services Tags */
.enterprise-additional-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.additional-service-tag {
    padding: 0.625rem 1.25rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    color: #a5b4fc;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Connectivity icon color */
.enterprise-icon-connectivity {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}
.enterprise-icon-connectivity svg { color: #a5b4fc; }

.enterprise-section-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.enterprise-icon-box {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.enterprise-icon-box svg {
    width: 28px;
    height: 28px;
    color: #a5b4fc;
}

.enterprise-icon-satellite {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}
.enterprise-icon-satellite svg { color: #93c5fd; }

.enterprise-icon-pbx {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}
.enterprise-icon-pbx svg { color: #6ee7b7; }

.enterprise-icon-sip {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}
.enterprise-icon-sip svg { color: #fcd34d; }

.enterprise-section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.enterprise-section-header p {
    color: #a0a0b0;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
}

.enterprise-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e0e0f0;
    margin: 3rem 0 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Enterprise Product Grid */
.enterprise-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.enterprise-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, transform 0.2s;
}

.enterprise-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.enterprise-card-device {
    border-color: rgba(255, 255, 255, 0.06);
}

.enterprise-card-body {
    padding: 1.5rem 1.5rem 1rem;
    flex: 1;
}

.enterprise-card-body h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.enterprise-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.enterprise-features li {
    color: #a0a0b0;
    font-size: 0.8125rem;
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.4;
}

.enterprise-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #6366f1;
    font-size: 0.75rem;
}

.enterprise-term {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.enterprise-card-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.enterprise-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-amount {
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
}

.price-label {
    font-size: 0.8125rem;
    color: #6b7280;
}

.enterprise-btn {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.enterprise-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.enterprise-no-products {
    color: #6b7280;
    font-style: italic;
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
}

/* Page CTA */
.page-cta-section {
    padding: 4rem 0;
}

.page-cta-box {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.page-cta-box h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.page-cta-box p {
    color: #a0a0b0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.page-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .page-hero {
        padding: 8rem 0 3rem;
    }

    .page-hero-content h1 {
        font-size: 2rem;
    }

    .enterprise-section-header {
        flex-direction: column;
        gap: 1rem;
    }

    .esim-country-grid,
    .enterprise-products-grid {
        grid-template-columns: 1fr;
    }

    .esim-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .esim-tab {
        white-space: nowrap;
    }

    .enterprise-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .enterprise-btn {
        width: 100%;
        text-align: center;
    }

    .page-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .page-hero-content p {
        font-size: 1rem;
    }
}


/* === CONTINENT SELECTOR === */
.continent-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.continent-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continent-card:hover {
    border-color: rgba(0, 243, 255, 0.4);
    background: rgba(0, 243, 255, 0.04);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.continent-card.active {
    border-color: #00f3ff;
    background: rgba(0, 243, 255, 0.08);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.15);
}

.continent-card-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.continent-card-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

/* === WORLD MAP (remove old) === */


/* === MODAL OVERLAY (para páginas secundarias) === */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: relative;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    max-width: 550px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 640px) {
    .modal-container {
        padding: 1.5rem;
        margin: 1rem;
    }
}


/* === ROAMING PAGE === */
.roaming-table {
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
}
.roaming-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.8);
}
.roaming-row:last-child { border-bottom: none; }
.roaming-row span:last-child { color: #00f3ff; font-weight: 600; }
.roaming-head {
    background: rgba(0,243,255,0.06);
    font-weight: 700;
    color: #fff;
}
.roaming-head span:last-child { color: #fff; }

.roaming-zones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}
.roaming-zone {
    padding: 1.75rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
}
.roaming-zone-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.zone-1 { background: rgba(34,197,94,0.15); color: #22c55e; }
.zone-2 { background: rgba(0,243,255,0.12); color: #00f3ff; }
.zone-3 { background: rgba(245,158,11,0.15); color: #fbbf24; }
.zone-4 { background: rgba(168,85,247,0.15); color: #a855f7; }
.roaming-zone h4 { color: #fff; font-size: 1.0625rem; margin-bottom: 0.75rem; }
.roaming-zone p { color: rgba(255,255,255,0.6); font-size: 0.8125rem; line-height: 1.6; }
.roaming-prices { list-style: none; padding: 0; margin: 0 0 0.875rem; }
.roaming-prices li {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.8125rem;
}
.roaming-prices li:last-child { border-bottom: none; }
.roaming-prices li span { color: rgba(255,255,255,0.5); }
.roaming-prices li strong { color: #fff; font-weight: 600; }
.roaming-countries { color: rgba(255,255,255,0.45) !important; font-size: 0.75rem !important; }


/* === MODAL TARIFAS INTERNACIONALES === */
.intl-plans { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.intl-plan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    transition: border-color 0.2s;
}
.intl-plan:hover { border-color: rgba(0,243,255,0.35); }
.intl-plan-data { font-size: 1rem; font-weight: 600; color: #fff; }
.intl-plan-extra { font-size: 0.75rem; color: #00f3ff; margin-top: 2px; }
.intl-plan-price { font-size: 1.375rem; font-weight: 800; color: #fff; white-space: nowrap; }
.intl-plan-price small { font-size: 0.75rem; font-weight: 400; color: rgba(255,255,255,0.4); }
.intl-countries {
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}


/* eSIM hint (estado inicial) */
.esim-hint {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255,255,255,0.35);
    font-size: 0.9375rem;
}
