/* ===================================
   RESET Y VARIABLES
   =================================== */

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

:root {
    /* Colores principales - Paleta rústica más intensa */
    --primary-green: #3a5a40;
    --secondary-green: #588157;
    --accent-gold: #d4a574;
    --accent-gold-hover: #c89860;
    --dark-brown: #2d1e18;
    --medium-brown: #4a3425;
    --light-cream: #f5ebe0;
    --warm-beige: #e8dcc4;
    --warm-white: #fefdfb;
    --text-dark: #2d1e18;
    --text-light: #f5f5f5;
    --overlay: rgba(45, 30, 24, 0.65);
    --wood-brown: #6b4423;

    /* Sombras más suaves y naturales */
    --shadow-sm: 0 3px 10px rgba(45, 30, 24, 0.15);
    --shadow-md: 0 6px 20px rgba(45, 30, 24, 0.2);
    --shadow-lg: 0 10px 35px rgba(45, 30, 24, 0.25);

    /* Tipografía */
    --font-heading: 'Lora', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--light-cream);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(107, 68, 35, 0.02) 2px,
            rgba(107, 68, 35, 0.02) 4px
        );
    pointer-events: none;
    z-index: 1;
}

body > * {
    position: relative;
    z-index: 2;
}

/* ===================================
   UTILIDADES
   =================================== */

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

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--dark-brown);
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
    border-radius: 2px;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--medium-brown);
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-style: italic;
    font-weight: 400;
}

/* ===================================
   NAVEGACIÓN
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(245, 235, 224, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.nav-logo img {
    height: 50px;
    width: auto;
    transition: all var(--transition-normal);
    opacity: 0;
}

.navbar.scrolled .nav-logo img {
    opacity: 1;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

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

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

.navbar.scrolled .nav-link::after {
    background: var(--accent-gold);
}

.nav-link:hover {
    color: var(--accent-gold);
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary-green);
}

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

.nav-cta {
    background: var(--accent-gold);
    color: var(--warm-white);
    padding: 0.65rem 1.5rem;
    border-radius: 25px;
    transition: all var(--transition-normal);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--accent-gold-hover);
    color: var(--warm-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .nav-toggle span {
    background: var(--dark-brown);
    box-shadow: none;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('imagenes/casa_1.jpeg');
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(45, 30, 24, 0.45), rgba(45, 30, 24, 0.65));
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 1200px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

#fondo_secundario {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.titulo {
    width: 100%;
    max-width: 1800px;
    height: auto;
    margin: 0 auto;
}

.jallambaurural {
    stroke: none;
    fill: var(--accent-gold);
    opacity: 0;
    animation: fadeInSVG 2s ease forwards;
    transition: fill var(--transition-slow);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.jallambaurural_ {
    fill: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

@keyframes fadeInSVG {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-title-seo {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--warm-white);
    margin: 2rem 0;
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-style: italic;
    font-weight: 400;
}

.hero-cta {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--dark-brown);
    padding: 1.2rem 3rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all var(--transition-normal);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-cta:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-green);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--primary-green);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% {
        top: 8px;
        opacity: 1;
    }
    50% {
        top: 30px;
        opacity: 0.3;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ===================================
   LA CASA / ABOUT
   =================================== */

.about {
    padding: 5rem 0 0;
    background: var(--warm-white);
}

