:root {
    --primary: #1A365D;
    --primary-light: #2A4A7F;
    --secondary: #0284C7;
    --secondary-hover: #0369A1;
    --accent: #F59E0B;
    --accent-hover: #D97706;
    --bg-main: #FFFFFF;
    --bg-light: #F0F4F8;
    --text-main: #334155;
    --text-muted: #64748B;
    --text-light: #F8FAFC;
    --border: #CBD5E1;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', system-ui, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

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

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

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.color-primary {
    color: var(--primary);
}

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

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

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1.5rem; }
.w-full { width: 100%; }

.lead-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.rounded-img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
}

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

.header-cta {
    display: none;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    display: block;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--bg-main);
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 999;
}

.mobile-menu-overlay.active {
    height: calc(100vh - 80px);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    text-align: center;
}

.mobile-nav-item {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 54, 93, 0.9) 0%, rgba(26, 54, 93, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    color: white;
    max-width: 800px;
    margin-left: 0;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

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

.hero-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.direct-booking-banner {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    backdrop-filter: blur(4px);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid var(--border);
    border-top: 4px solid var(--secondary);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    display: inline-block;
    background: var(--bg-light);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.feature-card h3, .feature-card h4 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Storytelling Zig-Zag Layout */
.story-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-bottom: 5rem;
}

.story-block:last-child {
    margin-bottom: 0;
}

.story-block.reverse .story-content {
    order: 2;
}

.story-block.reverse .story-image {
    order: 1;
}

.story-image {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.story-image img, .story-image iframe {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-image:hover img {
    transform: scale(1.05);
}

.story-content {
    width: 100%;
}

.story-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.story-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.quote-box {
    background: var(--bg-light);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-main);
    margin-top: 1.5rem;
}

@media (min-width: 992px) {
    .story-block {
        flex-direction: row;
        gap: 5rem;
    }
    
    .story-block.reverse {
        flex-direction: row-reverse;
    }
    
    .story-image, .story-content {
        width: 50%;
    }
    
    .story-image img, .story-image iframe {
        height: 450px;
    }
}

/* Gallery */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

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

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item.hide {
    display: none;
}

/* Reviews and Host Info */
.flex-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.score-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.score-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.score-text {
    display: flex;
    flex-direction: column;
}

.score-text strong {
    color: var(--primary);
    font-size: 1.125rem;
}

.score-text span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.host-highlights {
    list-style: none;
    margin: 1.5rem 0;
}

.host-highlights li {
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Booking Widget Shields */
.booking-shield-wrapper {
    position: relative;
    width: 100%;
    min-height: 200px;
    margin-top: 1.5rem;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.shield-top, .shield-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 10;
    /* Comentar la línea de abajo para depurar y ver los escudos (poner background rojo) */
    background: transparent; 
}

.shield-top {
    top: 0;
    height: 25%; /* Ajustable según el tamaño de la cabecera de Booking */
}

.shield-bottom {
    bottom: 0;
    height: 25%; /* Ajustable según el tamaño del botón de reserva de Booking */
}

.review-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.stars {
    color: #FBBF24;
    font-size: 0.875rem;
}

.review-text {
    font-style: italic;
    color: var(--text-muted);
}

/* Garrucha Details */
.garrucha-details {
    max-width: 1100px;
    margin: 0 auto;
}

.garrucha-details summary {
    list-style: none;
}

.garrucha-details summary::-webkit-details-marker {
    display: none;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--secondary);
}

.faq-question .icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-question.active .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
}

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

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

.footer h3 {
    color: white;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-info .address {
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: white;
}

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

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    animation: zoom 0.3s;
}

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

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    border: none;
    background: rgba(0,0,0,0.5);
    border-radius: 3px;
}

.lightbox-next {
    right: 0;
}

.lightbox-prev {
    left: 0;
}

/* Media Queries */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .flex-layout {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-cta-group {
        flex-direction: row;
        align-items: center;
    }
}

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .nav-links, .header-cta {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp svg {
    width: 35px;
    height: 35px;
    fill: white;
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .floating-whatsapp svg {
        width: 30px;
        height: 30px;
    }
}
/* Trust Guarantees */
.trust-guarantees {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.trust-guarantees span {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

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

@media (min-width: 992px) {
    .floating-whatsapp {
        display: none;
    }
}

/* --- Google Reviews Widget --- */
.google-reviews-widget {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    border: 1px solid var(--border);
    border-top: 4px solid #4285F4; /* Google Blue */
}

.google-reviews-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.gr-score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gr-score {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.gr-info {
    display: flex;
    flex-direction: column;
}

.gr-info strong {
    font-size: 1.25rem;
    color: var(--primary);
}

.gr-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.gr-stars {
    font-size: 1.25rem;
    color: #FBBC04; /* Google Yellow */
}

.gr-stars-small {
    font-size: 1rem;
    color: #FBBC04;
}

.gr-star {
    margin-right: 2px;
}
.gr-star.empty {
    color: #e0e0e0;
}

.gr-reviews-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .gr-reviews-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.gr-review-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gr-review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gr-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.gr-review-text {
    font-style: italic;
    color: var(--text-main);
    font-size: 0.95rem;
    flex-grow: 1;
}

.gr-review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.gr-footer {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.gr-footer .btn-outline {
    border-color: #4285F4;
    color: #4285F4;
    font-weight: 600;
}

.gr-footer .btn-outline:hover {
    background-color: #4285F4;
    color: white;
}
