/* ==========================================================================
   Chivas Tours de Colombia - Main Stylesheet
   ========================================================================== */

:root {
    --color-yellow: #FFE600;
    --color-yellow-hover: #E6CE00;
    --color-red-primary: #A8131B;
    --color-red-dark: #800E14;
    --color-cyan-banner: #62C8F3;
    --color-text-dark: #111111;
    --color-text-white: #FFFFFF;
    --color-facebook: #1877F2;
    --color-instagram: #E4405F;
    --color-whatsapp: #25D366;
    
    --font-heading: 'Montserrat', 'Arial Black', sans-serif;
    --font-body: 'Poppins', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: #f8f9fa;
    color: var(--color-text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

/* 1. Top Announcement Bar */
.top-announcement-bar {
    background-color: var(--color-cyan-banner);
    color: #000000;
    text-align: center;
    padding: 8px 15px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: inset 0 -1px 3px rgba(0,0,0,0.1);
}

/* 2. Main Header / Navigation */
.main-header {
    background-color: var(--color-yellow);
    padding: 10px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.brand-logo img {
    height: 75px;
    width: auto;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.brand-logo img:hover {
    transform: scale(1.05);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.35rem;
    color: var(--color-red-primary);
    text-decoration: none;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #000000;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--color-red-primary);
    transition: width 0.3s ease;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-red-primary);
    cursor: pointer;
}

/* 3. Hero Section (Split Layout) */
.hero-section {
    width: 100%;
    min-height: 580px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 580px;
}

/* Left Column: Media & License Plate Card */
.hero-media-col {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 450px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
}

/* License Plate Component */
.license-plate-card {
    position: relative;
    z-index: 10;
    background-color: var(--color-yellow);
    border: 5px solid #111111;
    border-radius: 18px;
    padding: 25px 35px;
    text-align: center;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.35);
    animation: floatAnimation 4s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.license-plate-card .screw {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #333333;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.4);
}

.screw.top-left { top: 12px; left: 18px; }
.screw.top-right { top: 12px; right: 18px; }
.screw.bottom-left { bottom: 12px; left: 18px; }
.screw.bottom-right { bottom: 12px; right: 18px; }

.plate-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.8rem;
    color: #111111;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.social-icons-group {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.social-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.6rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-btn.facebook { background-color: var(--color-facebook); }
.social-btn.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.social-btn.whatsapp { background-color: var(--color-whatsapp); }

.social-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 15px rgba(0,0,0,0.35);
}

/* Right Column: Form */
.hero-form-col {
    background-color: var(--color-red-primary);
    padding: 50px 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Floating Reserve Badge top right */
.floating-reserve-badge {
    position: absolute;
    top: -15px;
    right: 25px;
    z-index: 20;
}

.badge-content {
    background-color: var(--color-yellow);
    border: 3px solid #111111;
    border-radius: 12px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.badge-icon {
    font-size: 1.4rem;
    color: var(--color-red-primary);
}

.badge-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.1rem;
    color: #111111;
    letter-spacing: 0.5px;
}

.badge-wa-icon {
    background-color: var(--color-whatsapp);
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.badge-wa-icon:hover {
    transform: scale(1.15);
}

/* Form Styles */
.booking-form {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

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

.form-row.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.booking-form label {
    display: block;
    color: var(--color-text-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
    background-color: #ffffff;
    color: #111111;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-form input:focus,
.booking-form textarea:focus {
    border-color: var(--color-yellow);
    box-shadow: 0 0 0 3px rgba(255, 230, 0, 0.4);
}

.booking-form textarea {
    resize: vertical;
    min-height: 110px;
}

.form-submit {
    margin-top: 25px;
    text-align: center;
}

.btn-send {
    background-color: var(--color-yellow);
    color: #000000;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.3rem;
    padding: 12px 60px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: capitalize;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 320px;
}

.btn-send:hover {
    background-color: #ffffff;
    color: var(--color-red-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* 4. Services Section */
.services-section {
    padding: 70px 20px;
    background-color: #ffffff;
}

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

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.3rem;
    color: var(--color-red-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    color: #666666;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

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

.plan-card {
    background-color: #ffffff;
    border: 2px solid #eeeeee;
    border-radius: 16px;
    padding: 35px 25px;
    position: relative;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: var(--color-yellow);
}

.plan-card.featured {
    border: 3px solid var(--color-yellow);
    background: linear-gradient(180deg, #fffdf0 0%, #ffffff 100%);
}

.plan-badge {
    position: absolute;
    top: -14px;
    right: 20px;
    background-color: var(--color-red-primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
}

.plan-badge.highlight {
    background-color: var(--color-yellow);
    color: #000000;
}

.plan-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.plan-icon {
    font-size: 2rem;
    color: var(--color-red-primary);
}

.plan-header h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
}

.plan-desc {
    color: #555555;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 12px;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.plan-features li i {
    color: var(--color-whatsapp);
}

.plan-btn {
    display: block;
    text-align: center;
    background-color: var(--color-red-primary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.plan-btn:hover {
    background-color: var(--color-red-dark);
}

/* 5. Feedback / Testimonials */
.feedback-section {
    padding: 60px 20px;
    background-color: #f1f3f5;
}

.feedback-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.testimonial-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.testimonial-text {
    font-style: italic;
    color: #444444;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--color-red-primary);
}

/* 6. Footer */
.main-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 20px 20px;
}

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

.footer-logo {
    height: 70px;
    width: auto;
    border-radius: 50%;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #aaaaaa;
    max-width: 320px;
}

.footer-links h4, .footer-contact h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-yellow);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-yellow);
}

.footer-contact p {
    color: #cccccc;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--color-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #333333;
    color: #777777;
    font-size: 0.9rem;
}

/* 7. Bottom Left Floating WhatsApp Button Widget */
.floating-whatsapp-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
}

.wa-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    background-color: #ffffff;
    border-radius: 30px;
    padding: 4px 18px 4px 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

.wa-icon-circle {
    background-color: var(--color-whatsapp);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-right: 12px;
}

.wa-pill-text {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #333333;
    font-size: 0.95rem;
}

/* ==========================================================================
   8. AI Chat Widget Styles (Bottom-Right Floating Trigger + Modal)
   ========================================================================== */
.ai-chat-widget-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 10000;
    font-family: var(--font-body);
}

/* Floating Trigger Button */
.ai-chat-trigger-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-red-primary), #b30000);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(220, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.ai-chat-trigger-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(220, 0, 0, 0.5);
}

.chat-badge-pulse {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background-color: #25D366;
    border: 2px solid #ffffff;
    border-radius: 50%;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.ai-chat-trigger-btn .hidden {
    display: none !important;
}

/* Chat Modal Container */
.ai-chat-modal {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 120px);
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.08);
}

.ai-chat-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--color-yellow);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: var(--color-red-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #10B981;
    border: 2px solid #111827;
    border-radius: 50%;
}

.chat-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.chat-subtitle {
    font-size: 0.75rem;
    color: #9CA3AF;
    display: block;
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: #9CA3AF;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.chat-close-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Chat Body */
.chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background-color: #F9FAFB;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Messages */
.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 82%;
    animation: msgFadeIn 0.25s ease-out;
}

@keyframes msgFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-message.bot-message {
    align-self: flex-start;
}

.chat-message.user-message {
    align-self: flex-end;
}

.msg-content {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.45;
    word-break: break-word;
}

.bot-message .msg-content {
    background-color: #ffffff;
    color: #1F2937;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
}

.user-message .msg-content {
    background: linear-gradient(135deg, var(--color-red-primary), #b30000);
    color: #ffffff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(220, 0, 0, 0.25);
}

.msg-time {
    font-size: 0.68rem;
    color: #9CA3AF;
    margin-top: 4px;
    padding: 0 4px;
}

.user-message .msg-time {
    align-self: flex-end;
}

/* Quick Chips */
.quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.chip-btn {
    background-color: #ffffff;
    border: 1px solid var(--color-yellow);
    color: #1F2937;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.chip-btn:hover {
    background-color: var(--color-yellow);
    color: #000000;
    transform: translateY(-1px);
}

/* Typing Dots Indicator */
.typing-indicator-msg .msg-content {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 18px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: #9CA3AF;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Chat Footer & Input */
.chat-footer {
    padding: 12px 16px;
    background-color: #ffffff;
    border-top: 1px solid #E5E7EB;
}

.chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #F3F4F6;
    border-radius: 25px;
    padding: 4px 6px 4px 16px;
    border: 1px solid #E5E7EB;
    transition: border-color 0.2s ease;
}

.chat-form:focus-within {
    border-color: var(--color-red-primary);
    background-color: #ffffff;
}

.chat-form input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.88rem;
    color: #1F2937;
    font-family: inherit;
}

.chat-form button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-red-primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.chat-form button:hover {
    background-color: #b30000;
    transform: scale(1.05);
}

.chat-powered-by {
    text-align: center;
    font-size: 0.68rem;
    color: #9CA3AF;
    margin-top: 8px;
}

.chat-powered-by i {
    color: var(--color-yellow);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-form-col {
        padding: 60px 30px 40px;
    }
    .floating-reserve-badge {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 25px;
        align-self: center;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 10px 20px;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-yellow);
        display: none;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        display: block;
    }
    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .form-row.two-cols {
        grid-template-columns: 1fr;
    }
}
