/* ═════════════════════════════════════════════════════════
   DHARMA INFINITO — Luxury Care Home
   Design System & Complete Styling
   ═════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
    --bg-primary: #080d08;
    --bg-secondary: #0e150e;
    --bg-surface: #131a13;
    --bg-card: #161e16;
    --bg-card-hover: #1a241a;
    --border-subtle: #1e2e1e;
    --border-glow: #2d7a4f33;

    --gold: #c9a84c;
    --gold-light: #d4b965;
    --gold-dim: #b8952e;
    --green-primary: #2d7a4f;
    --green-light: #3a9d6a;
    --green-dark: #1f5c3a;
    --green-glow: rgba(45, 122, 79, 0.15);

    --text-primary: #ffffff;
    --text-secondary: #b0b8b0;
    --text-muted: #6b766b;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 30px rgba(45,122,79,0.1);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Section Base ─── */
.section {
    padding: 100px 0;
    position: relative;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--gold);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-title-alt {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    font-style: italic;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.divider {
    width: 50px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 50px;
    border-radius: 2px;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--green-primary);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--green-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45,122,79,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
    border-color: var(--green-primary);
    background: var(--green-glow);
    transform: translateY(-2px);
}

.btn-submit {
    background: var(--green-primary);
    color: var(--text-primary);
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
}

.btn-submit:hover {
    background: var(--green-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45,122,79,0.3);
}

/* ─── Animations ─── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid children */
.reveal.visible:nth-child(1) { transition-delay: 0s; }
.reveal.visible:nth-child(2) { transition-delay: 0.1s; }
.reveal.visible:nth-child(3) { transition-delay: 0.2s; }
.reveal.visible:nth-child(4) { transition-delay: 0.3s; }
.reveal.visible:nth-child(5) { transition-delay: 0.4s; }
.reveal.visible:nth-child(6) { transition-delay: 0.5s; }
.reveal.visible:nth-child(7) { transition-delay: 0.6s; }
.reveal.visible:nth-child(8) { transition-delay: 0.7s; }
.reveal.visible:nth-child(9) { transition-delay: 0.8s; }

/* Slide from left variant */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right variant */
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale-in variant */
.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Gold shimmer on section labels */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.section-label {
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 25%, #fff 50%, var(--gold-light) 75%, var(--gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* Pulsing divider */
@keyframes dividerPulse {
    0%, 100% { width: 50px; opacity: 1; }
    50% { width: 80px; opacity: 0.7; }
}

.divider {
    animation: dividerPulse 3s ease-in-out infinite;
}

/* Floating particles background for sections */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 10% 20%, rgba(201,168,76,0.15), transparent),
        radial-gradient(1px 1px at 80% 40%, rgba(45,122,79,0.12), transparent),
        radial-gradient(1px 1px at 30% 70%, rgba(201,168,76,0.1), transparent),
        radial-gradient(1px 1px at 70% 80%, rgba(45,122,79,0.08), transparent);
    pointer-events: none;
    z-index: 0;
}

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

/* Enhanced card hover with lift */
.servicio-card,
.gastronomia-card,
.familia-card,
.stat-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.servicio-card:hover,
.gastronomia-card:hover,
.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(45,122,79,0.15), 0 0 20px rgba(201,168,76,0.05);
}

.familia-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(45,122,79,0.12);
}

/* Icon pulse on card hover */
.servicio-card:hover .servicio-icon,
.gastronomia-card:hover .gastronomia-icon {
    animation: iconPulse 0.5s ease;
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Gallery item hover zoom */
.inst-card img,
.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.inst-card:hover img,
.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* Section title underline animation */
.section-title::after,
.section-title-alt::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--gold);
    margin: 12px auto 0;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 1px;
}

.section-title.animate-line::after,
.section-title-alt.animate-line::after {
    width: 100px;
}

/* Glow pulse for CTA buttons */
@keyframes ctaGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(45,122,79,0.3); }
    50% { box-shadow: 0 4px 30px rgba(45,122,79,0.5), 0 0 60px rgba(45,122,79,0.1); }
}

.btn-primary {
    animation: ctaGlow 3s ease-in-out infinite;
}

.btn-primary:hover {
    animation: none;
}

/* Smooth fade for philosophy card */
.philosophy-card {
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.philosophy-card:hover {
    border-color: var(--gold-dim);
    box-shadow: 0 0 30px rgba(201,168,76,0.08);
}

/* ═════════════════════════════════════════════════════════
   NAVIGATION
   ═════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(8, 13, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

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

.nav-logo-img {
    height: 64px;
    width: auto;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--green-glow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-social {
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

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

.btn-contactar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--green-primary);
    color: var(--text-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-contactar:hover {
    background: var(--green-light);
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

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

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

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

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

.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(8,13,8,0.7) 0%,
        rgba(8,13,8,0.5) 40%,
        rgba(8,13,8,0.7) 70%,
        rgba(8,13,8,0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 0 24px;
}

.hero-logo {
    width: 340px;
    height: auto;
    margin: 0 auto 32px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.7)) drop-shadow(0 0 40px rgba(0,0,0,0.5));
    animation: heroLogoIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

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

.hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 5px;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 16px;
    animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.15;
    animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.hero-title em {
    color: var(--gold);
    font-style: italic;
}

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

.hero-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
    animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: bounce 2s infinite;
    z-index: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ═════════════════════════════════════════════════════════
   NOSOTROS
   ═════════════════════════════════════════════════════════ */
.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.nosotros-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--green-primary);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.stat-icon {
    color: var(--gold);
    margin-bottom: 12px;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.philosophy-card {
    margin-top: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 24px;
}

.philosophy-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.philosophy-card strong {
    color: var(--gold);
}

/* ═════════════════════════════════════════════════════════
   SERVICIOS MÉDICOS
   ═════════════════════════════════════════════════════════ */
.servicios {
    background: var(--bg-secondary);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.servicio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: var(--transition);
}

.servicio-card:hover {
    border-color: var(--green-primary);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.servicio-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-glow);
    border: 1px solid var(--green-primary);
    border-radius: var(--radius-sm);
    color: var(--green-light);
    margin-bottom: 16px;
}

