/* =================================================================
   SUBPÁGINA: MASAJES & BIENESTAR - ESTILOS EXCLUSIVOS
   ================================================================= */

/* --- AJUSTE DE HERO (Optimizado para legibilidad) --- */
.hero-subpage {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding-top: 80px;
}

.hero-subpage::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
    z-index: 1;
}

.hero-intro {
    z-index: 2;
    position: relative;
}

.hero-intro .premium-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 5px;
    margin: 15px 0;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-family: var(--font-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* --- SECCIÓN DE CONTENIDO ÚNICO --- */
.masajes-details {
    padding: 80px 0;
}

/* --- GRID DE SERVICIOS (Centrado Dinámico para 1, 2 o 3 tarjetas) --- */
.services-grid-new {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 30px; 
    margin-top: 40px;
}

.service-card-premium {
    background: var(--white);
    border-radius: 0px; 
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(184, 157, 108, 0.1);
    flex: 0 1 calc(33.333% - 30px);
    min-width: 320px; 
}

.service-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(184, 157, 108, 0.12);
}

/* Contenedor de Imagen (Corregido para adaptación fluida) */
.card-img-container {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    /* Mantiene el llenado completo adaptándose al ancho de la tarjeta */
    object-fit: cover;
    object-position: center;
    transition: transform 1.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.card-img-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(225deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.service-card-premium:hover .card-img-container::after {
    opacity: 1;
}

.service-card-premium:hover .card-img-container img {
    transform: scale(1.08);
}

/* Cuerpo de la Tarjeta */
.card-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-info h3 {
    font-family: var(--font-primary);
    color: var(--dark);
    font-size: 1.4rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.card-info p {
    color: #666;
    line-height: 1.6;
    font-size: 0.88rem;
    margin-bottom: 25px;
    font-weight: 300;
}

/* Detalles de Precio y Tiempo */
.card-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(184, 157, 108, 0.15);
}

.card-price {
    font-family: var(--font-primary);
    color: var(--gold);
    font-size: 1.4rem;
    font-weight: bold;
}

.card-time {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
}

/* Botón de Acción */
.btn-book {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--dark);
    color: var(--white);
    padding: 15px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-top: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--dark);
}

.btn-book:hover {
    background: transparent;
    color: var(--dark);
    letter-spacing: 3px;
}

/* --- RESPONSIVE GRID --- */

@media (max-width: 1024px) {
    .service-card-premium {
        flex: 0 1 calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .services-grid-new {
        padding: 0 15px;
    }
    .service-card-premium {
        flex: 0 1 100%;
    }
    .hero-subpage {
        height: 50vh;
    }
}

/* =================================================================
   SECCIÓN ESPECIAL: RITUAL PARA PAREJAS (OPTIMIZADO)
   ================================================================= */

/* Estructura de la Sección: Limpieza de flujo y aire */
.premium-ritual {
    padding: 100px 0;
    position: relative;
    overflow: hidden; /* Evita que los márgenes internos se escapen y peguen a la sección anterior */
}

/* Contenedor Split: Diseño atómico que se adapta al fondo */
.ritual-split-container {
    display: flex;
    align-items: stretch;
    background: var(--white); /* Por defecto blanco */
    border: 1px solid rgba(184, 157, 108, 0.15);
    margin: 40px auto 0;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    overflow: hidden;
}

/* Adaptación para Section Dark: Sin forzar colores, solo ajustando opacidades */
.section-dark .ritual-split-container {
    background: rgba(255, 255, 255, 0.02); /* Transparencia mínima para dar textura */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.ritual-image {
    flex: 0 0 42%;
    position: relative;
    min-height: 380px;
}

.ritual-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ritual-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold);
    color: var(--white);
    padding: 6px 12px;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
}

.ritual-content {
    flex: 1;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ritual-subtitle {
    font-family: var(--font-secondary);
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 8px;
}

/* Tipografía Adaptativa */
.ritual-title {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-dark .ritual-title {
    color: var(--white);
}


.ritual-text {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 25px;
}

.section-dark .ritual-text {
    color: rgba(255, 255, 255, 0.7);
}

.ritual-details {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
}

.ritual-meta-item {
    padding-right: 15px;
    border-right: 1px solid rgba(184, 157, 108, 0.2);
    color: #888;
}

.section-dark .ritual-meta-item {
    color: rgba(255, 255, 255, 0.6);
}

.ritual-meta-item:last-child { border: none; }

.ritual-price-row {
    display: flex;
    align-items: center;
    gap: 25px;
}

.ritual-price {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    color: var(--gold);
    font-weight: bold;
}

/* --- RESPONSIVE PAREJAS --- */

@media (max-width: 992px) {
    .ritual-split-container {
        flex-direction: column;
        margin: 40px 15px 0;
    }
    .ritual-image {
        flex: 0 0 300px;
        min-height: 300px;
    }
    .ritual-content {
        padding: 35px 25px;
    }
    .ritual-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .ritual-price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* =================================================================
   NAVEGACIÓN ENTRE SERVICIOS (Siguientes Pasos)
   ================================================================= */

.next-services {
    padding: 60px 0;
    border-top: 1px solid rgba(184, 157, 108, 0.1);
}

.next-services-title {
    font-family: var(--font-primary);
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: var(--dark);
}

.next-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.next-item {
    position: relative;
    height: 140px;
    flex: 1 1 250px;
    max-width: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.next-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.next-item span {
    position: relative;
    z-index: 2;
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.next-item span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.next-item:hover span::after {
    width: 80%;
}

.next-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.4);
}

@media (max-width: 768px) {
    .next-services { padding: 40px 20px; }
    .next-grid { flex-direction: column; align-items: center; }
    .next-item { width: 100%; max-width: 100%; height: 120px; }
}

/* =================================================================
   SUBSCCIÓN: FILOSOFÍA CAPILAR (NOSOTROS)
   ================================================================= */

.capilar-philosophy {
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.capilar-philosophy .categories-intro {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.capilar-philosophy .gold-line {
    margin: 0 auto 25px auto;
}

.capilar-philosophy p {
    margin-left: auto;
    margin-right: auto;
}

