/* ========================================
   VARIABLES & RESET
   ======================================== */

:root {
    /* Colores - Paleta natural y tierra */
    --color-primary: #6B7F5C;        /* Verde oliva */
    --color-secondary: #D4C5A9;       /* Beige/Arena */
    --color-accent: #A0896B;          /* Tierra */
    --color-dark: #3A3A3A;            /* Gris oscuro */
    --color-light: #F8F6F2;           /* Blanco cálido */
    --color-white: #FFFFFF;
    --color-overlay: rgba(58, 58, 58, 0.5);
    
    /* Tipografía */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Otros */
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background-color: var(--color-light);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open > *:not(#header) {
    z-index: 1 !important;
    position: relative;
}

/* Limitar todas las imágenes y elementos multimedia */
img, video, iframe, svg {
    max-width: 100%;
    height: auto;
}

/* Asegurar que los contenedores de texto respeten el ancho */
p, h1, h2, h3, h4, h5, h6, span, a, li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
    box-sizing: border-box;
}

.section {
    padding: var(--spacing-xl) 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .section {
        padding: 3rem 0;
        max-width: 100vw;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .section {
        padding: 2.5rem 0;
        max-width: 100vw;
        overflow-x: hidden;
    }
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-number {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 2px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-top: var(--spacing-xs);
    font-weight: 600;
}

/* ========================================
   BOTONES
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

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

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

.btn-hero {
    background-color: var(--color-white);
    color: var(--color-primary);
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
}

.btn-hero:hover {
    background-color: var(--color-light);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-custom {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
}

.btn-custom:hover {
    background-color: #8f7a5d;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* ========================================
   HEADER & NAVEGACIÓN
   ======================================== */

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    background-color: var(--color-white);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow-x: hidden;
}

body.menu-open #header {
    z-index: 999;
    overflow: visible !important;
}

body.menu-open #header .nav-menu {
    z-index: 1000000 !important;
}

.navbar {
    padding: 0.75rem 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body.menu-open .navbar {
    overflow: visible !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 0.5rem;
    flex-wrap: nowrap;
    padding: 0 0.5rem;
}

body.menu-open .nav-container {
    overflow: visible !important;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    flex-shrink: 0;
}

.logo a:hover {
    color: var(--color-accent);
}

.logo img {
    height: 65px;
    width: auto;
    max-width: 100%;
    display: block;
    transition: var(--transition);
    object-fit: contain;
    flex-shrink: 0;
}

.logo a:hover img {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

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

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    flex-shrink: 0;
    padding: 0.75rem;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1000000;
}

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

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

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

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

/* ========================================
   LANGUAGE SWITCHER
   ======================================== */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.lang-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-dark);
    cursor: pointer;
    padding: 0.3rem 0.4rem;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.lang-btn:hover {
    color: var(--color-primary);
}

.lang-btn.active {
    color: var(--color-primary);
    font-weight: 600;
}

.lang-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
}

.lang-separator {
    color: var(--color-secondary);
    font-weight: 300;
    user-select: none;
}

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

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('IMG/SECTION1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--color-white);
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 58, 58, 0.5);
    z-index: 1;
    transition: background 0.3s ease;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--spacing-md);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: var(--spacing-xs);
    font-style: italic;
}

.hero-location {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 1px;
}

.fade-in {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.fade-in:nth-child(1) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.4s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.6s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.8s;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--color-white);
}

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

/* ========================================
   SECTION 1 - QUIÉNES SOMOS
   ======================================== */

