/* ========================================================================= 
   METALÚRGICA MARTÍNEZ - ESTILOS PRINCIPALES
   Sistema de diseño profesional con variables CSS fluidas
   Optimizado para rendimiento, accesibilidad y calidad visual
=============================================================================*/

/*======================================================
  SISTEMA DE VARIABLES - PALETA Y ESPACIADO
======================================================*/
:root {
    /* Colores base */
    --app-white: #ffffff;
    --app-body: #f1f5f9;
    --app-dark: #0f172a; 
    --app-med: #1e293b;  
    --app-text: #1e293b; 
    --app-gray: #64748b;
    
    /* Colores industriales */
    --clr-blue: #1e40af;  
    --clr-blue-hover: #1e3a8a;
    --clr-blue-light: #3b82f6;
    --clr-cyan: #06b6d4;  
    --clr-cyan-dim: #0891b2;
    --clr-steel: #475569;
    --clr-metal: #94a3b8;
    --clr-slate: #64748b;
    --clr-silver: #cbd5e1;

    /* Sistema de espaciado fluido */
    --spacing-xs: clamp(0.5rem, 1vw, 0.75rem);
    --spacing-sm: clamp(0.75rem, 1.5vw, 1rem);
    --spacing-md: clamp(1rem, 2vw, 1.5rem);
    --spacing-lg: clamp(1.5rem, 3vw, 2.5rem);
    --spacing-xl: clamp(2rem, 4vw, 3.5rem);
    --spacing-2xl: clamp(3rem, 6vw, 5rem);
    --spacing-3xl: clamp(4rem, 8vw, 6rem);
    
    /* Espaciado de sección fluido */
    --section-padding-y: clamp(3.5rem, 8vw, 6rem);
    --section-padding-x: clamp(1rem, 3vw, 2rem);
    
    /* Bordes y transiciones */
    --b-rad: 12px; 
    --b-rad-sm: 8px;
    --b-rad-lg: 16px;
    --tran-soft: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --tran-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --gothic: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Sombras industriales */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-metal: 0 10px 30px -5px rgba(30, 64, 175, 0.3);
    --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.4);
    --shadow-glow-blue: 0 0 20px rgba(30, 64, 175, 0.4);
}
/*==========================================================
PREVENIR SALTO POR SCROLLBAR
==========================================================*/

html {
    /* Reserva el espacio de la scrollbar para que no haya saltos */
    scrollbar-gutter: stable;
    
    /* Evita scroll horizontal no deseado */
    overflow-x: hidden; 
}
/*==========================================================
FADE-IN DEL CONTENIDO (SIN AFECTAR AL PRELOADER)
==========================================================*/

/* El body SIEMPRE es visible */

/*======================================================
  RESET Y BASE
======================================================*/
* { padding: 0; margin: 0; box-sizing: border-box; }
html { 
    scroll-behavior: smooth; 
    overflow-x: hidden; 
    width: 100%; 
    scroll-padding-top: 80px; 
}

body { 
    font-family: var(--gothic); 
    background-color: var(--app-body); 
    color: var(--app-text); 
    font-size: 16px; 
    line-height: 1.6; 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(at 40% 20%, rgba(6, 182, 212, 0.05) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(30, 64, 175, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(6, 182, 212, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
}
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--tran-soft); outline: none;}
img { max-width: 100%; height: auto; display: block; }

/*======================================================
  CONTENEDOR Y UTILIDADES
======================================================*/
.container { 
    width: 100%;
    max-width: 1240px; 
    margin: 0 auto; 
    position: relative;
    padding-inline: var(--section-padding-x);
}

.section-spacing { 
    padding: var(--section-padding-y) 0; 
    position: relative; 
}

.background-dark { 
    background-color: var(--app-dark);
    background-image: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 58, 138, 0.9) 100%);
    position: relative;
    overflow: hidden;
}
.background-light { 
    background-color: var(--app-white);
    position: relative;
}

.text-white { color: var(--app-white) !important;}
.text-gray { color: #94a3b8 !important; }
.text-center { text-align: center; }

.skip-link {
    position: absolute; top: -40px; left: 0; background: var(--clr-blue); color: white; padding: 8px; z-index: 100000;
}
.skip-link:focus { top: 0; }

/*======================================================
  DIVISORES DE TÍTULO - SIMPLIFICADOS
======================================================*/
.title-divider { 
    width: 80px; 
    height: 4px; 
    background: linear-gradient(90deg, var(--clr-cyan), var(--clr-blue), var(--clr-cyan));
    margin: 0 auto 1.5rem; 
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    position: relative;
}
.title-divider-light {
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.8), rgba(255,255,255,0.3));
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}
.align-left { margin-left: 0 !important; }

h1,h2,h3,h4 { font-weight: 800; line-height: 1.2; color: var(--app-text); }
.section-heading { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.section-title h2 { 
    font-size: clamp(2rem, 3.5vw, 2.8rem); 
    margin-bottom: 0.8rem; 
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}
.section-title .subtitle-text { 
    font-size: clamp(1rem, 1.5vw, 1.1rem); 
    color: var(--app-gray); 
    max-width: 700px; 
    margin: 0 auto; 
    font-weight: 400;
    padding-inline: var(--spacing-sm);
}

/*======================================================
  BOTONES CON EFECTO METÁLICO
======================================================*/
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; border-radius: var(--b-rad-sm);
    font-size: 0.95rem; font-weight: 700; cursor: pointer; border: none; 
    transition: var(--tran-soft); text-transform: uppercase; letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}
.btn:hover::before {
    left: 100%;
}

.btn-main { 
    background: linear-gradient(135deg, var(--clr-blue) 0%, var(--clr-blue-hover) 100%);
    color: var(--app-white); 
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-main:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-secondary {
    background-color: transparent; 
    color: var(--app-white);
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--app-white);
    transform: translateY(-3px);
}

/*======================================================
  NAVBAR CON EFECTO CRISTAL
======================================================*/
.header { 
    position: fixed; top: 0; left: 0; width: 100%; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    z-index: 9999; 
    transition: var(--tran-soft);
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}
.header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}
.header-container { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    height: 80px; 
}

