/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

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

/* Header Styles */
.header-section {
    height: 100vh;
    background: url('../img/header-bg.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo img {
    width: 150px;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.nav-menu li a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.nav-menu li a:hover {
    color: #FFD700;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

.header-content {
    text-align: center;
    padding: 80px 20px;
    color: #333;
    position: relative;
    z-index: 1;
}

.header-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
    display: none;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 40px;
}

.header-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: #FFD700;
    color: #333;
    padding: 16px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-block;
    border: none;
    cursor: pointer;
    text-align: center;
}

.cta-button:hover {
    background: #fff;
    color: #333;
    border: 1px solid #FFD700;
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: #fff;
    color: #333;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-top: 20px;
}

.profile-img {
    width: 300px;
    border-radius: 10px;
}

.about-text p {
    margin-bottom: 20px;
}

/* Reiki Section */
.reiki-section {
    padding: 100px 0;
    background: url('../img/reiki-bg.jpg') no-repeat center center/cover;
    color: #333;
}

.reiki-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.reiki-section h2:nth-child(4) { /* Targets the second h2 in the section */
    margin-top: 60px; /* Added more top margin to lower "Reservar Sesión de Reiki" */
}

.reiki-section p {
    margin-bottom: 30px;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: #fff;
    color: #333;
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.gallery-grid img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background: url('../img/contact-bg.jpg') no-repeat center center/cover;
    color: #333;
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.contact-section p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-section form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-section .form-group {
    display: flex;
    flex-direction: column;
}

.contact-section .form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    text-align: left;
}

.contact-section .form-group input,
.contact-section .form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
}

.contact-section .form-group input:focus,
.contact-section .form-group textarea:focus {
    border-color: #FFD700;
    outline: none;
}

.contact-section .form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Thank You Section */
.thankyou-section {
    padding: 100px 0;
    background: #fff;
    color: #333;
    text-align: center;
}

.thankyou-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.thankyou-section p {
    margin-bottom: 40px;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #f9f9f9 0%, #fff 100%);
    color: #333;
    padding: 70px 20px;
    text-align: center;
    border-top: 1px solid #ddd;
}

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

.social-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.social-link {
    color: #333;
    font-size: 36px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    color: #FFD700;
    transform: scale(1.1);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links p {
    margin: 0;
    font-size: 1rem;
}

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

.footer a:hover {
    color: #FFD700;
}

/* AI Agent Section (New) */
.ai-agent-section {
    padding: 40px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.ai-agent-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
}

.jotform-ai-placeholder iframe {
    max-width: 600px;
    height: 688px;
    margin: 0 auto;
    display: block;
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-button {
    background: #0066C3;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.chatbot-button:hover {
    background: #004d99;
}

.chatbot-window {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.chatbot-header {
    background: linear-gradient(180deg, #6C73A8 0%, #6C73A8 100%);
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.chatbot-messages {
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 1rem;
}

.chatbot-message {
    margin: 8px 0;
    padding: 10px;
    border-radius: 5px;
    line-height: 1.4;
}

.chatbot-message.bot {
    background: #f0f0f0;
    text-align: left;
}

.chatbot-message.bot a {
    color: #0066C3;
    text-decoration: underline;
}

.chatbot-message.user {
    background: #0066C3;
    color: #fff;
    text-align: right;
}

.chatbot-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #ccc;
}

.chatbot-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.chatbot-input button {
    background: #0066C3;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1rem;
}

.chatbot-input button:hover {
    background: #004d99;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        text-align: right;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li a {
        color: #333;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .header-section {
        height: 70vh;
        background-attachment: scroll;
    }

    .header-content {
        padding: 50px 15px;
    }

    .header-content::before {
        display: block;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .header-content p {
        font-size: 1rem;
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1.1rem;
    }

    .navbar {
        padding: 15px 20px;
    }

    .logo img {
        width: 120px;
    }

    .social-link {
        font-size: 30px;
    }

    .footer {
        padding: 50px 20px;
    }

    .thankyou-section {
        padding: 50px 20px;
    }

    .thankyou-section p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Responsive AI Agent Section */
    .ai-agent-section {
        padding: 20px 0;
    }

    .jotform-ai-placeholder iframe {
        max-width: 100%;
        height: 500px;
    }

    /* Optimized Chatbot for Mobile */
    .chatbot-container {
        bottom: 15px;
        right: 15px;
    }

    .chatbot-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .chatbot-window {
        width: 90vw;
        max-width: 400px;
        bottom: 70px;
        right: 15px;
        transform: none;
        min-height: 400px;
    }

    .chatbot-messages {
        max-height: 250px;
        padding: 20px;
    }

    .chatbot-message {
        font-size: 1.1rem;
        padding: 12px;
    }

    .chatbot-input {
        padding: 20px;
    }

    .chatbot-input input {
        padding: 12px;
        font-size: 1.1rem;
    }

    .chatbot-input button {
        padding: 12px 20px;
        font-size: 1.1rem;
    }

    /* Responsive Contact Section */
    .contact-section {
        padding: 40px 20px;
    }

    .contact-section h2 {
        font-size: 2rem;
    }

    .contact-section p {
        font-size: 1rem;
        padding: 10px;
    }
}