/* ==========================================================================
   SWITCH ADS — CSS UNIFICADO COMPLETO (Home Blanco | Contacto Personalizado)
   ========================================================================== */

/* 1. IMPORT & RESET */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 2. VARIABLES GLOBALES UNIFICADAS */
:root {
    /* Colores Base Home */
    --bg-color: #ffffff;
    --text-color: #1b1b1b;
    --bg-menu-open: #ffbc0d;
    --accent: #ff4c3b;
    --separator-color: #d1d1d1;
    --gray-text: #777777;

    /* Colores Contacto (solo los que difieren) */
    --contact-bg-left: #1b1b1b;
    --contact-bg-right: #151515;
    --contact-text: #ffffff;
    --contact-input-bg: rgba(255, 255, 255, 0.03);
    --contact-border: rgba(255, 255, 255, 0.1);

    /* Animaciones Premium */
    --transition-speed: 1.4s;
    --ease-premium: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-out-back: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 3. BASE */
body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ================= HEADER & LOGOS ================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 40px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9000;
}

.logo-img { width: 150px; transition: 0.4s; }

/* Control de logos: Home vs Contacto */
.logo-light,
.logo-dark {
    display: none;
}

/* Home por defecto */
body:not(.split-layout) .logo-dark { display: block; }

/* Página Contacto */
body.split-layout .logo-light { display: block; }
body.split-layout .menu-button { color: var(--contact-text); }

/* ================= MENU OPTIMIZADO CON FLECHA ================= */
.menu-button {
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    gap: 15px;
    align-items: center;
    cursor: pointer;
    z-index: 10000;
    color: inherit;
    backface-visibility: hidden;
}

.burger-icon { display: flex; flex-direction: column; gap: 6px; }

.menu-line {
    width: 25px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Animación del icono (Cruces) */
body.menu-active .line-1,
body.menu-active .line-2 {
    background: var(--text-color);
}

body.menu-active .line-1 { transform: translateY(4px) rotate(45deg); }
body.menu-active .line-2 { transform: translateY(-4px) rotate(-45deg); }

/* Overlay del menú */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 8000;
    background: var(--bg-menu-open);
    display: flex;
    align-items: center;
    padding: 0 10%;
    clip-path: circle(0% at 95% 5%);
    transition: clip-path 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    visibility: hidden;
    will-change: clip-path;
}

.menu-overlay.open {
    clip-path: circle(150% at 95% 5%);
    visibility: visible;
}

/* Links del menú */
.menu-nav a {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 4vw, 60px);
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 3px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.3s var(--ease-premium);
    will-change: transform, color;
}

/* Flecha al final del link */
.menu-nav a::after {
    content: '→';
    margin-left: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.6em;
    font-style: normal;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s var(--ease-premium);
}


/* 1. PRIMER BLOQUE CORREDIGO - FIN */


/* EFECTO HOVER: APARECE FLECHA, ROJO Y CURSIVA */
.menu-nav a:hover {
    color: var(--accent);
    font-style: italic;
    transform: translateX(10px);
}

.menu-nav a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* OPTIMIZACIÓN EXTRA */
.menu-nav {
    -webkit-font-smoothing: antialiased;
}


/* ==========================================================================
   3. TERCER BLOQUE OPTIMIZADO - RESPONSIVE, SLIDER Y MOSAIC
   ========================================================================== */

/* SOCIAL SIDEBAR */
.social-sidebar {
    position: fixed;
    right: 40px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    z-index: 9995;
    transition: opacity 0.4s ease, visibility 0.4s;
}

body.menu-active .social-sidebar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.social-sidebar a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    transition: .35s ease;
}

.social-sidebar a i {
    font-size: 15px;
    color: var(--text-color);
    transition: color .35s ease;
}

.social-sidebar a:hover i { color: var(--accent); }

.social-divider {
    width: 28px;
    height: 2px;
    margin: 6px 0;
    background: currentColor;
    opacity: .25;
}

