/*---------------------------------------------------------------------
    File Name: styles.css
---------------------------------------------------------------------*/

/*---------------------------------------------------------------------
    import Fonts
---------------------------------------------------------------------*/

/* Google Fonts are imported in the HTML for better performance */

/*---------------------------------------------------------------------
    ROOT
---------------------------------------------------------------------*/
:root {
    --primary-color: #1a1a1a; /* Dark background */
    --secondary-color: #2a2a2a; /* Slightly lighter dark */
    --accent-color: #c5a47e; /* Gold/Brown accent */
    --text-color: #f5f5f5; /* Light text */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Roboto', sans-serif;
}

/*---------------------------------------------------------------------
    General
---------------------------------------------------------------------*/
body {
    font-family: var(--body-font);
    background-color: var(--primary-color);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    padding-top: 70px; /* Adjusted for fixed header */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--accent-color);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.bg-dark {
    background-color: var(--secondary-color) !important;
}

/*---------------------------------------------------------------------
    Header & Navigation
---------------------------------------------------------------------*/
.header {
    background-color: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

.navbar-brand {
    font-family: var(--heading-font);
    font-weight: 700;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
}

/*---------------------------------------------------------------------
    Hero Section
---------------------------------------------------------------------*/
.hero {
    min-height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('wide.jpeg') no-repeat center center/cover;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ddd;
}

/*---------------------------------------------------------------------
    Buttons
---------------------------------------------------------------------*/
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color) !important;
    padding: 12px 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #b3916a;
    border-color: #b3916a;
    transform: translateY(-3px);
}

/*---------------------------------------------------------------------
    Services Section
---------------------------------------------------------------------*/
#services .card {
    background-color: var(--primary-color);
    border: 1px solid #444;
    border-radius: 0;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#services .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-color: var(--accent-color);
}

#services .card-body {
    padding: 2.5rem;
}

#services .card-title {
    color: var(--accent-color);
}

#services .card .card-text {
    color: #fff;
}

#services .card i {
    color: var(--accent-color);
}

/*---------------------------------------------------------------------
    Pricing Section
---------------------------------------------------------------------*/
#precios .card {
    background-color: var(--primary-color);
    border: 1px solid #444;
    border-radius: 0;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#precios .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-color: var(--accent-color);
}

#precios .card.featured {
    border: 2px solid var(--accent-color);
    position: relative;
}

#precios .card.featured::before {
    content: "POPULAR";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.25rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

#precios .card-body {
    padding: 2.5rem 2rem;
}

#precios .card-title {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

#precios .card i {
    color: var(--accent-color);
}

.price {
    margin: 1.5rem 0;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--heading-font);
}

#precios .list-unstyled li {
    margin-bottom: 0.5rem;
    color: #ddd;
}

#precios .list-unstyled .fas {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.duration {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #444;
}

.duration small {
    color: var(--accent-color) !important;
    font-weight: 600;
    font-size: 0.9rem;
}

/*---------------------------------------------------------------------
    Team Section
---------------------------------------------------------------------*/
.team-card {
    background-color: var(--primary-color);
    border: 1px solid #444;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: var(--accent-color);
}

.team-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-overlay .social-links {
    display: flex;
    gap: 1rem;
}

.team-overlay .social-link {
    width: 45px;
    height: 45px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.team-overlay .social-link:hover {
    background-color: #b3916a;
    transform: scale(1.1);
}

.team-info {
    padding: 2rem;
}

.team-info h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.team-position {
    color: #999;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.team-description {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.team-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.specialty-tag {
    background-color: var(--secondary-color);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--accent-color);
}

/*---------------------------------------------------------------------
    Testimonials Section
---------------------------------------------------------------------*/
.testimonial-card {
    background-color: var(--primary-color);
    border: 1px solid #444;
    border-radius: 0;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: var(--accent-color);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-color);
    font-family: var(--heading-font);
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 2;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.stars .fas {
    color: #ffd700;
    font-size: 1.1rem;
}

.testimonial-text {
    color: #ddd;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid #444;
    padding-top: 1.5rem;
}

.author-info h5 {
    color: var(--accent-color);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.author-title {
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/*---------------------------------------------------------------------
    FAQ Section
---------------------------------------------------------------------*/
.accordion {
    --bs-accordion-border-radius: 0;
    --bs-accordion-border-color: #444;
}

.accordion-item {
    background-color: var(--primary-color);
    border: 1px solid #444;
    border-radius: 0 !important;
    margin-bottom: 1rem;
}

.accordion-item:last-child {
    margin-bottom: 0;
}

.accordion-button {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    border-radius: 0 !important;
    padding: 1.5rem;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: var(--accent-color);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(197, 164, 126, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f5f5f5'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a1a1a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    background-color: var(--primary-color);
    color: #ddd;
    padding: 1.5rem;
    line-height: 1.7;
    border-top: 1px solid #444;
}

/*---------------------------------------------------------------------
    Gallery
---------------------------------------------------------------------*/
#gallery .img-fluid {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#gallery .img-fluid:hover {
    transform: scale(1.05);
    opacity: 0.9;
}


/*---------------------------------------------------------------------
    Contact Section
---------------------------------------------------------------------*/
.form-control {
    background-color: var(--secondary-color);
    border: 1px solid #444;
    color: var(--text-color);
    padding: 15px;
    border-radius: 0;
}

.form-control:focus {
    background-color: var(--secondary-color);
    border-color: var(--accent-color);
    color: var(--text-color);
    box-shadow: 0 0 0 0.25rem rgba(197, 164, 126, 0.25);
}

.form-control::placeholder {
    color: #aaa;
}

/*---------------------------------------------------------------------
    Contact Section Styles
---------------------------------------------------------------------*/
.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 0.1rem;
    min-width: 20px;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-item a:hover {
    color: #b3916a;
    text-decoration: underline;
}

.map-embed iframe {
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/*---------------------------------------------------------------------
    Footer
---------------------------------------------------------------------*/
footer {
    background-color: var(--secondary-color);
    border-top: 1px solid #333;
}

.footer-section h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contact p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #ccc;
}

.footer-contact i {
    color: var(--accent-color);
    min-width: 20px;
}

.footer-contact a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-contact a:hover {
    color: #b3916a;
    text-decoration: underline;
}

.footer-hours p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #b3916a;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(197, 164, 126, 0.3);
}

footer hr {
    border-color: #444;
}

/*---------------------------------------------------------------------
    Chat Widget
---------------------------------------------------------------------*/
.chat-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    max-width: 90vw;
    background-color: var(--primary-color);
    border: 1px solid var(--accent-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    display: none; /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-window.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--accent-color);
}

.chat-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.chat-close-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 1rem;
    flex-grow: 1;
    overflow-y: auto;
    height: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-message {
    padding: 0.5rem 1rem;
    border-radius: 15px;
    max-width: 80%;
}

.chat-message p {
    margin: 0;
    font-size: 0.95rem;
}

.chat-message.bot {
    background-color: var(--secondary-color);
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-message.user {
    background-color: var(--accent-color);
    color: var(--primary-color);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-footer {
    display: flex;
    padding: 0.5rem 1rem;
    border-top: 1px solid #444;
}

#chat-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    color: var(--text-color);
    padding: 0.5rem;
}

#chat-input:focus {
    outline: none;
}

.chat-send-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}
