﻿/* ======================================================
   RESET + VARIABLES BASE
====================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #fafafa;
    --color-text: #2f2f2f;
    --color-primary: #2e7d32;
    --color-secondary: #6d4c41;
    --color-light: #ffffff;
    --color-dark: #1c1c1c;
    --max-width: 1100px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* ======================================================
   LAYOUT GENERAL
====================================================== */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 0;
}

section {
    padding: 3rem 0;
}

    section h2,
    section h3 {
        margin-bottom: 1rem;
        color: var(--color-dark);
    }

    section p {
        max-width: 800px;
        margin-bottom: 1rem;
    }

/* ======================================================
   HEADER + NAV
====================================================== */
.site-header {
    background: var(--color-light);
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
    }

/* Logo */
.logo a,
.logo a:visited,
.logo a:hover,
.logo a:active,
.logo a:focus {
    color: inherit;
    text-decoration: none;
    outline: none;
}

/* Nav */
nav a {
    margin-left: 1.2rem;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
}

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

/* ======================================================
   HERO
====================================================== */
.hero,
.hero-simple {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.hero {
    height: 75vh;
    min-height: 420px;
}

.hero-simple {
    min-height: 320px;
    padding: 4rem 0;
}

    .hero::before,
    .hero-simple::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
    }

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

    .hero-content h1,
    .hero-content h2 {
        font-size: clamp(2rem, 4vw, 3rem);
        margin-bottom: 0.5rem;
        text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
    }

    .hero-content p {
        max-width: 700px;
        font-size: 1.1rem;
        opacity: 0.95;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    }

/* ======================================================
   BOTONES GENERALES
====================================================== */
.btn-primary {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 1.6rem;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

    .btn-primary:hover {
        opacity: 0.9;
        transform: translateY(-1px);
    }

/* ======================================================
   CARDS
====================================================== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--color-light);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* ======================================================
   GALERÍA
====================================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

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

        .gallery img:hover {
            transform: scale(1.02);
        }

/* ======================================================
   VIDEOS
====================================================== */
.video-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.video-card {
    position: relative;
    width: 320px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

    .video-card img {
        width: 100%;
        display: block;
    }

    .video-card span {
        position: absolute;
        inset: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        background: rgba(0, 0, 0, 0.45);
        color: #fff;
        font-weight: 600;
    }

    .video-card:hover span {
        background: rgba(0, 0, 0, 0.6);
    }

/* ======================================================
   MAPA
====================================================== */
.map iframe {
    width: 100%;
    height: 350px;
    border: none;
    border-radius: 8px;
}

/* ======================================================
   CTA FINAL (REUTILIZABLE)
====================================================== */
.hero-cta {
    text-align: center;
    margin-bottom: 4rem;
}

.cta-text {
    max-width: 600px;
    margin: 0 auto 25px;
}

/* WhatsApp CTA */
.btn-whatsapp {
    background: #25d366;
    color: #fff;
    padding: 14px 26px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .btn-whatsapp:hover {
        background: #1ebe5d;
    }

.cta-note {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* CTA bloques */
.cta-block {
    margin-top: 25px;
}

.cta-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

/* CTA links */
.cta-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Plataformas */
.btn-platform {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .btn-platform.airbnb {
        background: #ff5a5f;
    }

    .btn-platform.alquileres {
        background: #2c7be5;
    }

/* Redes */
.cta-social {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

    .cta-social .cta-links a {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cta-social i {
        font-size: 1.4rem;
        color: #fff;
    }

    .cta-social a[href*="instagram"] i {
        color: #e1306c;
    }

    .cta-social a[href*="facebook"] i {
        color: #1877f2;
    }

/* ======================================================
   FOOTER
====================================================== */
.site-footer a,
.site-footer a:visited,
.site-footer a:hover,
.site-footer a:active {
    color: inherit;
    text-decoration: none;
}

.site-footer {
    background: var(--color-dark);
    color: #ccc;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

/* ======================================================
   WHATSAPP FLOAT
====================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }

/* =========================
   PROMO FLOAT RIGHT + CLOSE
========================= */

.promo-wrapper {
    position: fixed;
    right: 18px;
    bottom: 92px;
    z-index: 1200;
}

.promo-float-right {
    width: 240px; /* 👈 tamaño original más razonable */
    max-width: calc(100vw - 36px);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: block;
}

    .promo-float-right img {
        width: 100%;
        height: auto;
        display: block;
    }

/* Botón de cierre */
.promo-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    line-height: 1;
    z-index: 2;
}

    .promo-close:hover {
        background: #f2f2f2;
    }

/* =========================
   HERO TITLES – HALO BLANCO
========================= */

.hero-content h1,
.hero-content h2 {
    color: #ffffff;
    text-shadow: 0 0 4px rgba(255,255,255,0.6), 0 0 10px rgba(255,255,255,0.4), 0 2px 12px rgba(0,0,0,0.6);
}