/* SLIDER */
.slider-wrapper {
    height: 100vh;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 16% 0 10%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) var(--ease-premium), visibility var(--transition-speed);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', serif;
    font-size: 20vw;
    opacity: .03;
    font-weight: 900;
    white-space: nowrap;
}

.slide-content {
    max-width: 650px;
    position: relative;
    z-index: 20;
}

.category {
    font-size: 10px;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.slide-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4.5vw, 55px);
    line-height: 1.1;
    margin-bottom: 20px;
}

/* SLIDE IMAGES & QUICK VIEW */
.slide-image-container {
    position: absolute;
    right: 10%;
    top: 20%;
    width: 50%;
    height: 60%;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: inset(0 0 100% 0);
    transition: clip-path var(--transition-speed) var(--ease-premium);
}

.slide.active .slide-image { clip-path: inset(0); }

.quick-view {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,.65);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity .3s var(--ease-premium), transform .3s var(--ease-premium);
}

.slide.active .quick-view {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .2s;
}

.quick-view:hover { background: var(--accent); }
.quick-view span { color: #fff; }

/* SLIDER COUNTER */
.slider-counter-minimal {
    position: absolute;
    bottom: -50px;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-counter-minimal span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.slider-counter-minimal .counter-line {
    width: 35px;
    height: 1px;
    background: var(--text-color);
    opacity: .4;
}

.slider-counter-minimal .total { opacity: .4; }

/* MOSAIC SYSTEM */
.mosaic-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    z-index: 10000;
    display: none;
    overflow-y: auto;
    padding: 100px 8%;
    opacity: 0;
    transition: opacity .6s var(--ease-premium);
}

.mosaic-overlay.active {
    display: block;
    opacity: 1;
}

.mosaic-close {
    position: fixed;
    top: 50px;
    right: 90px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.4s var(--ease-premium);
}

.mosaic-close::after {
    content: '\2715';
    display: inline-block;
    font-size: 16px;
    transition: transform 0.4s var(--ease-premium);
}

.mosaic-close:hover { color: var(--accent); }
.mosaic-close:hover::after { transform: rotate(90deg) scale(1.2); }

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mosaic-img-box {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #222;
}

.mosaic-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-premium);
}

.mosaic-card:hover img { transform: scale(1.05); }

/* RESPONSIVE DESIGN */
@media (max-width: 1400px) {
    .slide-image-container {
        right: 20%;
        width: 32%;
    }
}

@media (max-width: 992px) {
    .header { padding: 20px 40px; }
    .split-layout { flex-direction: column; }
    .left-side, .right-side { flex: 0 0 100%; padding: 60px 40px; }
    .left-side h1 { font-size: 2.5rem; }
    .back-home { left: 40px; }
}




/* ==========================================================================
   4. CUARTO BLOQUE - RESPONSIVE, SLIDER Y CONTACTO
   ========================================================================== */

@media(max-width:1024px){
    .slide { flex-direction: column; padding: 120px 60px 60px; }
    .slide-image-container { position: relative; top: auto; right: 0; width: 100%; height: auto; margin-top: 40px; }
    .slide-image { aspect-ratio: 16/9; }
}

@media(max-width:768px){
    .header { padding: 30px 25px; }
    .social-sidebar { display: none; }
}

/* ================= PROTECCIÓN DE ENTORNO: CONTACTO ================= */
body:has(.split-layout) { background-color: var(--contact-bg-left) !important; margin: 0; overflow-x: hidden; }

body:has(.split-layout) .split-layout { display: grid; grid-template-columns: 50% 50%; min-height: 100vh; width: 100%; }

body:has(.split-layout) .left-side {
    background-color: var(--contact-bg-left) !important;
    padding: 80px 10% !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff !important;
    position: relative;
    border: none;
}

body:has(.split-layout) .back-home {
    position: absolute; top: 50px; left: 10%; 
    color: #666; font-size: 11px; font-weight: 700; letter-spacing: 2px;
    text-decoration: none; transition: color 0.3s ease;
}
body:has(.split-layout) .back-home:hover { color: var(--contact-accent); }