.section-about {
    background-color: var(--color-white);
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.about-text p {
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
    color: var(--color-dark);
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.about-text .highlight {
    background-color: var(--color-light);
    padding: var(--spacing-sm);
    border-left: 4px solid var(--color-primary);
    font-weight: 500;
    color: var(--color-primary);
}

.about-image {
    position: relative;
}

.image-placeholder {
    aspect-ratio: 4/5;
    background-image: url('IMG/jose.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 197, 169, 0.3) 0%, rgba(160, 137, 107, 0.3) 100%);
    z-index: 1;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 2;
    opacity: 0;
}

.image-placeholder p {
    font-size: 1rem;
    font-style: italic;
    position: relative;
    z-index: 2;
    opacity: 0;
}

/* ========================================
   SECTION 2 - SERVICIOS
   ======================================== */

.section-services {
    background-color: var(--color-light);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.services-intro {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0;
    margin-bottom: var(--spacing-xl);
}

.services-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.services-description:last-child {
    margin-bottom: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: var(--spacing-lg);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.service-card {
    background-color: var(--color-primary);
    padding: 2rem 1.5rem;
    margin-bottom: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    aspect-ratio: 1 / 1;
    justify-content: space-between;
    width: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: var(--spacing-sm);
    border: 2px solid var(--color-white);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-white);
    margin-bottom: auto;
    font-weight: 600;
    line-height: 1.3;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.service-content h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-primary);
    margin: var(--spacing-md) 0 var(--spacing-sm);
}

.service-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: var(--spacing-md);
}

.service-list li {
    padding: var(--spacing-xs) 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.service-note {
    font-style: italic;
    color: var(--color-accent);
    margin-top: var(--spacing-sm);
}

/* Tags para disciplinas */
.disciplines {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--color-light);
    border: 1px solid var(--color-secondary);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--color-dark);
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Grid para bienestar */
.wellness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-sm);
}

.wellness-item {
    background-color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-sm);
    text-align: center;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    color: var(--color-dark);
    border: 1px solid var(--color-secondary);
    transition: var(--transition);
}

.wellness-item:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

/* Botón Ver Más */
.btn-see-more {
    display: block;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-white);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    margin-top: 1rem;
}

.btn-see-more:hover {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: var(--color-white);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    max-width: 700px;
    width: 90%;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    color: var(--color-dark);
    float: right;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    padding: 1rem 1.5rem 0 0;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover,
.modal-close:focus {
    color: var(--color-primary);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--color-secondary);
}

.modal-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
}

.modal-description {
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.modal-details {
    margin-top: 1.5rem;
}

.modal-details h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-primary);
    margin: 1.5rem 0 1rem;
}

.modal-details ul {
    list-style: none;
    padding-left: 0;
}

.modal-details ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
}

.modal-details ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.modal-details p {
    margin: 1rem 0;
    line-height: 1.8;
}

.modal-details .service-note {
    font-style: italic;
    color: var(--color-accent);
    margin-top: 1rem;
}

/* ========================================
   SECTION 5 - EXPERIENCIAS PERSONALIZADAS
   ======================================== */

.section-custom {
    background: var(--color-light);
    color: var(--color-dark);
    padding: 0;
    overflow: hidden;
}

.custom-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 100%;
    padding: 0;
    min-height: 500px;
}

.custom-text-content {
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #5a6d4d 100%);
    color: var(--color-white);
}

.custom-image-content {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.custom-image-content .btn-custom {
    position: relative;
    z-index: 2;
}

.custom-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    line-height: 1.2;
    word-break: keep-all;
    overflow-wrap: normal;
}

.custom-text {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 300;
    line-height: 1.7;
    opacity: 0.95;
}

.btn-custom {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-white);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-custom:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

/* Responsive para experiencias personalizadas */
@media (max-width: 1024px) {
    .custom-text-content {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .custom-title {
        word-break: keep-all;
        overflow-wrap: normal;
    }
}

@media (max-width: 768px) {
    .custom-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .custom-text-content {
        padding: var(--spacing-lg);
        text-align: center;
    }
    
    .custom-image-content {
        min-height: 400px;
    }
    
    .custom-title {
        font-size: 2rem;
        word-break: keep-all;
        overflow-wrap: normal;
    }
    
    .custom-text {
        font-size: 1.1rem;
    }
}

/* ========================================
   SECTION 6 - PARTNERS
   ======================================== */

.section-partners {
    background-color: var(--color-light);
    max-width: 100vw;
    overflow: hidden;
    width: 100%;
}

.partners-description {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    width: 100%;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-dark);
}

