﻿/* =====================================================
   HABITARQ
   ARCHITECTURE / INTERIOR DESIGN
===================================================== */

/* =====================================================
   RESET
===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f4f4f2;
    color: #0a0a0a;
    font-family: "DM Sans", sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

/* =====================================================
   VARIABLES
===================================================== */
:root {
    --bg: #f4f4f2;
    --white: #ffffff;
    --text: #0a0a0a;
    --soft: #666666;
    --line: #d4d4d1;
    --footer: #080808;
    --footer-text: #f4f4f2;
    --footer-soft: #888888;
    --font-display: "DM Sans", sans-serif;
    --font-body: "DM Sans", sans-serif;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

/* =====================================================
   PRELOADER (PANTALLA NEGRA QUE SE ABRE CON EL LOGO AL HEADER)
===================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 99999 !important;
    display: block !important;
    pointer-events: none;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.preloader-curtain {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: #080808 !important;
    display: block !important;
    z-index: 99999 !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.95);
    transform: translateY(0);
    will-change: transform;
    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.preloader.slide-up .preloader-curtain {
    transform: translateY(calc(-100% + 136px));
}

.preloader-logo-wrap {
    position: absolute;
    left: 50%;
    bottom: 70px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000 !important;
}

.preloader-logo {
    width: auto;
    height: 42px;
    filter: brightness(0) invert(1);
    display: block;
}

.preloader.fade-out {
    opacity: 0;
}

.preloader.done {
    display: none !important;
}

body.preloader-active {
    overflow: hidden;
}

/* =====================================================
   HEADER (LOGO CENTRADO ABSOLUTO, NAV DIVIDIDA)
===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    padding: 0 230px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    color: white;
    transition: height .5s var(--ease), background .5s ease, color .5s ease;
}

.header.scrolled {
    height: 70px;
    background: rgba(244, 244, 242, .94);
    backdrop-filter: blur(15px);
    color: #0a0a0a;
}

/* AJUSTES PARA PÁGINAS BLANCAS (Proyectos / Servicios) */
body.light-bg .header {
    color: #0a0a0a;
}

body.light-bg .header .nav-link::after {
    background: #0a0a0a;
}

body.light-bg .header .logo-img {
    filter: brightness(0);
}

body.light-bg .menu-toggle span {
    background: #0a0a0a;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 4px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    transition: filter 0.5s ease, height 0.5s ease;
}

/* Vuelve el logo a color negro cuando haces scroll y el fondo del header cambia a claro */
.header.scrolled .logo-img {
    filter: brightness(0);
}

/* Navegación izquierda */
.nav-left {
    display: flex;
    align-items: center;
    gap: 38px;
}

/* Navegación derecha */
.nav-right {
    display: flex;
    align-items: center;
    gap: 38px;
}

.nav-link {
    position: relative;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* =====================================================
   MENU TOGGLE
===================================================== */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.menu-toggle span {
    width: 25px;
    height: 1px;
    background: currentColor;
    transition: transform .4s var(--ease), opacity .3s ease;
}

.menu-toggle.active span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle.active span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

/* =====================================================
   MOBILE MENU
===================================================== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    color: white;
    z-index: 900;
    transform: translateY(-100%);
    transition: transform .8s var(--ease);
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu-inner {
    height: 100%;
    padding: 130px 30px 40px;
    display: flex;
    flex-direction: column;
}

.mobile-menu-inner > a {
    font-family: var(--font-display);
    font-size: clamp(32px, 9vw, 55px); 
    font-weight: 300;
    line-height: 1.1;
    border-bottom: 1px solid rgba(255,255,255,.15);
    padding: 12px 0; 
}

.mobile-menu-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* =====================================================
   HERO INDEX
===================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #0a0a0a;
}

/* Reemplaza las reglas de .hero-video por .hero-image */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.5s ease-in-out, transform 4s var(--ease);
    z-index: 1;
}

.hero-image.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3; /* CORRECCIÓN: Obliga al degradado a estar siempre por encima de las imágenes (que tienen z-index 2) */
    /* Degradado más marcado: protege el header arriba y se suaviza hacia el centro */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.60) 20%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.70) 100%);
}

