/* Variables de color para personalización rápida */
:root {
    --bg-color: #f9f9f9;
    --text-color: #333333;
    --button-bg: #ffffff;
    --button-text: #000000;
    --button-hover: #f0f0f0;
    --promo-bg: #25D366; 
    --promo-text: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Contenedor central simulando vista móvil */
.container {
    width: 100%;
    max-width: 480px; 
    padding-bottom: 80px;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Cabecera */
.header {
    position: relative;
    text-align: center;
    padding-bottom: 20px;
}

.cover-photo {
    width: 100%;
    height: 150px;
    background-color: #ddd;
    background-image: url('../img/bg.jpg'); 
    background-size: cover;
    background-position: center;
}

.profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    margin-top: -50px;
    background-color: #491d22;
    object-fit: contain;
    padding: 15px;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    margin-top: 10px;
    letter-spacing: 1px;
}

.bio-text {
    font-size: 16px;
    color: #666;
    margin: 10px 20px 20px;
}

/* Botones de enlaces */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 8px 12px;
    background-color: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    border-radius: 30px;
    border: 1px solid #eaeaea;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    gap: 15px;
}

.link-btn:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
}

.link-btn.promo-btn {
    justify-content: center;
    padding: 16px 20px;
    font-weight: 700;
}

/* Estilos de las Tarjetas de Cabañas (CRO y Conversión) */
.cabin-card {
    background-color: var(--button-bg);
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 14px 12px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cabin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.06);
}

.cabin-image-container {
    width: 25%;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
}

.cabin-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.cabin-info {
    width: 75%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.cabin-title {
    font-family: 'Poppins', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.cabin-location {
    font-size: 11.5px;
    color: #777;
    margin-top: -2px;
}

.cabin-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.cabin-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.gold-star {
    color: #FFD700;
    font-size: 14px;
    line-height: 1;
}

.cabin-amenities {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #666;
}

.amenity {
    display: flex;
    align-items: center;
    gap: 4px;
}

.amenity svg {
    color: #999;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1d2a19;
    color: white;
    padding: 10px 12px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(29, 42, 25, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(29, 42, 25, 0.35);
    background: #2a3d24;
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #666;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 11.5px;
    text-align: center;
    line-height: 1.3;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #ccc;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0 20px 20px;
}

.social-links a {
    color: #333;
    transition: transform 0.2s;
}

.social-links a:hover {
    transform: scale(1.1);
    color: var(--promo-bg);
}

.social-links svg {
    width: 28px;
    height: 28px;
}

/* Estilos del botón de promoción */
.promo-btn {
    background-color: var(--promo-bg);
    color: var(--promo-text);
    border: none;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    animation: pulse 2s infinite;
}

.promo-btn:hover {
    background-color: #20bd5a;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Botón de WhatsApp flotante */
.floating-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-decoration: none;
    z-index: 1000;
    transition: transform 0.2s ease;
}

.floating-wa:hover {
    transform: scale(1.1);
}

.floating-wa svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

/* --- Sección Galería WPO --- */
.gallery-section {
    padding: 0 20px 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

/* Ajuste Desktop: 3 columnas */
@media (min-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gallery-thumb:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.btn-gallery-open {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #491d22;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid #491d22;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-gallery-open:hover {
    background-color: #491d22;
    color: #ffffff;
}

/* Lightbox Modal */
.modal-lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-close {
    position: absolute;
    top: 20px; right: 25px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
}

.slider-container {
    position: relative;
    width: 100%; height: 80%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 100%; height: 100%;
    transition: transform 0.3s ease-out;
}

.slider-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    z-index: 2001;
    transition: background 0.2s;
}

.slider-btn:hover { background: rgba(255, 255, 255, 0.3); }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.slider-counter {
    position: absolute;
    bottom: 30px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
}

/* --- Sección de Historia y SEO --- */
.divider {
    border: 0;
    height: 1px;
    background: #eaeaea;
    margin: 30px 20px;
}

.our-story {
    padding: 0 20px 20px;
}

.seo-intro {
    text-align: center;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 25px;
}

.seo-intro strong {
    color: var(--text-color);
}

.story-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    color: #491d22; /* El color de tu logo */
    margin-bottom: 10px;
    line-height: 1.3;
    text-align: center;
}

.story-block h3 {
    font-size: 18px;
    color: #491d22;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Estilos del Acordeón desplegable */
.story-summary {
    cursor: pointer;
    font-weight: 700;
    color: #491d22;
    text-align: center;
    list-style: none; /* Oculta la flecha por defecto del navegador */
    display: block;
    padding: 10px 0;
    font-size: 15px;
}

.story-summary::-webkit-details-marker {
    display: none; /* Oculta la flecha en Safari */
}

.story-content {
    margin-top: 15px;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 15px;
    border: 1px solid #eaeaea;
}

.story-content p {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
}

.story-content p:last-child {
    margin-bottom: 0;
}

/* --- Selector de Idiomas y Lógica CSS --- */
.lang-bar {
    background-color: #491d22;
    display: flex;
    justify-content: flex-end;
    padding: 8px 15px;
    gap: 12px;
}

.lang-btn {
    background: none;
    border: none;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    opacity: 0.5;
    transition: transform 0.2s ease, opacity 0.2s ease;
    padding: 0;
}

.lang-btn img {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

html[lang="es"] .lang-btn[aria-label="Español"],
html[lang="en"] .lang-btn[aria-label="English"] {
    opacity: 1;
    transform: scale(1.10);
}

/* La Magia del Bilingüismo (Oculta el texto que no corresponde) */
html[lang="es"] .lang-en,
html[lang="en"] .lang-es {
    display: none !important;
}