body:has(.split-layout) .category-tag {
    color: var(--contact-accent); font-size: 10px; font-weight: 700;
    letter-spacing: 4px; margin-bottom: 20px; display: block;
}

body:has(.split-layout) .left-side h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    line-height: 1.1; margin: 15px 0; color: #ffffff !important;
}

body:has(.split-layout) .red-line { width: 60px; height: 1px; background: var(--contact-accent); border: none; margin: 25px 0; }

body:has(.split-layout) .description { color: #777; font-size: 14px; line-height: 1.6; max-width: 100%; }

body:has(.split-layout) .right-side {
    background-color: var(--contact-bg-right) !important;
    padding: 60px 8% !important;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}

body:has(.split-layout) #direct-email-form { width: 100%; max-width: 680px; margin: 0 auto; }

/* ----- INPUTS Y FORMULARIO ----- */
body:has(.split-layout) .form-group { position: relative; margin-bottom: 35px !important; width: 100%; }

body:has(.split-layout) .form-group label {
    color: #555 !important; font-size: 11px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px !important; display: block;
}

body:has(.split-layout) .form-group input, 
body:has(.split-layout) .form-group textarea {
    width: 100%; background: transparent !important; border: none !important;
    border-bottom: 1px solid var(--contact-border) !important;
    padding: 15px 0 !important; color: #ffffff !important; font-size: 18px;
    outline: none; border-radius: 0; transition: border-color 0.4s ease;
}

body:has(.split-layout) .form-group input:focus, 
body:has(.split-layout) .form-group textarea:focus { border-bottom-color: var(--contact-accent) !important; }

body:has(.split-layout) .form-group textarea { min-height: 120px; resize: vertical; }

body:has(.split-layout) .submit-btn {
    background: #ffffff !important; border: none !important; color: var(--contact-accent) !important;
    padding: 22px 70px !important; width: fit-content; min-width: 260px;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px !important; cursor: pointer; margin-top: 15px; transition: all 0.3s ease;
}
body:has(.split-layout) .submit-btn:hover { background: var(--contact-accent) !important; color: #ffffff !important; transform: translateY(-2px); }

@media(max-width:1024px) {
    body:has(.split-layout) .split-layout { grid-template-columns: 1fr; }
    body:has(.split-layout) .left-side, 
    body:has(.split-layout) .right-side { padding: 80px 10% !important; }
    body:has(.split-layout) .back-home { left: 10%; }
    body:has(.split-layout) #direct-email-form { max-width: 90%; }
}

/* ================= MENU SOCIAL MOBILE ================= */
.menu-social-mobile {
    display: flex; gap: 30px; margin-top: 50px; opacity: 0;
    transform: translateY(20px); transition: all 0.6s ease 0.4s;
}

body.menu-active .menu-social-mobile { opacity: 1; transform: translateY(0); }

.menu-social-mobile a {
    display: flex !important; align-items: center; gap: 8px; font-family: 'Inter', sans-serif;
    font-size: 10px !important; font-weight: 700; letter-spacing: 2px;
    color: #1b1b1b !important; margin: 0 !important;
}

.menu-social-mobile a::after, .menu-social-mobile a::before { content: none !important; display: none !important; }
.menu-social-mobile a i { font-size: 16px; }
.menu-social-mobile a:hover { color: var(--accent) !important; }

@media(min-width:769px) { .menu-social-mobile { display: none; } }

/* ================= SLIDE CONTENT MOBILE FIX ================= */
@media(max-width:768px){
    .slide { padding: 250px 25px 40px; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; text-align: left; }
    .slide-content { max-width: 100%; width: 100%; margin-bottom: 25px; }
    .category, .slide-content .category { font-size: 10px; letter-spacing: 1px; margin-bottom: 12px; text-transform: uppercase; display: block; color: rgb(119, 119, 119); }
    .slide-content h2 { font-size: 40px; line-height: 1.1; margin-bottom: 15px; font-weight: 800; text-align: left; }
    .slide-content p { font-size: 16px; line-height: 1.5; margin-bottom: 25px; max-width: 85%; text-align: left; }
    .slide-content a { font-size: 13px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; margin-top: 10px; display: inline-block; padding: 10px 0; }
    .slide-image-container { width: 100%; margin-top: 20px; }
}

.slide.active .slide-content { animation: fadeUp .8s ease forwards; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   5. QUINTO BLOQUE - NOSOTROS Y SERVICIOS
   ========================================================================== */

.main-wrapper { 
    min-height: 100vh; display: flex; align-items: center; 
    padding: 100px 8% 40px; max-width: 1400px; margin: 0 auto; 
}

.team-container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; width: 100%; align-items: center; }

.editorial-frame { width: 100%; aspect-ratio: 4/5; background: #e8e8e8; overflow: hidden; border-radius: 2px; }

.team-image-display { width: 100%; height: 100%; background-size: cover; background-position: center; transition: opacity 0.6s var(--ease-premium), transform 1.2s var(--ease-premium); }

.intro-block { display: flex; flex-direction: column; align-items: flex-start; gap: 25px; }

.culture-label { font-size: 10px; font-weight: 700; letter-spacing: 4px; color: var(--accent); text-transform: uppercase; }

#btnRevealTeam {
    background: none; border: 1px solid var(--text-color); padding: 18px 45px; 
    font-weight: 700; letter-spacing: 3px; cursor: pointer; transition: all 0.4s ease; 
    font-size: 11px; color: var(--text-color);
}
#btnRevealTeam:hover { background: var(--text-color); color: var(--bg-color); }

#accordionTeam { 
    display: none; border-top: 1px solid var(--separator-color);
    max-height: 65vh; overflow-y: auto; padding-right: 15px;
    scrollbar-width: none; -ms-overflow-style: none; 
}
#accordionTeam::-webkit-scrollbar { display: none; }
#accordionTeam.active { display: block; animation: fadeUp 0.8s forwards; }

.team-item { border-bottom: 1px solid var(--separator-color); cursor: pointer; transition: 0.3s; }
.team-header { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; }
.t-info-main { display: flex; align-items: center; gap: 20px; }
.t-num { font-size: 10px; font-weight: 700; color: var(--gray-text); }
.t-name { font-size: 18px; font-weight: 600; color: var(--gray-text); transition: 0.4s; }
.plus-icon { font-size: 20px; color: var(--gray-text); transition: 0.4s; }

.team-item.active .t-name, .team-item.active .t-num { color: var(--text-color); }
.team-item.active .plus-icon { transform: rotate(45deg); color: var(--accent); }

.team-content-wrapper { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease-premium); overflow: hidden; }
.team-item.active .team-content-wrapper { grid-template-rows: 1fr; }

