/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    /* Colors */
    --clr-primary: #0B192C; /* Deep Blue / Navy */
    --clr-secondary: #1E3E62; /* Lighter Navy */
    --clr-accent: #C5A880; /* Soft Gold */
    --clr-accent-hover: #D4B996;
    
    --clr-bg-light: #F8F9FA;
    --clr-bg-dark: #121212;
    --clr-surface: #FFFFFF;
    
    --clr-text-main: #333333;
    --clr-text-light: #666666;
    --clr-text-inverse: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --section-pad-y: 5rem;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-surface);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--clr-primary);
}

.text-white {
    color: var(--clr-text-inverse) !important;
}

.text-center {
    text-align: center;
}

.lead {
    font-size: 1.25rem;
    color: var(--clr-text-light);
    margin-bottom: 1.5rem;
}

.bg-dark .lead {
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-pad-y) 0;
}

.bg-light {
    background-color: var(--clr-bg-light);
}

.bg-dark {
    background-color: var(--clr-primary);
    color: var(--clr-text-inverse);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-2-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gap-large {
    gap: 4rem;
}

.align-center {
    align-items: center;
}

.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.w-full { width: 100%; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-size: 1rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-text-inverse);
}

.btn-primary:hover {
    background-color: #b3956d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 168, 128, 0.35); /* Tech Glow */
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-text-inverse);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--clr-surface);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary);
}

.btn-outline:hover {
    background-color: var(--clr-primary);
    color: var(--clr-text-inverse);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(11, 25, 44, 0.85); /* Tech Glassmorphism */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Elegant Logo */
.logo a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: white;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}
.logo a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--clr-accent);
    border-radius: 50%;
    margin-left: 2px;
    margin-bottom: 4px;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition-fast);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-accent);
    transition: width var(--transition-normal);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar .btn-outline {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--clr-surface);
    z-index: 999;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
}

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

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--clr-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(rgba(11, 25, 44, 0.92), rgba(11, 25, 44, 0.98)), url('../img/hero_bg.png') center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Tech Data-Grid Pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(var(--clr-accent) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-bg-accent {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.15) 0%, rgba(11, 25, 44, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
}

.trust-badge {
    background: rgba(197, 168, 128, 0.05);
    border: 1px solid rgba(197, 168, 128, 0.3);
    backdrop-filter: blur(4px);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: var(--clr-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(197, 168, 128, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--clr-text-inverse);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-microtext {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 600px;
}

/* ==========================================================================
   Sections & Components
   ========================================================================== */
.section-header {
    margin-bottom: 3rem;
    max-width: 700px;
}

.section-header.text-center {
    margin: 0 auto 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--clr-text-light);
}

/* Services / Qué Hacemos */
.card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all var(--transition-normal);
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--clr-accent);
    transition: width var(--transition-normal);
}

.card:hover::after {
    width: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(197, 168, 128, 0.12); /* Subtle Gold Tech Glow */
    border-color: rgba(197, 168, 128, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(197, 168, 128, 0.1);
    color: var(--clr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 30px;
    height: 30px;
}

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

.card p {
    color: var(--clr-text-light);
    font-size: 0.95rem;
}

/* Check List */
.check-list li {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.check-list svg {
    color: var(--clr-accent);
    margin-right: 1rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
    width: 24px;
    height: 24px;
}

/* Stat Box */
.stat-box-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--clr-accent);
    margin-bottom: 1rem;
}

/* Problemas */
.problems-grid {
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--border-radius-lg);
    background: var(--clr-surface);
    overflow: hidden;
}

.problem-item {
    padding: 2rem;
    border-right: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background-color var(--transition-fast);
}

.problem-item:hover {
    background-color: var(--clr-bg-light);
}

.problem-item:nth-child(4n) { border-right: none; }
.problem-item:nth-last-child(-n+4) { border-bottom: none; }

.problem-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.problem-item p {
    font-size: 0.9rem;
    color: var(--clr-text-light);
}

/* Proceso */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: rgba(197, 168, 128, 0.3);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--clr-surface);
    border: 2px solid var(--clr-accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: transparent;
    -webkit-text-stroke: 1.2px var(--clr-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 15px rgba(197, 168, 128, 0.3), inset 0 0 10px rgba(197, 168, 128, 0.1);
}

.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; color: var(--clr-text-light); }

