:root {
    --primary-color: #FF6A00; 
    --primary-hover: #E65F00;
    --text-color: #000000;    
    --text-light: #444444;    
    --bg-color: #FAFAFB;      
    --white: #FFFFFF;
    --border-color: #EAEAEA;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 15px 40px rgba(255, 106, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--text-color);
}

p {
    font-size: 1.05rem;
}

/* Base Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.4);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 24px;
}

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

.btn-large {
    font-size: 1.25rem;
    padding: 18px 40px;
    border-radius: 12px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.main-logo-img {
    height: 48px;
    width: auto;
    display: block;
}

nav a {
    margin-left: 30px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 160px 5% 100px;
    min-height: 100vh;
    background: radial-gradient(circle at right, rgba(255, 106, 0, 0.05), transparent 700px),
                radial-gradient(circle at left bottom, rgba(0, 0, 0, 0.03), transparent 500px);
}

.hero-content {
    flex: 1.1;
    max-width: 650px;
    z-index: 2;
}

.pill {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(255, 106, 0, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 20px;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-visual {
    flex: 0.9;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 10px;
}

/* -- NUEVO DISEÑO FUTURISTA 3D -- */
.futuristic-mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px; 
}

/* Efecto de luz de fondo (halo naranja enorme y sutil) */
.glow-bg {
    position: absolute;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(255,106,0,0.2) 0%, rgba(255,106,0,0) 65%);
    filter: blur(50px);
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Conversaciones Flotantes de Fondo */
.floating-chat {
    position: absolute;
    background: rgba(255,255,255,0.75); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    width: 270px;
    z-index: 1; 
    pointer-events: none;
    overflow: hidden;
    transition: transform 0.6s ease;
}

.chat-header-mini {
    background: rgba(255,106,0,0.85);
    padding: 10px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #FFF;
}

.chat-body-mini {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.msg-mini {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    line-height: 1.35;
    max-width: 90%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.msg-mini.peer {
    align-self: flex-start;
    background-color: rgba(255,255,255,0.9);
    border-top-left-radius: 2px;
}

.msg-mini.self {
    align-self: flex-end;
    background-color: #DCF8C6;
    border-top-right-radius: 2px;
    color: #000;
}

/* Posicionamiento y Blur de Chats */
.chat-1 {
    top: 5%;
    left: -15%;
    transform: translateZ(-200px) rotateY(15deg) rotateX(5deg);
    filter: blur(2px);
    opacity: 0.7;
}

.chat-2 {
    bottom: 5%;
    right: -25%;
    transform: translateZ(-150px) rotateY(-18deg) rotateX(10deg);
    filter: blur(1.5px);
    opacity: 0.85;
}

.chat-3 {
    top: 25%;
    right: -25%;
    transform: translateZ(-350px) rotateY(-10deg) rotateZ(-2deg);
    filter: blur(3.5px);
    opacity: 0.5;
}

.chat-4 {
    bottom: -10%;
    left: -5%;
    transform: translateZ(-80px) rotateY(5deg);
    filter: blur(1px);
    opacity: 0.9;
}

.futuristic-mockup-wrapper:hover .chat-1 { transform: translateZ(-180px) rotateY(12deg) rotateX(3deg); }
.futuristic-mockup-wrapper:hover .chat-2 { transform: translateZ(-120px) rotateY(-15deg) rotateX(8deg); }
.futuristic-mockup-wrapper:hover .chat-3 { transform: translateZ(-300px) rotateY(-8deg) rotateZ(-1deg); }
.futuristic-mockup-wrapper:hover .chat-4 { transform: translateZ(-60px) rotateY(3deg); }


/* Móvil Realista 3D Central */
.phone-wrapper {
    position: relative;
    z-index: 5;
    transform: rotateY(-22deg) rotateX(8deg) rotateZ(2deg);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.futuristic-mockup-wrapper:hover .phone-wrapper {
    transform: rotateY(-12deg) rotateX(4deg) rotateZ(1deg);
}

.phone-frame {
    width: 320px;
    height: 650px;
    background: #111;
    border-radius: 40px;
    border: 3px solid #666;
    position: relative;
    transform-style: preserve-3d;
    
    /* El increíble efecto de Relieve/Extrusión 3D */
    box-shadow: 
        -1px 1px 0 #444,
        -2px 2px 0 #3d3d3d,
        -3px 3px 0 #363636,
        -4px 4px 0 #2f2f2f,
        -5px 5px 0 #282828,
        -6px 6px 0 #222,
        -7px 7px 0 #1b1b1b,
        -8px 8px 0 #141414,
        -9px 9px 0 #0d0d0d,
        -10px 10px 0 #000,
        -30px 40px 60px rgba(0,0,0,0.5);
}

/* Pantalla del móvil */
.phone-screen {
    position: absolute;
    inset: 6px; /* Borde bezel */
    background: var(--white);
    border-radius: 34px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

/* Notch / Cámara superior */
.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 28px;
    background: #111;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 20;
}

/* Botones Físicos (situados en el lateral de la sombra) */
.btn-volume-up, .btn-volume-down, .btn-power {
    position: absolute;
    background: #333;
    width: 4px;
    border-radius: 2px 0 0 2px;
}

.btn-volume-up { left: -7px; top: 120px; height: 45px; }
.btn-volume-down { left: -7px; top: 180px; height: 45px; }
.btn-power { right: -7px; top: 140px; height: 55px; border-radius: 0 2px 2px 0; background: #222; }

/* Contenido del Chat Interno */
.mockup-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 38px 20px 15px; /* Espacio extra para el notch */
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.mockup-avatar {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 50%;
    margin-right: 15px;
}

.mockup-body {
    padding: 15px 15px 30px;
    background-color: #E5DDD5; 
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: hidden;
}

.msg {
    padding: 12px 14px;
    border-radius: 12px;
    max-width: 88%;
    font-size: 0.8rem;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.peer {
    align-self: flex-start;
    background-color: var(--white);
    border-top-left-radius: 2px;
}

.self {
    align-self: flex-end;
    background-color: #DCF8C6;
    border-top-right-radius: 2px;
    color: #000;
}

/* Imagen dentro del chat */
.img-msg {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.img-placeholder {
    background: #fff;
    height: 110px;
    width: 170px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-weight: 600;
    font-size: 0.8rem;
    border: 3px solid var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-image: linear-gradient(120deg, #f0f0f0 0%, #e0e0e0 100%);
}

/* Common Section */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 40px;
}

/* Pain Points (Negative Section) */
.pain-points {
    padding: 120px 5% 80px;
    background-color: #FFF2F2; 
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
    border-bottom: 4px solid #D32F2F; 
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(211, 47, 47, 0.15);
}

.pain-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card-negative h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Tech Solutions Module */
.solution-module {
    padding: 80px 5% 100px;
    background-color: var(--bg-color);
}

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

.tech-title { 
    text-align: center; 
    font-size: 2.8rem; 
    margin-bottom: 60px; 
}

.tech-title span { 
    color: var(--primary-color); 
}

/* 6 Grid layout (WhatsApp) */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tech-grid .feature-item {
    background: var(--white);
    padding: 25px 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.tech-grid .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 106, 0, 0.15);
    border-color: rgba(255, 106, 0, 0.3);
}

.tech-grid .feature-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, rgba(255,106,0,0.1), rgba(255,106,0,0.05));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-grid h3 { 
    font-size: 1.15rem; 
    margin-bottom: 8px; 
}

.tech-grid p { 
    font-size: 0.9rem; 
    color: var(--text-light); 
    line-height: 1.5; 
}

/* WhatsApp Summary Text */
.tech-summary {
    text-align: center;
    max-width: 800px;
    margin: 50px auto 0;
    padding: 25px 30px;
    background: rgba(255,106,0,0.06);
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    font-size: 1.15rem;
    font-weight: 500;
    color: #222;
}

/* Transition Banner */
.transition-banner {
    background-color: var(--primary-color); 
    color: var(--white);
    text-align: center;
    padding: 80px 5%;
}

.transition-banner h2 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Dark Tech BG (Voice Agent Feature) */
.dark-tech-bg {
    background-color: #0F0F0F;
    background-image: radial-gradient(circle at center, #1a1a1a 0%, #0F0F0F 100%);
    padding: 100px 5% 120px;
    color: var(--white);
}

.tech-title-light {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 80px;
    color: var(--white);
}

/* Process Flow Design */
.process-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1050px;
    margin: 0 auto;
    position: relative;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 40px 25px;
    background: #171717;
    border: 1px solid #333;
    border-radius: 16px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.process-step:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 40px rgba(255, 106, 0, 0.15);
    transform: translateY(-8px);
}

.process-connector {
    flex: 0.2;
    height: 4px;
    background: linear-gradient(90deg, #333, var(--primary-color), #333);
    margin-top: 75px;
    border-radius: 2px;
    position: relative;
    opacity: 0.6;
}

.step-icon {
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: #000;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.4);
}

.process-step h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--white);
}

.process-step p {
    font-size: 0.95rem;
    color: #AAA;
    line-height: 1.6;
}

/* Dark CTA Bottom */
.dark-cta {
    padding: 100px 5% 150px;
    background-color: #0F0F0F;
    text-align: center;
    position: relative;
}

.cta-container-dark {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 60px;
    border-top: 1px solid #333; 
}

.dark-cta h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 50px;
    line-height: 1.2;
}

.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 106, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 106, 0, 0);
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background: #050505; 
    color: rgba(255,255,255,0.4);
}

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

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