.team-content { min-height: 0; padding: 0 0 30px 30px; opacity: 0; transition: 0.4s; }
.team-item.active .team-content { opacity: 1; }

.t-role { display: block; font-weight: 700; font-size: 10px; letter-spacing: 2px; color: var(--accent); margin-bottom: 10px; text-transform: uppercase; }

.team-content p { font-size: 14px; color: var(--text-light); max-width: 450px; text-align: justify; line-height: 1.6; }

.team-content a { color: var(--accent); text-decoration: none; font-weight: 700; font-size: 11px; letter-spacing: 1px; transition: 0.3s; }
.team-content a:hover { color: var(--text-color); }

@media (max-width: 1024px) {
    .main-wrapper { padding-top: 140px; overflow-y: auto; height: auto; }
    .team-container { grid-template-columns: 1fr; gap: 50px; }
    .editorial-frame { aspect-ratio: 1/1; }
    #accordionTeam { max-height: none; overflow: visible; }
}

/* ================= SECCIÓN SERVICIOS ================= */
.premium-services { padding: clamp(120px, 12vw, 160px) 8% 80px; max-width: 1400px; margin: 0 auto; min-height: 100vh; }

.services-intro { text-align: left; margin-bottom: 60px; animation: fadeUp 0.8s var(--ease-premium); }