.hero-content {
    position: relative;
    z-index: 4; /* CORRECCIÓN: Elevamos los textos y la flecha para que estén por encima de todo */
    height: 100%;
    padding: 145px 100px 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.hero-top {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(12px, 1.2vw, 16px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

/* Modifica el título para bajarlo */
.hero-title {
    margin: auto 0;
    text-align: center;
    max-width: 1100px;
    transform: translateY(23vh); /* Esto empuja el texto sutilmente hacia abajo */
}

.hero-title h1 {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 110px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -3px;
    text-align: center;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

.hero-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    text-align: center;
}

.scroll-link span {
    font-size: 34px; /* Aumentamos notablemente el tamaño (antes 22px) */
    font-weight: 500; /* Le damos más grosor para resaltar */
    line-height: 1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6); /* Sombra para crear contraste extra */
    animation: scrollArrow 2s ease-in-out infinite;
}

@keyframes scrollArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(7px); }
}

/* =====================================================
   GENERAL SECTIONS
===================================================== */
.section {
    padding: 20px 100px;
}

.eyebrow {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--soft);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   PROJECTS (Index y Proyectos)
===================================================== */
.project {
    position: relative;
    display: block;
    text-decoration: none; 
    color: inherit;
}

/* REDISEÑO: section-heading centrado con h2 en negrita */
.section-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 25px;
    margin-top: 35px;
}

.section-heading h2 {
    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 85px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -1.5px;
    text-align: center;
    text-transform: uppercase;
}

.section-intro {
    max-width: 330px;
    margin-left: auto;
    font-size: 12px;
    line-height: 1.7;
    color: var(--soft);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 30px;
    margin-bottom: 35px;
}

.project-large,
.project-small,
.project-medium,
.project-wide {
    grid-column: span 1;
    margin-top: 0;
    width: 100%;
}

.project-image {
    position: relative;
    overflow: hidden;
    background: #ddd;
    aspect-ratio: 4 / 3;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease), filter 1s ease;
}

.project:hover .project-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    background: rgba(0, 0, 0, .25);
    opacity: 0;
    transition: opacity .5s ease;
}

.project:hover .project-overlay {
    opacity: 1;
}

.project-overlay span:first-child {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.project-overlay span:last-child {
    font-size: 18px;
}

/* Efecto Hover minimalista para los nombres de proyectos (Index y Proyectos) */
.project-overlay {
    background: rgba(10, 10, 10, 0.42);
    padding: 30px;
    text-align: center;
    transition: opacity 0.5s var(--ease), background 0.5s ease;
}

.project-hover-title {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.2vw, 32px);
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 1.2;
    transform: translateY(12px);
    transition: transform 0.5s var(--ease);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.35);
}

.project:hover .project-hover-title {
    transform: translateY(0);
}

/* Accesibilidad en dispositivos táctiles sin hover convencional */
@media (hover: none) {
    .project-overlay {
        opacity: 1;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.68) 100%);
        align-items: flex-end;
        justify-content: flex-start;
        text-align: left;
        padding: 22px;
        pointer-events: none;
    }

    .project-hover-title {
        transform: translateY(0);
        font-size: clamp(18px, 4.5vw, 24px);
    }
}

.project-info {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    margin-top: 10px;
}

.project-number,
.project-year {
    font-size: 9px;
    color: var(--soft);
    letter-spacing: 1px;
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 400;
    letter-spacing: -.5px;
}

.project-info p {
    margin-top: 6px;
    font-size: 10px;
    color: var(--soft);
}

.projects-more {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.square-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 45px;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 4px; 
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background 0.4s ease, color 0.4s ease, transform 0.4s var(--ease);
}

.square-btn:hover {
    background: #0a0a0a;
    color: white;
    transform: translateY(-5px);
}

/* =====================================================
   SERVICES (VERSIÓN INDEX - TARJETAS MINIMALISTAS)
===================================================== */
.services-section {
    border-bottom: 1px solid var(--line);
    padding-bottom: 60px;
}

.services-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 45px;
}

.services-header h2 {
    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 85px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -1.5px;
    text-align: center;
    text-transform: uppercase;
}

/* =====================================================
   PÁGINA DETALLADA DE SERVICIOS (servicios.html)
===================================================== */
.page-header {
    padding: 150px 230px 30px;
    text-align: left;
}

.page-header h1 {

    font-family: var(--font-display);
    font-size: clamp(45px, 7vw, 95px); 
    line-height: .9;
    font-weight: 300;
    letter-spacing: -3px;
}