/* Beneficios */
.image-placeholder {
    position: relative;
    padding-bottom: 2rem;
    padding-right: 2rem;
}

.gold-accent-square {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80%;
    height: 80%;
    background-color: var(--clr-accent);
    border-radius: var(--border-radius-lg);
    z-index: 1;
    box-shadow: 0 0 30px rgba(197, 168, 128, 0.2);
}

.image-inner {
    position: relative;
    z-index: 2;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4/5;
}

.benefits-list li {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(197, 168, 128, 0.1);
    color: var(--clr-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.benefits-list p { font-size: 0.95rem; color: var(--clr-text-light); }

/* Testimonios */
.testimonial-card {
    background-color: var(--clr-surface);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.quote-icon {
    color: rgba(197, 168, 128, 0.3);
    margin-bottom: 1rem;
}

.quote-icon svg { width: 40px; height: 40px; }

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--clr-text-main);
}

.testimonial-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--clr-accent);
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem 0;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--clr-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question svg {
    transition: transform var(--transition-normal);
}

.faq-question.active svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--clr-text-light);
}

/* Contacto & Form */
.cta-section {
    position: relative;
}

.contact-link {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

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

.icon-large {
    width: 32px;
    height: 32px;
    color: var(--clr-accent);
    margin-right: 1.5rem;
}

.contact-link span {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.contact-link strong {
    font-size: 1.25rem;
    color: white;
}

.form-container {
    background-color: var(--clr-surface);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    color: var(--clr-text-main);
}

.form-title { font-size: 1.75rem; margin-bottom: 0.5rem; }
.form-desc { color: var(--clr-text-light); margin-bottom: 2rem; font-size: 0.95rem; }

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--clr-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    background-color: #F8FAFC;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--clr-accent);
    background-color: white;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--clr-text-light);
}

.form-footer-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--clr-text-light);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-footer-note svg {
    width: 14px;
    height: 14px;
    margin-right: 0.25rem;
}

/* Footer */
.footer {
    background-color: #050B14;
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* removed .footer-brand h2 styles */

.footer h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li { margin-bottom: 0.75rem; }
.footer-links a:hover { color: var(--clr-accent); }

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-contact svg {
    margin-right: 1rem;
    color: var(--clr-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.legal-disclaimer {
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.copyright {
    font-size: 0.85rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4);
    color: #FFF;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .problems-grid .problem-item:nth-child(2n) { border-right: none; }
    .problems-grid .problem-item:nth-last-child(-n+2) { border-bottom: none; }
    
    .process-steps::before { display: none; }
    .process-steps { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}

@media (max-width: 768px) {
    /* Layout & Spacing */
    .section { padding: 3rem 0; }
    .hero { padding: 8rem 0 4rem; }
    
    /* Typography */
    .hero-title { font-size: 2.25rem; }
    .section-title { font-size: 2rem; }
    .lead { font-size: 1.1rem; }
    .stat-number { font-size: 2.5rem; }

    /* Grids */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1.5rem; }
    .process-steps { grid-template-columns: 1fr; gap: 2rem; }
    
    /* Problems Grid override */
    .problems-grid .problem-item { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.05); padding: 1.5rem; }
    .problems-grid .problem-item:last-child { border-bottom: none; }

    /* Forms */
    .grid-2-form { grid-template-columns: 1fr; }
    .form-container { padding: 1.5rem; border-radius: 16px; }

    /* Navigation */
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-btn { display: block; }
    .navbar { padding: 1rem 0; }
    .logo a { font-size: 1.5rem; }

    /* Hero */
    .hero-actions { flex-direction: column; gap: 1rem; }
    .btn-large { width: 100%; }

    /* Cards */
    .card { padding: 1.5rem; }
    .stat-box { padding: 2rem; }
    .testimonial-card { padding: 1.5rem; }

    /* Footer */
    .footer { padding: 3rem 0 2rem; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }

    /* Decorative & Spacing */
    .gold-accent-square { display: none; }
    .image-placeholder { margin-bottom: 2rem; padding-right: 0; padding-bottom: 0; }
    .stat-box-container { margin-top: 2rem; }

    /* WhatsApp Button */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}
