/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

iframe {
    max-width: 100%;
}

:root {
    --primary-color: #0066ff;
    --secondary-color: #00ccff;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --border-radius: 10px;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Navegación */
.navbar {
    background: var(--dark-color);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    max-width: 250px;
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 80px;
    min-width: 40px;
    object-fit: contain;
    display: block;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.btn-speedtest {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.btn-speedtest:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 204, 255, 0.4);
}

/* Banner Promocional */
.promo-banner {
    background: var(--dark-color);
    padding: 1rem 0;
    margin-top: 60px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.banner-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(15, 15, 30, 0.98)),
        linear-gradient(135deg, #1a1a2e, #0f0f1e);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background-image: url('img/rappido.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
    filter: brightness(1.2) contrast(1.1);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}



.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Planes Section */
.planes {
    padding: 80px 0;
    background: var(--light-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.planes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.plan-card {
    background: white;
    border-radius: 25px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    position: relative;
    border: none;
    display: flex;
    flex-direction: column;
    text-align: center;
    min-height: 450px;
}

.plan-card::before {
    display: none;
}

.plan-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 102, 255, 0.25);
}

@keyframes borderGlow {

    0%,
    100% {
        box-shadow: 0 20px 40px rgba(0, 102, 255, 0.3),
            0 0 20px rgba(0, 204, 255, 0.5),
            inset 0 0 20px rgba(0, 102, 255, 0.1);
    }

    50% {
        box-shadow: 0 20px 40px rgba(0, 204, 255, 0.5),
            0 0 30px rgba(0, 255, 255, 0.7),
            inset 0 0 20px rgba(0, 204, 255, 0.2);
    }
}

.plan-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.08);
    box-shadow: 0 25px 50px rgba(0, 102, 255, 0.25);
}

.plan-card.featured:hover {
    transform: scale(1.08) translateY(-15px);
}

.plan-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-header h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.plan-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.plan-speed {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
}

.desde {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
}

.plan-price {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0;
}

.plan-price .currency {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.plan-price .amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.plan-price .period {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
}

.plan-benefits {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
}

.benefit-text {
    font-size: 0.75rem;
    color: #333;
    text-align: center;
    line-height: 1.2;
    font-weight: 500;
}

.plan-footer {
    margin-top: auto;
    padding: 1rem 1.5rem;
    background: #E6F3FF;
    border-radius: 15px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    font-style: italic;
}

.plan-features {
    display: none;
}

.plan-description {
    display: none;
}

.btn-plan {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.4);
}

/* Test de Velocidad nPerf Section */
.nperf-section {
    padding: 80px 0;
    background: white;
}

#speedtest-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

#speedtest-container iframe {
    min-height: 500px;
}

/* Speed Test Widget Styles */
.speedtest-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

#speedtest-widget {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 30px;
    padding: 3.5rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(0, 102, 255, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

#speedtest-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

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

.speed-display {
    position: relative;
    margin-bottom: 2rem;
    z-index: 1;
}

.speed-number {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #0066ff 0%, #00ccff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    font-family: 'Segoe UI', system-ui, sans-serif;
    filter: drop-shadow(0 5px 15px rgba(0, 102, 255, 0.3));
    position: relative;
}

.speed-unit {
    font-size: 2rem;
    color: #0066ff;
    font-weight: 700;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.metric-box {
    background: white;
    padding: 1.8rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 102, 255, 0.15);
    transition: all 0.3s ease;
}

.metric-box:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 102, 255, 0.4);
    box-shadow: 0 12px 35px rgba(0, 102, 255, 0.2);
}

.metric-label {
    font-size: 0.85rem;
    color: #0066ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.metric-value {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #0066ff 0%, #00ccff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.metric-unit {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.server-info-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.info-item {
    background: rgba(0, 102, 255, 0.05);
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 102, 255, 0.15);
}

.info-item-full {
    text-align: center;
}

.info-label {
    font-size: 0.75rem;
    color: #0066ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-right: 0.5rem;
}

.info-value {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.btn-start-test {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #0066ff 0%, #00ccff 100%);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
}

.btn-start-test::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-start-test:hover::before {
    left: 100%;
}

.btn-start-test:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 204, 255, 0.6);
}

.btn-start-test.testing {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    animation: pulse 2s ease-in-out infinite;
}

.btn-start-test.completed {
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
    animation: success-pulse 0.6s ease;
}

@keyframes success-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.test-status {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.progress-container {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 102, 255, 0.2);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0066ff 0%, #00ccff 100%);
    border-radius: 20px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 15px 40px rgba(255, 107, 107, 0.7);
    }
}

.speed-test-recommendations {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    border-left: 4px solid var(--primary-color);
}

.speed-test-recommendations h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.recommendation-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: var(--transition);
}

.recommendation-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.15);
}

.rec-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.recommendation-item p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.recommendation-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.3rem;
}

.nperf-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto 0;
    max-width: 100%;
    padding: 0 15px;
}

.nperf-container iframe {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Mapa de Cobertura Section */
.cobertura {
    padding: 80px 0;
    background: var(--light-color);
}

.map-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto 0;
    max-width: 100%;
    width: 100%;
}

.coverage-map {
    width: 100%;
    max-width: 500px;
    height: 500px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--primary-color);
}

/* Quiénes Somos Section */
.about {
    padding: 80px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1rem;
}

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

.value-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-item h4 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.value-item p {
    color: #666;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--border-radius);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
}