.logo-wrapper { 
    display: flex; align-items:center; gap: 12px; 
    transition: transform 0.3s ease;
}
.logo-wrapper:hover {
    transform: scale(1.02);
}
.header-logo-icon { 
    width: 50px; height: 50px; object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.logo-ayf { 
    color: var(--clr-blue); 
    font-size: clamp(1.1rem, 1.6vw, 1.4rem); 
    font-weight: 900; 
    line-height:1; 
    letter-spacing:-0.5px; 
    white-space: nowrap;
    background: linear-gradient(135deg, var(--clr-blue) 0%, var(--clr-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu { 
    z-index: 10000; 
    position: relative;
}
.nav-list { display: flex; gap: 2rem; align-items: center; }
.nav-link { 
    font-weight: 600; font-size: 0.95rem; color: var(--app-text); 
    position: relative;
    padding: 5px 0;
}
.nav-link::after {
    content: ''; 
    position: absolute; 
    bottom: 0; left: 0; 
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--clr-cyan), var(--clr-blue));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--clr-cyan);
}
.nav-link:hover { color: var(--clr-blue); }
.nav-link:hover::after { width: 100%; }

.btn-nav { 
    padding: 10px 20px; font-weight:700; font-size:.85rem; border-radius: var(--b-rad-sm); 
    background: linear-gradient(135deg, var(--app-dark) 0%, #1e293b 100%); 
    color:var(--app-white); 
    border: 2px solid var(--app-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.btn-nav:hover { 
    background: transparent; 
    color: var(--app-dark); 
    border-color:var(--clr-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 64, 175, 0.3);
}

/*======================================================
  MENÚ MOBILE - STACKING CONTEXT CORREGIDO
  El overlay ahora es hijo del nav-menu para compartir contexto
======================================================*/ 
.menu-toggle { 
    display: none; 
    background: transparent; 
    border: none; 
    width: 34px; 
    height: 26px; 
    position: relative; 
    cursor: pointer; 
    z-index: 10001;
} 
.hamburger, .hamburger::before, .hamburger::after { 
    position: absolute; 
    height: 3px; 
    width: 100%; 
    background: var(--app-text); 
    transition: var(--tran-soft); 
    border-radius: 4px; 
}
.hamburger { top: 50%; left: 0; transform: translateY(-50%); }
.hamburger::before { content: ""; top: -10px; left: 0; }
.hamburger::after { content: ""; top: 10px; left: 0; }
.menu-toggle.opened .hamburger { background: transparent;}
.menu-toggle.opened .hamburger::before { top:0; transform: rotate(45deg); background-color: var(--app-white); }
.menu-toggle.opened .hamburger::after { top:0; transform: rotate(-45deg); background-color: var(--app-white); }

/* Overlay como hijo del nav - comparte stacking context */
.mobile-overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9998; 
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.4s ease;
    visibility: hidden;
}
.mobile-overlay.visiblrdXw { 
    opacity: 0; 
    pointer-events: all; 
    visibility: visible;
}

/*======================================================
  HERO CON EFECTO METÁLICO PREMIUM
======================================================*/
.hero { 
    position: relative; 
    width: 100%; 
    height: clamp(600px, 85vh, 850px); 
    background: #0c0d0f; 
    display: flex; 
    align-items: center; 
    margin-top: 80px; 
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 2;
    pointer-events: none;
}

.hero-slider { position: absolute; inset: 0;}
.slide { 
    position: absolute; 
    inset: 0; 
    background-size: cover; 
    background-position: center; 
    opacity: 0; 
    animation: slideLoop 18s infinite cubic-bezier(0.2, 0.8, 0.3, 1);
    filter: brightness(0.7);
}
.slide-1 { animation-delay: 0s; } 
.slide-2 { animation-delay: 6s; } 
.slide-3 { animation-delay: 12s; }

@keyframes slideLoop {
    0%, 30% { opacity: 1; transform: scale(1); } 
    38%, 100% { opacity: 0; transform: scale(1.05); }
}

.hero-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(135deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42, 0.7) 50%, rgba(30, 58, 138, 0.6) 100%); 
    z-index: 1;
}

.hero-content { 
    position: relative; 
    z-index: 10; 
    width: 100%; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    padding-inline: var(--spacing-md);
}

/* Efecto metálico premium con text-shadow multicapa */
.hero-epic-title { 
    color: #ffffff !important; 
    font-size: clamp(2.8rem, 6vw, 5.5rem); 
    margin-bottom: 1rem; 
    font-weight: 900; 
    letter-spacing: -2px;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 40px rgba(6, 182, 212, 0.5),
        0 0 80px rgba(6, 182, 212, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.9);
    opacity: 0; 
    animation: fadeInUp 1s ease 0.2s forwards;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 25%, #ffffff 50%, #94a3b8 75%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.2s forwards, metalShine 6s ease-in-out infinite;
}

@keyframes metalShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    color: #e2e8f0; 
    font-size: clamp(1.1rem, 2.2vw, 1.4rem); 
    font-weight: 400; 
    max-width: 800px; 
    margin: 0 auto 2.5rem; 
    line-height: 1.6;
    opacity: 0; 
    animation: fadeInUp 1s ease 0.4s forwards;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex; 
    gap: 1.2rem; 
    flex-wrap: wrap; 
    justify-content: center;
    opacity: 0; 
    animation: fadeInUp 1s ease 0.6s forwards;
}

