/* --- VARIABLES --- */
:root {
    --primary: #06b6d4;      /* Cian vibrante */
    --primary-dark: #0891b2; /* Cian oscuro */
    --secondary: #0f172a;    /* Azul noche */
    --bg-light: #f8fafc;     /* Blanco grisáceo muy limpio */
    --white: #ffffff;
    --text-gray: #64748b;
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

html { scroll-behavior: smooth; }
body { background-color: var(--bg-light); color: var(--secondary); line-height: 1.6; }
a { text-decoration: none; }
ul { list-style: none; }

/* --- UTILIDADES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(6, 182, 212, 0.25);
}
.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(6, 182, 212, 0.4);
}
.btn-outline {
    background: rgba(255,255,255,0.1);
    border: 2px solid var(--white);
    color: var(--white);
    backdrop-filter: blur(5px);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: 2.5rem; color: var(--secondary); font-weight: 700; margin-bottom: 10px; }
.section-header p { color: var(--text-gray); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* --- NAVBAR --- */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
nav { height: 80px; display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.6rem; font-weight: 800; color: var(--secondary); display: flex; align-items: center; gap: 8px; }
.logo i { color: var(--primary); }

.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-menu a { color: var(--secondary); font-weight: 500; font-size: 0.95rem; transition: 0.3s; }
.nav-menu a:hover { color: var(--primary); }

.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--secondary); }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 95vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.hero-bg-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1581578731117-104f2a863786?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 20px;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 1.5rem; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero p { font-size: 1.25rem; margin-bottom: 2.5rem; opacity: 0.95; font-weight: 300; }

.location-badge {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.15);
    padding: 8px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
}

/* --- ANIMACIÓN BURBUJAS --- */
.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
    top: 0;
    left: 0;
    pointer-events: none;
}
.bubble {
    position: absolute;
    bottom: -100px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.3);
    animation: rise 15s infinite ease-in;
}
.bubble:nth-child(1) { width: 40px; height: 40px; left: 10%; animation-duration: 8s; }
.bubble:nth-child(2) { width: 20px; height: 20px; left: 20%; animation-duration: 5s; animation-delay: 1s; }
.bubble:nth-child(3) { width: 50px; height: 50px; left: 35%; animation-duration: 10s; animation-delay: 2s; }
.bubble:nth-child(4) { width: 80px; height: 80px; left: 50%; animation-duration: 12s; animation-delay: 0s; }
.bubble:nth-child(5) { width: 35px; height: 35px; left: 55%; animation-duration: 7s; animation-delay: 1s; }
.bubble:nth-child(6) { width: 45px; height: 45px; left: 65%; animation-duration: 9s; animation-delay: 3s; }
.bubble:nth-child(7) { width: 90px; height: 90px; left: 80%; animation-duration: 14s; animation-delay: 1s; }

@keyframes rise {
    0% { bottom: -100px; transform: translateX(0); opacity: 0; }
    20% { opacity: 1; }
    100% { bottom: 100%; transform: translateX(-50px); opacity: 0; }
}

/* --- TARJETAS --- */
.services { padding: 6rem 0; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 2px solid #e2e8f0;
    position: relative;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary);
}

.card-img-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img-wrapper img { transform: scale(1.08); }

.popular-badge {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 2;
}

.card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 { font-size: 1.5rem; margin-bottom: 0.8rem; color: var(--secondary); }
.card-body p { color: var(--text-gray); margin-bottom: 1.5rem; font-size: 0.95rem; }

.features { list-style: none; margin-bottom: 2rem; }
.features li {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 10px; color: var(--text-gray); font-size: 0.9rem;
}
.features li i { color: var(--primary); }

.card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-box small { font-size: 0.8rem; color: #94a3b8; display: block; }
.price-box strong { font-size: 1.5rem; color: var(--secondary); }

.btn-card {
    background: #e0f2fe; color: var(--primary-dark);
    padding: 8px 20px; border-radius: 10px; font-weight: 600;
    transition: 0.3s;
}
.card:hover .btn-card { background: var(--primary); color: white; }

/* --- CONTACTO --- */
.contact-section {
    background: var(--secondary);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.contact-bg-bubble {
    position: absolute; background: rgba(255,255,255,0.03); border-radius: 50%;
}

.contact-grid {
    display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-top: 3rem; position: relative; z-index: 2;
}
.contact-card {
    background: rgba(255,255,255,0.05);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 260px;
    transition: 0.3s;
}
.contact-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); }
.contact-card i { font-size: 2.2rem; color: var(--primary); margin-bottom: 1rem; }

/* --- FOOTER --- */
footer { background: #0b1120; color: #64748b; padding: 2rem 0; text-align: center; font-size: 0.9rem; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-menu {
        position: absolute; top: 80px; left: 0; width: 100%;
        background: white; flex-direction: column; padding: 2rem;
        transform: translateY(-150%); transition: 0.4s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-menu.active { transform: translateY(0); }
    .hamburger { display: block; }
}