.eyebrow-text { color: var(--accent); font-size: 11px; letter-spacing: 4px; font-weight: 700; margin-bottom: 15px; display: block; text-transform: uppercase; }

.main-display { font-family: 'Playfair Display', serif; font-size: clamp(38px, 6vw, 65px); line-height: 1; margin: 0 0 25px 0; font-weight: 400; }
.main-display em { font-style: italic; font-family: 'Playfair Display', serif; }

.lead-text { font-size: clamp(15px, 2vw, 17px); color: var(--text-light); line-height: 1.7; max-width: 650px; }

.services-menu { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }

.menu-btn { 
    padding: 12px 28px; border: 1px solid var(--separator-color); background: transparent; 
    cursor: pointer; font-weight: 700; text-transform: uppercase; font-size: 10px; 
    letter-spacing: 2px; transition: all 0.4s var(--ease-premium); color: var(--text-color); 
}
.menu-btn.active { background: var(--text-color); color: var(--bg-color); border-color: var(--text-color); }
.menu-btn:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

.section-slider { border: 1px solid var(--separator-color); background: var(--bg-color); display: none; }
.section-slider.active { display: block; animation: fadeUp 1s var(--ease-premium); }

.services-interactive-grid { display: flex; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.services-interactive-grid::-webkit-scrollbar { display: none; }

.service-block { 
    min-width: 50%; flex-shrink: 0; box-sizing: border-box; 
    padding: clamp(40px, 6vw, 80px) clamp(40px, 6vw, 80px) 20px; 
    border-right: 1px solid var(--separator-color); transition: background 0.5s ease; 
}
.service-block:hover { background: rgba(0,0,0,0.02); }

.block-number { color: var(--accent); font-weight: 700; font-size: 18px; margin-bottom: 25px; display: block; }

.block-title { font-size: clamp(24px, 3.5vw, 38px); font-weight: 700; margin-bottom: 20px; line-height: 1.1; color: var(--text-color); }
.block-title em { display: block; font-family: 'Playfair Display', serif; font-weight: 400; font-style: italic; font-size: 0.8em; opacity: 0.7; }

.block-desc { font-size: 15px; line-height: 1.7; color: var(--text-light); margin-bottom: 20px; max-width: 400px; }

.block-features { list-style: none; padding: 0; }
.block-features li { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; display: flex; align-items: center; color: var(--text-color); }
.block-features li::before { content: ""; width: 15px; height: 1px; background: var(--accent); margin-right: 12px; }

.services-navigation { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

.nav-btn { 
    width: 60px; height: 60px; border: 1px solid var(--separator-color); background: var(--bg-color); 
    cursor: pointer; display: flex; align-items: center; justify-content: center; 
    transition: 0.4s var(--ease-premium); font-size: 18px; color: var(--text-color); 
}
.nav-btn:hover { background: var(--text-color); color: var(--bg-color); border-color: var(--text-color); }

@media (max-width: 1024px) {
    .service-block { min-width: 100%; border-right: none; border-bottom: 1px solid var(--separator-color); }
    .premium-services { padding-top: 140px; }
}





/* ==========================================================================
   1. LAYOUT PRINCIPAL: SPLIT LAYOUT IZQUIERDA / DERECHA
   ========================================================================== */
.split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--bg-dark-contact);
}

.left-side {
    flex: 1;
    padding: 8vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-right: 1px solid var(--border-dark);
}

.right-side {
    flex: 1;
    background: var(--bg-dark-right);
    padding: 8vw;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   2. TIPOGRAFÍA Y ELEMENTOS DE LA IZQUIERDA
   ========================================================================== */
.back-home {
    position: absolute;
    top: 50px;
    left: 8vw;
    color: var(--gray-text);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    transition: color 0.3s;
}
.back-home:hover { color: var(--accent); }

.category-tag {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 4px;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.left-side h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 5vw, 80px);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 30px;
}

.left-side h1 span {
    display: block;
    font-style: italic;
    font-weight: 400;
}

