/* Global Reset & Base */
:root {
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --navy: #1a2332;
    --gold: #d4af37;
    --black: #000000;
    --text-color: #333333;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--light-gray);
    line-height: 1.75;
    font-size: 18px;
    overflow-x: hidden;
}

.text-serif {
    font-family: 'Lora', serif;
    font-weight: 500;
}

.text-sans {
    font-family: 'Inter', sans-serif;
}

.text-white {
    color: var(--white);
}

.text-navy {
    color: var(--navy);
}

.text-gold {
    color: var(--gold);
}

.text-light-gray {
    color: var(--light-gray);
}

.text-muted {
    color: #666;
}

.text-center {
    text-align: center;
}

.bg-white {
    background-color: var(--white);
}

.bg-light-gray {
    background-color: var(--light-gray);
}

.bg-navy {
    background-color: var(--navy);
}

.bg-black {
    background-color: var(--black);
}

.bg-dark-gray {
    background-color: #111;
}

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

.section {
    padding: 5rem 0;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.p-4 {
    padding: 2rem;
}

.p-5 {
    padding: 3rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.pt-5 {
    padding-top: 3rem;
}

.pb-3 {
    padding-bottom: 1.5rem;
}

.flex-1 {
    flex: 1;
}

.full-width {
    width: 100%;
}

.max-w-md {
    max-width: 600px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

h1,
h2,
h3,
h4 {
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

p.subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

p.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.rounded {
    border-radius: 8px;
}

.shadow-premium {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.shadow-hover:hover {
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

/* Buttons */
.cta-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.cta-btn.lg {
    padding: 1.2rem 3.5rem;
    font-size: 1.2rem;
}

.cta-btn.sm {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--white);
}

.btn-gold:hover {
    background-color: #b5952f;
}

.btn-whatsapp {
    background-color: #25d366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    color: var(--white);
}

.view-full-qualities {
    color: #123273;
    font-weight: 600;
    text-decoration: none;
    padding: 0.8rem 2.5rem;
    border: 2px solid #123273;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.view-full-qualities:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(181, 149, 47, 0.2);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-outline-gold:hover {
    background-color: var(--gold);
    color: var(--navy);
}

/* Custom Header Additions */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-brand-logo {
    height: 45px;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-weight: 500;
    color: var(--navy);
    font-size: 1.1rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--gold);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-whatsapp-icon {
    font-size: 1.5rem;
    color: #25d366;
    transition: var(--transition-smooth);
    text-decoration: none;
    line-height: 1;
}

.nav-whatsapp-icon:hover {
    transform: scale(1.15);
}

.lang-selector {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.lang-selector a {
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.lang-selector img {
    height: 16px;
    width: auto;
    object-fit: contain;
    border-radius: 2px;
}

.lang-selector a:hover,
.lang-selector a.active {
    opacity: 1;
    transform: scale(1.1);
}

/* Mobile Menu */
.d-mobile-only {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-menu.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    animation: slideDownMenu 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slideDownMenu {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-menu ul {
    list-style: none;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.mobile-menu li {
    margin-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--navy);
    font-size: 1.4rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: block;
}

.mobile-menu a:hover {
    color: var(--gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('doc/exterior/entorno.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 35, 50, 0.4), rgba(26, 35, 50, 0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.main-logo {
    max-width: 250px;
    margin: 0 auto 2rem;
    filter: brightness(0) invert(1);
    animation: fadeInDown 1s ease;
}

/* Grids */
.grid-2,
.grid-3 {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.align-center {
    align-items: center;
}

.align-start {
    align-items: flex-start;
}

/* Features (About) */
.feature-box {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid #eee;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    background: var(--white);
    border-color: var(--gold);
}

.icon-gold {
    color: var(--gold);
    font-size: 2.5rem;
}

/* Galleries and Tabs */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: 2px solid var(--navy);
    color: var(--navy);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-btn:hover,
.tab-btn.active {
    background-color: var(--navy);
    color: var(--white);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.photo-grid img:first-child {
    grid-column: span 2;
    grid-row: span 2;
    height: 520px;
}

@media (max-width: 768px) {
    .photo-grid img:first-child {
        grid-column: span 1;
        grid-row: span 1;
        height: 250px;
    }
}

.grid-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.grid-img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Qualities Grid */
.qualities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.quality-item {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
    border-left: 4px solid var(--gold);
}

.quality-item:hover {
    transform: translateX(5px);
    background: var(--white);
}

.quality-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Location */
.icon-bubble {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.benefit-item:hover {
    transform: translateX(10px);
}

/* Forms */
.form-group {
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.d-flex {
    display: flex;
}

.gap-2 {
    gap: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 35, 50, 0.9);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    width: 95%;
    max-width: 500px;
    position: relative;
}

/* Lightbox Modal Specifics */
.modal.lightbox-modal .modal-content {
    background: transparent;
    padding: 0;
    max-width: 95vw;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: none;
}

.modal.lightbox-modal img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
    border: none;
    z-index: 1010;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

/* For mobile, bring arrows inside */
@media (max-width: 900px) {
    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-nav {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
}

.modal.qualities-modal .modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
}

.qualities-list {
    margin-top: 1.5rem;
}

.qualities-list h5 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3rem;
    margin-top: 1.5rem;
}

.qualities-list ul {
    list-style: none;
    padding-left: 0;
}

.qualities-list li {
    padding: 0.4rem 0;
    color: #555;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.qualities-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--gold);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #999;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--navy);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 1;
    transform: none;
}

.reveal {
    opacity: 1;
    transform: none;
}

.reveal.active {
    opacity: 1;
    transform: none;
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .nav-links {
        display: none;
    }

    .d-none-mobile {
        display: none !important;
    }

    .d-mobile-only {
        display: block;
    }
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    h1 {
        font-size: 2.2rem;
    }

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

    .section {
        padding: 4rem 0;
    }

    .nav-actions {
        gap: 0.8rem;
    }
}