.intro-text {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.intro-text p {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    line-height: 1.8;
    color: var(--dark-brown);
    margin-bottom: 1.5rem;
    font-style: italic;
    opacity: 0.92;
}

.about .section-title {
    margin: 3rem auto 3rem;
}

/* Shangri-La Modern Layout */
.shangri-la-modern {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 3rem;
    width: 100%;
}

.shangri-section {
    position: relative;
    display: grid;
    min-height: 500px;
    overflow: hidden;
}

.shangri-left,
.shangri-right {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.shangri-full {
    grid-template-columns: 1fr;
    height: 520px;
}

.shangri-full .shangri-image-full {
    height: 520px;
    min-height: auto;
}

.shangri-image-full {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
}

.shangri-image-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.shangri-section:hover .shangri-image-full img {
    transform: scale(1.05);
}

/* Quitar zoom hover de la primera imagen */
.shangri-left:hover .shangri-image-full img {
    transform: scale(1);
}

/* Efecto fixed solo para el bloque full */
.shangri-full .shangri-image-full {
    background-image: url('imagenes/muros_2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.shangri-full .shangri-image-full img {
    opacity: 0;
}

.shangri-full:hover .shangri-image-full img {
    transform: none;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(58, 90, 64, 0.15), rgba(88, 129, 87, 0.08));
    pointer-events: none;
}

.image-overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(45, 30, 24, 0.5), rgba(45, 30, 24, 0.7));
    pointer-events: none;
}

.shangri-text-box {
    padding: 4rem;
    background: var(--warm-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
}

.shangri-text-box h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 1rem;
}

.shangri-text-box h3:not(:first-child) {
    margin-top: 2.5rem;
}

.shangri-text-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
}

.shangri-text-box p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
    opacity: 0.9;
    margin-bottom: 1rem;
}

.shangri-text-box .extra-info {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(212, 165, 116, 0.1);
    border-left: 4px solid var(--accent-gold);
    border-radius: 8px;
}

.shangri-text-box .extra-info p {
    margin: 0;
    font-size: 1.05rem;
}

.shangri-overlay-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 4rem;
    z-index: 1;
    color: white;
}

.shangri-overlay-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: var(--accent-gold);
}

.shangri-overlay-content > p {
    font-size: 1.1rem;
    line-height: 1.9;
    max-width: 800px;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.final-message {
    background: transparent;
    padding: 2rem 0;
    max-width: 900px;
    margin-top: 1.5rem;
}

.final-message p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.final-message p:last-child {
    margin-bottom: 0;
}

.highlight-text {
    font-family: var(--font-heading);
    font-style: italic;
}

.highlight-text strong {
    font-size: 1.8rem;
    color: white;
    display: block;
    margin-top: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95);
    font-weight: 700;
}

.features-intro {
    text-align: center;
    margin: 4rem auto 2rem;
    max-width: 700px;
}

.features-intro h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.features-intro p {
    font-size: 1.1rem;
    color: var(--text-dark);
    opacity: 0.85;
    font-style: italic;
}

.features-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem auto 4rem;
    max-width: 1400px;
}

.feature-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 520px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

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

.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.feature-card:hover img {
    transform: scale(1.08);
}

.feature-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(45, 30, 24, 0.95), rgba(45, 30, 24, 0.7), transparent);
    padding: 3rem 2rem 2rem;
    z-index: 2;
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-title {
    opacity: 0;
}

.feature-title h3 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 600;
    text-align: center;
}

.feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 30, 24, 0.95), rgba(45, 30, 24, 0.88));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
    text-align: center;
    z-index: 3;
}

.feature-card:hover .feature-overlay {
    opacity: 1;
}

.feature-overlay p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-light);
    opacity: 0.98;
    margin: 0;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================
   ESPACIOS
   =================================== */

.spaces {
    padding: 6rem 0;
    background: var(--light-cream);
}

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

