/* Root Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #5dade2;
    --accent-color: #3498db;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* Icon hover spin animation */
.stat i,
.info-item i,
.feature-card i,
.location-list i,
.contact-info-card i,
.social-links a i {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat:hover i,
.info-item:hover i,
.feature-card:hover i,
.location-list li:hover i,
.contact-info-card:hover i,
.social-links a:hover i {
    transform: rotate(360deg) scale(1.2);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

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

.btn-primary:hover {
    background: #2e86c1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .brand-name {
    color: var(--white);
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-menu a.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-menu a.btn-primary:hover {
    background: #2e86c1;
    color: var(--white);
    transform: translateY(-2px);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    list-style: none;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 6px 14px;
    color: var(--white);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-width: 150px;
    z-index: 1001;
    list-style: none;
}

.lang-switcher.open .lang-dropdown {
    display: block;
}

.lang-dropdown li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: var(--transition);
}

.lang-dropdown li:hover {
    background: var(--bg-light);
    color: var(--secondary-color);
}

.lang-dropdown li.active {
    background: var(--secondary-color);
    color: var(--white);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.4), rgba(52, 152, 219, 0.3)),
                url('https://fincaaljibe-videos-f2bke6fwfua7bfhx.z01.azurefd.net/images/main_background.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-tagline {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease 0.15s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    animation: fadeInUp 1s ease 0.4s both;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.stat span {
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-price {
    margin: 2rem 0;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-price .price-tag {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin: 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--white);
}

/* Quick Info Bar */
.quick-info {
    background: var(--white);
    padding: 3rem 0;
    box-shadow: var(--shadow);
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.info-item h4 {
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.info-item p {
    margin: 0;
    color: var(--text-light);
}

/* Section Styling */
section {
    padding: 5rem 0;
}

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

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* Description Section */
.description {
    background: var(--white);
}

.description-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.description-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.description-content .legal-notice {
    font-size: 0.85rem;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* Features Section */
.features {
    background: var(--bg-light);
}

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

.feature-card {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease;
    box-shadow: var(--shadow);
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.04);
    background: #ffffff;
    box-shadow: none;
    z-index: 10;
}

.feature-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0;
}

.feature-card p {
    color: var(--text-light);
    margin: 0;
    position: absolute;
    left: -1px;
    right: -1px;
    top: calc(100% - 12px);
    background: #ffffff;
    padding: 0 1.5rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow-lg);
    transition: max-height 0.4s ease, opacity 0.35s ease, padding 0.35s ease;
}

.feature-card:hover p {
    max-height: 10rem;
    opacity: 1;
    padding: 0.75rem 1.5rem 1.2rem;
}

/* Gallery Section */
.gallery {
    background: var(--white);
}

/* Video Gallery Section */
.video-gallery {
    padding: 5rem 0;
    background: var(--bg-light);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.video-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-item video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #000;
}

.video-item h4 {
    padding: 1rem 1.25rem;
    margin: 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(93, 173, 226, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    font-size: 3rem;
    color: var(--white);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-lightbox,
.prev-lightbox,
.next-lightbox {
    position: absolute;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.close-lightbox {
    top: 20px;
    right: 40px;
}

.prev-lightbox {
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.next-lightbox {
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.close-lightbox:hover,
.prev-lightbox:hover,
.next-lightbox:hover {
    color: var(--secondary-color);
}

/* Location Section */
.location {
    background: var(--bg-light);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.location-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.location-list {
    list-style: none;
}

.location-list li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    color: var(--text-light);
}

.location-list i {
    color: var(--secondary-color);
    margin-right: 0.75rem;
}

.location-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Contact Section */
.contact {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.captcha-wrapper {
    margin: 0.5rem 0 1rem;
}

.form-message {
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.contact-info-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-info-card p {
    margin: 0;
    color: var(--text-light);
}

.contact-info-card a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-card a:hover {
    color: var(--secondary-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: #bdc3c7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #bdc3c7;
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-stats {
        gap: 1.5rem;
    }

    .location-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .lang-switcher {
        display: flex;
        justify-content: center;
    }

    .lang-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

    .next-lightbox {
        right: 20px;
    }

    .close-lightbox {
        right: 20px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}