.servicio-card h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.servicio-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Cuidado Integral */
.cuidado-integral {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 350px;
}

.cuidado-integral img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cuidado-integral-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(8,13,8,0.9));
}

.cuidado-integral-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-style: italic;
}

.cuidado-integral-overlay p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.6;
}

/* ═════════════════════════════════════════════════════════
   BIENESTAR Y ACTIVIDADES
   ═════════════════════════════════════════════════════════ */
.bienestar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.bienestar-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bienestar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    gap: 14px;
    transition: var(--transition);
}

.bienestar-card:hover {
    border-color: var(--green-primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.bienestar-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-glow);
    border: 1px solid var(--green-primary);
    border-radius: var(--radius-sm);
    color: var(--green-light);
}

.bienestar-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.bienestar-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.bienestar-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* ═════════════════════════════════════════════════════════
   GASTRONOMÍA
   ═════════════════════════════════════════════════════════ */
.gastronomia {
    background: var(--bg-secondary);
}

.gastronomia-hero {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 550px;
    margin-bottom: 40px;
}

.gastronomia-hero img,
.gastronomia-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gastronomia-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gastronomia-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
}

.gastronomia-card:hover {
    border-color: var(--gold-dim);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(201,168,76,0.1);
}

.gastronomia-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: var(--radius-sm);
    color: var(--gold);
    margin: 0 auto 16px;
}

.gastronomia-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.gastronomia-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═════════════════════════════════════════════════════════
   INSTALACIONES
   ═════════════════════════════════════════════════════════ */
.instalaciones-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}

.inst-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    height: 260px;
}

.inst-card-large {
    grid-row: span 2;
    height: 100%;
}

.inst-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.inst-card:hover img {
    transform: scale(1.05);
}

.inst-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    opacity: 0;
    transition: var(--transition);
}

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

.inst-card-overlay h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* ═════════════════════════════════════════════════════════
   FAMILIA
   ═════════════════════════════════════════════════════════ */
.familia {
    background: var(--bg-secondary);
}

.familia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.familia-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.familia-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    gap: 16px;
    transition: var(--transition);
}

.familia-card:hover {
    border-color: var(--gold-dim);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.familia-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 50%;
    color: var(--gold);
}

.familia-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.familia-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.familia-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* ═════════════════════════════════════════════════════════
   GALERÍA
   ═════════════════════════════════════════════════════════ */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--green-primary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--green-primary);
    border-color: var(--green-primary);
    color: var(--text-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    height: 240px;
    transition: var(--transition);
}

.gallery-item.gallery-item-large {
    grid-row: span 2;
    height: 100%;
}

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

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

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

/* ═════════════════════════════════════════════════════════
   CONTACTO
   ═════════════════════════════════════════════════════════ */
.contacto-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px var(--green-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.input-small {
    max-width: 150px;
}

.contacto-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.contact-info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item svg {
    color: var(--gold);
    min-width: 20px;
}

.contact-item-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-item a {
    color: var(--text-primary);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--gold);
}

.why-choose-card {
    background: linear-gradient(135deg, var(--green-dark), var(--bg-card));
    border: 1px solid var(--green-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.why-choose-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.why-choose-card ul li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.why-choose-card ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.7rem;
}

/* ═════════════════════════════════════════════════════════
   FOOTER
   ═════════════════════════════════════════════════════════ */
.footer {
    background: var(--bg-secondary);
    padding: 30px 0 20px;
    border-top: 1px solid var(--border-subtle);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.footer-tagline {
    display: block;
    font-size: 0.8rem;
    color: var(--green-light);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-social:hover {
    color: var(--gold);
}

.footer-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 20px 0;
}

.footer-serenity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
}

.footer-serenity-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.footer-serenity-badge {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(201, 168, 76, 0.3));
    transition: var(--transition);
}

.footer-serenity-badge:hover {
    filter: drop-shadow(0 4px 16px rgba(201, 168, 76, 0.5));
    transform: scale(1.05);
}

.footer-copy {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ═════════════════════════════════════════════════════════
   LIGHTBOX
   ═════════════════════════════════════════════════════════ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    cursor: default;
    box-shadow: 0 8px 60px rgba(0,0,0,0.5);
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--gold);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1.6rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2001;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--gold);
    color: var(--gold);
}

/* ═════════════════════════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(8,13,8,0.98);
        justify-content: center;
        align-items: center;
        gap: 8px;
        z-index: 999;
    }

    .nav-links.active a {
        font-size: 1.2rem;
        padding: 12px 24px;
    }

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

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

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

    .nosotros-grid,
    .bienestar-grid,
    .familia-grid,
    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .nosotros-image img,
    .bienestar-image img,
    .familia-image img {
        height: 300px;
    }

    .bienestar-cards {
        grid-template-columns: 1fr;
    }

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

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

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

    .gastronomia-hero {
        height: 250px;
    }

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

    .gallery-item.gallery-item-large {
        grid-row: span 1;
    }

    .instalaciones-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .inst-card-large {
        grid-row: span 1;
    }

    .cuidado-integral {
        height: 300px;
    }

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

    .hero-logo {
        width: 240px;
    }

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

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

    .section {
        padding: 50px 0;
    }

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

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

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

    .instalaciones-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .contact-form {
        padding: 20px;
    }
}