@keyframes fadeInUp {
    0% { transform: translateY(40px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Scroll indicator industrial */
.scroll-indicator {
    position: absolute; 
    bottom: 40px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 10;
    animation: bounce 2s infinite;
}
.mouse {
    width: 28px; 
    height: 46px; 
    border: 2px solid rgba(6, 182, 212, 0.6); 
    border-radius: 20px; 
    position: relative;
    background: rgba(6, 182, 212, 0.1);
}
.mouse::before {
    content: ''; 
    position: absolute; 
    top: 8px; 
    left: 50%; 
    transform: translateX(-50%);
    width: 4px; 
    height: 10px; 
    background: var(--clr-cyan); 
    border-radius: 2px; 
    animation: scrollWheel 2s infinite;
    box-shadow: 0 0 10px var(--clr-cyan);
}
@keyframes scrollWheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/*======================================================
  BIENVENIDA
======================================================*/
.welcome-content { 
    max-width: 900px; 
    margin: 0 auto; 
    text-align: center; 
    position: relative; 
    padding-inline: var(--spacing-md);
}
.welcome-text { 
    font-size: clamp(1rem, 1.5vw, 1.1rem); 
    color: var(--app-gray); 
    margin-bottom: 1.5rem; 
    line-height: 1.8;
    position: relative;
}
.welcome-text strong { 
    color: var(--clr-blue);
    position: relative;
}

/*======================================================
  SERVICIOS
======================================================*/
/*======================================================
  SERVICIOS
======================================================*/

.services-grid{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:var(--spacing-xl);
    margin-top:var(--spacing-xl);
}

/* 3 columnas en escritorio */
.card-service{
    flex:0 0 calc((100% - (var(--spacing-xl) * 2)) / 3);
    max-width:390px;
    min-width:320px;

    background:var(--app-white);
    padding:var(--spacing-xl);
    border-radius:var(--b-rad);
    box-shadow:var(--shadow-sm);
    border:1px solid #e2e8f0;
    transition:var(--tran-soft);

    display:flex;
    flex-direction:column;
    position:relative;
    overflow:hidden;
}

.card-service::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:4px;
    background:linear-gradient(90deg,var(--clr-cyan),var(--clr-blue));
    transform:scaleX(0);
    transition:transform .3s ease;
}

.card-service:hover::before{
    transform:scaleX(1);
}

.card-service:hover{
    transform:translateY(-8px);
    border-color:var(--clr-cyan);
    box-shadow:
        var(--shadow-metal),
        0 0 30px rgba(6,182,212,.15);
}

/*============================
 ICONO
============================*/

.card-icon{
    width:75px;
    height:75px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:16px;
    font-size:2rem;
    margin-bottom:1.5rem;
    transition:transform .3s ease;
}

.card-icon svg{
    width:42px;
    height:42px;
}

.card-service:hover .card-icon{
    transform:scale(1.08) rotate(5deg);
}

.card-icon.c-cyan{
    background:linear-gradient(135deg,
        rgba(6,182,212,.15),
        rgba(8,145,178,.10));
    color:var(--clr-cyan-dim);
    box-shadow:inset 0 0 20px rgba(6,182,212,.10);
}

.card-icon.c-blue{
    background:linear-gradient(135deg,
        rgba(30,64,175,.15),
        rgba(30,58,138,.10));
    color:var(--clr-blue);
    box-shadow:inset 0 0 20px rgba(30,64,175,.10);
}

.card-icon.c-dark{
    background:linear-gradient(135deg,
        rgba(15,23,42,.15),
        rgba(30,41,59,.10));
    color:var(--app-dark);
    box-shadow:inset 0 0 20px rgba(15,23,42,.10);
}

/*============================
 TEXTO
============================*/

.card-service h3{
    font-size:clamp(1.2rem,2vw,1.35rem);
    margin-bottom:.8rem;
    color:var(--app-text);
}

.card-service p{
    color:var(--app-gray);
    font-size:.95rem;
    line-height:1.6;
    margin-bottom:1.5rem;
    flex-grow:1;
}

/*============================
 TABLET
============================*/

@media (max-width:992px){

    .card-service{
        flex:0 0 calc((100% - var(--spacing-xl))/2);
        max-width:480px;
    }

}

/*============================
 CELULAR
============================*/

@media (max-width:640px){

    .card-service{
        flex:1 1 100%;
        max-width:100%;
        min-width:0;
    }

}
.service-features { margin-top: auto; }
.service-features li { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 0.9rem; 
    color: var(--app-text); 
    margin-bottom: 10px; 
    font-weight: 500;
    transition: transform 0.2s;
}
.service-features li:hover {
    transform: translateX(5px);
}
.service-features li i { 
    color: var(--clr-cyan); 
    font-size: 0.85rem;
    filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.5));
}

/*======================================================
  HISTORIA CON ILUMINACIÓN AMBIENTAL ANIMADA
======================================================*/
.history {
    position: relative;
}
.history-ambient-glow {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 600px 400px at 20% 30%, rgba(6, 182, 212, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 500px 350px at 80% 70%, rgba(30, 64, 175, 0.15) 0%, transparent 70%);
    animation: ambientGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}
@keyframes ambientGlow {
    0% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 1;
    }
    100% { 
        transform: translate(-20px, 30px) scale(0.95);
        opacity: 0.7;
    }
}

.history .container {
    position: relative;
    z-index: 1;
}

.history-title-animated {
    position: relative;
    display: inline-block;
    color: #ffffff !important;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0),
        0 0 20px rgba(6, 182, 212, 0.4);
}

@keyframes titleLightBeam {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.history-narrative { 
    max-width: 900px; 
    margin: 0 auto var(--spacing-2xl); 
    text-align: center;
    position: relative;
    padding-inline: var(--spacing-sm);
}
.history-lead { 
    font-size: clamp(1.1rem, 1.5vw, 1.2rem); 
    color: #e2e8f0; 
    line-height: 1.8; 
    margin-bottom: 1.8rem;
    font-weight: 500;
}
.history-narrative p { 
    color: #cbd5e1; 
    font-size: clamp(1rem, 1.3vw, 1.05rem); 
    line-height: 1.85; 
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 20px;
    text-align: left;
}
.history-narrative p::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--clr-cyan);
    font-weight: bold;
}
.history-narrative strong { 
    color: var(--clr-cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* Galería Historia */
.history-gallery {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); 
    gap: var(--spacing-md);
    position: relative;
}
.history-img-item {
    position: relative; 
    border-radius: var(--b-rad); 
    overflow: hidden; 
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md); 
    border: 2px solid #334155; 
    transition: var(--tran-soft);
}
.history-img-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(30, 64, 175, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.history-img-item:hover { 
    transform: translateY(-8px) scale(1.02); 
    border-color: var(--clr-cyan);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.3), 0 0 0 1px var(--clr-cyan);
}
.history-img-item:hover::after {
    opacity: 1;
}
.history-img-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s ease, filter 0.3s;
    filter: grayscale(20%);
}
.history-img-item:hover img { 
    transform: scale(1.1);
    filter: grayscale(0%);
}
.history-img-caption {
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.98), rgba(15,23,42,0.7), transparent);
    color: white; 
    padding: 2.5rem 1rem 1rem; 
    font-size: 0.85rem; 
    font-weight: 600; 
    text-align: center;
    border-top: 1px solid rgba(6, 182, 212, 0.3);
}

/*======================================================
  NOSOTROS / VALORES
======================================================*/
.layout-dual { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: var(--spacing-2xl); 
    align-items: center;
}
.about-data h2 { 
    font-size: clamp(1.8rem, 3vw, 2.2rem); 
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--clr-blue) 0%, var(--clr-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.about-data p { 
    color: var(--app-gray); 
    margin-bottom: 1.3rem; 
    font-size: 1.05rem; 
    line-height: 1.75;
}
.about-data strong { 
    color: var(--clr-blue);
    font-weight: 700;
}

.values-box {
    background: linear-gradient(135deg, var(--app-white) 0%, #f8fafc 100%); 
    padding: var(--spacing-lg); 
    border-radius: var(--b-rad);
    border-left: 5px solid var(--clr-blue); 
    margin: var(--spacing-lg) 0; 
    box-shadow: var(--shadow-md), inset 0 0 30px rgba(6, 182, 212, 0.05);
    position: relative;
    overflow: hidden;
}
.values-box h3 { 
    font-size: 1.2rem; 
    margin-bottom: 1.2rem; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    color: var(--clr-blue);
}
.values-box h3 i {
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5));
}
.values-list { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 1rem; 
}
.values-list li { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 0.95rem; 
    font-weight: 600;
    transition: transform 0.2s;
}
.values-list li:hover {
    transform: translateX(5px);
}
.values-list li i { 
    color: var(--clr-cyan);
    filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.4));
}