.red-line {
    width: 60px;
    border: none;
    height: 2px;
    background: var(--accent);
    margin-bottom: 30px;
}

.description {
    color: var(--gray-text);
    max-width: 400px;
    line-height: 1.8;
    font-size: 15px;
}

/* ==========================================================================
   3. FORMULARIO DE CONTACTO
   ========================================================================== */
.contact-form {
    width: 100%;
    max-width: 500px;
}

.form-group {
    position: relative;
    margin-bottom: 35px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.8;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-dark);
    padding: 15px 0;
    color: #fff;
    font-size: 17px;
    outline: none;
    transition: border-color 0.4s ease;
}

.form-group textarea {
    min-height: 120px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-size: 15px;
}


/* color boton */



/* BOTÓN DE CONTACTO - ESTILO ESTÁTICO BLANCO A ROJO */
#direct-email-form .submit-btn {
    /* Estado Inicial: Blanco con letras negras */
    background-color: #ffffff !important;
    color: #000000 !important;
    
    /* Estructura: Sin ancho total, medida natural */
    display: inline-block; /* Ya no ocupa todo el ancho */
    padding: 18px 40px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
    border: none !important;
    
    /* Eliminación total de efectos */
    box-shadow: none !important;
    filter: none !important;
    outline: none !important;
    transform: none !important; /* Evita cualquier zoom o movimiento */
    
    /* Transición de colores suave */
    transition: background-color 0.3s ease, color 0.3s ease !important;
}

/* Estado HOVER: Rojo con letras blancas (Sin movimiento ni sombras) */
#direct-email-form .submit-btn:hover {
    background-color: #ff4c3b !important; /* Rojo Switch Ads */
    color: #ffffff !important;
    
    /* Bloqueo de efectos secundarios */
    transform: none !important; 
    box-shadow: none !important;
    filter: none !important;
}

/* Estado cuando se está enviando */
#direct-email-form .submit-btn:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
}


/* ==========================================================================
   4. CURSORES PERSONALIZADOS
   ========================================================================== */
#cursor-outer, #cursor-inner {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
}
#cursor-outer {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    transition: transform 0.15s ease-out;
}
#cursor-inner {
    width: 6px;
    height: 6px;
    background: var(--accent);
}

/* ==========================================================================
   5. RESPONSIVE PRINCIPAL
   ========================================================================== */
@media (max-width: 968px) {
    .split-layout {
        flex-direction: column;
    }
    .left-side,
    .right-side {
        padding: 60px 30px;
    }
}

/* ==========================================================================
   6. PORTAFOLIO (INDEX & PORTFOLIO UNIFICADO)
   ========================================================================== */
.portfolio-page {
    background: #f8f8f8 !important;
}

.portfolio-section {
    padding-left: 8% !important;
    padding-right: 8% !important;
    padding-top: 160px !important;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
}

.mosaic-header {
    padding-top: 60px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
}

.section-title,
.mosaic-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    margin: 0 0 10px 0 !important;
    line-height: 1.1;
    text-align: left;
    color: #1b1b1b;
    margin-left: -2px !important;
}

.portfolio-filter,
.portfolio-filters {
    display: flex;
    gap: 25px;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
    list-style: none;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    color: #666;
    padding: 5px 0 !important;
    margin: 0;
    opacity: 0.7;
    position: relative;
    transition: 0.3s;
}
.filter-btn:first-child { padding-left: 0 !important; }
.filter-btn.active,
.filter-btn:hover { color: #1b1b1b; opacity: 1; }
.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1b1b1b;
}

.portfolio-grid,
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding-bottom: 20px !important;
    margin: 0 !important;
}

.portfolio-item,
.mosaic-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    color: inherit;
}

.portfolio-thumb,
.mosaic-img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #eee;
}

.portfolio-thumb img,
.mosaic-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.portfolio-item:hover img,
.mosaic-card:hover img { transform: scale(1.05); }

