/* Variables de color inspiradas en la Quebrada */
:root {
    --terracota: #cc5500;
    --azul-cielo: #4a90e2;
    --blanco: #f8f9fa;
    --gris-oscuro: #2c3e50;
    --verde-andino: #27ae60;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gris-oscuro);
    background-color: var(--blanco);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background-color: var(--terracota);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.language-switcher {
    margin-top: 1rem;
}

.language-switcher button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.3rem 0.8rem;
    margin: 0 0.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.language-switcher button:hover {
    background: rgba(255,255,255,0.3);
}

/* Hero Section */
.hero {
    position: relative;
    background: url("images/WhatsApp%20Image%202026-03-19%20at%2023.09.37.jpeg") center/cover no-repeat !important;
    color: white;
    text-align: center;
    padding: 6rem 0; /* Padding incrementado para que la imagen luzca más */
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Un overlay más oscuro para asegurar legibilidad */
    background: linear-gradient(135deg, rgba(204, 85, 0, 0.7), rgba(44, 62, 80, 0.6));
    z-index: 1;
}

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

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 1;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn.whatsapp {
    background-color: #25d366;
    color: white;
}

.btn.maps {
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Secciones generales */
section {
    padding: 3rem 0;
}

section h2, section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--terracota);
}

.service-highlight, .how-it-works {
    background-color: #f8f9fa;
}

.destinations {
    background-color: rgba(204, 85, 0, 0.04); /* Fondo diferente, tono cálido sutil */
    border-top: 1px solid rgba(204, 85, 0, 0.1);
    border-bottom: 1px solid rgba(204, 85, 0, 0.1);
}

.features-grid, .destinations-grid, .steps {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature, .destination, .step {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
}

.destination {
    cursor: pointer;
    border: 1.5px solid transparent;
}

.destination::after {
    content: "📲 Consultar";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #25d366;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
    pointer-events: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.destination:hover::after {
    opacity: 1;
    bottom: -12px;
}

.destination:hover {
    border-color: rgba(37, 211, 102, 0.4);
}

.feature h4, .destination h4, .step h4 {
    color: var(--terracota);
    margin-bottom: 0.8rem;
}

/* Integración de Imágenes */
.service-layout, .steps-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.service-layout .features-grid, .steps-layout .steps {
    flex: 1;
    min-width: 300px;
}

.image-showcase {
    flex: 1;
    min-width: 300px;
    display: flex;
}

.right-align {
    justify-content: flex-end;
}

.left-align {
    justify-content: flex-start;
}

.rounded-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    max-height: 400px;
    transition: transform 0.5s ease;
}

.shadow-img {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.rounded-img:hover {
    transform: scale(1.02);
}

.fleet-banner {
    padding: 1rem 0;
}

.full-width-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
}

/* Fin Imágenes */

/* FAQ */
.faq {
    background-color: var(--blanco);
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid var(--terracota);
    border-radius: 0 5px 5px 0;
}

.faq-item h4 {
    color: var(--terracota);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--gris-oscuro);
    color: white;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

footer a {
    color: #ffd060;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Chatbot (estilos básicos - se complementarán con chatbot-core.js) */
#chat-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--terracota);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(204,85,0,0.4);
    z-index: 1000;
    transition: transform 0.2s, box-shadow 0.2s;
}

#chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(204,85,0,0.6);
}

#chat-window {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 340px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9) translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 999;
}

#chat-window.open {
    opacity: 1;
    pointer-events: all;
    transform: scale(1) translateY(0);
}

/* Chat header */
.chat-header {
    background: linear-gradient(135deg, #3d1c00, #7a3800);
    color: white;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,208,96,0.2);
    border: 1.5px solid rgba(255,208,96,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.chat-header-info {
    flex: 1;
}

.chat-header-info strong {
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.chat-header-info span {
    font-size: 11px;
    color: #ffd060;
    margin-top: 1px;
    display: block;
}

.online-dot {
    width: 7px;
    height: 7px;
    background: #5dca75;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

/* Selector de idioma en el header */
.lang-toggle {
    display: flex;
    gap: 4px;
    background: rgba(0,0,0,0.25);
    border-radius: 20px;
    padding: 3px;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: sans-serif;
    letter-spacing: 0.5px;
}

.lang-btn.active {
    background: #ffd060;
    color: #3d1c00;
}

.chat-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    margin-left: 4px;
}

.chat-close:hover {
    background: rgba(255,255,255,0.3);
}

/* Pantalla de selección de idioma */
#lang-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: #fafaf8;
    flex: 1;
    gap: 1rem;
}

.lang-screen-icon {
    font-size: 40px;
    margin-bottom: .25rem;
}

.lang-screen-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: sans-serif;
    text-align: center;
}

.lang-screen-sub {
    font-size: 13px;
    color: #888;
    font-family: sans-serif;
    text-align: center;
}

.lang-choice-btns {
    display: flex;
    gap: 12px;
    margin-top: .5rem;
}

.lang-choice-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px solid #e0d5c5;
    border-radius: 14px;
    padding: 14px 20px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: sans-serif;
    min-width: 120px;
}