.ig-link-box { margin-top: var(--spacing-lg); }
.highlight-info { 
    font-weight: 600; 
    color: var(--app-text); 
    margin-bottom: 0.8rem; 
    font-size: 1.05rem;
}
/* Instagram: solo scale, sin glow */
.instagram-redirect { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    color: var(--clr-blue); 
    font-weight: 700; 
    font-size: 1.15rem; 
    border-bottom: 3px solid var(--clr-blue); 
    padding-bottom: 3px;
    transition: all 0.3s;
}
.instagram-redirect:hover { 
    color: var(--clr-cyan-dim); 
    border-color: var(--clr-cyan-dim);
    transform: scale(1.05);
}
.instagram-redirect i {
    font-size: 1.5rem;
}

.inserto-logo-about { 
    margin-top: var(--spacing-lg);
    position: relative;
}
.inserto-logo-about img { 
    max-width: 130px; 
    filter: grayscale(1) opacity(0.8); 
    transition: 0.4s;
    border-radius: 8px;
} 
.inserto-logo-about img:hover { 
    filter: grayscale(0) opacity(1); 
    transform: scale(1.08);
}

.img-wrapper { 
    position: relative; 
    width: 100%; 
    min-height: 480px; 
    border-radius: var(--b-rad); 
    overflow: hidden; 
    background: #000; 
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(6, 182, 212, 0.2);
}
.real-pic-side { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    position: absolute; 
    inset: 0;
    transition: transform 0.5s;
}
.img-wrapper:hover .real-pic-side {
    transform: scale(1.05);
}

/*======================================================
  POR QUÉ ELEGIRNOS
======================================================*/
.why-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); 
    gap: var(--spacing-xl); 
    margin-top: var(--spacing-xl); 
}
.why-item { 
    text-align: center; 
    padding: var(--spacing-xl) var(--spacing-lg); 
    transition: var(--tran-soft);
    border-radius: var(--b-rad);
    background: var(--app-white);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}
.why-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--clr-cyan), var(--clr-blue));
    transform: scaleX(0);
    transition: transform 0.3s;
}
.why-item:hover::before {
    transform: scaleX(1);
}
.why-item:hover { 
    transform: translateY(-8px);
    box-shadow: var(--shadow-metal);
    border-color: var(--clr-cyan);
}
.why-icon { 
    width: 70px; 
    height: 70px; 
    margin: 0 auto 1.5rem; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 50%; 
    font-size: 1.8rem;
    position: relative;
    transition: all 0.3s ease;
}
.why-item:hover .why-icon {
    transform: scale(1.15) rotate(10deg);
}
.why-icon.c-cyan { 
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(8, 145, 178, 0.1) 100%); 
    color: var(--clr-cyan);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3), inset 0 0 20px rgba(6, 182, 212, 0.1);
}
.why-icon.c-blue { 
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.15) 0%, rgba(30, 58, 138, 0.1) 100%); 
    color: var(--clr-blue);
    box-shadow: 0 0 30px rgba(30, 64, 175, 0.3), inset 0 0 20px rgba(30, 64, 175, 0.1);
}
.why-item h3 { 
    font-size: 1.2rem; 
    margin-bottom: 0.6rem;
    color: var(--app-text);
}
.why-item p { 
    color: var(--app-gray); 
    font-size: 0.95rem;
    line-height: 1.6;
}

/*======================================================
  TRABAJOS - CARRUSEL
======================================================*/
.works-carousel { 
    position: relative; 
    margin-top: var(--spacing-xl); 
    padding: 0 60px;
}
.works-track {
    display: flex; 
    gap: var(--spacing-md); 
    overflow-x: auto; 
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory; 
    padding: 1.5rem 0.5rem;
    scrollbar-width: thin; 
    scrollbar-color: var(--clr-blue) #e2e8f0;
}
.works-track::-webkit-scrollbar { height: 8px; }
.works-track::-webkit-scrollbar-track { 
    background: #e2e8f0; 
    border-radius: 4px;
}
.works-track::-webkit-scrollbar-thumb { 
    background: linear-gradient(90deg, var(--clr-blue), var(--clr-cyan)); 
    border-radius: 4px;
}

.work-item {
    flex: 0 0 auto; 
    width: min(340px, 85vw); 
    height: 260px; 
    border-radius: var(--b-rad);
    overflow: hidden; 
    scroll-snap-align: start; 
    box-shadow: var(--shadow-md);
    border: 2px solid #e2e8f0; 
    transition: var(--tran-soft); 
    background: var(--app-dark);
    position: relative;
}
.work-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(30, 64, 175, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.work-item:hover { 
    transform: translateY(-8px) scale(1.02); 
    box-shadow: var(--shadow-metal), 0 0 0 2px var(--clr-cyan); 
    border-color: var(--clr-cyan);
}
.work-item:hover::after {
    opacity: 1;
}
.work-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
    transition: transform 0.6s ease, filter 0.3s;
    filter: grayscale(10%);
}
.work-item:hover img { 
    transform: scale(1.1);
    filter: grayscale(0%);
}

.carousel-btn {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 50px; 
    height: 50px;
    border-radius: 50%; 
    background: linear-gradient(135deg, var(--clr-blue) 0%, var(--clr-blue-hover) 100%); 
    color: white; 
    border: none;
    cursor: pointer; 
    font-size: 1.2rem; 
    box-shadow: var(--shadow-lg), 0 0 20px rgba(30, 64, 175, 0.4); 
    transition: var(--tran-soft); 
    z-index: 10;
}
.carousel-btn:hover { 
    background: linear-gradient(135deg, var(--clr-cyan) 0%, var(--clr-cyan-dim) 100%);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

/*======================================================
  CONTACTO - RESPONSIVE PERFECTO
======================================================*/ 
.contact-dual-grid { 
    display: grid; 
    grid-template-columns: 1fr 1.3fr; 
    gap: var(--spacing-xl); 
    margin-top: var(--spacing-xl); 
    align-items: flex-start;
}
.direct-contact-pane {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
    min-width: 0;
}
.info-blocks { 
    display: flex; 
    flex-direction: column; 
    background: var(--app-white); 
    border: 1px solid #e2e8f0; 
    border-radius: var(--b-rad); 
    box-shadow: var(--shadow-md); 
    overflow: hidden; 
    width: 100%;
}
.border-down { border-bottom: 1px solid #e2e8f0; }
.info-box { 
    display: flex; 
    align-items: flex-start; 
    padding: var(--spacing-md); 
    gap: var(--spacing-md); 
    transition: var(--tran-soft);
    position: relative;
    width: 100%;
    min-width: 0;
}
.info-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--clr-cyan), var(--clr-blue));
    transform: scaleY(0);
    transition: transform 0.3s;
}
.info-box:hover::before {
    transform: scaleY(1);
}
.info-link:hover { 
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.05), transparent);
    padding-left: 10px;
}
.ico-call { 
    font-size: 26px; 
    min-width: 40px; 
    text-align: center; 
    margin-top: 2px;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.4));
} 
.icon-c-cyan { color: var(--clr-cyan);} 
.icon-c-blue { color: var(--clr-blue);}

