/* --- VARIABLES Y RESET --- */
:root {
    --primary-color: #25D366; /* WhatsApp Green */
    --primary-dark: #128C7E;
    --primary-light: #DCF8C6;
    --ai-color: #4285F4; /* Gemini Blue */
    --ai-gradient: linear-gradient(135deg, #4285F4, #9B72CB, #D96570);
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --accent-blue: #2c3e50; /* Color corporativo secundario */
    --gray-placeholder: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- CLASES UTILITARIAS --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 60px 0;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 750;
    padding: 15px 32px;
    border-radius: 50px;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cta i {
    margin-right: 10px;
    font-size: 1.45rem;
}

.btn-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* --- HEADER --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-desktop {
    display: flex;
    align-items: center;
    height: 75px; 
    width: auto; 
    max-height: none;
}

.logo-mobile {
    display: none; 
}

/* tamaño real del logo */
.logo-desktop {
    display: block;
    height: 70px; 
    width: auto;
    max-height: none 
}

.logo span { color: var(--primary-color); }

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1591196753303-ae95fa7592aa?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    height: 90vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-weight: 800;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* --- AI SECTION --- */
.ai-section {
    background: linear-gradient(to bottom, #ffffff, #f0f4ff);
    border-bottom: 1px solid #e0e0e0;
}

.ai-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(66, 133, 244, 0.15);
    padding: 30px;
    max-width: 700px;
    margin: 0 auto;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.ai-card::before {
    content: '';
    position: absolute;
    top: -2px; bottom: -2px; left: -2px; right: -2px;
    background: var(--ai-gradient);
    z-index: -1;
    border-radius: 22px;
}

.ai-badge {
    display: inline-block;
    background: var(--ai-gradient);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ai-input-group {
    margin-bottom: 20px;
    text-align: left;
}

.ai-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 0.9rem;
}

.ai-input, .ai-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.ai-input:focus, .ai-textarea:focus {
    outline: none;
    border-color: var(--ai-color);
}

.btn-ai {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.btn-ai:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.ai-result {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: left;
    display: none;
    border-left: 4px solid var(--ai-color);
}

.ai-result.visible {
    display: block;
    animation: fadeIn 0.5s ease;
}

.ai-result h4 {
    color: var(--ai-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.loading-spinner {
    display: none;
    color: var(--ai-color);
    margin-top: 15px;
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- BENEFICIOS --- */
.section-title {
    font-size: 1.8rem;
    color: var(--accent-blue);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.benefit-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-top: 4px solid var(--primary-color);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefit-card h3 {
    margin-bottom: 10px;
    color: var(--accent-blue);
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* --- CARRUSEL 3D "COVERFLOW" --- */
.carousel-3d-container {
    perspective: 1200px;
    max-width: 100%;
    overflow: hidden;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-3d-track {
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    position: relative;
    height: 520px;
    width: 100%;
}

.carousel-card {
    background: #fff;
    border-radius: 16px;
    width: 320px;
    height: 500px;
    position: absolute;
    transition: all 0.5s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    opacity: 0.8;
    transform-origin: center center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: default;
    border: 1px solid rgba(0,0,0,0.05);
}

.carousel-card.active {
    opacity: 1;
    transform: scale(1) translateZ(0);
    z-index: 20;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.carousel-card.prev {
    transform: translateX(-280px) scale(0.85) rotateY(20deg);
    z-index: 10;
    opacity: 0.6;
    filter: grayscale(0.5);
    cursor: pointer;
}

.carousel-card.prev-2 {
    transform: translateX(-500px) scale(0.7) rotateY(30deg);
    z-index: 5;
    opacity: 0.3;
    cursor: pointer;
}

.carousel-card.next {
    transform: translateX(280px) scale(0.85) rotateY(-20deg);
    z-index: 10;
    opacity: 0.6;
    filter: grayscale(0.5);
    cursor: pointer;
}

.carousel-card.next-2 {
    transform: translateX(500px) scale(0.7) rotateY(-30deg);
    z-index: 5;
    opacity: 0.3;
    cursor: pointer;
}

/* --- SLIDER ANTES/DESPUÉS --- */
.comparison-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f0f0f0;
}

.img-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.placeholder-before {
    background-color: var(--gray-placeholder);
    color: #888;
}

.placeholder-after {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.bg-icon {
    font-size: 5rem;
    opacity: 0.3;
    margin-bottom: 10px;
}

.placeholder-text {
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.img-before {
    width: 50%;
    border-right: 3px solid #fff;
    overflow: hidden;
    z-index: 2;
}

.label-badge {
    position: absolute;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 5;
}

.label-antes {
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #444;
}

.label-reparado {
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-color);
    transform: rotate(5deg);
}

.slider-handle-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    cursor: ew-resize;
    border: 2px solid var(--primary-color);
}

/* --- CONTENIDO DE LA TARJETA --- */
.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.card-subtitle {
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.card-problem {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.6rem;
    line-height: 1.1;
    color: var(--accent-blue);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.4;
}

.btn-card-action {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    text-transform: uppercase;
    font-size: 0.95rem;
}

.btn-card-action:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.5);
}

/* Controles Carrusel */
.carousel-controls {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    z-index: 30;
}

.nav-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.nav-btn:hover { background: var(--primary-color); }

/* --- SERVICIOS Y MARCAS --- */
.services-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.services-list ul {
    display: grid;
    gap: 15px;
    width: 100%;
    max-width: 500px;
}

.services-list li {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--text-dark);
}

.services-list li i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.brands-wrapper {
    width: 100%;
    text-align: center;
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px; 
    margin-top: 20px;
    align-items: center;
}

.brand-logo {
    width: 60px;
    height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- PROCESO --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 4px;
    background: #e0e0e0;
}

.step-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    z-index: 2;
    box-shadow: 0 0 0 5px var(--white);
}

.step-content h3 {
    color: var(--accent-blue);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.step-highlight {
    background: #e8f5e9;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    color: #1b5e20;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 5px;
}

/* --- CIERRE Y CONTACTO --- */
.contact-section {
    background-color: var(--accent-blue);
    color: var(--white);
}

.contact-section .section-title {
    color: var(--white);
}

.contact-section .section-title::after {
    background-color: var(--primary-color);
}

.hours-box {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hours-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.hours-note {
    font-size: 0.85rem;
    margin-top: 10px;
    opacity: 0.8;
    font-style: italic;
}

footer {
    background-color: #1a252f;
    color: #888;
    padding: 20px 0;
    font-size: 0.9rem;
}

.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.float-wa:hover {
    transform: scale(1.1);
    background-color: var(--primary-dark);
}

/* --- MEDIA QUERIES --- */
@media (min-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .benefits-grid { grid-template-columns: repeat(4, 1fr); }
    
    .timeline::before { left: 50%; margin-left: -2px; }
    
    .step-item {
        width: 50%;
        padding-left: 0;
        padding-right: 40px;
        text-align: right;
        margin-left: 0;
    }
    .step-item:nth-child(even) {
        margin-left: 50%;
        padding-right: 0;
        padding-left: 40px;
        text-align: left;
    }
    .step-number { left: 100%; margin-left: -22px; }
    .step-item:nth-child(even) .step-number { left: 0; margin-left: -22px; }
}

/* --- RESPONSIVE (CELULAR) --- */
@media (max-width: 768px) {
    /* En celular, ocultamos el logo grande */
    .logo-desktop {
        display: none;
    }

    /* Y mostramos el icono pequeño */
    .logo-mobile {
        display: block;
        height: 45px; /* Un poco más chico para celular */
        width: auto;
    }
}