.space-card {
    background: var(--warm-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

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

.space-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.space-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.space-card:hover .space-image img {
    transform: scale(1.1);
}

.space-content {
    padding: 1.5rem;
}

.space-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
}

.space-content p {
    color: var(--text-dark);
    line-height: 1.6;
    opacity: 0.85;
}

/* ===================================
   GALERÍA
   =================================== */

.gallery {
    padding: 6rem 0;
    background: var(--warm-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

/* ===================================
   HISTORIA
   =================================== */

.historia {
    padding: 6rem 0;
    background: var(--warm-white);
    position: relative;
}

.historia .container {
    position: relative;
    z-index: 1;
}

.historia .section-title {
    color: var(--dark-brown);
    text-shadow: none;
}

.historia .section-title::after {
    background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
}

.historia .section-subtitle {
    color: var(--medium-brown);
    text-shadow: none;
}

.historia-block {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    overflow: visible;
}

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

.historia-block-reverse {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
    overflow: visible;
}

.historia-block-reverse .historia-text {
    order: 1;
}

.historia-block-reverse .historia-image {
    order: 2;
}

.historia-text {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
}

.historia-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.historia-text p {
    font-size: 1.08rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    opacity: 0.9;
}

.historia-text p:last-child {
    margin-bottom: 0;
}

.historia-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 450px;
    position: relative;
}

/* Imagen izquierda - se extiende al borde izquierdo */
.historia-block .historia-image {
    margin-left: calc(-1 * (100vw - 100%) / 2 - 1rem);
    width: calc(100% + (100vw - 100%) / 2 + 1rem);
    border-radius: 0;
}

/* Imagen derecha - se extiende al borde derecho */
.historia-block-reverse .historia-image {
    justify-self: end;
    width: calc(85% + (100vw - 100%) / 2 + 1rem);
    transform: translateX(calc((100vw - 100%) / 2 + 1rem));
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.historia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.historia-image:hover img {
    transform: scale(1.08);
}

/* ===================================
   SERVICIOS Y COMODIDADES
   =================================== */

.services {
    padding: 6rem 0;
    background: var(--warm-white);
}

/* Márgenes amplios para todas las secciones principales */
.about .container,
.gallery .container,
.historia .container,
.location .container,
.testimonials .container,
.contact .container,
.services .container {
    max-width: 1600px;
    padding: 0 1rem;
}

.services-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: var(--primary-green);
    margin: 3rem 0 2rem;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 1rem;
}

.services-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
}

/* Grid por defecto */
.services-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Distribución de la Casa - Grid de 10 columnas para 2 filas equilibradas */
.distribution-grid {
    grid-template-columns: repeat(10, 1fr);
}

/* Primera fila: 4 cards (3+2+2+3 = 10) */
.distribution-grid .service-item:nth-child(1) {
    grid-column: span 3; /* 4 Habitaciones - GRANDE */
}

.distribution-grid .service-item:nth-child(2) {
    grid-column: span 2; /* 4 Baños */
}

.distribution-grid .service-item:nth-child(3) {
    grid-column: span 2; /* Cocina */
}

.distribution-grid .service-item:nth-child(4) {
    grid-column: span 3; /* Comedor */
}

/* Segunda fila: 5 cards iguales (2+2+2+2+2 = 10) */
.distribution-grid .service-item:nth-child(5),
.distribution-grid .service-item:nth-child(6),
.distribution-grid .service-item:nth-child(7),
.distribution-grid .service-item:nth-child(8),
.distribution-grid .service-item:nth-child(9) {
    grid-column: span 2;
}

/* Servicios (con iconos) en una sola fila */
.amenities-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.amenities-grid .service-item {
    grid-column: span 1;
}

.service-item {
    text-align: center;
    padding: 0;
    background: white;
    border-radius: 5px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    background: white;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 2rem auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    padding: 14px;
    transition: all var(--transition-normal);
}

.service-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.service-icon svg {
    width: 100%;
    height: 100%;
    color: white;
    stroke-width: 2.5;
}

/* Cards con iconos necesitan padding lateral */
.service-item:has(.service-icon) h4 {
    padding: 0 1.5rem;
}

.service-item:has(.service-icon) p {
    padding: 0 1.5rem 2rem 1.5rem;
}

.service-image {
    width: 100%;
    height: 180px;
    margin-bottom: 0;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-normal);
    transform: scale(1.15);
}

.service-item:hover .service-image img {
    transform: scale(1);
}