.portfolio-text h4,
.mosaic-info h4 {
    font-size: 13px;
    margin: 0 0 4px 0 !important;
    color: #1b1b1b;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}
.portfolio-text span,
.mosaic-info p {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 !important;
    font-family: 'Inter', sans-serif;
}

/* Responsive Portafolio */
@media (max-width: 1100px) { .portfolio-grid, .mosaic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { 
    .portfolio-section { padding-left: 5% !important; padding-right: 5% !important; } 
    .portfolio-grid, .mosaic-grid { grid-template-columns: 1fr; } 
}

/* ==========================================================================
   7. CLIENTES - GRID DINÁMICO
   ========================================================================== */
.clients-section {
    padding: clamp(100px, 10vw, 140px) 8% 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.clients-intro { margin-bottom: 30px; }
.clients-intro span {
    color: var(--accent);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}
.clients-intro h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 60px);
    line-height: 1.1;
    margin: 0;
}

/* Grilla 4x2 */
.clients-viewport {
    position: relative;
    flex-grow: 1;
    overflow: hidden;
    max-height: 500px;
}
.groups-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s var(--ease-premium);
}
.client-grid-group {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1px;
    background: var(--separator-color);
    border: 1px solid var(--separator-color);
}
.client-box {
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: 0.4s;
}
.client-box img {
    max-width: 280px;
    max-height: 280px;
    filter: grayscale(1);
    opacity: 0.6;
    transition: 0.5s var(--ease-premium);
}
.client-box:hover { background: rgba(0,0,0,0.02); }
body.dark-mode .client-box:hover { background: #222; }
.client-box:hover img { filter: grayscale(0); opacity: 1; }

/* Navegación y Contador */
.clients-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 60px;
}
.counter-box {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
}
.nav-controls {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    margin-right: 0px;
    align-items: center;
}
.nav-btn {
    width: 55px;
    height: 55px;
    border: 1px solid var(--separator-color);
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 20px;
}
.nav-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

/* Responsive Clientes */
@media (max-width: 900px) {
    .client-grid-group {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
}



/* ==========================================================================
   8. MODAL PORTAFOLIO / SWIPER FIX
   ========================================================================== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 12000;
}
.overlay.active { display: flex; }

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: 70vh;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 12001;
}
.close:hover { color: var(--accent); }

.counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
}

body.modal-open { overflow: hidden; }

/* ==========================================
   6. SEXTO BLOQUE - FINAL
   ============================================ */

.slider-footer-new {
    position: absolute;
    bottom: -80px; 
    right: 0;
    z-index: 10;
}

.footer-new-container {
    display: flex;
    align-items: center;
    gap: 30px; 
}

.nav-arrows-group {
    display: flex;
    gap: 12px;
}

.nav-box {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--separator-color);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;
}

.nav-btn-idx {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    pointer-events: none;
    transition: color 0.3s ease;
}

.nav-box:hover {
    background-color: rgb(27, 27, 27);
    border-color: rgb(27, 27, 27);
}

.nav-box:hover .nav-btn-idx {
    color: #ffffff;
}

.slider-footer-new .slider-counter-minimal {
    position: relative;
    bottom: auto;
    right: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.slide-content h2 {
    white-space: nowrap;
    font-size: 3.5rem;
}

@media (max-width: 768px) {
    .slide-content h2 {
        white-space: normal;
        font-size: 2.5rem;
    }
}

.project-link:active {
    color: #ff0000 !important;
}

.project-link:active span {
    color: #ff0000 !important;
}

/* ==========================================================================  
   UNIFICACIÓN DE ESPACIOS PORTAFOLIO vs INDEX
   ========================================================================== */

.portfolio-layout {
    padding-top: 140px;
    display: block;
    width: 100%;
    min-height: 100vh;
}

.portfolio-container {
    width: 100%;
    max-width: 100%;
}

.mosaic-header {
    margin-bottom: 50px;
    animation: fadeUp 0.8s ease forwards;
}

.mosaic-header .eyebrow-text {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 4px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.mosaic-header .main-display {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 55px);
    line-height: 1.1;
    margin-bottom: 30px;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 20px;
    padding-bottom: 80px;
}

@media (max-width: 1200px) {
    .mosaic-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .portfolio-layout { padding-top: 100px; }
    .mosaic-grid { grid-template-columns: repeat(1, 1fr); }
    .mosaic-header .main-display { font-size: 38px; }
}

.portfolio-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}