.partners-container {
    background-color: #4a4a4a;
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-lg);
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.partners-grid {
    display: flex;
    animation: scroll-logos 30s linear infinite;
    width: max-content;
}

.partners-grid:hover {
    animation-play-state: paused;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-lg);
    min-width: 250px;
    flex-shrink: 0;
}

.partner-logo img {
    max-width: 150px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(1.2);
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: block;
}

.partner-logo:hover img {
    opacity: 1;
    transform: scale(1.1);
    filter: brightness(1.3);
}

.partners-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding: var(--spacing-sm) 0;
    margin-bottom: -1rem;
}

.btn-partners {
    background-color: #4a4a4a;
    color: var(--color-white);
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.btn-partners:hover {
    background-color: #3a3a3a;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

/* ========================================
   SECTION 7 - GALERÍA
   ======================================== */

.section-gallery {
    background-color: var(--color-white);
    max-width: 100vw;
    overflow: hidden;
    width: 100%;
}

.gallery-intro {
    text-align: center;
    width: 100%;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-dark);
    margin-top: var(--spacing-sm);
}

/* Gallery Carousel Container */
.gallery-container {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md) 0;
    box-sizing: border-box;
}

.gallery-grid {
    display: flex;
    gap: var(--spacing-md);
    width: max-content;
    animation: scroll-gallery 90s linear infinite;
}

.gallery-grid:hover {
    animation-play-state: paused;
}

@keyframes scroll-gallery {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    min-width: 300px;
    width: 300px;
    height: 400px;
    flex-shrink: 0;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: var(--spacing-md);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-caption {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

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

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

/* Gallery CTA Button */
.gallery-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-md) 0;
}

.btn-gallery {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 127, 92, 0.3);
}

.btn-gallery:hover {
    background-color: #5a6d4d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 127, 92, 0.4);
}

/* ========================================
   GALLERY LIGHTBOX
   ======================================== */

.lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.7);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-top: var(--spacing-sm);
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 1.1rem;
    max-width: 600px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--color-white);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 100000;
    transition: all 0.3s ease;
    line-height: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    border: none;
    padding: var(--spacing-md);
    font-size: 2rem;
    cursor: pointer;
    z-index: 100000;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

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

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

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        padding: var(--spacing-sm);
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-caption {
        font-size: 0.95rem;
        padding: var(--spacing-xs) var(--spacing-sm);
        max-width: 90%;
    }
    
    .lightbox-content img {
        max-height: 75vh;
    }
}

/* ========================================
   FOOTER - CONTACTO
   ======================================== */

.footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
}

.footer-content {
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.footer-main {
    flex: 1;
    max-width: 50%;
}

.footer-logo {
    flex: 1;
    max-width: 50%;
    text-align: right;
    margin-bottom: 0;
}

.footer-logo img {
    height: 200px;
    width: auto;
    max-width: 100%;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    object-fit: contain;
    display: block;
    margin-left: auto;
}

.footer-logo img:hover {
    opacity: 1;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--color-white);
    font-weight: 600;
}

.contact-info {
    margin-bottom: var(--spacing-lg);
}

.contact-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-white);
    margin-bottom: var(--spacing-xs);
}

.contact-role {
    font-size: 1.1rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-light);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--color-secondary);
    transform: translateX(5px);
}

.contact-link i {
    color: var(--color-secondary);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.social-link {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.3rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--color-primary);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sernatur-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.sernatur-img {
    height: 25px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.sernatur-img:hover {
    opacity: 1;
}

.sernatur-text {
    font-size: 0.75rem;
    color: var(--color-secondary);
    opacity: 0.8;
}

/* ========================================
   RESPONSIVE DESIGN (Mobile First)
   ======================================== */

/* Pantallas grandes - Limitar contenedor */
@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }
}