.service-item h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-weight: 600;
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.service-item p {
    font-size: 0.95rem;
    color: var(--medium-brown);
    opacity: 0.9;
    line-height: 1.5;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* ===================================
   SITUACIÓN / LOCATION
   =================================== */

.location {
    padding: 1rem 0;
    background-image: url('imagenes/muros_5.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

.location::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--warm-white);
    z-index: 0;
}

.location .container {
    position: relative;
    z-index: 1;
}

/* Grid moderno de ubicación */
.location-grid-modern {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto auto;
    column-gap: 1rem;
    row-gap: 2rem;
    margin: 2rem 0;
}

/* Texto descripción - ocupa 4 columnas */
.location-grid-modern .location-description {
    grid-column: 1 / 5;
    grid-row: 1;
    padding: 0;
    display: flex;
    align-items: center;
}

.location-grid-modern .location-description p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    text-align: justify;
    margin: 0;
    opacity: 0.9;
}

/* Mapa PNG - más pequeño */
.location-grid-modern .location-map-image {
    grid-column: 5 / 6;
    grid-row: 1;
    border-radius: 12px;
    overflow: hidden;
    max-width: 250px;
    justify-self: end;
}

.location-grid-modern .location-map-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.location-grid-modern .location-map-image:hover img {
    transform: scale(1.05);
}

/* Distancias - ocupa 2 columnas */
.location-grid-modern .distances-box {
    grid-column: 1 / 3;
    grid-row: 2;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-green);
}

.distances-box h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.distances {
    list-style: none;
    padding: 0;
    margin: 0;
}

.distances li {
    font-size: 1rem;
    padding: 0.4rem 0;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: padding-left var(--transition-fast);
}

.distances li:last-child {
    border-bottom: none;
}

.distances li:hover {
    padding-left: 0.5rem;
    color: var(--primary-green);
}

/* Google Maps - ocupa 3 columnas */
.location-grid-modern .location-map-interactive {
    grid-column: 3 / 6;
    grid-row: 2;
}

.location-grid-modern .location-map-interactive h3 {
    display: none;
}

.location-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-width: 100%;
    margin: 0 auto;
}

.location-map iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: none;
}

/* ===================================
   GALLERY CATEGORIES
   =================================== */

.gallery-category {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: var(--primary-green);
    margin: 3rem 0 1.5rem;
    padding-left: 1.5rem;
    border-left: 5px solid var(--accent-gold);
    font-weight: 600;
}

/* ===================================
   TESTIMONIOS
   =================================== */

.testimonials {
    padding: 4rem 0;
    background: var(--warm-white);
    overflow: hidden;
}

.testimonials .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
    width: 100%;
}

.testimonials-slider {
    width: 100vw;
    margin: 1.5rem 0 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.testimonials-container {
    display: flex;
    gap: 2rem;
    overflow-x: scroll;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 2rem 0;
    -webkit-overflow-scrolling: touch;
}

.testimonials-container::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 45%;
    min-width: 45%;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    scroll-snap-align: center;
    transition: all var(--transition-normal);
    opacity: 0.6;
    transform: scale(0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-gold));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.author-info h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--dark-brown);
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--medium-brown);
    opacity: 0.8;
}

.testimonial-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.rating-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    background: #003580;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-family: var(--font-heading);
    line-height: 1;
}

.rating-label {
    font-size: 0.85rem;
    color: #003580;
    font-weight: 600;
    margin-top: 0.5rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-gold);
    opacity: 0.2;
    position: absolute;
    left: -20px;
    top: -30px;
    font-family: Georgia, serif;
}

/* Botones del slider */
.slider-btn {
    display: none;
}

.prev-btn {
    display: none;
}

.next-btn {
    display: none;
}

/* Indicadores */
.slider-dots {
    display: none;
}

.dot {
    display: none;
}