/* ==========================================================================
   NUEVA SECCIÓN PRESENTACIÓN SEO
   ========================================================================== */

.intro-seo-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Por encima de todo */
    transition: transform 0.8s var(--ease-premium), opacity 0.8s ease;
    overflow: hidden;
}

/* Texto de fondo gigante difuminado */
.intro-bg-text {
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-size: 25vw;
    color: var(--text-color);
    opacity: 0.03;
    font-weight: 900;
    pointer-events: none;
    white-space: nowrap;
}

.intro-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
    padding: 0 20px;
}

.intro-content .category-tag {
    display: block;
    font-size: 11px;
    letter-spacing: 5px;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 700;
}

.intro-content h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 25px;
}

.italic-playfair {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
}

.intro-content p {
    font-size: 16px;
    color: var(--gray-text);
    max-width: 500px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Botón estilizado Switch™ */
.cta-explore {
    background: transparent;
    border: 1px solid var(--text-color);
    padding: 18px 45px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.4s var(--ease-premium);
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.cta-explore:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.cta-arrow {
    transition: transform 0.3s ease;
}

.cta-explore:hover .cta-arrow {
    transform: translateX(8px);
}

/* Clase de salida para la animación */
.intro-seo-section.exit {
    transform: translateY(-100%);
    opacity: 0.9;
}

/* Ajuste preventivo para que el slider no interfiera mientras la intro está activa */
#mainSlider {
    transition: opacity 0.5s ease;
}

.texto-rojo{
color:#ff4c3b;
}



/* =========================================
   ESTILOS FIRMA SWITCH (CERO SCROLL)
   ========================================= */
.site-signature {
    position: absolute; 
    bottom: 20px;       
    left: 5%;           
    z-index: 5;         
    width: auto;
    pointer-events: none; 
}

.site-signature p {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    font-weight: 300;
    margin: 0;
    color: var(--gray-text); 
    opacity: 0.6;
    text-transform: uppercase;
}

.bold-switch {
    font-weight: 700;
    color: var(--text-color);
}

/* Cambios para fondo oscuro - SE ACTIVAN CON LA CLASE DEL BODY */
body.contact-page .site-signature p {
    color: var(--contact-text) !important;
    opacity: 0.8;
}

body.contact-page .bold-switch {
    color: #ffffff !important;
}

/* AJUSTE MOBILE */
@media (max-width: 768px) {
    .site-signature {
        bottom: 15px;
        left: 20px;
    }
    .site-signature p {
        font-size: 8.5px;
        letter-spacing: 2px;
    }
}


/* --- SOLUCIÓN AL PROBLEMA: DESAPARECER SI LA HOJA SE REDUCE --- */

/* Si la altura de la ventana es menor a 600px (pantalla pequeña o teclado abierto), desaparece */
@media (max-height: 900px) {
    .site-signature {
        opacity: 0;
        visibility: hidden;
    }
}

/* Cambios para fondo oscuro (Contacto) */
body.split-layout .site-signature p {
    color: #ffffff !important;
}

body.split-layout .bold-switch {
    color: #ffffff !important;
}

/* AJUSTE MOBILE (Ancho) */
@media (max-width: 768px) {
    .site-signature {
        bottom: 15px;
        left: 20px;
    }
    /* También podemos ocultarlo en móviles muy pequeños si prefieres */
    @media (max-height: 500px) {
        .site-signature { display: none; }
    }
}



/* Si el portafolio del ojo está abierto, ocultamos el texto del menú principal */
body.modal-open #menuText {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Mantenemos solo la X de cerrar propia del modal */
.close-mosaic {
    z-index: 3000; /* Por encima de todo */
}