/* Tablets y dispositivos medianos */
@media (max-width: 968px) {
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .section-title {
        font-size: 2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        width: 100%;
        max-width: 100%;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        aspect-ratio: 1 / 1;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 2.2rem;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        width: 100%;
        max-width: 100%;
    }
    
    .about-image {
        order: -1;
    }
    
    .image-placeholder {
        aspect-ratio: 16/9;
        background-position: center center;
    }
    
    .hero {
        min-height: 500px;
        height: 80vh;
    }
    
    .hero-overlay {
        background: rgba(58, 58, 58, 0.55);
    }
    
    .hero-content {
        max-width: 700px;
        padding: 0 var(--spacing-md);
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-title {
        font-size: 3rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .partners-grid {
        animation: scroll-logos 30s linear infinite;
    }
    
    .gallery-item {
        min-width: 250px;
        width: 250px;
        height: 350px;
    }
    
    .gallery-grid {
        animation: scroll-gallery 90s linear infinite;
        gap: 1.5rem;
    }
}

/* Móviles */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        aspect-ratio: auto;
        min-height: 240px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .service-icon {
        width: 65px;
        height: 65px;
        font-size: 2rem;
    }
    
    .service-title {
        font-size: 1.2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Header móvil */
    .nav-container {
        padding: 0 0.5rem;
        gap: 0.5rem;
        justify-content: center;
        position: relative;
    }
    
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .language-switcher {
        order: 1;
        margin-left: auto;
        margin-right: 0.5rem;
    }
    
    .hamburger {
        order: 2;
    }
    
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: var(--color-white) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 2rem !important;
        gap: 2rem !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        box-sizing: border-box !important;
        z-index: 999999 !important;
        display: flex !important;
        list-style: none !important;
        margin: 0 !important;
    }
    
    .nav-menu li {
        width: 100%;
        list-style: none;
        display: block;
        margin: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem;
        width: 100%;
        text-align: center;
        color: var(--color-dark) !important;
        display: block;
        text-decoration: none;
        font-weight: 600;
        transition: var(--transition);
    }
    
    .nav-link:hover {
        color: var(--color-primary);
        background-color: rgba(0, 0, 0, 0.05);
        border-radius: 8px;
    }
    
    .nav-menu.active {
        transform: translateX(0) !important;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-container .btn-primary {
        display: none;
    }
    
    .logo a {
        font-size: 1.3rem;
    }
    
    .logo img {
        height: 45px;
        max-width: 150px;
        width: auto;
    }
    
    /* Language Switcher móvil */
    .language-switcher {
        order: -1;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Hero */
    .hero {
        min-height: 450px;
        height: 70vh;
    }
    
    .hero-overlay {
        background: rgba(58, 58, 58, 0.6);
    }
    
    .hero-content {
        max-width: 600px;
        padding: 0 var(--spacing-md);
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-location {
        font-size: 1rem;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-indicator i {
        font-size: 1.75rem;
    }
    
    .image-placeholder {
        aspect-ratio: 4/3;
        background-size: cover;
    }
    
    /* Secciones */
    .section {
        padding: 3rem 0;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 1rem;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .section-header {
        margin-bottom: 2rem;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .section-number {
        font-size: 0.85rem;
    }
    
    /* Botones tablet */
    .btn {
        padding: 0.8rem 1.75rem;
        font-size: 0.92rem;
    }
    
    .btn-hero {
        padding: 0.9rem 1.85rem;
    }
    
    /* About section */
    .about-text p {
        font-size: 1rem;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Services */
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .service-title {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .service-description {
        font-size: 0.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .disciplines {
        gap: 0.5rem;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
    
    .tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        max-width: 100%;
        word-wrap: break-word;
    }
    
    .custom-title {
        font-size: 1.85rem;
        word-break: keep-all;
        overflow-wrap: normal;
        line-height: 1.3;
    }
    
    .custom-text {
        font-size: 1rem;
    }
    
    .wellness-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .wellness-item {
        padding: 1rem;
    }
    
    .wellness-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .wellness-text {
        font-size: 0.9rem;
    }
    
    .partners-grid {
        animation: scroll-logos 30s linear infinite;
    }
    
    /* Gallery */
    .gallery-item {
        min-width: 220px;
        width: 220px;
        height: 320px;
    }
    
    .gallery-grid {
        animation: scroll-gallery 90s linear infinite;
        gap: 1.25rem;
    }
    
    .gallery-intro {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    .footer-main {
        max-width: 100%;
        margin-top: 0;
        width: 100%;
    }
    
    .footer-logo {
        max-width: 100%;
        text-align: center;
        margin-top: var(--spacing-md);
        width: 100%;
    }
    
    .footer-logo img {
        height: 130px;
        max-width: 100%;
        width: auto;
    }
    
    .footer-title {
        font-size: 1.85rem;
    }
    
    .contact-name {
        font-size: 1.5rem;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
    
    /* Modal responsive */
    .modal-content {
        margin: 3% auto;
        width: 95%;
        max-width: 95%;
        max-height: 85vh;
        box-sizing: border-box;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    html {
        font-size: 15px;
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    body {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
        position: relative;
    }
    
    /* Reset header: logo a la izquierda en móvil pequeño */
    .nav-container {
        justify-content: space-between;
        position: static;
        padding: 0 0.5rem;
    }
    
    .logo {
        position: static;
        transform: none;
        order: 0;
    }
    
    .language-switcher {
        order: 1;
        margin-left: auto;
        margin-right: 0.5rem;
    }
    
    .hamburger {
        order: 2;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
        aspect-ratio: auto;
        min-height: 200px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
    }
    
    .service-title {
        font-size: 1.15rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .service-icon {
        width: 55px;
        height: 55px;
        font-size: 1.7rem;
    }
    
    .hero {
        min-height: 450px;
        height: 70vh;
        max-height: 650px;
        background-position: center center;
    }
    
    .hero-overlay {
        background: rgba(58, 58, 58, 0.65);
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-title {
        font-size: 1.85rem;
        letter-spacing: 0.5px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        padding: 0 0.5rem;
    }
    
    .hero-location {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    .scroll-indicator {
        bottom: 15px;
    }
    
    .scroll-indicator i {
        font-size: 1.5rem;
    }
    
    /* Secciones móvil pequeño */
    .section {
        padding: 2rem 0;
        max-width: 100vw;
        overflow-x: hidden;
        width: 100%;
    }
    
    .container {
        padding: 0 0.5rem;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        width: 100%;
    }
    
    .section-title {
        font-size: 1.4rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        padding: 0 0.25rem;
    }
    
    .section-header {
        margin-bottom: 1.25rem;
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Botones m\u00f3vil */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: auto;
    }
    
    .btn-hero {
        padding: 0.85rem 1.75rem;
        font-size: 0.95rem;
    }
    
    /* About section */
    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 0.9rem;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .about-text .highlight {
        padding: 0.75rem;
        font-size: 0.9rem;
        word-wrap: break-word;
    }
    
    /* Services */
    .service-card {
        padding: 1.25rem;
        margin-bottom: 0.75rem;
        width: 100%;
        max-width: 100%;
    }
    
    .service-title {
        font-size: 1.25rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .service-description {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .custom-title {
        font-size: 1.6rem;
        word-break: keep-all;
        overflow-wrap: normal;
    }
    
    .custom-text {
        font-size: 0.95rem;
    }
    
    .wellness-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
    }
    
    .wellness-item {
        padding: 0.875rem;
    }
    
    .wellness-icon {
        font-size: 1.75rem;
    }
    
    .wellness-text {
        font-size: 0.85rem;
    }
    
    .partners-grid {
        animation: scroll-logos 30s linear infinite;
    }
    
    /* Gallery */
    .gallery-item {
        min-width: 180px;
        width: 180px;
        height: 260px;
        flex-shrink: 0;
    }
    
    .gallery-grid {
        animation: scroll-gallery 90s linear infinite;
        gap: 1rem;
    }
    
    .gallery-intro {
        font-size: 0.9rem;
        padding: 0 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .partner-card {
        padding: 1rem;
    }
    
    /* Footer */
    .footer-logo {
        margin-top: 1rem;
    }
    
    .footer-logo img {
        height: 100px;
        max-width: 100%;
        width: auto;
    }
    
    .footer-main {
        margin-top: 0;
    }
    
    .footer-title {
        font-size: 1.6rem;
    }
    
    .contact-info {
        padding: 1.25rem 0;
    }
    
    .contact-name {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-role {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-link {
        font-size: 1rem;
    }
    
    .contact-link i {
        font-size: 1.1rem;
    }
    
    .social-links {
        margin-top: 1.5rem;
        gap: 1rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 1rem;
    }
    
    /* Back to top button móvil */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.7rem;
    }
    
    .image-placeholder {
        aspect-ratio: 16/9;
        background-size: cover;
        min-height: 220px;
        width: 100%;
        max-width: 100%;
    }
    
    .about-content {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .about-text {
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
    }
    
    .disciplines {
        gap: 0.3rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        max-width: calc(50% - 0.15rem);
        word-wrap: break-word;
        flex: 0 0 auto;
        text-align: center;
    }
    
    .wellness-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        animation: scroll-logos 30s linear infinite;
    }
    
    .gallery-grid {
        animation: scroll-gallery 90s linear infinite;
    }
    
    /* Modal en móviles pequeños */
    .modal-content {
        margin: 2% auto;
        width: 96%;
        max-width: 96%;
        max-height: 90vh;
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    .modal-header {
        padding: 0.875rem;
    }
    
    .modal-body {
        padding: 0.875rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .modal-description {
        font-size: 0.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .modal-close {
        font-size: 1.85rem;
        padding: 0.5rem 0.75rem 0 0;
    }
    
    .modal-icon {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }
    
    .btn-see-more {
        font-size: 0.9rem;
        padding: 0.6rem 1.1rem;
    }
    
    /* Asegurar que todos los hijos también respeten el ancho */
    .section-services,
    .section-about,
    .footer {
        max-width: 100vw;
        overflow-x: hidden;
        width: 100%;
    }
}

/* Móviles de 400px */
@media (max-width: 400px) {
    html {
        font-size: 14.5px;
        overflow-x: hidden;
    }
    
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.7rem;
        padding: 0 0.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
    
    .service-card {
        padding: 1.25rem 0.875rem;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .gallery-item {
        min-width: 160px;
        width: 160px;
        height: 240px;
    }
    
    .gallery-grid {
        animation: scroll-gallery 90s linear infinite;
        gap: 0.9rem;
    }
    
    .logo img {
        height: 42px;
        max-width: 140px;
        width: auto;
    }
    
    .partners-grid {
        animation: scroll-logos 30s linear infinite;
    }
}

/* Móviles extra pequeños */
@media (max-width: 360px) {
    html {
        font-size: 14px;
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    body {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
    }
    
    .hero {
        min-height: 380px;
        height: 62vh;
        max-height: 520px;
        background-position: center center;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 0.75rem;
        width: 100%;
    }
    
    .hero-title {
        font-size: 1.6rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        letter-spacing: 0;
        padding: 0 0.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        padding: 0 0.25rem;
    }
    
    .hero-location {
        font-size: 0.85rem;
        padding: 0 0.25rem;
    }
    
    .btn {
        padding: 0.65rem 1.1rem;
        font-size: 0.82rem;
        max-width: calc(100% - 1rem);
    }
    
    .btn-hero {
        padding: 0.75rem 1.3rem;
        font-size: 0.88rem;
        max-width: calc(100% - 1rem);
    }
    
    .section {
        padding: 1.75rem 0;
        max-width: 100vw;
        overflow-x: hidden;
        width: 100%;
    }
    
    .container {
        padding: 0 0.4rem;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        width: 100%;
    }
    
    .section-title {
        font-size: 1.3rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        padding: 0 0.25rem;
    }
    
    .service-card {
        padding: 0.875rem 0.75rem;
        width: 100%;
        max-width: 100%;
        min-height: 180px;
    }
    
    .service-title {
        font-size: 1.05rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
    
    .custom-title {
        font-size: 1.4rem;
        word-break: keep-all;
        overflow-wrap: normal;
    }
    
    .logo img {
        height: 40px;
        max-width: 130px;
    }
    
    .gallery-item {
        min-width: 150px;
        width: 150px;
        height: 220px;
    }
    
    .gallery-grid {
        animation: scroll-gallery 90s linear infinite;
        gap: 0.875rem;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .wellness-item {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .footer-logo img {
        height: 85px;
        max-width: 100%;
    }
    
    .footer-title {
        font-size: 1.4rem;
    }
    
    .back-to-top {
        bottom: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    
    .whatsapp-float {
        bottom: 12px;
        left: 12px;
        width: 42px;
        height: 42px;
        font-size: 1.4rem;
    }
    
    .image-placeholder {
        min-height: 200px;
    }
    
    .partners-grid {
        animation: scroll-logos 30s linear infinite;
    }
    
    /* Asegurar que todo el contenido respete el ancho máximo */
    .section-services,
    .section-about,
    .footer,
    .hero {
        max-width: 100vw;
        overflow-x: hidden;
        width: 100%;
    }
}

/* Móviles muy pequeños (320px) */
@media (max-width: 320px) {
    html {
        font-size: 13.5px;
        overflow-x: hidden;
    }
    
    body {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
    }
    
    .container {
        padding: 0 0.35rem;
    }
    
    .hero {
        min-height: 360px;
        height: 60vh;
        max-height: 480px;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.45rem;
        line-height: 1.15;
        padding: 0 0.2rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        padding: 0 0.2rem;
    }
    
    .hero-location {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.2rem;
        padding: 0 0.2rem;
    }
    
    .service-card {
        padding: 0.75rem 0.6rem;
        min-height: 160px;
    }
    
    .service-title {
        font-size: 1rem;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.78rem;
    }
    
    .btn-hero {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .logo img {
        height: 38px;
        max-width: 120px;
    }
    
    .hamburger span {
        width: 22px;
    }
    
    .gallery-item {
        min-width: 140px;
        width: 140px;
        height: 200px;
    }
    
    .gallery-grid {
        animation: scroll-gallery 90s linear infinite;
        gap: 0.75rem;
    }
    
    .tag {
        font-size: 0.68rem;
        padding: 0.22rem 0.45rem;
    }
    
    .footer-title {
        font-size: 1.3rem;
    }
    
    .footer-logo img {
        height: 75px;
    }
    
    .whatsapp-float {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        bottom: 10px;
        left: 10px;
    }
    
    .back-to-top {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        bottom: 10px;
        right: 10px;
    }
    
    .modal-content {
        width: 98%;
        max-width: 98%;
    }
    
    .modal-title {
        font-size: 1.15rem;
    }
    
    .modal-body {
        padding: 0.75rem;
    }
    
    .image-placeholder {
        min-height: 180px;
    }
    
    .partners-grid {
        animation: scroll-logos 30s linear infinite;
    }
}

/* Móviles en orientación horizontal */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        height: 100vh;
    }
    
    .hero-overlay {
        background: rgba(58, 58, 58, 0.7);
    }
    
    .hero-content {
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    
    .hero-location {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .btn-hero {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

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

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

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

/* ========================================
   BOTÓN VOLVER ARRIBA
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

/* ========================================
   BOTÓN FLOTANTE DE WHATSAPP
   ======================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 998;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* ========================================
   ANIMACIONES ADICIONALES
   ======================================== */

@keyframes fade-in-tag {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-tag {
    animation: fade-in-tag 0.4s ease forwards;
}

/* Link activo en navegación */
.nav-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

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