.ib-data { 
    flex: 1;
    min-width: 0;
}
.ib-data h4 { 
    font-size: .8rem; 
    color: var(--app-gray); 
    margin-bottom: .4rem; 
    text-transform: uppercase; 
    font-weight: 700; 
    letter-spacing: 1px;
}
.ib-data p { 
    color: var(--app-text); 
    font-size: 1rem; 
    line-height: 1.5; 
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.email-link { 
    color: var(--clr-blue); 
    font-weight: 600;
    position: relative;
    display: inline-block;
    word-break: break-word;
}
.email-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-cyan);
    transition: width 0.3s;
}
.email-link:hover { 
    color: var(--clr-cyan-dim);
}
.email-link:hover::after {
    width: 100%;
}

.phone-dir { flex: 1; min-width: 0; }
.raw-callo-linl { 
    font-weight: 800; 
    font-size: clamp(1.1rem, 2vw, 1.3rem); 
    color: var(--app-text); 
    display: block; 
    padding-top: 3px;
    position: relative;
    transition: all 0.3s;
}
.raw-callo-linl:hover { 
    color: var(--clr-blue);
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(30, 64, 175, 0.3);
}

.map-limitador-box { 
    width: 100%; 
    height: 280px; 
    border-radius: var(--b-rad); 
    overflow: hidden; 
    border: 3px solid #e2e8f0;
    box-shadow: var(--shadow-md);
    transition: var(--tran-soft);
}
.map-limitador-box:hover {
    border-color: var(--clr-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2), var(--shadow-lg);
}
.the-google-map { 
    width: 100%; 
    height: 100%; 
    display: block;
    max-width: 100%;
}

/* Formulario */
.form-system-card { 
    background: linear-gradient(135deg, var(--app-dark) 0%, #0f172a 100%); 
    border-radius: var(--b-rad); 
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(6, 182, 212, 0.2); 
    overflow: hidden;
    position: relative;
    width: 100%;
    min-width: 0;
}
.form-system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--clr-cyan), var(--clr-blue), var(--clr-cyan));
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.form-h { 
    padding: var(--spacing-md) var(--spacing-lg); 
    background: rgba(15, 23, 42, 0.95); 
    border-bottom: 1px solid #334155;
    position: relative;
}
.form-h h3 { 
    font-size: 1.3rem; 
    margin: 0; 
    font-weight: 700; 
    color: var(--app-white);
    text-align: center;
}
.form-bdy { padding: var(--spacing-lg);}

.control-segmentation { display: flex; margin-bottom: var(--spacing-lg);}
.segment-wrap { 
    position: relative; 
    display: flex; 
    flex: 1; 
    background-color: #0b1220; 
    border-radius: var(--b-rad-sm); 
    border: 2px solid #334155; 
    padding: 5px; 
    height: 60px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.3);
}
.segment-wrap input[type="radio"] { display: none;} 
.switch-lbl { 
    flex: 1; 
    z-index: 10; 
    font-size: 1rem; 
    font-weight: 700; 
    color: #94a3b8; 
    text-align: center; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.switch-selector-backdrop { 
    position: absolute; 
    z-index: 1; 
    top: 5px; 
    bottom: 5px; 
    left: 5px; 
    width: calc(50% - 5px); 
    background: linear-gradient(135deg, #334155 0%, #475569 100%); 
    border-radius: var(--b-rad-sm); 
    transition: transform 0.4s cubic-bezier(0.15, 0.85, 0.3, 1), background-color 0.4s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

#switch-victor:checked ~ .switch-selector-backdrop { 
    transform: translateX(0); 
    background: linear-gradient(135deg, var(--clr-blue) 0%, var(--clr-blue-hover) 100%);
    box-shadow: 0 0 20px rgba(30, 64, 175, 0.5);
} 
#switch-victor:checked ~ label[for="switch-victor"] { 
    color: var(--app-white);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}
#switch-emanuel:checked ~ .switch-selector-backdrop { 
    transform: translateX(100%); 
    background: linear-gradient(135deg, var(--clr-cyan) 0%, var(--clr-cyan-dim) 100%);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}
#switch-emanuel:checked ~ label[for="switch-emanuel"] { 
    color: var(--app-dark);
    text-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.simple-input-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: var(--spacing-md); 
    margin-bottom: var(--spacing-md);
}
.margn-add { margin-bottom: var(--spacing-lg);}
.inp-ctrl label { 
    display: block; 
    font-size: .8rem; 
    font-weight: 700; 
    color: #94a3b8; 
    margin-bottom: .5rem; 
    text-transform: uppercase; 
    letter-spacing: 0.8px;
}
.required { color: var(--clr-cyan); }
.inp-ctrl input, .inp-ctrl textarea { 
    width: 100%; 
    border: 2px solid #334155; 
    border-radius: var(--b-rad-sm); 
    background: #0b1220; 
    padding: 14px 18px; 
    color: var(--app-white); 
    font-size: 1rem; 
    transition: var(--tran-soft); 
    outline: none; 
    font-family: var(--gothic);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
    min-width: 0;
}
.inp-ctrl textarea { resize: vertical; min-height: 120px; }
.inp-ctrl input::placeholder, .inp-ctrl textarea::placeholder { color: #475569; }
.inp-ctrl input:focus, .inp-ctrl textarea:focus { 
    border-color: var(--clr-cyan); 
    background: #111c33; 
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15), inset 0 2px 5px rgba(0,0,0,0.2);
}

.state-message { 
    margin-bottom: var(--spacing-md); 
    font-size: .95rem; 
    padding: 15px 20px; 
    border-radius: var(--b-rad-sm); 
    background: rgba(34, 197, 94, 0.15); 
    color: #4ade80; 
    font-weight: 600; 
    text-align: center; 
    display: none; 
    border: 2px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}
.state-message i { margin-right: 10px; }

.dual-send-actions { display: flex; flex-direction: column; gap: 1.2rem;}
.actionbtn { 
    width: 100%; 
    justify-content: center; 
    padding: 18px 28px; 
    font-size: 1.05rem;
    font-weight: 700;
}
.btn-ws { 
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); 
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
} 
.btn-ws:hover { 
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
} 
.btn-ig { 
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); 
    color: #e2e8f0; 
    border: 2px solid #334155;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
} 
.btn-ig:hover { 
    background: linear-gradient(135deg, #e1306c 0%, #c13584 100%); 
    border-color: transparent; 
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.4);
} 

.form-note { 
    text-align: center; 
    font-size: 0.85rem; 
    color: #64748b; 
    margin-top: var(--spacing-lg); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
    padding-top: 1.5rem;
    border-top: 1px solid #334155;
}
.form-note i {
    color: var(--clr-cyan);
}

