* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
}

.logo-container h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 40px 0 80px 0;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Mapa simple */
.map-simple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(0deg, rgba(200,220,200,0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,220,200,0.3) 1px, transparent 1px),
        #e8f5e8;
    background-size: 30px 30px;
    z-index: 1;
}

/* Ruta circular simple */
.road-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    border: 12px solid #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Línea central del círculo */
.road-line-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 280px;
    border: 2px dashed #ffff00;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

/* Logo en el centro del círculo */
.center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}

.center-logo-img {
    width: 80px;
    height: auto;
    display: block;
}

/* Vehículo que sigue la ruta circular */
.vehicle-zigzag {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
    animation: circleMovement 10s linear infinite;
    transform-origin: 0 0;
}

.vehicle-img {
    width: 30px;
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.6));
    position: absolute;
    left: 150px; /* Radio del círculo */
    top: -15px;  /* Centrar verticalmente */
    transform: rotate(180deg); /* Rotar 180° para invertir dirección */
}

@keyframes circleMovement {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    z-index: 6;
}

.hero .container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 120px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Plans Section */
.plans {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
    font-weight: 700;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.plan-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.plan-card.featured {
    border: 3px solid #ff6b35;
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #ff6b35;
    color: white;
    padding: 8px 40px;
    font-weight: 600;
    transform: rotate(45deg);
    font-size: 0.9rem;
    z-index: 10;
}

.plan-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 30px 25px;
    text-align: center;
}

.plan-header h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.price {
    margin-bottom: 10px;
}

.currency {
    font-size: 1.2rem;
    vertical-align: top;
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
}

.period {
    font-size: 1rem;
    opacity: 0.8;
}

.prepaid {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.plan-features {
    padding: 30px 25px;
}

.plan-features h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.plan-features ul {
    list-style: none;
}

.plan-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    color: #2a5298;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.plan-footer {
    padding: 20px 25px 30px;
    text-align: center;
    background: #f8f9fa;
}

.installation-free {
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.plan-button {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.plan-button:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.contact .section-title {
    color: white;
    margin-bottom: 40px;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.whatsapp-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.whatsapp-contact i {
    font-size: 3rem;
    color: #25d366;
}

.whatsapp-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.whatsapp-number {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.whatsapp-number:hover {
    color: #25d366;
}

.contact-description {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-logo h3 {
    font-size: 1.3rem;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin-bottom: 5px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        gap: 20px;
    }
    
    .hero .container {
        padding-top: 20px;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .plan-card.featured {
        transform: none;
    }
    
    .whatsapp-contact {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .logo-container h1 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 30px 0 60px 0;
        min-height: 70vh;
        align-items: flex-start;
    }
    
    .hero .container {
        padding-top: 10px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    /* Ajustes móviles para el mapa */
    .road-circle {
        width: 250px;
        height: 250px;
        border-width: 10px;
    }
    
    .road-line-circle {
        width: 230px;
        height: 230px;
    }
    
    .vehicle-img {
        width: 25px;
        height: auto;
        left: 125px; /* Radio ajustado para móviles */
        transform: rotate(180deg); /* Rotar 180° en móviles también */
    }
    
    .center-logo {
        padding: 15px;
    }
    
    .center-logo-img {
        width: 60px;
    }
    
    .plans {
        padding: 60px 0;
    }
    
    .contact {
        padding: 60px 0;
    }
    
    .whatsapp-number {
        font-size: 1.4rem;
    }
    
    .plan-features li {
        font-size: 0.9rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation for cards on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan-card {
    animation: fadeInUp 0.6s ease-out;
}

.plan-card:nth-child(2) {
    animation-delay: 0.2s;
}

.plan-card:nth-child(3) {
    animation-delay: 0.4s;
}