.page-header h1 em {
    font-family: var(--font-display);
    font-weight: 400;
}

.services-detailed {
    padding: 0 230px 80px;
}

.service-detail-row {
    display: grid;
    grid-template-columns: 5fr 5fr; 
    gap: 40px; 
    align-items: center;
    margin-bottom: 70px; 
}

.service-detail-row:last-child {
    margin-bottom: 0;
}

.service-detail-row:nth-child(even) {
    grid-template-columns: 5fr 5fr;
}
.service-detail-row:nth-child(even) .service-detail-img-wrapper {
    order: 2;
}
.service-detail-row:nth-child(even) .service-detail-text {
    order: 1;
}

.service-detail-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3; 
    background: #ddd;
    width: 100%;
}

.service-detail-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease), filter 1s ease;
}

.service-detail-row:hover .service-detail-img-wrapper img {
    transform: scale(1.04);
    filter: grayscale(0%);
}

.service-detail-text {
    position: relative;
    max-width: 500px; 
    margin: 0 auto;
    z-index: 2;
}

.watermark {
    position: absolute;
    top: -55px;
    left: -20px;
    font-family: var(--font-display);
    font-size: 130px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.04);
    z-index: -1;
    pointer-events: none;
    letter-spacing: -5px;
}

.service-detail-number {
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--soft);
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 15px; 
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.service-whatsapp-link {
    display: inline-block;
    color: var(--text);
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.service-whatsapp-link:hover {
    opacity: 0.7;
    transform: translateX(5px); 
}

.service-whatsapp-link h3 {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.5vw, 45px); 
    font-weight: 400;
    margin-bottom: 15px; 
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* =====================================================
   ANIMACIÓN INDICADOR DE WHATSAPP
===================================================== */
.ws-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: var(--soft);
    transition: all 0.4s var(--ease);
    animation: pulseSoft 2.5s infinite;
}

.ws-indicator svg {
    width: 16px;
    height: 16px;
    transition: transform 0.4s var(--ease);
}

.service-whatsapp-link:hover .ws-indicator {
    background: #25D366; 
    color: white;
    transform: scale(1.1);
    animation: none;
}

.service-whatsapp-link:hover .ws-indicator svg {
    transform: scale(1.15);
}

@keyframes pulseSoft {
    0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.08); }
    70% { box-shadow: 0 0 0 12px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

.service-detail-text p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--soft);
    margin-bottom: 15px; 
}

/* =====================================================
   PÁGINA ESTUDIO (estudio.html)
===================================================== */
.studio-hero {
    padding: 0 230px 80px;
}

.studio-hero-wrapper {
    position: relative;
    width: 100%;
    height: 55vh; 
    min-height: 400px;
    overflow: hidden;
    background: #e0e0e0;
}

.studio-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease, transform 1.5s var(--ease), filter 1s ease;
    z-index: 1;
}

.studio-slide.active {
    opacity: 1;
    z-index: 2;
}

.studio-hero:hover .studio-slide.active {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.studio-prev, .studio-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease, color 0.3s ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.studio-hero-wrapper:hover .studio-prev,
.studio-hero-wrapper:hover .studio-next {
    opacity: 0.6;
}

.studio-prev:hover, .studio-next:hover {
    opacity: 1 !important;
    color: var(--line);
}

.studio-prev { left: 20px; }
.studio-next { right: 20px; }

.studio-philosophy {
    padding: 0 45px 30px;
    border-bottom: 1px solid var(--line);
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-content h2 {
    font-family: var(--font-display);
    font-size: clamp(35px, 5vw, 65px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 40px;
}

.philosophy-content p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--soft);
    max-width: 700px;
    margin: 0 auto;
}

.studio-team {
    padding: 30px 230px 150px;
}

.studio-team .section-header {
    text-align: center;
    margin-bottom: 80px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.member-overlay {
    flex-direction: column;
}

.member-overlay p {
    display: -webkit-box;
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.member-overlay::after {
    content: "Clic para leer perfil";
    display: block;
    margin-top: 20px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding-bottom: 3px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--ease);
}

.team-member:hover .member-overlay::after {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* =====================================================
   VENTANA EMERGENTE (MODAL) PARA EL EQUIPO
===================================================== */
.team-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    padding: 20px;
}

.team-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.team-modal-content {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    color: white;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(.16, 1, .3, 1);
}

.team-modal.active .team-modal-content {
    transform: translateY(0);
}

.team-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
    line-height: 1;
}

.team-modal-close:hover {
    color: white;
}

.team-modal-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.team-modal-header h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
}