/*======================================================
  FOOTER REDESIGNADO - CENTRADO Y PROFESIONAL
======================================================*/
.footer-epic { 
    background: linear-gradient(135deg, #0b1220 0%, #0f172a 100%); 
    color: #94a3b8; 
    padding-top: var(--spacing-2xl); 
    position: relative;
}
.footer-epic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-cyan), var(--clr-blue), var(--clr-cyan));
}

/* Contenedor centrado del footer */
.footer-centered-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.footer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    width: 100%;
}

.footer-divider-line {
    width: 100%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), transparent);
}

.footer-brand-linker { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin-bottom: var(--spacing-md);
    transition: transform 0.3s;
}
.footer-brand-linker:hover {
    transform: translateY(-3px);
}
.footer-logico-img { 
    width: 58px; 
    height: 58px; 
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.footer-brand-title-tx { 
    font-size: clamp(1.5rem, 3vw, 1.7rem); 
    color: var(--app-white); 
    font-weight: 900; 
    letter-spacing: -0.5px; 
    line-height: 1,5;
    background: linear-gradient(135deg, var(--app-white) 0%, var(--clr-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* ===========================
   LOGO / MARCA FOOTER
=========================== */

.footer-brandO-linker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--spacing-md);
    transition: transform .3s ease;
}

.footer-brandO-linker:hover {
    transform: translateY(-3px);
}

.footer-brandO-title-tx {
    font-size: clamp(2rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--app-white);

    background: linear-gradient(
        135deg,
        var(--app-white) 0%,
        var(--clr-cyan) 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   TABLETS
=========================== */

@media (max-width: 992px) {

    .footer-brandO-linker{
        gap: 10px;
    }

    .footer-brandO-title-tx{
        font-size: clamp(2rem, 7vw, 4rem);
        line-height: 1.2;
    }

}

/* ===========================
   CELULARES
=========================== */

@media (max-width: 768px){

    .footer-brandO-linker{
        justify-content: center;
        text-align: center;
        gap: 8px;
    }

    .footer-brandO-title-tx{
        font-size: clamp(1.8rem, 9vw, 3rem);
        line-height: 1.2;
        letter-spacing: -0.3px;
    }

}

/* ===========================
   CELULARES PEQUEÑOS
=========================== */

@media (max-width: 480px){

    .footer-brandO-linker{
        flex-direction: column;
        gap: 6px;
    }

    .footer-brandO-title-tx{
        font-size: clamp(1.6rem, 10vw, 2.4rem);
        line-height: 1.25;
        text-align: center;
    }

}
.footer-resume-text { 
    color: #64748b; 
    font-size: clamp(0.9rem, 1.2vw, 0.95rem); 
    line-height: 1.7; 
    max-width: 500px; 
    margin-bottom: var(--spacing-md);
}

.footer-social { 
    display: flex; 
    gap: 1rem;
    justify-content: center;
}
.social-link { 
    width: 44px; 
    height: 44px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); 
    border-radius: 50%; 
    color: white; 
    font-size: 1.2rem; 
    transition: var(--tran-soft);
    border: 2px solid #334155;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.social-link:hover { 
    background: linear-gradient(135deg, var(--clr-blue) 0%, var(--clr-cyan) 100%); 
    transform: translateY(-5px) scale(1.1);
    border-color: var(--clr-cyan);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}

.f-titles-x { 
    font-size: .9rem; 
    margin-bottom: var(--spacing-md); 
    font-weight: 700; 
    text-transform: uppercase; 
    color: var(--clr-cyan); 
    letter-spacing: 1.2px;
    position: relative;
    display: inline-block;
}
.f-titles-x::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-cyan), var(--clr-blue));
    border-radius: 2px;
}

.f-lista-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm) var(--spacing-md);
    list-style: none;
}
.f-lista-links li { margin: 0;}
.f-lista-links a { 
    color: #94a3b8; 
    font-size: .95rem; 
    font-weight: 500; 
    display: inline-block; 
    transition: var(--tran-fast);
    position: relative;
    padding: 4px 0;
}
.f-lista-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--clr-cyan), var(--clr-blue));
    transition: width 0.3s ease;
}
.f-lista-links a:hover { 
    color: var(--app-white);
}
.f-lista-links a:hover::after {
    width: 100%;
}

.f-lista-contacto-pulcra { 
    display: flex; 
    flex-direction: column; 
    gap: var(--spacing-sm);
    align-items: center;
    width: 100%;
}
.contacto-link-item { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px;
    color: #cbd5e1; 
    transition: var(--tran-fast); 
    padding: 8px 16px; 
    font-size: 0.95rem;
    position: relative;
    border-radius: var(--b-rad-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    width: auto;
    max-width: 100%;
}
/* Hover elegante: fondo sutil + desplazamiento, sin línea invasiva */
.contacto-link-item:hover { 
    color: var(--clr-cyan); 
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.2);
    transform: translateY(-2px);
}
.fc-ico { 
    width: 24px; 
    min-width: 24px; 
    font-size: 1.1rem; 
    display: inline-block;
    text-align: center;
}
.cyan-acc { color: var(--clr-cyan);}
.blue-acc { color: var(--clr-blue-light);}
.green-acc { color: #25d366;}

.footer-epic-bottom { 
    border-top: 1px solid #1e293b; 
    background: rgba(8, 13, 24, 0.8); 
    width: 100%;
    position: relative;
}
.fb-bottom-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1.8rem 0; 
    gap: 1.5rem;
    flex-wrap: wrap;
}
.fb-copyright p { 
    font-size: .85rem; 
    color: #475569;
    font-weight: 500;
}

