:root {
    --primary-color: #ff9800;
    /* Orange */
    --accent-color: #ff4081;
    /* Pink */
    --black-bg: #000000;
    --dark-grey: #1a1a1a;
    --text-color: #ffffff;
    --text-muted: #cccccc;
    --font-main: 'Outfit', sans-serif;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--black-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    /* Base size */
}

/* Typography Helpers */
.text-14 {
    font-size: 14px !important;
    line-height: 1.8;
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    border-bottom: none;
    display: inline-block;
}

.section-title-wrapper {
    text-align: center;
}

/* Helper if needed */

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px;
    /* Adjusted based on typical header size */
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.whatsapp-icon {
    font-size: 24px;
    color: #25D366;
    /* WhatsApp Green */
    transition: transform 0.3s;
}

.whatsapp-icon:hover {
    transform: scale(1.1);
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-list a {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Shadow overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-text-top {
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Sections General */
.section {
    padding: 80px 0;
}

/* Somos */
.somos {
    background: #050505;
    text-align: center;
}

.somos-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
    /* Or center, depending on preference. Justify looks cleaner for blocks */
    text-align-last: center;
}

/* Tour 360 */
.tour360 {
    text-align: center;
}

.tour-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.tour-btn {
    display: block;
    width: 300px;
    /* Adjust based on image aspect ratio */
    transition: transform 0.3s ease, opacity 0.3s;
}

.tour-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.tour-img-btn {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Gallery */
.gallery {
    background: #050505;
    text-align: center;
}

.gallery-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact */
.contact {
    text-align: center;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);
}

input,
textarea {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.hidden {
    display: none;
}

.success-message {
    color: #25D366;
    margin-top: 20px;
    font-weight: 600;
    padding: 15px;
    border: 1px solid #25D366;
    border-radius: 4px;
}

/* Footer */
.footer {
    padding: 40px 0;
    background: #000;
    border-top: 1px solid #222;
    text-align: center;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2.section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .nav-list {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .nav.active .nav-list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        padding: 20px 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav.active .nav-list li {
        margin: 10px 0;
    }

    .nav.active .nav-list a {
        font-size: 1.1rem;
        padding: 10px;
        display: block;
    }

    .tour-buttons-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .tour-btn {
        width: 100%;
        max-width: 320px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .btn-primary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .whatsapp-contact-container {
        margin-top: 40px;
    }

    .whatsapp-icon-large {
        padding: 10px 20px;
    }

    .whatsapp-icon-large::after {
        font-size: 14px;
    }
}

/* Chatbot Styles */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    /* Uses global orange */
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.3s ease;
    display: flex;
    /* Flex to center icon */
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background-color: #fff;
    /* White background for chat area */
    color: #333;
    /* Dark text for readability */
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chatbot-container.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chatbot-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chatbot-header button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    display: inline-block;
    /* Ensure width fits content */
}

/* Specific styling for Bot Messages */
.bot-message {
    background-color: #e0e0e0;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

/* Specific styling for User Messages */
.user-message {
    background-color: var(--primary-color);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chatbot-input-area {
    padding: 10px;
    background-color: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    align-items: center;
    /* Center vertically */
}

.chatbot-input-area input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
}

.chatbot-input-area input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chatbot-input-area button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    /* Reset border */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    font-size: 16px;
    /* Icon size */
}

.chatbot-input-area button:hover {
    background-color: #e68a00;
    /* Darker orange on hover */
}

.chatbot-input-area button:disabled,
.chatbot-input-area input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

/* Options Buttons Container */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Slightly more gap */
    margin-top: 8px;
    align-items: flex-start;
    width: 100%;
    /* Take full width */
}

.option-btn {
    background-color: #fff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    text-align: left;
    width: auto;
    /* Allow auto width */
    max-width: 100%;
    /* But not wider than container */
}

.option-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Responsive Mobile Styles */
@media (max-width: 480px) {
    .chatbot-container {
        width: 90%;
        bottom: 90px;
        /* Slightly higher */
        right: 5%;
        left: 5%;
        /* Center horizontally */
        height: 60vh;
        /* Dynamic height */
    }

    .logo img {
        height: 40px;
    }

    .header-right {
        gap: 10px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.whatsapp-contact-container {
    text-align: center;
    margin-top: 80px;
}

.whatsapp-icon-large {
    font-size: 24px;
    color: #fff;
    background: linear-gradient(45deg, #25D366, #128C7E);
    padding: 12px 30px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-icon-large::after {
    content: "Escríbenos al WhatsApp";
    font-size: 16px;
    letter-spacing: 0.5px;
}

.whatsapp-icon-large:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    background: linear-gradient(45deg, #20bd5a, #0e7a6d);
}