* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS */
:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --card-bg: #2d2d2d;
    --border-color: #444;
    --heading-color: #ffffff;
    --nav-bg-start: #1a252f;
    --nav-bg-end: #2c3e50;
    --footer-bg-start: #1a252f;
    --footer-bg-end: #2c3e50;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #000000;
    --text-secondary: #555555;
    --card-bg: #ffffff;
    --border-color: #ecf0f1;
    --heading-color: #2c3e50;
    --nav-bg-start: #fcfcfc;
    --nav-bg-end: #e8f4f8;
    --footer-bg-start: #e8f4f8;
    --footer-bg-end: #d4e9f2;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-primary);
}

/* Navegación */
nav {
    background: linear-gradient(135deg, var(--nav-bg-start) 0%, var(--nav-bg-end) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] nav {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

[data-theme="light"] .logo {
    color: #2c3e50;
}

.logo img {
    height: 40px;
    width: auto;
    transition: filter 0.3s;
}

[data-theme="dark"] .logo img {
    filter: invert(1) brightness(1.2);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

[data-theme="light"] .nav-links a {
    color: #2c3e50;
}

.nav-links a:hover {
    color: #3498db;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

[data-theme="light"] .menu-toggle {
    color: #2c3e50;
}

/* Hero Section */
.hero {
    background: linear-gradient(-45deg, #2c3e50, #3498db, #2980b9, #1abc9c);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.hero img {
    width: 20%;
    max-width: 150px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.3));
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Secciones */
section {
    max-width: 100%;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: var(--bg-primary);
}

h2 {
    color: var(--heading-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

/* Servicios */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.servicio-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    border-left: 4px solid #3498db;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
}

.servicio-card:hover::before {
    left: 100%;
}

.servicio-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.3);
    border-left-width: 8px;
}

[data-theme="light"] .servicio-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .servicio-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.servicio-card h3 {
    color: var(--heading-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.servicio-price {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.price-tag {
    background: linear-gradient(135deg, #3498db, #2980b9, #3498db);
    background-size: 200% 200%;
    animation: shimmer 3s linear infinite;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-block;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-contratar {
    display: inline-block;
    background: #2ecc71;
    color: white;
    padding: 0.7rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-contratar:hover {
    background: #27ae60;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

/* Packs */
.packs-section {
    background: var(--bg-secondary);
}

.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 95%;
    margin: 2rem auto 0;
}

.pack-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 3px solid #3498db;
    position: relative;
    overflow: hidden;
}

.pack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.pack-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.pack-card.destacado {
    border-color: #2ecc71;
    animation: pulse 2s infinite;
}

[data-theme="light"] .pack-card.destacado {
    background: linear-gradient(135deg, #ffffff 0%, #e8f8f5 100%);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(46, 204, 113, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.pack-card.destacado::before {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.pack-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pack-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.pack-badge.popular {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    animation: wiggle 1s ease infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

.pack-card h3 {
    color: var(--heading-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.pack-price {
    font-size: 2.5rem;
    color: #3498db;
    font-weight: bold;
    margin: 1rem 0;
}

.pack-card.destacado .pack-price {
    color: #2ecc71;
}

.precio-anterior {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 1.3rem;
    margin-right: 0.5rem;
}

.pack-ahorro {
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.pack-includes {
    list-style: none;
    margin: 1.5rem 0;
}

.pack-includes li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.pack-includes li:before {
    content: '✓';
    color: #2ecc71;
    font-weight: bold;
    margin-right: 0.5rem;
}

.pack-button {
    width: 100%;
    background: #3498db;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    text-decoration: none;
    display: block;
    text-align: center;
}

.pack-button:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.pack-card.destacado .pack-button {
    background: #2ecc71;
}

.pack-card.destacado .pack-button:hover {
    background: #27ae60;
}

/* Beneficios */
.beneficios {
    background: var(--bg-secondary);
    padding: 4rem 2rem;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 95%;
    margin: 2rem auto 0;
}

.beneficio-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.beneficio-item:hover {
    transform: translateY(-10px);
}

.beneficio-icon {
    font-size: 3.5rem;
    color: #3498db;
    margin-bottom: 1rem;
    transition: transform 0.3s;
    display: inline-block;
}

.beneficio-item:hover .beneficio-icon {
    transform: scale(1.2) rotate(5deg);
}

.beneficio-item h3 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.beneficio-item p {
    color: var(--text-secondary);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--footer-bg-start) 0%, var(--footer-bg-end) 100%);
    color: white;
    padding: 3rem 2rem 1.5rem;
}

[data-theme="light"] footer {
    color: #2c3e50;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #3498db;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-section i {
    margin-right: 0.5rem;
    color: #3498db;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

[data-theme="light"] .footer-section a {
    color: #2c3e50;
}

.footer-section a:hover {
    color: #3498db;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a i {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: #000000;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Botón scroll top */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3498db;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    z-index: 999;
}

.scroll-top:hover {
    background: #2980b9;
    transform: translateY(-5px);
}

.scroll-top.visible {
    display: flex;
}

/* Botón tema */
.theme-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1001;
    background: #3498db;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: #2980b9;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg-end);
        padding: 1rem;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1rem;
        width: 100%;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero img {
        width: 40%;
        max-width: 120px;
    }

    h2 {
        font-size: 2rem;
    }

    .pack-price {
        font-size: 2rem;
    }

    .servicios-grid,
    .packs-grid,
    .beneficios-grid {
        grid-template-columns: 1fr;
    }

    .nav-container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--bg-primary);
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    cursor: pointer;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
    background: var(--bg-primary);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #3498db;
    transform: scale(1.3);
}

.indicator:hover {
    background: #2980b9;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carousel-slide img {
        max-height: 200px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}