/* Badge de Booking */
.booking-badge {
    text-align: center;
    margin: 0 auto 2rem;
    padding: 0.75rem 1.5rem;
    background: var(--warm-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
}

.booking-badge svg {
    flex-shrink: 0;
}

/* Animación */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 75%;
        min-width: 75%;
        padding: 2rem 1.5rem;
    }

    .testimonial-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .testimonial-rating {
        align-items: flex-start;
    }

    .rating-number {
        font-size: 1.5rem;
        padding: 0.4rem 0.8rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        flex: 0 0 85%;
        min-width: 85%;
        padding: 1.75rem 1.5rem;
        opacity: 1 !important;
        transform: scale(1) !important;
    }

    .testimonial-header {
        margin-bottom: 1.25rem;
    }

    .author-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .author-info h4 {
        font-size: 1.1rem;
    }

    .author-info p {
        font-size: 0.85rem;
    }

    .rating-number {
        font-size: 1.4rem;
        padding: 0.4rem 0.75rem;
    }

    .rating-label {
        font-size: 0.8rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .booking-badge {
        flex-direction: column;
        gap: 10px;
        padding: 1rem 1.5rem;
    }

    .booking-badge span {
        margin-left: 0 !important;
        font-size: 0.85rem !important;
    }

    .booking-badge svg {
        width: 90px;
        height: 22px;
    }
}

/* ===================================
   CONTACTO
   =================================== */

