:root {
    --burgundy: #722F37;
    --burgundy-dark: #4a1f24;
    --gold: #C9A227;
    --gold-light: #d4b856;
    --sepia: #704214;
    --cream: #F5E6D3;
    --cream-dark: #E8D5C4;
    --charcoal: #1a1a1a;
    --ink: #2C2416;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Libre Baskerville', Georgia, serif;
    color: var(--ink);
    background: var(--cream);
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', Georgia, serif;
}

.navbar {
    background: rgba(26, 26, 26, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gold);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-link {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0.75rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--gold) !important;
}

.hero {
    height: 100vh;
    min-height: 700px;
    background: url('/static/images/tajamar1.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26,26,26,0.6) 0%, rgba(44,36,22,0.7) 50%, rgba(26,26,26,0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--cream);
    text-align: center;
}

.hero-ornament {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.hero-ornament.bottom {
    margin-top: 2rem;
    margin-bottom: 0;
}

.hero-tagline {
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 0;
    text-shadow: 3px 3px 0 var(--burgundy-dark);
    letter-spacing: 2px;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-style: italic;
}

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

.btn-primary {
    background: var(--burgundy);
    border: 2px solid var(--gold);
    padding: 0.85rem 2.5rem;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--burgundy-dark);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--cream);
    padding: 0.85rem 2.5rem;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.btn-outline-light:hover {
    background: rgba(245, 230, 211, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-header.light .section-title {
    color: var(--cream);
}

.section-header.light .section-ornament {
    color: var(--gold);
}

.section-ornament {
    color: var(--burgundy);
    font-size: 1.5rem;
    margin: 0 1rem;
    vertical-align: middle;
}

.section-title {
    color: var(--burgundy-dark);
    font-weight: 700;
    font-size: 2.5rem;
    display: inline;
    letter-spacing: 2px;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--cream-dark);
    transition: all 0.3s;
    height: 100%;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--burgundy);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--burgundy);
}

.service-card h4 {
    color: var(--ink);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.card-divider {
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin: 0.75rem auto;
}

.service-card p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.pricing-box {
    background: var(--charcoal);
    padding: 0.5rem;
}

.pricing-border {
    border: 2px solid var(--gold);
    padding: 2.5rem;
}

.pricing-box h3 {
    color: var(--cream);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.pricing-box p {
    color: rgba(245, 230, 211, 0.8);
}

.price .amount {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--gold);
    display: block;
    line-height: 1;
}

.price .period {
    color: rgba(245, 230, 211, 0.7);
    font-size: 0.9rem;
    font-style: italic;
}

.bg-dark-section {
    background: var(--charcoal);
}

.contract-card {
    background: var(--cream);
    padding: 2.5rem;
    border: 2px solid var(--gold);
}

.contract-card h5 {
    color: var(--burgundy-dark);
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.contract-card h5:first-child {
    margin-top: 0;
}

.contract-card h5 i {
    color: var(--gold);
    margin-right: 0.5rem;
}

.contract-card ul {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.contract-card li {
    color: var(--ink);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.gallery-item {
    overflow: hidden;
    border: 3px solid var(--gold);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    filter: sepia(20%);
    transition: filter 0.3s;
}

.gallery-item:hover img {
    filter: sepia(0%);
}

.gallery-zoom {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-zoom i {
    color: var(--gold);
    font-size: 2rem;
}

.gallery-item:hover .gallery-zoom {
    opacity: 1;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 3px solid var(--gold);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 3rem;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--gold);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 2px solid var(--gold);
    color: var(--cream);
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10000;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--burgundy);
    color: var(--gold);
}

#lightbox-caption {
    color: var(--cream);
    margin-top: 1rem;
    font-style: italic;
}

#lightbox-counter {
    color: var(--gold);
    font-size: 0.9rem;
}

.location-info {
    padding: 2rem;
    background: white;
    border: 1px solid var(--cream-dark);
}

.location-info h4 {
    color: var(--burgundy-dark);
    font-weight: 700;
    font-size: 1.5rem;
}

.location-info h4 i {
    color: var(--gold);
}

.location-sub {
    color: var(--sepia);
    font-style: italic;
    margin-bottom: 0;
}

.location-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1.5rem 0;
}

.location-info p {
    line-height: 1.8;
}

.travel-time {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--cream);
    border-left: 4px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.travel-time i {
    font-size: 1.5rem;
    color: var(--burgundy);
}

.travel-time span {
    color: var(--ink);
}

.map-container {
    border: 4px solid var(--gold);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.contact-card {
    background: var(--cream);
    padding: 3rem;
    border: 2px solid var(--gold);
}

.form-control {
    background: white;
    border: 1px solid var(--cream-dark);
    padding: 0.9rem 1rem;
    font-family: 'Libre Baskerville', serif;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.form-label {
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 1px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

#formMessage.success {
    background: rgba(201, 162, 39, 0.15);
    color: var(--sepia);
    padding: 1rem;
    border: 1px solid var(--gold);
    text-align: center;
}

#formMessage.error {
    background: rgba(114, 47, 55, 0.1);
    color: var(--burgundy);
    padding: 1rem;
    border: 1px solid var(--burgundy);
    text-align: center;
}

.form-privacy {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin-bottom: 0;
}

footer {
    background: var(--charcoal);
    color: var(--cream);
    border-top: 1px solid var(--gold);
}

.footer-ornament {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    color: white;
}

.instagram-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(225, 48, 108, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 1000;
    text-decoration: none;
}

.instagram-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(225, 48, 108, 0.5);
    color: white;
}

.footer-phone {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-phone:hover {
    color: var(--gold-light);
}

.footer-phone i {
    margin-right: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-social a {
    color: var(--cream);
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.footer-social a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-tagline {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .hero .lead {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-ornament {
        display: block;
        margin: 0.5rem 0;
    }

    .pricing-border {
        padding: 1.5rem;
        text-align: center;
    }

    .price {
        margin-top: 1.5rem;
    }

    .price .amount {
        font-size: 2.5rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }

    .instagram-btn {
        bottom: 85px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .gallery-item img {
        height: 150px;
    }

    .lightbox-prev, .lightbox-next {
        padding: 0.75rem;
        font-size: 1.2rem;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 2.5rem;
    }

    .lightbox-content img {
        max-height: 70vh;
    }

    .travel-time {
        padding: 0.75rem;
    }
}
