/* ==========================================================================
   CSS Variables & Fonts
   ========================================================================== */
@font-face {
    font-family: 'Open Sauce One';
    src: url('../fonts/OpenSauceOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sauce One';
    src: url('../fonts/OpenSauceOne-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Serif';
    src: url('../fonts/noto-serif.regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Serif';
    src: url('../fonts/noto-serif.italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Serif';
    src: url('../fonts/noto-serif.bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #3aa862;
    --color-primary-dark: #4b8659;
    --color-secondary: #0f3083;
    --color-bg: #fffbef;
    --color-bg-alt: #dfddd4;
    --color-text: #595959;
    --color-text-dark: #333333;
    --color-white: #ffffff;
    
    --font-sans: 'Open Sauce One', system-ui, -apple-system, sans-serif;
    --font-serif: 'Noto Serif', Georgia, serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    font-weight: bold;
    line-height: 1.2;
}

.serif-title {
    font-family: var(--font-serif);
    font-weight: normal;
    color: var(--color-white);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(58, 168, 98, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(58, 168, 98, 0.4);
}

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

.btn-secondary:hover {
    background-color: transparent;
    color: var(--color-white);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: var(--color-bg);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-md);
}

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

.logo-link {
    display: block;
}

.logo {
    height: 80px;
    transition: var(--transition-fast);
}

.navbar.scrolled .logo {
    height: 65px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--color-white);
    font-weight: bold;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.navbar.scrolled .nav-link {
    color: var(--color-primary-dark);
    text-shadow: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-normal);
}

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

.navbar .btn-outline {
    color: var(--color-white);
    border-color: var(--color-white);
}

.navbar.scrolled .btn-outline {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.navbar.scrolled .btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px; /* account for fixed navbar */
    box-sizing: border-box;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 48, 131, 0.4) 0%, rgba(58, 168, 98, 0.5) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    color: var(--color-white);
    z-index: 1;
    padding: 0 1rem;
}

.hero-logo {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    display: block;
}

.hero h1 {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
    font-style: italic;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

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

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

.animate-up {
    opacity: 0;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* ==========================================================================
   Sections General
   ========================================================================== */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
    margin: 1rem auto 0;
}

/* ==========================================================================
   Why Us Section
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--color-primary);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-number {
    font-size: 4rem;
    font-weight: bold;
    color: rgba(58, 168, 98, 0.1);
    position: absolute;
    top: -10px;
    right: 10px;
    line-height: 1;
    font-family: var(--font-serif);
}

.feature-card p {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
}

.feature-card strong {
    color: var(--color-primary);
}

/* Pricing Banner */
.pricing-banner {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 20px;
    padding: 3rem;
    color: var(--color-white);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-md);
    gap: 2rem;
}

.pricing-item h3 {
    color: var(--color-bg);
    font-size: 1.1rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.pricing-item .price {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
    font-family: var(--font-serif);
}

.pricing-item .subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

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

.pricing-banner .btn-primary:hover {
    background-color: var(--color-bg);
    transform: scale(1.05);
}

/* ==========================================================================
   Quote Banner
   ========================================================================== */
.quote-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/Rivera de Córcega Lotes de Malagana_Página_11.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0;
}

.quote-banner .serif-title {
    font-size: 3.5rem;
    font-style: italic;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem 0 3rem;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Location Section
   ========================================================================== */
.location {
    background-color: var(--color-white);
}

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

.location-text {
    padding-right: 2rem;
}

.location-text .section-title {
    text-align: left;
}

.location-text .section-title::after {
    margin: 1rem 0 0;
}

.location-subtitle {
    color: var(--color-secondary);
    margin-bottom: 2rem;
}

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

.distances-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-bg-alt);
}

.distances-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.distance {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: bold;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    margin-right: 1.5rem;
    min-width: 85px;
    text-align: center;
    font-size: 0.9rem;
}

.dest-info strong {
    display: block;
    color: var(--color-text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.dest-info span {
    font-size: 0.85rem;
    color: var(--color-text);
}

.zoom-hint {
    font-size: 0.85rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.zoomable {
    cursor: pointer;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.zoomable:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   Amenities Section
   ========================================================================== */
.amenities {
    background-color: var(--color-bg);
}

.amenities-text-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.amenity-text-item {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border-left: 5px solid var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.amenity-svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--color-primary);
    transition: var(--transition-fast);
}

.amenity-text-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background-color: var(--color-primary);
    color: var(--color-white);
    border-left-color: var(--color-secondary);
}

.amenity-text-item:hover .amenity-svg {
    color: var(--color-white);
    transform: scale(1.1);
}

.arroyo-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background-color: var(--color-primary-dark);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    align-items: center;
}

.arroyo-text {
    padding: 3rem;
    color: var(--color-white);
}

.arroyo-text h3 {
    color: var(--color-white);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.arroyo-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-bg);
}

.arroyo-img-container {
    height: 100%;
    overflow: hidden;
}

.arroyo-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: var(--transition-normal);
}

.arroyo-img-container img:hover {
    transform: scale(1.05);
}

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

/* ==========================================================================
   Closing Section
   ========================================================================== */
.closing {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 6rem 0;
}

.closing .serif-title {
    font-size: 3.5rem;
    color: var(--color-white);
    line-height: 1.2;
}

.closing-desc {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */
.contact-section {
    background-color: var(--color-white);
    padding: 6rem 0;
}

.contact-card {
    background: var(--color-bg);
    border-radius: 20px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    box-shadow: var(--shadow-lg);
}

.contact-text p {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.contact-form input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--color-bg-alt);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.contact-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(58, 168, 98, 0.2);
}

.w-100 {
    width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-primary-dark);
    padding: 4rem 0 2rem;
    color: rgba(255,255,255,0.85);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

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

.footer-logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    display: block;
}

.footer-brand p {
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
    color: rgba(255,255,255,0.8);
}

.footer-contact h3 {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-contact p,
.footer-contact strong {
    color: rgba(255,255,255,0.85);
}

.contact-info p {
    margin-bottom: 0.8rem;
}

.contact-info a {
    color: var(--color-secondary);
    font-weight: bold;
}

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

.social-links a {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background-color: var(--color-bg-alt);
    color: var(--color-secondary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
}

.social-links a:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition-fast);
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

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

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {transform:scale(0.8); opacity:0} 
    to {transform:scale(1); opacity:1}
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2001;
}

.modal-close:hover {
    color: var(--color-primary);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 15px;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 2001;
    border-radius: 8px;
}

.modal-nav:hover {
    background: var(--color-primary);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .location-content {
        grid-template-columns: 1fr;
    }
    
    .location-text {
        padding-right: 0;
    }
    
    .arroyo-highlight {
        grid-template-columns: 1fr;
    }
    
    .arroyo-img-container {
        height: 300px;
    }
    
    .contact-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-img {
        height: 150px;
    }

    .nav-links {
        display: none; /* simple mobile approach */
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 40px;
    }

    .hero-logo {
        max-width: 220px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .pricing-banner {
        flex-direction: column;
        padding: 2rem;
    }
    
    .quote-banner .serif-title,
    .closing .serif-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .fb-responsive-wrapper {
        width: 100% !important;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 90px 0 40px;
    }

    .hero-logo {
        max-width: 180px;
        margin-bottom: 1rem;
    }

    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}