.contact {
    padding: 6rem 0;
    background-image: url('imagenes/vistas_1.jpeg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact .section-title {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.contact .section-title::after {
    background: linear-gradient(to right, transparent, white, transparent);
}

.contact .section-subtitle {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.contact-content {
    margin-top: 3rem;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: white;
    padding: 1.75rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

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

.contact-icon-large {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    padding: 18px;
}

.contact-icon-large svg {
    width: 100%;
    height: 100%;
    color: white;
    stroke-width: 2;
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.contact-primary {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 0.4rem;
}

.contact-secondary {
    font-size: 0.95rem;
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.contact-button {
    display: inline-block;
    background: var(--primary-green);
    color: var(--warm-white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    margin-top: auto;
}

.contact-button:hover {
    background: #3d6647;
    transform: scale(1.05);
}

.reservation-cta {
    background: linear-gradient(135deg, var(--primary-green), #3d6647);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    color: var(--warm-white);
    box-shadow: var(--shadow-lg);
}

.reservation-cta h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--warm-white);
}

.cta-highlight {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    font-weight: 600;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem auto;
    max-width: 700px;
}

.benefit-item {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    text-align: left;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

.price-info {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-top: 2rem;
    font-weight: 600;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    padding-top: 1.5rem;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--dark-brown);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
}

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

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.footer-section p {
    opacity: 0.85;
    line-height: 1.6;
}

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

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

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.85;
    transition: all var(--transition-fast);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--accent-gold);
    padding-left: 5px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.85;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent-gold);
}

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

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .shangri-left,
    .shangri-right {
        grid-template-columns: 1fr;
    }

    .shangri-section {
        min-height: auto;
    }

    .shangri-image-full {
        min-height: 350px;
    }

    .shangri-text-box {
        padding: 2.5rem;
        min-height: auto;
    }

    .features-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 600px;
    }

    .feature-card {
        height: 380px;
    }

    .feature-title h3 {
        font-size: 1.7rem;
    }

    .historia-block,
    .historia-block-reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .historia-block-reverse .historia-text,
    .historia-block-reverse .historia-image {
        order: 0;
    }

    .historia-image {
        height: 300px;
    }

    .historia-text {
        padding: 1rem;
    }

    .historia-text h3 {
        font-size: 1.75rem;
    }

    .location-details,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .location-grid-modern {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
    }

    .location-grid-modern .location-description {
        grid-column: 1;
        grid-row: auto;
    }

    .location-grid-modern .location-map-image {
        grid-column: 1;
        grid-row: auto;
    }

    .location-grid-modern .distances-box {
        grid-column: 1;
        grid-row: auto;
    }

    .location-grid-modern .location-map-interactive {
        grid-column: 1;
        grid-row: auto;
    }

    .location-details {
        margin-bottom: 1.25rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .services-subtitle + .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-info .section-title {
        text-align: center;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--light-cream);
        width: 100%;
        text-align: center;
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        gap: 1.5rem;
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .hero {
        min-height: 90vh;
    }

    .titulo {
        max-width: 100%;
    }

    .about-image-inline {
        height: 350px;
    }

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

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

    /* Ocultar imágenes 3 y 4 en móvil - mostrar solo 2 inicialmente */
    .gallery-grid[data-category] .gallery-item:nth-child(3):not(.gallery-item-hidden),
    .gallery-grid[data-category] .gallery-item:nth-child(4):not(.gallery-item-hidden) {
        display: none;
    }

    .gallery-grid[data-category].expanded .gallery-item:nth-child(3):not(.gallery-item-hidden),
    .gallery-grid[data-category].expanded .gallery-item:nth-child(4):not(.gallery-item-hidden) {
        display: block;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

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

    .distribution-grid .service-item {
        grid-column: span 1 !important;
    }

    .location-map iframe {
        height: 280px;
    }

    .location-map-interactive h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

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

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .contact {
        background-attachment: scroll;
    }

    .historia {
        background-attachment: scroll;
    }

    .testimonials {
        background-attachment: scroll;
    }

    .location {
        background-attachment: scroll;
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .historia-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .historia-block-reverse {
        grid-template-columns: 1fr;
    }

    .historia-block-reverse .historia-text,
    .historia-block-reverse .historia-image {
        order: initial;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

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

    .hero-cta {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }

    .shangri-image-full {
        min-height: 300px;
    }

    .shangri-full .shangri-image-full {
        background-attachment: scroll;
    }

    .shangri-full {
        min-height: 600px;
    }

    .shangri-full .shangri-image-full {
        min-height: 600px;
    }

    .shangri-text-box {
        padding: 1.5rem;
    }

    .shangri-text-box h3 {
        font-size: 1.6rem;
    }

    .shangri-text-box p {
        font-size: 1rem;
    }

    .shangri-overlay-content {
        padding: 3rem 1.5rem;
        justify-content: center;
    }

    .final-message {
        padding: 1.5rem 0;
    }

    .final-message p {
        font-size: 1.1rem;
    }

    .highlight-text strong {
        font-size: 1.5rem;
    }

    .features-cards {
        gap: 1.5rem;
        max-width: 100%;
    }

    .feature-card {
        height: 320px;
    }

    .feature-title h3 {
        font-size: 1.5rem;
    }

    .feature-overlay p {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .historia-block {
        margin-bottom: 3rem;
    }

    .historia-image {
        height: 250px;
    }

    .historia-text {
        padding: 0.5rem;
    }

    .historia-text h3 {
        font-size: 1.5rem;
    }

    .historia-text p {
        font-size: 1rem;
    }

    .spaces-grid,
    .gallery-grid {
        gap: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services-subtitle + .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-intro,
    .location-details {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .location-map-image {
        max-width: 150px;
        margin-left: 0;
    }

    .location-map iframe {
        height: 250px;
    }

    .distances-box {
        padding: 0.85rem;
    }

    .distances-box h4 {
        font-size: 1rem;
    }

    .distances li {
        font-size: 0.85rem;
        padding: 0.35rem 0;
    }

    .space-card,
    .gallery-item {
        border-radius: 10px;
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefits-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* ===================================
   GALERÍA - VER MÁS
   =================================== */

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

.gallery-toggle-btn {
    display: block;
    margin: 2rem auto 3rem;
    padding: 0.85rem 2rem;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-toggle-btn:hover {
    background: #3d6647;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.gallery-toggle-btn .btn-icon {
    transition: transform var(--transition-normal);
}

.gallery-toggle-btn.expanded .btn-icon {
    transform: rotate(180deg);
}

/* ===================================
   ANIMACIONES DE SCROLL
   =================================== */

[data-aos] {
    opacity: 0;
    transition: all 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}