.lang-choice-btn:hover {
    border-color: #ffd060;
    box-shadow: 0 2px 12px rgba(255,208,96,0.3);
}

.lang-choice-btn .flag {
    font-size: 28px;
}

.lang-choice-btn .lang-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.lang-choice-btn .lang-sub {
    font-size: 11px;
    color: #888;
}

/* Sugerencias rápidas */
.quick-suggestions {
    display: flex;
    gap: 6px;
    padding: 10px 12px 4px;
    overflow-x: auto;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    scrollbar-width: none;
}

.quick-suggestions::-webkit-scrollbar {
    display: none;
}

.suggestion-btn {
    white-space: nowrap;
    background: #fff;
    border: 1px solid #e0d5c5;
    color: #7a3800;
    font-size: 11.5px;
    padding: 5px 11px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: sans-serif;
}

.suggestion-btn:hover {
    background: #fff8ec;
    border-color: #ffd060;
}

/* Mensajes */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fafaf8;
}

.msg {
    max-width: 85%;
    padding: 10px 13px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.6;
    font-family: sans-serif;
}

.msg.bot {
    background: #fff;
    border: 1px solid #ede8de;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: #1a1a1a;
}

.msg.user {
    background: linear-gradient(135deg, #7a3800, #3d1c00);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.msg.typing {
    color: #aaa;
    font-style: italic;
    background: #fff;
    border: 1px solid #ede8de;
}

/* Input */
.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 11px 12px;
    border-top: 1px solid #eee;
    background: white;
}

.chat-input-area input {
    flex: 1;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 13px;
    font-family: sans-serif;
    outline: none;
    transition: border-color 0.15s;
    background: #fafaf8;
}

.chat-input-area input:focus {
    border-color: #7a3800;
    background: white;
}

.chat-input-area button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd060, #f0a800);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s, box-shadow 0.15s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(240,168,0,0.35);
}

.chat-input-area button:hover {
    transform: scale(1.06);
}

.chat-input-area button:active {
    transform: scale(0.94);
}

.chat-input-area button svg {
    width: 16px;
    height: 16px;
    fill: #3d1c00;
}

.chat-input-area button:disabled {
    background: #e0e0e0;
    box-shadow: none;
    cursor: not-allowed;
}

@media (max-width: 400px) {
    #chat-window {
        width: calc(100vw - 16px);
        right: 8px;
        bottom: 88px;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    #chat-window {
        width: calc(100vw - 20px);
        height: 400px;
    }
}

/* ANIMACIONES DINÁMICAS Y FLUIDAS AÑADIDAS */
.animate-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* La animación dinámica la agregamos temporalmente pero para el background-image no va igual, así que animamos el pseudo-elemento overlay en hero */
.hero::before {
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0% { background: linear-gradient(135deg, rgba(204, 85, 0, 0.75), rgba(44, 62, 80, 0.5)); }
    50% { background: linear-gradient(135deg, rgba(204, 85, 0, 0.6), rgba(44, 62, 80, 0.8)); }
    100% { background: linear-gradient(135deg, rgba(204, 85, 0, 0.75), rgba(44, 62, 80, 0.5)); }
}

/* Efecto continuo de fondo eliminado en hero para que muestre la foto, movido a overlay */

/* Movimiento continuo de botón flotante */
#chat-toggle {
    animation: floatChat 3s ease-in-out infinite;
}

@keyframes floatChat {
    0% { transform: translateY(0px) scale(1); box-shadow: 0 4px 12px rgba(204,85,0,0.4); }
    50% { transform: translateY(-8px) scale(1.05); box-shadow: 0 8px 24px rgba(204,85,0,0.6); }
    100% { transform: translateY(0px) scale(1); box-shadow: 0 4px 12px rgba(204,85,0,0.4); }
}

/* Efecto Hover en Tarjetas más dinámico */
.feature, .destination, .step, .faq-item {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease !important;
}

.feature:hover, .destination:hover, .step:hover, .faq-item:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.12) !important;
}

/* Animación pulsante del botón WhatsApp */
.btn.whatsapp {
    animation: pulseGlow 2.5s infinite !important;
}

@keyframes pulseGlow {
    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); }
}

/* Botón de WhatsApp dentro del chat */
.whatsapp-chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: white !important;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13.5px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 5px;
}

.whatsapp-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.4);
}