/* Responsive */
@media (max-width: 992px) {
    .tech-grid.six-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 130px;
    }
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .futuristic-mockup-wrapper {
        transform: scale(0.85);
        margin-top: 30px;
    }
    
    .hero-visual {
        margin-top: 20px;
        padding-left: 0;
        width: 100%;
    }
    nav a:not(.btn) {
        display: none;
    }
}

@media (max-width: 768px) {
    .process-flow {
        flex-direction: column;
        align-items: center;
    }
    .process-connector {
        flex: none;
        width: 4px;
        height: 40px;
        min-height: 40px;
        margin: 15px 0;
        background: linear-gradient(180deg, #333, var(--primary-color), #333);
        border-radius: 2px;
    }
    .process-step {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .section-title, .tech-title, .tech-title-light {
        font-size: 2.2rem;
    }
    .dark-cta h2, .transition-banner h2 {
        font-size: 2rem;
    }
    .tech-grid.six-benefits {
        grid-template-columns: 1fr;
    }
    nav a.btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    .futuristic-mockup-wrapper {
        transform: scale(0.65);
        margin-top: 50px;
        margin-bottom: 50px;
        height: 600px;
    }
    
    /* Configuración especial plana en 2D para que Android/iOS no borren los chats en 3D */
    .floating-chat { 
        display: flex !important;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #F8F9FA !important;
        z-index: 1;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    }
    
    .chat-1 { 
        top: -60px; left: -40px; 
        transform: translateZ(10px) scale(0.85) !important; 
        opacity: 1 !important; 
    }
    .chat-2 { 
        bottom: -60px; right: -40px; 
        transform: translateZ(10px) scale(0.85) !important; 
        opacity: 1 !important; 
    }
    .chat-3 { display: none; } /* Ocultamos las 2 de atrás extra para no saturar al usuario móvil */
    .chat-4 { display: none; }
    
    .main-logo-img {
        height: 38px;
    }
}
