:root {
    --dark: #050505;
    --dark-soft: #141414;
    --light: #ffffff;
    --light-soft: #f1f5f9;
    --accent: #b91c1c; /* Elegante Rojo */
    --accent-hover: #991b1b;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --font-heading: 'Outfit', sans-serif; /* O alternativamente Playfair Display si queremos más clásico */
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--dark);
    color: var(--light);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

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

.text-accent { color: var(--accent); }
.text-dark { color: var(--dark); }
.text-white { color: var(--light); }
.text-body { color: #94a3b8; }

.gradient-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-dark { background-color: var(--dark); }
.bg-dark-soft { background-color: var(--dark-soft); }
.bg-white { background-color: var(--light); }
.bg-accent { background-color: var(--accent); }
.bg-accent-soft { background-color: rgba(185, 28, 28, 0.1); }

.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.grid {
    display: grid;
    gap: 32px;
}

.grid-2 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--light);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--light);
    color: var(--light);
}

.btn-outline:hover {
    background-color: var(--light);
    color: var(--dark);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg);
    animation: glow-sweep 3s linear infinite;
}

@keyframes glow-sweep {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(5, 5, 5, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition);
}

.header.scrolled .header-container {
    height: 60px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 75px;
    width: auto;
    max-width: 60vw;
    object-fit: contain;
    background-color: var(--light);
    padding: 2px;
    border-radius: var(--radius-sm);
}

@media (max-width: 767px) {
    .logo-img {
        height: 60px;
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--light);
    letter-spacing: 1px;
}

/* Navigation */
.nav-menu {
    display: none;
}

@media (min-width: 992px) {
    .nav-menu {
        display: block;
    }
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.header-cta {
    display: none;
}

@media (min-width: 992px) {
    .header-cta {
        display: block;
    }
}

.mobile-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 101;
}

@media (min-width: 992px) {
    .mobile-toggle {
        display: none;
    }
}

.hamburger, .hamburger::before, .hamburger::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--light);
    position: absolute;
    transition: var(--transition);
}

.hamburger { top: 11px; }
.hamburger::before { top: -9px; }
.hamburger::after { top: 9px; }

.mobile-toggle.active .hamburger { background-color: transparent; }
.mobile-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.mobile-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* Mobile Nav Overlay */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--dark);
    justify-content: center;
    align-items: center;
    z-index: 99;
}

.nav-menu.active .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.nav-menu.active .nav-link {
    font-size: 1.5rem;
}

.nav-cta-mobile {
    display: none;
    margin-top: 32px;
}

.nav-menu.active .nav-cta-mobile {
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.4) 100%);
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

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

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-accent {
    background-color: var(--accent-soft);
    color: #fca5a5;
    border: 1px solid rgba(185, 28, 28, 0.3);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
}

.hero-subtitle-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    height: 2rem;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 400;
    color: #cbd5e1;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.5rem;
    background-color: var(--accent);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    display: flex;
    justify-content: center;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--light);
    border-radius: 2px;
    margin-top: 8px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

/* Sections Base */
.section-label {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
}

/* Nosotros */
.feature-list {
    list-style: none;
    display: grid;
    gap: 16px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    color: var(--accent);
    margin-top: 2px;
}

.image-glass-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-glass-card:active {
    transform: scale(0.95);
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
}

.glass-stats {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(5,5,5,0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

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

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--light);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

/* Servicios Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(185, 28, 28, 0.3);
    background: rgba(255,255,255,0.05);
}

.service-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent);
    filter: blur(80px);
    opacity: 0;
    top: -50px;
    right: -50px;
    transition: var(--transition);
    border-radius: 50%;
}

.service-card:hover .service-glow {
    opacity: 0.2;
}

.service-icon-box {
    width: 64px;
    height: 64px;
    background: rgba(185, 28, 28, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(185, 28, 28, 0.2);
    position: relative;
    z-index: 2;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.service-details {
    list-style: none;
    position: relative;
    z-index: 2;
}

.service-details li {
    padding: 8px 0;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
}

.service-details li::before {
    content: '→';
    color: var(--accent);
    margin-right: 10px;
}

.service-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

/* Proceso Horizontal */
.process-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.process-logo {
    display: none;
}

@media (min-width: 1024px) {
    .process-logo {
        display: block;
        position: absolute;
        top: 0;
        left: 24px;
        z-index: 5;
    }
}

.process-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.1);
}

.process-step {
    position: relative;
    padding-left: 70px;
}

.step-node {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--dark);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.process-step:hover .step-node, .process-step.active .step-node {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--light);
    box-shadow: 0 0 25px rgba(185, 28, 28, 0.6);
    transform: scale(1.1);
}

.process-step:hover .step-node {
    transform: scale(1.2);
    box-shadow: 0 0 35px rgba(185, 28, 28, 0.8);
    background: var(--light);
    color: var(--accent);
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.step-desc {
    color: #94a3b8;
}

@media (min-width: 768px) {
    .process-steps {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 20px;
        text-align: center;
    }
    
    .process-line {
        left: 0;
        top: 24px;
        bottom: auto;
        width: 100%;
        height: 2px;
    }
    
    .process-step {
        padding-left: 0;
        padding-top: 70px;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .step-node {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .process-step:hover .step-node, .process-step.active .step-node {
        transform: translateX(-50%) scale(1.1);
    }
    
    .process-step:hover .step-node {
        transform: translateX(-50%) scale(1.3);
        box-shadow: 0 0 40px rgba(185, 28, 28, 0.9);
        background: var(--light);
        color: var(--accent);
    }
}

/* Marquee */
.marquee-section {
    padding: 24px 0;
    background: var(--accent);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding-right: 2.5rem;
}

.marquee-track span {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--light);
    white-space: nowrap;
}

.marquee-track .dot {
    color: var(--light);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Reseñas Google Style */
.google-reviews-widget {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.gr-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    text-align: center;
}

.gr-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

.gr-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.gr-count {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 12px;
}

.gr-logo {
    height: 30px;
}

.gr-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.gr-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.gr-card {
    min-width: 300px;
    flex: 0 0 calc(50% - 12px);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 24px;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .gr-slider {
        flex-direction: column;
        overflow-x: visible;
        gap: 20px;
        padding-bottom: 0;
    }
    .gr-card {
        flex: 0 0 100%;
        min-width: auto;
    }
}

.gr-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}

.gr-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.gr-user-info {
    display: flex;
    flex-direction: column;
}

.gr-user-info strong {
    font-size: 0.95rem;
    color: #0f172a;
}

.gr-user-info span {
    font-size: 0.8rem;
    color: #64748b;
}

.gr-card-google {
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
}

.gr-card-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 12px;
    color: #f59e0b;
}

.gr-verified {
    margin-left: 8px;
    font-size: 0.75rem;
    color: #64748b;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 12px;
}

.gr-text {
    font-size: 0.95rem;
    color: #334155;
    font-style: italic;
}

.gr-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.85rem;
}

.ti-logo {
    height: 20px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.whatsapp-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25D366;
    border-radius: 50%;
    z-index: 1;
    filter: blur(10px);
    opacity: 0.6;
}

.whatsapp-halo {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    z-index: 2;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.whatsapp-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: transparent;
    border-radius: 50%;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.whatsapp-float:hover .whatsapp-icon-wrapper {
    transform: scale(1.1);
}

.whatsapp-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes ping {
    75%, 100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Footer */
.footer {
    background-color: #000;
    padding: 60px 0 100px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand img {
    height: 80px;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--light);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #64748b;
    font-size: 0.875rem;
}

/* Contact Info Section */
.glass-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}
