:root {
    --primary-color: #D2042D; /* Rojo Cereza */
    --text-dark: #111111;
    --text-light: #555555;
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-dark);
}

.logo span.dot {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-nav {
    border: 2px solid var(--text-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.btn-nav:hover {
    background-color: var(--text-dark);
    color: #fff !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    margin-top: 60px; /* Offset for fixed navbar */
    position: relative;
    overflow: hidden;
    color: white; /* Cambiar texto a blanco para contraste */
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Oscurecer imagenes para leer texto */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.hero h1 .highlight {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    color: #f0f0f0;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Botones */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(210, 4, 45, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(210, 4, 45, 0.4);
}

/* Secciones Generales */
.section {
    padding: 5rem 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 1rem auto 0;
}

/* Servicios Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-light);
}

/* Paquetes Styles */
.package-list {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
    color: var(--text-light);
}

.package-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.package-list li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: auto; /* Push to bottom if flex */
}

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

/* Equipo */
.bg-light {
    background-color: var(--bg-light);
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.team-member {
    text-align: center;
    max-width: 300px;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #333, #000);
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member .desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contacto */
.contact-container {
    text-align: center;
    background-color: var(--text-dark);
    color: white;
    padding: 4rem 2rem;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-container > * {
    position: relative;
    z-index: 2;
}

.contact-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(210, 4, 45, 0.05) 20px,
        rgba(210, 4, 45, 0.05) 40px
    );
    background-size: 60px 60px; /* Patron repetitivo */
    animation: bgScroll 10s linear infinite;
    z-index: -1;
}

@keyframes bgScroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.contact-container h2 {
    margin-bottom: 1rem;
}

.contact-container p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.btn-whatsapp {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .nav-links {
        position: absolute;
        right: 0;
        height: 92vh;
        top: 8vh;
        background-color: var(--bg-white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        padding-top: 2rem;
    }

    .nav-links li {
        opacity: 0;
        animation: navLinkFade 0.5s ease forwards 0.3s;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
        cursor: pointer;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .team-grid {
        gap: 2rem;
    }
}

.burger {
    display: none;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px;
    transition: all 0.3s ease;
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Update styles for cards */
.package-sub {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-style: italic;
}

.hosting-note {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1.5rem;
    margin-top: -1rem; /* Pull closer to list */
}

/* Fix card flex layout to push button to bottom */
.package-card {
    display: flex;
    flex-direction: column;
    position: relative; /* For badge positioning */
}

/* Estilos de Psicología de Ventas (Paquete Popular) */
.package-card.popular {
    transform: scale(1.05); /* Ligeramente más grande */
    border: 2px solid var(--primary-color);
    box-shadow: 0 15px 40px rgba(210, 4, 45, 0.15);
    z-index: 10;
}

.package-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.package-card.popular:hover {
    transform: scale(1.08); /* Crece aún más al hover */
}

.package-card .btn-outline {
    margin-top: auto;
    text-align: center;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--primary-color); /* Rojo Cereza */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex; /* Centering the icon */
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #b00325;
    transform: scale(1.1);
}

.whatsapp-float i {
    font-size: 35px;
    color: white;
}