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

:root {
    --blanco: #FFFFFF;
    --amarillo: #F7D046;
    --verde: #2E7D32;
    --gris-oscuro: #333333;
    --gris-medio: #666666;
    --gris-claro: #F5F5F5;
    --gris-borde: #E0E0E0;
    --sombra: rgba(0, 0, 0, 0.08);
    --sombra-hover: rgba(0, 0, 0, 0.12);
    --transicion: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--gris-medio);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    color: var(--verde);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    color: var(--gris-oscuro);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.highlight {
    color: var(--verde);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--amarillo);
    opacity: 0.4;
    z-index: -1;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transicion);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--amarillo);
    color: var(--gris-oscuro);
}

.btn-primary:hover {
    background-color: #F0C320;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--sombra);
}

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

.btn-secondary:hover {
    background-color: var(--verde);
    color: var(--blanco);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn i {
    margin-right: 8px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--blanco);
    box-shadow: 0 2px 10px var(--sombra);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--gris-oscuro);
}

.logo-icon {
    margin-right: 8px;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--gris-oscuro);
    transition: var(--transicion);
    position: relative;
}

.nav-menu a:hover {
    color: var(--verde);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--verde);
    transition: var(--transicion);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gris-oscuro);
    cursor: pointer;
}

/* Hero */
.hero {
    padding: 150px 0 80px;
    background-color: var(--gris-claro);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-color: var(--amarillo);
    opacity: 0.1;
    border-radius: 0 0 0 100px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--gris-medio);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mockup {
    width: 320px;
    background-color: var(--blanco);
    border-radius: 20px;
    box-shadow: 0 15px 30px var(--sombra);
    overflow: hidden;
}

.mockup-header {
    background-color: var(--verde);
    padding: 15px;
    display: flex;
    justify-content: center;
}

.mockup-dots {
    display: flex;
    gap: 8px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--blanco);
    opacity: 0.7;
}

.mockup-content {
    padding: 20px;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    margin-bottom: 15px;
    max-width: 80%;
    position: relative;
    font-size: 0.9rem;
}

.chat-bubble.left {
    background-color: var(--gris-claro);
    border-bottom-left-radius: 4px;
}

.chat-bubble.right {
    background-color: var(--amarillo);
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

/* Problema */
.problema {
    background-color: var(--blanco);
}

.problema-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.problema-card {
    background-color: var(--blanco);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--sombra);
    transition: var(--transicion);
    text-align: center;
}

.problema-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--sombra-hover);
}

.problema-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(47, 125, 50, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--verde);
    font-size: 1.8rem;
}

.problema-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--gris-oscuro);
}

/* Solución */
.solucion {
    background-color: var(--gris-claro);
}

.solucion-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.solucion-text {
    flex: 1;
}

.solucion-list {
    margin: 25px 0;
}

.solucion-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--gris-medio);
}

.solucion-list i {
    color: var(--verde);
    margin-right: 10px;
    font-size: 1.1rem;
}

.solucion-image {
    flex: 1;
}

.dashboard-mockup {
    background-color: var(--blanco);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--sombra);
}

.dashboard-header {
    background-color: var(--verde);
    color: var(--blanco);
    padding: 20px;
    font-weight: 600;
}

.dashboard-stats {
    display: flex;
    background-color: var(--gris-claro);
    padding: 15px;
    justify-content: space-around;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--verde);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gris-medio);
    margin-top: 5px;
}

.dashboard-content {
    padding: 20px;
}

.conversation-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    background-color: var(--gris-claro);
    transition: var(--transicion);
}

.conversation-item.active {
    background-color: rgba(247, 208, 70, 0.2);
    border-left: 4px solid var(--amarillo);
}

.conversation-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--verde);
    color: var(--blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 15px;
}

.conversation-info {
    flex: 1;
}

.conversation-name {
    font-weight: 600;
    color: var(--gris-oscuro);
}

.conversation-preview {
    font-size: 0.9rem;
    color: var(--gris-medio);
    margin-top: 3px;
}

.conversation-time {
    font-size: 0.8rem;
    color: var(--gris-medio);
}

/* Cómo funciona */
.funcionamiento {
    background-color: var(--blanco);
}

.pasos {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.pasos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    height: 100%;
    width: 2px;
    background-color: var(--gris-borde);
    z-index: 1;
}