/* Contacto Section */
.contact {
    padding: 80px 0;
    background: var(--light-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-item h4 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    margin-bottom: 0.3rem;
}

.btn-speedtest-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-speedtest-link:hover {
    color: var(--secondary-color);
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
    padding: 0.7rem 1.2rem;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
}

.whatsapp-button svg {
    width: 20px;
    height: 20px;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.4);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    max-width: 200px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-icon {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #ccc;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menú Hamburguesa para móviles */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: var(--transition);
}

/* Responsive */
@media (max-width: 968px) {
    .navbar .container {
        flex-wrap: wrap;
        padding: 0 15px;
    }

    .menu-toggle {
        display: flex;
        order: 2;
    }

    .logo {
        order: 1;
        max-width: 70%;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        gap: 0;
        transition: max-height 0.3s ease;
        background: var(--dark-color);
    }

    .nav-menu.active {
        max-height: 400px;
        padding: 1rem 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
        border-bottom: 1px solid #333;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .btn-speedtest {
        display: block;
        margin: 0.5rem 1rem;
    }
    
    .planes-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .plan-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    * {
        max-width: 100%;
    }

    .banner-img {
        max-width: 100%;
        padding: 0 15px;
    }

    .logo-img {
        height: 35px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .footer-logo {
        height: 50px;
    }

    .hero {
        height: 500px;
    }

    .hero-slide::before {
        width: 320px;
        height: 320px;
        opacity: 0.22;
    }

    .hero-content h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

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

    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        display: block;
        margin: 0.5rem auto;
        text-align: center;
        max-width: 250px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-btn-prev {
        left: 10px;
    }

    .slider-btn-next {
        right: 10px;
    }

    .slider-indicators {
        bottom: 20px;
    }

    .video-play-btn {
        width: 70px;
        height: 70px;
    }

    .video-play-btn svg {
        width: 50px;
        height: 50px;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }

    .planes {
        padding: 40px 0;
    }

    .planes-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 1rem 0;
        margin-top: 2rem;
    }

    .plan-card {
        min-height: auto;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .plan-card.featured {
        transform: scale(1);
    }
    
    .plan-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .plan-card:hover {
        transform: translateY(-10px);
    }

    .plan-card:active::after {
        opacity: 1;
    }

    .plan-card:active {
        transform: translateY(-5px) scale(1.01);
    }

    .plan-badge {
        font-size: 0.7rem;
        padding: 5px 35px;
    }

    .nperf-section {
        padding: 60px 0;
    }

    .speed-test-recommendations {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .speed-test-recommendations h3 {
        font-size: 1.1rem;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .recommendation-item {
        padding: 1rem;
    }

    .rec-icon {
        font-size: 1.5rem;
    }

    .nperf-container {
        padding: 0 10px;
    }

    .cobertura {
        padding: 60px 0;
    }

    .coverage-map {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        min-height: 300px;
    }

    .about {
        padding: 60px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

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

    .stat-item {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .contact {
        padding: 60px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-item {
        padding: 1.2rem;
    }

    .whatsapp-button {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-form h3 {
        font-size: 1.5rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 30px;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .hero {
        height: 450px;
    }

    .hero-slide::before {
        width: 250px;
        height: 250px;
        opacity: 0.20;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

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

    .slider-btn {
        width: 35px;
        height: 35px;
    }

    .slider-btn svg {
        width: 18px;
        height: 18px;
    }

    .video-play-btn {
        width: 60px;
        height: 60px;
    }

    .video-play-btn svg {
        width: 40px;
        height: 40px;
    }

    .video-overlay {
        padding-bottom: 60px;
    }

    .nperf-container {
        padding: 0 5px;
    }

    .coverage-map {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        min-height: 280px;
        border-width: 2px;
    }

    .footer-logo {
        height: 45px;
    }

    .section-title {
        font-size: 1.5rem;
        padding: 0 10px;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .plan-card {
        padding: 2rem 1.5rem;
    }

    .plan-name {
        font-size: 1.6rem;
    }

    .plan-speed {
        font-size: 1rem;
    }

    .plan-price .amount {
        font-size: 2.8rem;
    }
    
    .plan-price .currency {
        font-size: 1.4rem;
    }
    
    .desde {
        font-size: 0.85rem;
    }
    
    .benefit-icon {
        font-size: 1.8rem;
    }
    
    .benefit-text {
        font-size: 0.65rem;
    }
    
    .plan-footer {
        font-size: 0.85rem;
        padding: 0.8rem 1rem;
    }
    
    .plan-benefits {
        gap: 0.6rem;
        margin: 1rem 0;
    }
    
    #speedtest-widget {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }
    
    .speed-number {
        font-size: 4rem;
    }
    
    .speed-unit {
        font-size: 1.2rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
        padding: 0 10px;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .speedtest-container {
        padding: 0 10px;
    }
    
    #speedtest-widget {
        padding: 2rem 1.5rem;
    }
    
    .speed-number {
        font-size: 5rem;
    }
    
    .speed-unit {
        font-size: 1.5rem;
    }
    
    .metrics-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .metric-box {
        padding: 1.2rem 1rem;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-values {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .value-icon {
        font-size: 2.5rem;
    }

    .value-item h4 {
        font-size: 1.1rem;
    }

    .contact-icon {
        font-size: 1.5rem;
    }

    /* Speed Test Widget Mobile */
    #speedtest-widget {
        padding: 2.5rem 1.5rem;
    }

    .speed-number {
        font-size: 5rem;
    }

    .speed-unit {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }

    .metrics-row {
        gap: 1rem;
    }

    .metric-box {
        padding: 1.2rem 1rem;
    }

    .metric-value {
        font-size: 2rem;
    }

    .btn-start-test {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}