.team-modal-header span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
}

.team-modal-body {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    white-space: pre-wrap;
}

.member-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #e0e0e0;
    margin-bottom: 25px;
}

.member-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease), filter 0.8s ease;
}

.team-member:hover .member-img-wrapper img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.member-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.member-overlay p {
    font-size: 12px;
    line-height: 1.7;
    font-weight: 300;
    transform: translateY(20px);
    transition: transform 0.5s var(--ease);
}

@media (hover: hover) {
    .team-member:hover .member-overlay {
        opacity: 1;
    }
    .team-member:hover .member-overlay p {
        transform: translateY(0);
    }
}

.team-member.active-mobile .member-overlay {
    opacity: 1;
}
.team-member.active-mobile .member-overlay p {
    transform: translateY(0);
}

.member-info h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.member-info span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--soft);
}

/* =====================================================
   MAPA Y UBICACIÓN
===================================================== */
.contact-top {
    display: flex;
    justify-content: space-between;
    margin-top: 35px;
}

.map-container {
    width: 100%;
    height: 500px;
    margin-top: 35px;
    margin-bottom: 35px;
    transition: filter 0.5s ease;
}

.map-container:hover {
    filter: grayscale(0%);
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
    background: var(--footer);
    color: var(--footer-text);
    padding: 100px 230px 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 120px;
}

.footer-logo-img {
    height: clamp(40px, 8vw, 90px); 
    width: auto;
    display: block;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    margin-top: 20px;
    font-size: 10px;
    line-height: 1.7;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--footer-soft);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav a,