.paso {
    display: flex;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.paso-numero {
    width: 60px;
    height: 60px;
    background-color: var(--amarillo);
    color: var(--gris-oscuro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 30px;
    flex-shrink: 0;
}

.paso-contenido {
    background-color: var(--blanco);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px var(--sombra);
    flex: 1;
}

.paso-contenido h3 {
    margin-bottom: 10px;
    color: var(--verde);
}

/* Demo */
.demo {
    background-color: var(--gris-claro);
}

.demo-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.demo-text {
    flex: 1;
}

.demo-features {
    margin: 25px 0 30px;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature i {
    color: var(--verde);
    margin-right: 10px;
    font-size: 1.2rem;
}

.demo-note {
    font-size: 0.9rem;
    margin-top: 15px;
    color: var(--gris-medio);
    font-style: italic;
}

.demo-image {
    flex: 1;
}

.demo-mockup {
    position: relative;
}

.demo-mockup-screen {
    background-color: var(--blanco);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px var(--sombra);
}

.screen-header {
    background-color: var(--verde);
    color: var(--blanco);
    padding: 15px 20px;
    font-weight: 600;
}

.screen-content {
    padding: 20px;
}

.demo-chat {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.demo-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
}

.demo-message.received {
    background-color: var(--gris-claro);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.demo-message.sent {
    background-color: var(--amarillo);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    color: var(--gris-medio);
    text-align: right;
    margin-top: 5px;
}

.demo-input {
    display: flex;
    margin-top: 15px;
    border: 1px solid var(--gris-borde);
    border-radius: 50px;
    overflow: hidden;
    padding: 5px;
}

.demo-input input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-family: 'Inter', sans-serif;
    background-color: var(--gris-claro);
}

.demo-send-btn {
    background-color: var(--verde);
    color: var(--blanco);
    border: none;
    width: 45px;
    border-radius: 50%;
    cursor: not-allowed;
}

/* Casos de uso */
.casos-uso {
    background-color: var(--blanco);
}

.casos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.caso-card {
    background-color: var(--blanco);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--sombra);
    transition: var(--transicion);
    text-align: center;
}

.caso-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--sombra-hover);
}

.caso-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(247, 208, 70, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--gris-oscuro);
    font-size: 1.8rem;
}

.caso-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--gris-oscuro);
}

/* Contacto */
.contacto {
    background-color: var(--gris-claro);
}

.contacto-content {
    display: flex;
    gap: 60px;
}

.contacto-text {
    flex: 1;
}

.contacto-info {
    margin-top: 30px;
}

.contacto-item {
    display: flex;
    margin-bottom: 25px;
}

.contacto-item i {
    color: var(--verde);
    font-size: 1.5rem;
    margin-right: 15px;
    margin-top: 5px;
}

.contacto-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contacto-form {
    flex: 1;
    background-color: var(--blanco);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--sombra);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gris-oscuro);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--gris-borde);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transicion);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--verde);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-note {
    font-size: 0.85rem;
    margin-top: 15px;
    color: var(--gris-medio);
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--gris-oscuro);
    color: var(--blanco);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-brand {
    flex: 2;
    min-width: 300px;
    margin-bottom: 30px;
}

.footer-brand .logo {
    color: var(--blanco);
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transicion);
}

.social-links a:hover {
    background-color: var(--amarillo);
    color: var(--gris-oscuro);
}

.footer-links {
    flex: 3;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-column {
    min-width: 150px;
    margin-bottom: 30px;
}

.footer-column h4 {
    color: var(--blanco);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transicion);
}

.footer-column a:hover {
    color: var(--amarillo);
}

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

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--verde);
    color: var(--blanco);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transicion);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--amarillo);
    color: var(--gris-oscuro);
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .solucion-content,
    .demo-content,
    .contacto-content {
        flex-direction: column;
    }
    
    .pasos::before {
        left: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--blanco);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 10px 15px var(--sombra);
        transition: var(--transicion);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .paso {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .paso-numero {
        margin-bottom: 15px;
    }
    
    .pasos::before {
        left: 30px;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        margin-bottom: 10px;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

/* ===== BOTÓN FLOTANTE DE WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Color oficial de WhatsApp */
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E; /* Color más oscuro de WhatsApp */
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--gris-oscuro);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-tooltip:after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--gris-oscuro);
}

/* Animación de pulso */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Para móviles, hacerlo un poco más pequeño */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
    
    .whatsapp-tooltip {
        display: none; /* Ocultar tooltip en móviles */
    }
}

/* Para tablets */
@media (max-width: 1024px) {
    .whatsapp-float {
        width: 58px;
        height: 58px;
        font-size: 29px;
    }
}

/* Ocultar en impresión */
@media print {
    .whatsapp-float {
        display: none !important;
    }
}