.fb-credits-thv { 
    display: flex; 
    align-items: center; 
    gap: .6rem;
}
.fb-disenado { 
    font-size: .85rem; 
    color: #64748b;
    font-weight: 500;
}
.footer__credits-link { 
    display: inline-flex; 
    align-items: center; 
    background: linear-gradient(135deg, #11151b 0%, #1e293b 100%); 
    padding: 6px 14px; 
    border-radius: 50px; 
    font-size: .85rem; 
    font-weight: 700; 
    color: #fff; 
    gap: 8px; 
    border: 1px solid #1e293b; 
    transition: var(--tran-soft);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.footer__credits-link:hover { 
    border-color: var(--clr-cyan); 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}
.footer__credits-logo { 
    width: 18px; 
    height: 18px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

/*======================================================
  WIDGET FLOTANTE - MINIMALISTA Y ELEGANTE
======================================================*/ 
.floating-controls-docked { 
    position: fixed; 
    bottom: 35px; 
    right: 35px; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    z-index: 10000;
}

.flooter__circbt { 
    width: 56px; 
    height: 56px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    color: white; 
    border: none; 
    cursor: pointer; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.flooter__circbt i { 
    font-size: 24px;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ✨ HOVER GLOBAL - Escala suave */
.flooter__circbt:hover { 
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.flooter__circbt:hover i {
    transform: scale(1.2);
}

/* ✨ Efecto de brillo en hover */
.flooter__circbt::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: 1;
}

.flooter__circbt:hover::before {
    width: 120%;
    height: 120%;
}

/* Animación de aparición del botón */
.pointer-btnxtrxxc { 
    pointer-events: none; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(30px) scale(0.8);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}   

.btn-fx__oroop.visible.pointer-btnxtrxxc { 
    pointer-events: all; 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0) scale(1);
}

/* Botón volver arriba - CORREGIDO */
.btn-fx__oroop { 
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border: 2px solid rgba(255,255,255,0.15);
    box-shadow: 
        0 4px 15px rgba(100, 116, 139, 0.3),
        0 0 0 1px rgba(255,255,255,0.1) inset,
        0 0 30px rgba(100, 116, 139, 0.3),
        0 0 0 0 rgba(100, 116, 139, 0.5);
    
}

/* ✨ HOVER - Pausar animación y aplicar escala */
.btn-fx__oroop:hover {
    animation-play-state: paused; /* ✨ DETIENE la animación */
    background: linear-gradient(135deg, #1e40af 0%, #06b6d4 100%);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 
        0 12px 35px rgba(6, 182, 212, 0.5),
        0 0 0 1px rgba(255,255,255,0.2) inset,
        0 0 40px rgba(6, 182, 212, 0.4);
    transform: scale(1.15) !important; /* ✨ Fuerza el scale */
}

.btn-fx__oroop:hover i {
    animation: bounceArrow 0.6s ease;
    transform: scale(1.2);
}

/* ✨ Animación de pulso expansivo */
@keyframes pulseSoftBackToTop {
    0%, 100% { 
        box-shadow: 
            0 4px 15px rgba(100, 116, 139, 0.3),
            0 0 0 1px rgba(255,255,255,0.1) inset,
            0 0 30px rgba(100, 116, 139, 0.3),
            0 0 0 0 rgba(100, 116, 139, 0.5);
    }
    50% { 
        box-shadow: 
            0 4px 15px rgba(100, 116, 139, 0.3),
            0 0 0 1px rgba(255,255,255,0.1) inset,
            0 0 30px rgba(100, 116, 139, 0.3),
            0 0 0 15px rgba(100, 116, 139, 0);
    }
}

/* ✨ Animación del icono al hacer hover */
@keyframes bounceArrow {
    0%, 100% { transform: translateY(0) scale(1.2); }
    50% { transform: translateY(-4px) scale(1.2); }
}

/* Botón WhatsApp - CORREGIDO */
.btn-fx__wsgereennf { 
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: 2px solid rgba(255,255,255,0.15);
    box-shadow: 
        0 4px 15px rgba(37, 211, 102, 0.3),
        0 0 0 1px rgba(255,255,255,0.1) inset,
        0 0 30px rgba(37, 211, 102, 0.3),
        0 0 0 0 rgba(37, 211, 102, 0.5);
    animation: pulseSoft 3s ease-in-out infinite;
}

/* ✨ HOVER - Pausar animación y aplicar escala */
.btn-fx__wsgereennf:hover {
    animation-play-state: paused; /* ✨ DETIENE la animación */
    background: linear-gradient(135deg, #20bd5a 0%, #0f7a6e 100%);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 
        0 12px 35px rgba(37, 211, 102, 0.5),
        0 0 0 1px rgba(255,255,255,0.2) inset,
        0 0 40px rgba(37, 211, 102, 0.4);
    transform: scale(1.15) !important; /* ✨ Fuerza el scale */
}

.btn-fx__wsgereennf:hover i {
    animation: wiggle 0.5s ease;
    transform: scale(1.2);
}

/* ✨ Animación de pulso expansivo */
@keyframes pulseSoft {
    0%, 100% { 
        box-shadow: 
            0 4px 15px rgba(37, 211, 102, 0.3),
            0 0 0 1px rgba(255,255,255,0.1) inset,
            0 0 30px rgba(37, 211, 102, 0.3),
            0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    50% { 
        box-shadow: 
            0 4px 15px rgba(37, 211, 102, 0.3),
            0 0 0 1px rgba(255,255,255,0.1) inset,
            0 0 30px rgba(37, 211, 102, 0.3),
            0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* ✨ Animación del icono al hacer hover */
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg) scale(1.2); }
    25% { transform: rotate(-8deg) scale(1.2); }
    75% { transform: rotate(8deg) scale(1.2); }
}

/* Responsive */
@media (max-width: 992px) {
    .floating-controls-docked { 
        bottom: 25px; 
        right: 25px; 
    }
    .flooter__circbt { 
        width: 52px; 
        height: 52px; 
    }
    .flooter__circbt i {
        font-size: 22px;
    }
}
/*======================================================
  RESPONSIVE - TABLET (max-width: 992px)
======================================================*/
@media (max-width: 992px) {
    html { 
        scroll-padding-top: 70px; 
    }
    
    .header-container { 
        height: 70px; 
    }
    
    .hero { 
        margin-top: 70px; 
    }
    
    /* Menú móvil - estructura completa */
    .nav-menu { 
        position: fixed; 
        top: 0; 
        right: -100%; 
        width: min(85vw, 400px); 
        height: 100vh; 
        height: 100dvh;
        background: linear-gradient(135deg, var(--app-dark) 0%, #0f172a 100%);
        z-index: 10000; 
        padding-top: 100px; 
        transition: right 0.4s ease; 
        box-shadow: -20px 0 50px rgba(0,0,0,0.75);
        overflow-y: auto;
    }
    
    .menu-toggle { 
        display: block;
    }
    
    .nav-menu.active { 
        right: 0;
    }
    
    .nav-list { 
        flex-direction: column; 
        padding: 0 var(--spacing-lg); 
        text-align: left; 
        gap: var(--spacing-md); 
        align-items: stretch;
    }
    
    .nav-link { 
        color: var(--app-white); 
        font-size: 1.35rem; 
        font-weight: 600; 
        width: 100%;
        padding: 8px 0;
    }
    
    .nav-link:hover { 
        padding-left: 12px; 
        color: var(--clr-cyan);
    }
    
    .btn-menu-box { 
        margin: var(--spacing-md) 0 0 0; 
        width: 100%; 
        padding-top: var(--spacing-md); 
        border-top: 2px solid #334155;
    }
    
    .btn-nav { 
        font-size: 1.15rem; 
        width: 100%; 
        text-align: center; 
        padding: 18px 28px;
        background: linear-gradient(135deg, var(--clr-blue) 0%, var(--clr-blue-hover) 100%);
        border: 2px solid var(--clr-blue);
        border-radius: var(--b-rad-sm); 
        display: block; 
        font-weight: 700;
        text-transform: uppercase; 
        letter-spacing: 0.8px; 
        color: white;
        box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4);
    }
    
    .btn-nav:hover { 
        background: transparent; 
        color: var(--clr-cyan); 
        border-color: var(--clr-cyan);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
    }
    
    /* Layouts a 1 columna */
    .layout-dual, 
    .contact-dual-grid { 
        grid-template-columns: 1fr; 
        gap: var(--spacing-xl);
    } 
    
    .history-gallery { 
        grid-template-columns: repeat(2, 1fr); 
        gap: var(--spacing-md);
    }
    
    .works-carousel { 
        padding: 0 var(--spacing-sm); 
    }
    
    .carousel-btn { 
        display: none; 
    }
    
    .work-item { 
        width: min(300px, 85vw); 
        height: 230px; 
    }
    
    .values-list { 
        grid-template-columns: 1fr; 
    }
    
    /* Widget flotante */
    .floating-controls-docked { 
        bottom: 25px; 
        right: 25px; 
    }
    
    .flooter__circbt { 
        width: 52px; 
        height: 52px; 
    }
    
    /* Footer responsive */
    .footer-brandO-linker {
        gap: 10px;
    }

    .footer-brandO-title-tx {
        font-size: clamp(2rem, 7vw, 4rem);
        line-height: 1.2;
    }
}

/*======================================================
  RESPONSIVE - MÓVIL (max-width: 768px)
======================================================*/
@media (max-width: 768px) {
    .container {
        padding-inline: clamp(1rem, 4vw, 1.5rem);
    }
    
    .section-spacing {
        padding: clamp(2.5rem, 6vw, 4rem) 0;
    }
    
    .hero {
        height: clamp(500px, 70vh, 700px);
    }
    
    .hero-content {
        padding-inline: var(--spacing-sm);
    }
    
    .history-gallery { 
        grid-template-columns: 1fr; 
        gap: var(--spacing-sm);
    }
    
    .history-img-item {
        aspect-ratio: 16/10;
    }
    
    .img-wrapper {
        min-height: 350px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .card-service {
        padding: var(--spacing-lg);
    }
    
    .why-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }
    
    .why-item {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .form-bdy {
        padding: var(--spacing-md);
    }
    
    .map-limitador-box {
        height: 250px;
    }
    
    /* Footer móvil */
    .footer-brandO-linker {
        justify-content: center;
        text-align: center;
        gap: 8px;
    }

    .footer-brandO-title-tx {
        font-size: clamp(1.8rem, 9vw, 3rem);
        line-height: 1.2;
        letter-spacing: -0.3px;
    }
    
    .footer-centered-wrapper {
        gap: var(--spacing-lg);
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .footer-block {
        max-width: 100%;
    }
    
    .f-lista-links {
        gap: var(--spacing-sm) var(--spacing-md);
    }
    
    .f-lista-contacto-pulcra {
        gap: var(--spacing-xs);
    }
    
    .contacto-link-item {
        width: 100%;
        justify-content: center;
    }
}

/*======================================================
  RESPONSIVE - MÓVIL PEQUEÑO (max-width: 520px)
======================================================*/
@media (max-width: 520px) { 
    .section-spacing { 
        padding: var(--spacing-2xl) 0; 
    }
    
    .simple-input-grid {
        grid-template-columns: 1fr; 
    } 
    
    .form-bdy { 
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .logo-ayf { 
        font-size: 1rem; 
    }
    
    .header-logo-icon,
    .footer-logico-img { 
        width: 42px; 
        height: 42px; 
    }
    
    .footer-brand-title-tx { 
        font-size: 1.4rem; 
    }
    
    .hero-buttons { 
        flex-direction: column; 
        width: 100%; 
        padding: 0 var(--spacing-md);
    }
    
    .hero-buttons .btn { 
        width: 100%; 
    }
    
    .hero-epic-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        padding: 0 var(--spacing-md);
    }
    
    .section-title h2 {
        font-size: clamp(1.6rem, 5vw, 1.8rem);
    }
    
    .section-title .subtitle-text {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }
    
    .fb-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .f-lista-links {
        gap: var(--spacing-xs) var(--spacing-sm);
    }
    
    .contacto-link-item {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .why-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .card-icon {
        width: 65px;
        height: 65px;
        font-size: 1.75rem;
    }
    
    .card-service h3 {
        font-size: clamp(1.1rem, 4vw, 1.25rem);
    }
    
    .values-box {
        padding: var(--spacing-md);
    }
    
    .values-box h3 {
        font-size: 1.1rem;
    }
    
    .instagram-redirect {
        font-size: 1rem;
    }
    
    .segment-wrap {
        height: 50px;
    }
    
    .switch-lbl {
        font-size: 0.85rem;
    }
    
    .inp-ctrl input,
    .inp-ctrl textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    .actionbtn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

/*======================================================
  RESPONSIVE - MÓVIL MUY PEQUEÑO (max-width: 380px)
======================================================*/
@media (max-width: 380px) {
    .container {
        padding-inline: 1rem;
    }
    
    .hero {
        height: clamp(450px, 65vh, 600px);
    }
    
    .hero-epic-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .card-service {
        padding: var(--spacing-md);
    }
    
    .info-box {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }
    
    .ico-call {
        font-size: 22px;
        min-width: 32px;
    }
    
    .segment-wrap {
        height: 48px;
    }
    
    .switch-lbl {
        font-size: 0.8rem;
    }
    
    .footer-brandO-linker {
        flex-direction: column;
        gap: 6px;
    }

    .footer-brandO-title-tx {
        font-size: clamp(1.6rem, 10vw, 2.4rem);
        line-height: 1.25;
        text-align: center;
    }
    
    .floating-controls-docked {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    
    .flooter__circbt {
        width: 48px;
        height: 48px;
    }
    
    .flooter__circbt i {
        font-size: 20px;
    }
    
    .form-h h3 {
        font-size: 1.15rem;
    }
    
    .form-note {
        font-size: 0.8rem;
    }
}

/*======================================================
  RESPONSIVE - MÓVIL EXTRA PEQUEÑO (max-width: 320px)
======================================================*/
@media (max-width: 320px) {
    .container {
        padding-inline: 0.75rem;
    }
    
    .hero-epic-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    
    .section-title h2 {
        font-size: clamp(1.4rem, 5vw, 1.6rem);
    }
    
    .card-service {
        padding: var(--spacing-sm);
    }
    
    .card-service h3 {
        font-size: 1.05rem;
    }
    
    .card-service p {
        font-size: 0.9rem;
    }
    
    .service-features li {
        font-size: 0.85rem;
    }
    
    .why-item {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .why-item h3 {
        font-size: 1.05rem;
    }
    
    .why-item p {
        font-size: 0.9rem;
    }
    
    .info-box {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .ico-call {
        margin-top: 0;
    }
}