.footer-contact a {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    transition: opacity .3s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
    opacity: .5;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-bottom {
    border-top: 1px solid #292929;
    padding-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: var(--footer-soft);
}

.footer-bottom span:nth-child(2) {
    text-align: center;
}

.footer-bottom span:last-child {
    text-align: right;
}

/* =====================================================
   ICONOS Y ENLACES DE UBICACIÓN/SOCIALES
===================================================== */
.whatsapp-icon svg {
    vertical-align: middle;
    transition: transform 0.3s ease;
}
.whatsapp-icon:hover svg {
    transform: scale(1.15);
}

.whatsapp-icon,
.whatsapp-footer-icon {
    color: #25D366 !important;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.location-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: var(--soft);
}

.location-link:hover {
    opacity: 0.7;
    transform: translateY(-2px);
    color: var(--text);
}

.footer .location-link {
    color: var(--footer-soft);
}

.footer .location-link:hover {
    color: var(--white);
}

.location-link svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* =====================================================
   ESCALADO PROPORCIONAL DE TEXTOS (PC Y MONITORES GRANDES)
===================================================== */
@media (min-width: 901px) {
    .section-intro, .location-details p { font-size: clamp(12px, 1.3vw, 20px); }
    .service-detail-text p { font-size: clamp(13px, 1.4vw, 22px); }
    .philosophy-content p { font-size: clamp(15px, 1.6vw, 26px); }
    .team-modal-body { font-size: clamp(14px, 1.5vw, 24px); }
    .member-overlay p { font-size: clamp(12px, 1.3vw, 20px); }
    
    .nav-link, .footer-nav a, .footer-contact a { font-size: clamp(10px, 1.1vw, 16px); }
    .footer-bottom { font-size: clamp(8px, 0.9vw, 14px); }
    
    .eyebrow, .project-number, .project-year, .project-info p, .square-btn, .footer-brand p, .fw-text { font-size: clamp(9px, 1vw, 15px); }
    .client-info span, .member-info span { font-size: clamp(11px, 1.2vw, 17px); }
    
    .project-info h3 { font-size: clamp(23px, 2.3vw, 35px); }
    .client-info h3 { font-size: clamp(20px, 2vw, 32px); }
    .member-info h3 { font-size: clamp(22px, 2.2vw, 34px); }
    .studio-intro-text { 
        max-width: 1100px; 
        margin-inline: auto; 
        text-align: center; 
    }
    .intro-eyebrow { font-size: clamp(11px, 1vw, 15px); }
    .studio-intro-text p { font-size: clamp(14px, 1.25vw, 20px); line-height: 1.6; }
    .intro-highlight { font-size: clamp(15px, 1.35vw, 21px) !important; line-height: 1.6; }
}

/* =====================================================
   RESPONSIVE — TABLET
===================================================== */
@media (max-width: 900px) {
    .home-page .section { padding-left: 25px; padding-right: 25px; }
    .home-page .hero-content { padding-left: 25px; padding-right: 25px; }
    .home-page .footer { padding-left: 25px; padding-right: 25px; }

    .header { 
        height: 75px; 
        padding: 0 20px !important; 
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
    }
    .header.scrolled { height: 65px; }
    .nav-left, 
    .nav-right,
    .header .nav-left,
    .header .nav-right { 
        display: none !important; 
    }
    .menu-toggle,
    .header .menu-toggle { 
        display: flex !important; 
        margin-left: auto !important; 
        z-index: 10 !important;
    }
    .logo,
    .header .logo { 
        position: absolute !important; 
        left: 50% !important; 
        transform: translateX(-50%) !important; 
        z-index: 2 !important;
    }
    .logo-img,
    .header .logo-img,
    .header.scrolled .logo-img {
        height: 30px !important;
        max-width: 180px !important;
        width: auto !important;
        object-fit: contain !important;
    }
    .section { padding: 40px 25px; }
    .hero-content { padding: 120px 25px 30px; }
    
    .hero-title h1 { font-size: clamp(36px, 9vw, 60px); letter-spacing: -1.5px; }
    
    .section-heading { margin-bottom: 30px; }
    .section-heading h2 { font-size: clamp(32px, 8vw, 50px); }
    .section-intro { margin-left: 0; }
    
    .projects-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
    .project-small, .project-medium, .project-wide { width: 100%; margin-left: 0; margin-top: 0; }

    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }

    /* Servicios Detallados */
    .page-header { padding: 120px 25px 20px; }
    .services-detailed { padding: 10px 25px 60px; }
    .service-detail-row {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }
    .service-detail-row:nth-child(even) { grid-template-columns: 1fr; }
    .service-detail-row:nth-child(even) .service-detail-img-wrapper { order: 1; }
    .service-detail-row:nth-child(even) .service-detail-text { order: 2; }
    .watermark { top: -45px; left: -10px; font-size: 100px; }

    /* Preloader en Tablet / Móvil */
    .preloader {
        display: block !important;
        z-index: 99999 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
    }
    .preloader-curtain {
        display: block !important;
        background: #080808 !important;
        z-index: 99999 !important;
        width: 100% !important;
        height: 100% !important;
        height: 100dvh !important;
    }
    .preloader.slide-up .preloader-curtain {
        transform: translateY(calc(-100% + 112.5px)) !important;
    }
    .preloader-logo-wrap {
        bottom: 60px !important;
        top: auto !important;
        z-index: 100000 !important;
    }
    .preloader-logo {
        height: 30px !important;
        max-width: 180px !important;
        width: auto !important;
    }

    /* Estudio Móvil/Tablet */
    .studio-intro {
        padding: 110px 0 30px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .studio-intro-title {
        text-align: center !important;
        margin-bottom: 30px !important;
        padding: 0 20px !important;
    }
    .studio-intro-text {
        margin-inline: auto !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    .studio-intro-text p {
        text-align: center !important;
        line-height: 1.65 !important;
    }

    /* Proyectos en Tablet / Móvil */
    .projects-page-container {
        padding-left: 25px !important;
        padding-right: 25px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .projects-grid,
    .projects-page-container .projects-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        width: 100% !important;
    }
    .project,
    .project-card,
    .project-large,
    .project-small,
    .project-medium,
    .project-wide {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .project.hide {
        display: none !important;
    }

    /* Estudio */
    .studio-hero { padding: 0 25px 60px; }
    .studio-hero-wrapper { height: 40vh; min-height: 300px; }
    
    .studio-philosophy { padding: 0 25px 10px; }
    .studio-team { padding: 10px 25px 80px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

/* =====================================================
   AJUSTES EXCLUSIVOS DEL INDEX
   No afectan proyectos.html ni las demás páginas.
===================================================== */
@media (min-width: 901px) {
    .home-page .section {
        padding-left: 230px;
        padding-right: 230px;
    }

    .home-page .hero-content {
        padding-left: 230px;
        padding-right: 230px;
    }

    .home-page .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 30px;
    }

    .home-page .projects-grid .project,
    .home-page .projects-grid .project-large,
    .home-page .projects-grid .project-small,
    .home-page .projects-grid .project-medium,
    .home-page .projects-grid .project-wide {
        grid-column: span 1;
        width: 100%;
        margin-top: 0;
        margin-left: 0;
    }

    .home-page .footer {
        padding-left: 230px;
        padding-right: 230px;
    }
}

/* =====================================================
   RESPONSIVE — MOBILE
===================================================== */
@media (max-width: 839px) {
    .home-page .section { padding-left: 20px; padding-right: 20px; }
    .home-page .hero-content { padding-left: 20px; padding-right: 20px; }
    .home-page .footer { padding-left: 20px; padding-right: 20px; }

    .section { padding: 35px 20px; }
    .hero { min-height: 650px; }
    .hero-content { padding: 105px 20px 25px; }
    
    .hero-title { padding-top: 0; }
    .hero-title h1 { font-size: clamp(32px, 10vw, 52px); letter-spacing: -1.5px; }
    
    .section-heading h2 { font-size: clamp(28px, 9vw, 44px); }
    
    .project-info { 
        grid-template-columns: 40px 1fr auto; 
        gap: 15px; 
        align-items: start; 
    }
    .project-info h3 { 
        font-size: 17px; 
        line-height: 1.3;
        letter-spacing: 0;
    }
    .project-info p { 
        font-size: 9px; 
        text-transform: uppercase; 
        letter-spacing: 1px;
        margin-top: 5px;
        color: var(--soft);
    }
    .project-year {
        font-size: 9px; 
    }
    .projects-more { margin-top: 30px; }
    .square-btn { width: auto; padding: 15px 35px; }

    .services-header h2 { font-size: clamp(30px, 10vw, 48px); letter-spacing: -1px; }
    
    .map-container { margin-top: 40px; }
    .footer { padding: 70px 20px 25px; }
    .footer-top { grid-template-columns: 1fr; gap: 60px; padding-bottom: 80px; }
    .footer-bottom { grid-template-columns: 1fr; gap: 12px; }
    .footer-bottom span { text-align: left !important; }

    /* Servicios Detallados */
    .page-header { padding: 100px 20px 15px; }
    .page-header h1 { font-size: 15vw; letter-spacing: -3px; }
    .services-detailed { padding: 10px 20px 50px; }
    .service-detail-row { margin-bottom: 50px; }
    .service-whatsapp-link h3 { font-size: 28px; }

    /* Estudio Intro Celular */
    .studio-intro {
        padding: 100px 0 25px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .studio-intro-text {
        margin-inline: auto !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    .studio-intro-text p {
        text-align: center !important;
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    /* Proyectos Celular */
    .projects-page-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .projects-grid,
    .projects-page-container .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    /* Estudio */
    .studio-hero { padding: 0 20px 50px; }
    .studio-hero-wrapper { height: 35vh; min-height: 250px; }
    
    .philosophy-content h2 { font-size: 28px; letter-spacing: -1px; }
    .philosophy-content p { font-size: 13px; }
    .studio-philosophy { padding: 0 20px 10px; }
    .studio-team { padding: 10px 20px 80px; }
    .team-grid { grid-template-columns: 1fr; gap: 50px; }
    .member-img-wrapper { aspect-ratio: 1 / 1; }
}

/* =====================================================
   REDUCED MOTION
===================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =====================================================
   MISIÓN Y VISIÓN (FONDO INMERSIVO Y GLASSMORPHISM)
===================================================== */
.mv-immersive {
    position: relative;
    padding: 120px 230px;
    color: var(--white);
    overflow: hidden;
}

.mv-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mv-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.mv-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.85);
    z-index: 1;
}

.mv-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.mv-card {
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.5s var(--ease), background 0.5s ease;
}

.mv-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.mv-label {
    display: block;
    font-size: clamp(10px, 1.2vw, 15px);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

.mv-heading {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 55px);
    font-weight: 300;
    margin-bottom: 25px;
    letter-spacing: -1px;
    color: #ffffff;
}

.mv-card p {
    font-size: clamp(14px, 1.5vw, 20px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
    .mv-immersive {
        padding: 80px 25px;
    }
    .mv-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .mv-card {
        padding: 40px 30px;
    }
}

@media (max-width: 700px) {
    .mv-immersive {
        padding: 60px 20px;
    }
    .mv-card {
        padding: 35px 25px;
    }
    .mv-heading {
        font-size: 28px;
    }
}

/* =====================================================
   POPUP WHATSAPP FLOTANTE MINIMALISTA (VERDE PERMANENTE)
===================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 35px;
    right: 35px;
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px 12px 18px;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid #25D366;
    transform: translateY(0);
    transition: transform 0.4s var(--ease), background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    overflow: hidden;
    animation: floatPulse 3s infinite;
}

@keyframes floatPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.35); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.fw-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    transition: transform 0.4s var(--ease);
}

.fw-icon svg {
    width: 100%;
    height: 100%;
}

.fw-text {
    font-family: var(--font-display);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    white-space: nowrap;
}

.floating-whatsapp:hover {
    transform: translateY(-5px);
    background: #1ebe5c;
    border-color: #1ebe5c;
    color: white;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.35);
}

.floating-whatsapp:hover .fw-icon {
    transform: scale(1.1) rotate(-5deg);
}

@media (max-width: 839px) {
    .floating-whatsapp {
        bottom: 25px;
        right: 20px;
        padding: 10px 20px 10px 15px; 
    }
    .fw-icon {
        width: 18px;
        height: 18px;
    }
    .fw-text {
        font-size: 9px;
        letter-spacing: 1.5px;
    }
}

.home-page .projects-section {
    padding-bottom: 40px;
}

.home-page .services-section {
    padding-top: 20px;
}

/* =====================================================
   PADDING DE 230PX PARA LA SECCIÓN DE PROYECTOS (PC)
===================================================== */
@media (min-width: 901px) {
    .projects-page-container {
        padding-left: 230px !important;
        padding-right: 230px !important;
    }
}

/* =====================================================
   PÁGINA DE CLIENTES (clientes.html)
===================================================== */
.page-header.clients-header {
    padding: 150px 230px 55px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-header.clients-header h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 85px);
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: -2px;
    text-align: center;
    text-transform: uppercase;
}

.page-subtitle {
    font-size: clamp(15px, 1.3vw, 19px);
    color: var(--soft, #666);
    margin-top: 20px;
    max-width: 600px;
    margin-inline: auto;
    font-weight: 300;
    line-height: 1.6;
    text-align: center;
}

.clients-section {
    padding: 20px 230px 150px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 70px 50px;
    align-items: start;
}

.client-card {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.5s var(--ease);
}

.client-card:hover {
    transform: translateY(-6px);
}

.client-logo-box {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.client-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s var(--ease);
}

.client-card:hover .client-logo-box img {
    transform: scale(1.05);
}

/* Clases utilitarias para compensar logos con margen blanco interno en su archivo */
.client-logo-box img.logo-zoom {
    transform: scale(1.28);
}

.client-card:hover .client-logo-box img.logo-zoom {
    transform: scale(1.34);
}

.client-logo-box img.logo-zoom-sm {
    transform: scale(0.88);
}

.client-card:hover .client-logo-box img.logo-zoom-sm {
    transform: scale(0.93);
}

.client-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.client-info h3 {
    font-family: var(--font-display, inherit);
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    color: var(--text);
}

.client-info span {
    display: block;
    font-size: clamp(11px, 1vw, 14px);
    color: var(--soft, #666);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* =====================================================
   RESPONSIVE — SECCIÓN CLIENTES
===================================================== */
@media (max-width: 1200px) {
    .page-header.clients-header {
        padding: 140px 100px 45px;
    }
    .clients-section {
        padding: 20px 100px 120px;
    }
}

@media (max-width: 900px) {
    .page-header.clients-header {
        padding: 120px 25px 35px;
    }
    .clients-section {
        padding: 15px 25px 100px;
    }
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 55px 30px;
    }
    .client-logo-box {
        max-width: 190px;
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .page-header.clients-header {
        padding: 105px 20px 30px;
    }
    .page-header.clients-header h1 {
        font-size: clamp(36px, 11vw, 52px);
        letter-spacing: -2px;
    }
    .clients-section {
        padding: 10px 20px 80px;
    }
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
    .client-logo-box {
        max-width: 150px;
        margin-bottom: 16px;
    }
    .client-info h3 {
        font-size: 17px;
    }
    .client-info span {
        font-size: 10px;
        letter-spacing: 1.2px;
    }
}

@media (max-width: 400px) {
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    .client-logo-box {
        max-width: 180px;
    }
}

/* =====================================================
   INTRODUCCIÓN ESTUDIO (Historia debajo del título)
===================================================== */
.studio-intro {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra todos los elementos de la sección */
}

@media (min-width: 901px) {
    .studio-intro {
        padding: 150px 230px 35px;
    }
}

.studio-intro-title {
    margin-bottom: 50px;
    text-align: center; /* Centra el título "Nosotros" */
}

.studio-intro-title h1 {
    font-family: var(--font-display);
    font-size: clamp(55px, 8vw, 100px);
    line-height: .9;
    font-weight: 700; /* Cambiado a negrita (700) para mayor presencia visual */
    letter-spacing: -3px;
}

.studio-intro-text {
    max-width: 1100px;
    margin-inline: auto;
    text-align: center;
}

.intro-eyebrow {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--soft);
    margin-bottom: 35px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
	text-align: center;
}

.studio-intro-text p {
    font-size: clamp(14px, 1.25vw, 20px);
    line-height: 1.6;
    color: var(--soft);
    margin-bottom: 22px;
    text-align: center;
}

.studio-intro-text p:last-child {
    margin-bottom: 0;
}

.intro-highlight {
    color: var(--text) !important;
    font-weight: 500;
    font-size: clamp(16px, 1.4vw, 23px) !important;
    margin-top: 15px;
    line-height: 1.6;
}

/* =====================================================
   SERVICIOS - ESTILO TARJETAS (DISEÑO INDEX Y PÁGINA)
===================================================== */
#pagina-servicios {
    padding-top: 130px !important;
    padding-bottom: 30px;
}

@media (min-width: 901px) {
    #pagina-servicios {
        padding-left: 230px !important;
        padding-right: 230px !important;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.service-card-modern {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    transition: transform 0.5s var(--ease), box-shadow 0.5s ease;
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
    z-index: 2;
}

/* Alternancia de fondos según imagen de referencia: 1 y 3 gris suave, 2 blanco */
.service-card-modern:nth-child(odd) .scm-info {
    background: #e8e8e6;
}
.service-card-modern:nth-child(even) .scm-info {
    background: #ffffff; 
}

.scm-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.scm-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.service-card-modern:hover .scm-image img {
    transform: scale(1.05);
}

.scm-info {
    padding: 35px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    transition: background 0.5s ease;
}

.scm-info h3 {
    font-family: var(--font-display);
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: 500;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    color: var(--text);
}

.scm-info p {
    font-size: clamp(13px, 1.1vw, 15px);
    line-height: 1.65;
    color: var(--soft);
    margin: 0;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .scm-info {
        padding: 30px 25px;
    }
}

/* =====================================================
   LLAMADO A LA ACCIÓN FINAL (SERVICIOS)
===================================================== */
.services-final {
    padding: 60px 230px 150px; 
    text-align: center;
    margin-top: 0;
}

.services-final small {
    display: block;
    margin-bottom: 25px;
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--soft);
}

.services-final h2 {
    font-family: var(--font-display);
    font-size: clamp(35px, 6vw, 85px); 
    line-height: .9;
    font-weight: 300;
    letter-spacing: -2px;
    max-width: 950px;
    margin: 0 auto 45px;
}

.services-final-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--text);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text);
    transition: gap 0.4s var(--ease);
}

.services-final-link:hover {
    gap: 28px;
}

@media (max-width: 900px) {
    .services-final {
        padding: 40px 25px 100px;
    }
}

/* =====================================================
   GALERÍA DETALLE: HOVER SUAVE SIN OPACIDAD NI GRISES
===================================================== */
.project-gallery img,
.gallery-row img {
    cursor: pointer;
    transition: transform 0.8s cubic-bezier(.16, 1, .3, 1) !important;
    filter: none !important;
    opacity: 1 !important;
}

.project-gallery img:hover,
.gallery-row:hover img {
    transform: scale(1.03) !important;
    filter: none !important;
    opacity: 1 !important;
}