/* Variables CSS */
:root {
    --primary-orange: #FF6B35;
    --primary-magenta: #E91E63;
    --primary-yellow: #FFC107;
    --dark-bg: #0a0a0a;
    --light-bg: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --white: #ffff;
}

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
}

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

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

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes countUp {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    height: 40px;
}

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

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

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

/* Burger Menu */
.burger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-icon {
    width: 30px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-icon.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.burger-icon.active span:nth-child(2) {
    opacity: 0;
}

.burger-icon.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    padding: 2rem;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 2rem 0;
}

.mobile-nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 1rem;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a1a 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Fondo 3D a full pantalla detrás del contenido */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;               /* debajo del contenido del hero */
}

/* El visor Spline debe cubrir todo */
.hero-bg spline-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;     /* Mantiene interactividad del 3D */
}

/* Overlay suave para contraste de textos */
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;     /* No bloquea interacción con Spline */
  background: radial-gradient(120% 80% at 20% 50%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.15) 100%);
}

/* Asegura que el contenido del hero esté por encima del 3D */
.hero-container {
  position: relative;
  z-index: 2;
}

/* Tu grid decorativo del hero no debe bloquear clics del Spline */
.hero::before {
  pointer-events: none;
  z-index: 1;
}

/* ===== Header transparente solo sobre el HERO ===== */
.header {
  /* tu estilo existente queda como estado "sólido" por defecto */
  background: rgba(10, 10, 10, 0.95);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

/* Cuando el header está sobre el hero, que sea transparente/gradiente */
.header.is-over-hero {
  background: linear-gradient(180deg, rgba(10,10,10,0.65) 0%, rgba(10,10,10,0.15) 60%, rgba(10,10,10,0) 100%);
  backdrop-filter: none;
  box-shadow: none;
}

/* En estado sólido (fuera del hero), mantenemos contraste de links */
.header:not(.is-over-hero) .nav-links a {
  color: var(--white);
}

/* En estado transparente (sobre hero), también blancos para contraste */
.header.is-over-hero .nav-links a {
  color: var(--white);
}

.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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h1 .highlight {
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subheadline {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 500px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-magenta));
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.4);
}

.counter {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    animation: float 3s ease-in-out infinite;
    min-width: 250px;
}

.counter-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-orange);
    display: block;
}

.counter-text {
    color: var(--white);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* WhatsApp Float con SVG */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    animation: pulse 2s infinite;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
    fill: white;
}

/* Problem Section */
.problem-section {
    padding: 6rem 0;
    background: var(--light-bg);
}

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

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

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

.problem-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-orange);
}

.problem-card:hover {
    transform: translateY(-5px);
}

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-magenta);
}

.problem-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.problem-consequence {
    color: var(--text-light);
    font-size: 0.95rem;
}

.hook-final {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* Solution Section */
.solution-section {
    padding: 6rem 0;
    background: var(--dark-bg);
    color: var(--white);
}

.solution-section .section-title {
    color: var(--white);
}

.differentials-list {
    max-width: 800px;
    margin: 0 auto;
}

.differential-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.differential-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.differential-check {
    color: var(--primary-orange);
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.differential-text {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Packages Section */
.packages-section {
    padding: 6rem 0;
    background: var(--light-bg);
}

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

.package-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-magenta));
}

.package-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.package-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.package-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.package-features {
    list-style: none;
    margin-bottom: 2rem;
}

.package-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.package-features li::before {
    content: '✓';
    color: var(--primary-orange);
    font-weight: bold;
    margin-right: 0.5rem;
}

.package-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-magenta);
    margin-bottom: 1rem;
}

.package-cta {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-magenta));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.package-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.cta-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Process Section */
.process-section {
    padding: 6rem 0;
    background: var(--white);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
    flex-wrap: wrap;
    gap: 2rem;
}

.process-step {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-magenta));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.step-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.testimonial {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 3rem;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-dark);
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-orange);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
}

/* Success Cases Section */
.success-section {
    padding: 6rem 0;
    background: var(--dark-bg);
    color: var(--white);
}

.success-section .section-title {
    color: var(--white);
}

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

.success-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.success-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.success-table {
    width: 100%;
    border-collapse: collapse;
}

.success-table th,
.success-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.success-table th {
    color: var(--primary-orange);
    font-weight: 600;
}

/* Guarantees Section */
.guarantees-section {
    padding: 6rem 0;
    background: var(--light-bg);
}

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

.guarantee-seal {
    background: var(--white);
    padding: 2rem;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: float 4s ease-in-out infinite;
}

.guarantee-seal:hover {
    transform: scale(1.05);
}

.guarantee-icon {
    font-size: 3rem;
    color: var(--primary-magenta);
    margin-bottom: 1rem;
}

.guarantee-text {
    font-weight: 600;
    color: var(--text-dark);
}

.guarantee-final {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 3rem;
    font-style: italic;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2a2a2a 100%);
    color: var(--white);
    position: relative;
}

.contact-section::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 100 100"><defs><pattern id="circuit" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23FF6B35" opacity="0.3"/><path d="M0 10h20M10 0v20" stroke="%23E91E63" stroke-width="0.5" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>');
    opacity: 0.1;
}

.contact-section .section-title {
    color: var(--white);
}

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

.contact-option {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    fill: var(--primary-orange);
    margin: 0 auto 1rem;
    display: block;
}

.contact-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info {
    color: #b0b0b0;
}

.location-info {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--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: 50px;
    margin-bottom: 1rem;
}

.footer-slogan {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.footer-note {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.footer-note.negative {
    color: #ff6b6b;
}

.footer-note.positive {
    color: var(--primary-orange);
}

/* Offset para navegación fija */
.section-offset {
    padding-top: 80px;
    margin-top: -10px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    }

    .hero h1 {
    font-size: 2.5rem;
    }

    .hero .subheadline {
    font-size: 1.1rem;
    max-width: 100%;
    }

    .counter {
    position: static;
    margin: 0 auto;
    max-width: 300px;
    }

    .nav-links {
    display: none;
    }

    .burger-menu {
    display: block;
    }

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

    .process-steps {
    flex-direction: column;
    }

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

    .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    }

    .whatsapp-icon {
    width: 24px;
    height: 24px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
    font-size: 2rem;
    }

    .nav-container {
    padding: 0 1rem;
    }

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

    .differential-item {
    flex-direction: column;
    }

    .differential-check {
    margin-bottom: 1rem;
    }
}
