:root {
  --primary: #002654;
  --accent: #ff5500;
  --brand-dark: #333333;
  --text: #f8fafc;
  --vh: 1vh;
  --surface: #0b1f3f;
  --glass: rgba(0,38,84,0.15);
  --blur: blur(30px) saturate(170%);
  --shadow: 0 6px 16px rgba(0,0,0,0.35);
  --radius: 14px;
  --transition: 0.3s ease;
  --header-height: 120px;
  --header-height-scrolled: 120px;
  --nav-height: 0px;
  --section-gap: clamp(1.5rem, 3vw, 2.5rem);
  --ring: 0 0 0 3px rgba(255,255,255,0.15);
  --glass-strong: rgba(0,38,84,0.3);
}

/* RESET */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  font-family: 'Poppins', 'Roboto', 'Roboto Slab', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--primary) url('imagenes/FONDOFINAL.webp') center/cover fixed;
  color: var(--text); 
  min-height: 100vh;
  line-height: 1.6;
  padding-top: calc(var(--header-height) + var(--nav-height));
  transition: padding-top 0.3s ease;
  -webkit-text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;

}
/* Instagram WebView: evitar background fixed */
.instagram-browser {
  background-attachment: scroll;
}

/* iOS Safari: evitar background fixed */
@supports (-webkit-touch-callout: none) {
  body {
    background-attachment: scroll;
  }
}

/* Focus accesible */
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 10px;
}
body::before {
  content:"";
  position: fixed;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.75));
  z-index:-1;
}
body.header-scrolled {
  padding-top: calc(var(--header-height-scrolled) + var(--nav-height));
}
/* HEADER */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: calc(18px + env(safe-area-inset-top)) 5% 18px;
  background: linear-gradient(180deg, rgba(2, 12, 28, 0.6), rgba(0,0,0,0.4));
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  min-height: 70px;
}

.overlay { display: none; }

@media(min-width:1080px){
  :root {
    --nav-height: 0px;
  }
  .header {
    display: grid;
    grid-template-columns: auto 1fr auto;
  }
  .header-left { justify-self: start; }
  .nav {
    position: static;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .nav a {
    background: #ffffff;
    color: var(--brand-dark);
    border: 2px solid var(--brand-dark);
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
    line-height: 1.2;
  }
  .nav a:hover,
  .nav a.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    transform: translate(-1px, -1px);
  }
  .header-right { justify-self: end; }
}



.header.scrolled {
  height: var(--header-height);
  padding: calc(18px + env(safe-area-inset-top)) 5% 18px;
  background: linear-gradient(180deg, rgba(2, 12, 28, 0.6), rgba(0,0,0,0.4));
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

/* Instagram WebView: ajustes de layout */
.instagram-browser {
  min-height: -webkit-fill-available;
  height: auto;
}
.instagram-browser .header {
  position: sticky;
  top: 0;
}
.instagram-browser .hamburger {
  position: absolute;
}
.instagram-browser .nav {
  position: absolute;
  height: calc(var(--vh, 1vh) * 100);
}

/* Instagram WebView: aviso "abrir en navegador" */
.instagram-banner {
  display: none;
}
.instagram-browser .instagram-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  background: rgba(2, 12, 28, 0.92);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  z-index: 1300;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.instagram-browser .instagram-text {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  white-space: nowrap;
}
.instagram-browser .instagram-close {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.1rem 0.3rem;
}
.instagram-browser .legal-page {
  min-height: auto;
}

/* Instagram WebView: fallback sin blur */
.instagram-browser .header,
.instagram-browser .header.scrolled,
.instagram-browser .catalogo-section,
.instagram-browser #portafolio,
.instagram-browser .info-section,
.instagram-browser .servicio-slide,
.instagram-browser .info-card,
.instagram-browser .about-card,
.instagram-browser .modal-contenido {
  background: rgba(2, 12, 28, 0.9);
  border: 1px solid rgba(255,255,255,0.12);
}








.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  gap: 0.25rem;
}

.logo img { height: 56px; width: auto; max-width: 100%; object-fit: contain; aspect-ratio: 851 / 221; transition: height 0.3s ease, filter 0.3s ease; }
.logo:hover img { filter: drop-shadow(0 6px 14px rgba(255,255,255,0.18)); }
@media(min-width:769px){
  .header.scrolled .logo img {height: 56px;}
}

.logo-location {
  font-size: 0.9rem;     /* tamaño del label */
  color: rgba(255,255,255,0.85);
  font-weight: 500;       /* semi-bold */
  margin-top: 0.2rem;     /* espacio pequeño debajo del logo */
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display:flex;
  gap: 0.3rem;
  justify-content: center;
  flex: 1;
}
.nav a {
  color: #eaf1ff;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  transition: var(--transition);
  background: #0b1f3f;
  border: 1px solid rgba(255,255,255,0.18);
  min-width: 92px;
  text-align: center;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 500;
  font-size: 0.78rem;
}
.nav a:hover, .nav a.active {
  background: var(--accent);
  color: #ffffff;
  border-color: #ff6a24;
  box-shadow: none;
  transform: none;
}

.header-right { display:flex; gap:0.7rem; align-items:center; }

.social-icon, .redes {
  display:inline-flex; justify-content:center; align-items:center;
  color:white; font-size:1.8rem; margin:0 0.6rem; transition: transform 0.3s, color 0.3s;text-decoration: none; 
}

/* LEGAL */
.legal-page {
  min-height: 100vh;
}
.legal-content {
  padding: clamp(2.5rem, 4vw, 4.5rem) 5%;
  max-width: 1100px;
  margin: 0 auto;
}
.legal-card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 3vw, 3rem);
  color: var(--text);
}
.legal-card h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  text-align: center;
  margin-bottom: 0.5rem;
}
.legal-lead {
  text-align: center;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
}
.legal-card h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: var(--accent);
  margin: 1.8rem 0 0.6rem;
}
.legal-card p {
  margin: 0 0 1rem;
  color: rgba(255,255,255,0.9);
}
.legal-card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.legal-card a:hover,
.legal-card a:focus-visible {
  text-decoration: underline;
}


.header.scrolled .header-right { display: flex; }

.social-icon:hover { transform: translateY(-3px) scale(1.2); color: var(--accent); }

/* HAMBURGER */
#menu-toggle { display:none; }
.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; position: absolute; top: 20px; left: 20px; right: auto; z-index: 1000;  }
.hamburger span { display:block; width:30px; height:4px; background:#fff; border-radius:6px; transition:0.3s; box-shadow: none; }
.header.scrolled .hamburger { top: 25px;}
.hamburger:hover span { background: var(--accent); }

/* MEDIA QUERIES HEADER */
@media(max-width:1400px){
  .nav { gap: 0.45rem; }
  .nav a { min-width: 88px; font-size: 0.76rem; padding: 0.38rem 0.7rem; }
}

@media(max-width:1200px){
  .nav { gap: 0.45rem; }
  .nav a { min-width: 84px; font-size: 0.74rem; padding: 0.36rem 0.65rem; }
}

@media(max-width:900px){
  .header { padding: 16px 4%; }
  .logo img { height: 50px; }
  .header-right .social-icon { font-size: 1.8rem; margin: 0 0.4rem; }
}

@media(max-width:1079px){
  .logo-location { display: none; }
  .header { padding-left: 3.2rem; }
  .header-left { flex: 1; display:flex; justify-content:center; }
  .header-right { flex: 1; display:flex; justify-content:center; }
  .nav { position:absolute; top:100%; left:0; right:0; background: #101418;
        flex-direction:column; display:none; padding:1.2rem 1.6rem; gap:0.6rem; z-index:2000;
        border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 10px 24px rgba(0,0,0,0.35); }
  .nav a { min-width: auto; }
  #menu-toggle:checked ~ .nav { display:flex; }
  .hamburger { display:flex; z-index: 2200; }
  #menu-toggle:checked ~ .hamburger span:nth-child(1){ transform: rotate(45deg) translate(5px,5px);}
  #menu-toggle:checked ~ .hamburger span:nth-child(2){ opacity:0;}
  #menu-toggle:checked ~ .hamburger span:nth-child(3){ transform: rotate(-45deg) translate(5px,-5px);}
}


@media(max-width:768px){
  :root {
    --header-height: 70px;
    --header-height-scrolled: 70px;
  }
  .header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0.6rem 0.3rem 3.2rem;
    gap: 0.2rem;
    height: var(--header-height);
  }
  .header.scrolled { height: var(--header-height-scrolled); padding: 0.25rem 0.6rem 0.25rem 3.2rem; }
  .header-left {
    width:auto;
    display:flex;
    justify-content:center;
    margin-bottom:0;
  }
  .logo { align-items: center; }
  .logo img { height: calc(var(--header-height) * 0.75); }
  .header.scrolled .logo img { height: calc(var(--header-height) * 0.75) !important; }
  .logo-location {
    display: none;
  }
  .header-right {
    width: auto;
    justify-content: center;
    align-items: center;
    margin: 0;
    gap: 0.35rem;
    display: flex;
    position: relative;
    z-index: 1102;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  .header.scrolled .header-right {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .header-right .social-icon { font-size: 1.1rem; margin: 0 0.18rem; }
  .hamburger {
    position: absolute;
    top: 50%;
    left: 0.7rem;
    transform: translateY(-50%);
    z-index:2200;
  }
  .header.scrolled .hamburger { top: 50%; transform: translateY(-50%); }
  .nav { 
    position: fixed;
    top:0;
    left:25%;
    width:75%;
    height:100vh;
    height: calc(var(--vh, 1vh) * 100);
    background: #101418;
    flex-direction:column;
    padding-top:5.5rem;
    gap:0.8rem;
    transition:left 0.3s;
    z-index:2000;
    justify-content:flex-start; align-items:center;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: none;
  }

  #menu-toggle:checked ~ .nav { left:0; }
  .nav a {
    font-size:0.82rem;
    padding:0.45rem 0.85rem;
    width: 85%;
    text-align:center;
    border-radius: 8px;
    letter-spacing: 0.01em;
    text-transform: none;
    font-weight: 500;
    background: #0b1f3f;
    color: #eaf1ff;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  }
  .nav a:hover,
  .nav a.active {
    background: var(--accent);
    color: #ffffff;
    box-shadow: none;
    border-color: #ff6a24;
  }
  .nav a:hover { transform: none; }
  .nav a.active { background: var(--accent); }
  .header-right { flex-wrap:wrap; justify-content:center; margin-top:0.1rem; }
  .overlay { position:fixed; top:0; left:0; width:100%; height:100vh; height: calc(var(--vh, 1vh) * 100); background: rgba(0,0,0,0.559);
            z-index:1990; opacity:0; pointer-events:none; transition:opacity 0.3s; display:block; }
  #menu-toggle:checked ~ .overlay { opacity:1; pointer-events:auto; }
}

@media(max-width:520px){
  .logo img { height: calc(var(--header-height) * 0.75); }
  .logo-location { font-size: 0.75rem; letter-spacing: 0.06em; }
  .header-right { gap: 0.5rem; }
  .header-right .social-icon { font-size: 1.1rem; }
  .nav a { width: 90%; }
}


/* HERO */
.panel.catalogo, #portafolio .catalogo{
  display:flex; flex-wrap:wrap; gap:2rem; justify-content:center;
  
}



/* TÍTULO */
#inicio .hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);  /* se adapta desde móvil hasta escritorio */
  line-height: clamp(2.2rem, 6.5vw, 4.5rem);
  font-weight: 800;
  color: var(--text);
  text-align: center;
  text-shadow: 0 3px 12px rgba(0,0,0,0.55); 
  margin-bottom: 0;
  /* elegante, estilo 2026 */
}

/* SUBTÍTULO */
#inicio .hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  line-height: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  max-width: 700px; 
  margin: 0 auto;
}

#inicio .hero-lead {
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 0.6rem auto 0;
}
.badge {
  padding: 0.45rem 1rem;
  border-radius: 12px;
  background: #ffffff;
  border: 2px solid var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-dark);
  box-shadow: 2px 2px 0 var(--brand-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}
.badge i {
  margin-right: 0.45rem;
  font-size: 0.9rem;
  opacity: 1;
}
.badge:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--brand-dark);
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0;
}

/* RESPONSIVE FINO */
@media (max-width: 480px) {
   #inicio .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
    line-height: clamp(2rem, 7.5vw, 3.2rem);
    text-align: center;
  }
  #inicio .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.4rem);
     line-height: clamp(2rem, 7.5vw, 3.2rem);
     text-align: center;
  }
}





/* MEDIA QUERIES */
@media(max-width:768px){
  .panel.catalogo, #portafolio .catalogo { gap:1rem; }
  .producto, #portafolio .producto { flex:1 1 45%; }
  .catalogo-section, #portafolio { max-width:94%; }
}
@media(max-width:480px){
  .producto, #portafolio .producto { flex:1 1 90%; }
}


/* SECCIONES */
.section { padding: clamp(2rem, 4vw, 5rem) 5%; display:block; width: 100%; scroll-margin-top: var(--header-height); margin: 0 auto;  /* Centrado total */
  
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* empuja contenido hacia arriba */
  text-align: center;           /* centra textos */
  gap: clamp(1.5rem, 2.5vw, 3rem); /* espacio uniforme entre elementos */ 
  position: relative;
}

/* Separador sutil entre secciones */
.section::after,
.seccion::after,
.catalogo-section::after,
#portafolio::after,
.info-section::after {
  content: "";
  display: block;
  height: 1px;
  width: min(920px, 90%);
  margin: clamp(1.2rem, 3vw, 2rem) auto 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
}

.section .hero {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#inicio .servicios-container {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}


@media (max-width: 1024px) {
  .section {
    padding: clamp(1.5rem, 4vw, 4rem) 5%;
    gap: clamp(1rem, 2.5vw, 2rem);
  }
}

@media (max-width: 768px) {
  .section {
    padding-left: clamp(1rem, 4vw, 1.5rem);
    padding-right: clamp(1rem, 4vw, 1.5rem);
  }
}

.container { max-width:1100px; margin:0 auto; text-align:center; padding:0 1rem; }
h2 { font-size:clamp(1.8rem,4.8vw,3.2rem); margin-bottom:0.75rem; }

/* CARRUSEL */
.servicios-container {
  padding: 0.5rem 2.5% 3rem;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 0;
}
.servicios-carrusel { position:relative; max-width:1100px; margin:1rem auto; overflow:hidden; border-radius:var(--radius); }
.carrusel-track { display:flex; flex-wrap:nowrap; width:300%; transition: transform 0.5s ease; }
.servicio-slide { flex:0 0 33.333%; display:flex; align-items:center; gap:2.5rem; padding:2rem; background:var(--glass); backdrop-filter:var(--blur); border-radius:var(--radius); box-shadow:var(--shadow); min-height:320px; border: 1px solid rgba(255,255,255,0.12); }
.servicio-imagen img { width:100%; max-width:480px; height:auto; border-radius:8px; box-shadow:0 6px 18px rgba(0, 0, 0, 0.227); object-fit:cover; }
.servicio-texto { flex:1; text-align:left; color: rgba(255,255,255,0.92); }
.servicio-texto h3 { font-size:clamp(1.4rem,3vw,1.8rem); margin-bottom:1rem; color: var(--accent);}
.servicio-texto p { font-size:1.05rem; line-height:1.6; margin-bottom:1rem; }
.carrusel-indicadores { position:absolute; bottom:1.2rem; left:50%; transform:translateX(-50%); display:flex; gap:0.8rem; z-index:2; }
.indicador { width:10px; height:10px; background: rgba(255,255,255,0.3); border-radius:50%; transition:var(--transition);}
.indicador.active { background: var(--accent); transform: scale(1.3); box-shadow:0 0 8px var(--accent); }

/* Micro-interacciones 2026 */
.servicio-slide,
.producto,
.info-card,
.about-card {
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.servicio-slide:hover,
.producto:hover,
.info-card:hover,
.about-card:hover {
  transform: translateY(-2px);
  background: var(--glass-strong);
  border-color: rgba(255,255,255,0.2);
}

/* BOTONES FLOTANTES */
.floating-buttons { position:fixed; bottom:1.8rem; right:0.8rem; display:flex; flex-direction:column; gap:1rem; z-index:999; align-items:center; }
.btn-whatsapp-float, #btn-up, .btn-home-float { width:60px; height:60px; border-radius:50%; background: var(--accent); color:white; font-size:1.5rem; display:flex; align-items:center; justify-content:center; box-shadow:none; transition:var(--transition); border:none; cursor:pointer; text-decoration:none; }
#btn-up {
  position: relative;
  background: var(--accent);
  display: grid;
  place-items: center;
}
#btn-up i {
  position: relative;
  z-index: 1;
}
.progress-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
.ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.25);
  stroke-width: 4;
}
.ring-progress {
  fill: none;
  stroke: rgba(255,255,255,0.95);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 0 999;
  stroke-dashoffset: 0;
}
.btn-whatsapp-float {
  background: #25D366;
  padding: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
}
.btn-whatsapp-float i {
  font-size: 1.8rem;
}
@media(max-width: 480px){
  .btn-whatsapp-float {
    width: 56px;
    height: 56px;
  }
  .btn-whatsapp-float i { font-size: 1.6rem; }
}
#btn-up { display:none; }
.btn-home-float { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); }
.btn-home-float:hover { background: var(--accent); }

/* FOOTER */
footer { text-align:center; padding:0.5rem; background: rgba(0,0,0,0.35); margin-top:1rem; }
.redes a { color:var(--text); font-size:clamp(1.2rem,3vw,1.6rem); margin:0 0.9rem; transition:var(--transition); }
.redes a:hover { color: var(--accent); transform:translateY(-3px); }


/* RESPONSIVE */
@media(max-width:768px){
  .servicios-container {
    padding-top: 1rem;
    padding-bottom: 1.6rem;
  }
  .servicios-carrusel {
    margin: 0.6rem auto;
  }
  .servicio-imagen {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .servicio-slide { flex-direction:column; gap:1rem; padding:1rem; min-height:auto; }
  .servicio-imagen img { width:100%; max-width:360px; max-height:220px; object-fit:cover; }
  .servicio-texto { text-align:center; }
  .carrusel-indicadores { bottom:1rem; }
  .indicador { width:8px; height:8px; }
}
@media(max-width:480px){
  .servicios-container { padding: 0.5rem 0 1.4rem; }
  .servicios-carrusel { width: 100%; margin: 0 auto; }
  .servicios-carrusel { overflow: hidden; }
  .servicios-carrusel { max-width: 100%; }
  .servicio-slide { width: 100%; gap: 0.8rem; padding: 0.8rem; }
  .servicio-imagen img { max-width: 320px; max-height: 200px; }
  .servicio-texto h3 { font-size: 1.1rem; }
  .servicio-texto p { font-size: 0.95rem; }
  .floating-buttons { right:0.6rem; bottom:1rem; }
  #btn-up, .btn-home-float { width:48px; height:48px; font-size:1.2rem; }
  .modal-contenido { padding: 0.6rem; }
  .modal-cerrar { font-size: 1.8rem; padding: 0.4rem 0.8rem; min-width: 44px; min-height: 44px; }
}















/* ===============================
   SECCIÓN CATÁLOGO - ESTILO 2026
================================= */
.catalogo-section {
  padding: clamp(3rem, 5vw, 5rem) 5%;
  max-width: 1100px;   /* ancho máximo de la sección */
  margin: 0 auto;
  background:var(--glass);
  backdrop-filter: var(--blur);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.18); /* borde cristal suave */
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  box-shadow: var(--shadow);

  min-height: 320px;
  
}


.titulo-catalogo {
  font-size:clamp(1.8rem,4.8vw,3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 auto 1rem;
  text-shadow: 0 3px 12px rgba(0,0,0,0.7);
  color: var(--text);
}

/* ACORDEÓN */
.acordeon {
  max-width: 1200px;
  margin: 0 auto;
  
}

.acordeon-btn {
  background: #0b1f3f;
  color: var(--text);
  cursor: pointer;
  padding: 1rem 1.5rem;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.18);
  outline: none;
  text-align: left;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  border-radius: var(--radius);
  backdrop-filter: var(--blur);
  transition: all 0.4s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
}

.acordeon-btn:hover {
  background: #10264a;
}

.acordeon-btn::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  transition: transform 0.4s ease;
}

.acordeon-btn.active::after {
  transform: rotate(180deg);
}

/* PANEL DEL ACORDEÓN */
.panel.catalogo {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.9s ease, padding 0.6s ease;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: stretch;
}

/* PRODUCTO */
.producto {
  background: var(--glass);
  backdrop-filter: var(--blur);
  border-radius: var(--radius);
  padding: 1rem;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-height: 340px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border: 1px solid rgba(255,255,255,0.12);
}



.panel.catalogo .producto img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.producto img:hover {
  transform: scale(1.06);
 

}

.info-producto h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
  text-align: center;
  font-weight: 700;
}

.info-producto p {
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text);
}

/* Contenedor de la info */
.info-producto {
  display: flex;
  flex-direction: column;   /* apila h3, p y botón verticalmente */
  align-items: center;      /* centra todo horizontalmente */
  text-align: center;       /* centra los textos */
  gap: 0.5rem;              /* espacio entre título, precio y botón */
  flex: 1;
  justify-content: space-between;
  min-height: 110px;
  width: 100%;
}

.info-producto h3 { min-height: 2.6rem; }
.info-producto p { min-height: 1.2rem; }

/* Botón centrado */
.btn-info {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;       /* asegura que el botón quede centrado */
  box-shadow: none;
}


.btn-info:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

@media(max-width: 768px) {
  .panel.catalogo {
    flex-direction: row;
    gap: 1rem;
  }

  .producto {
    flex: 1 1 45%;
    min-height: 300px;
  }

  .catalogo-section {
    max-width: 94%;
  }
}

@media(max-width: 480px) {
  .panel.catalogo { gap: 0.6rem; }
  .panel.catalogo .producto {
    flex: 0 0 calc(50% - 0.6rem);
    max-width: calc(50% - 0.6rem);
    min-height: 260px;
  }
  .producto {
    padding: 0.6rem;
    border-radius: 12px;
    height: 100%;
    justify-content: space-between;
  }
  .producto img {
    margin-bottom: 0.5rem;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
  .info-producto h3 {
    font-size: 0.95rem;
    line-height: 1.2;
  }
  .info-producto p {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }
  .btn-info {
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
  }
  .info-producto {
    flex: 1;
    justify-content: space-between;
    min-height: 90px;
  }
}























/* ================================================== */
/*                MODAL INFO PRODUCTO                */
/* ================================================== */
.modal-info {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 17, 23, 0.8); /* fondo oscuro semitransparente */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-contenido {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.modal-contenido img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
}

.modal-cerrar {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-cerrar:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(255,85,0,0.5);
}









/* ================================================== */
/*                SECCIÓN PORTAFOLIO                */
/* ================================================== */
#portafolio {
  padding: clamp(3rem, 5vw, 5rem) 5%;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--glass);
  backdrop-filter: var(--blur);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
}

/* SECCIONES INFO */
.info-section {
  padding: clamp(3rem, 5vw, 5rem) 5%;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--glass);
  backdrop-filter: var(--blur);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text);
  text-align: center;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.info-cta {
  margin-top: 1.6rem;
  display: flex;
  justify-content: center;
}
.info-card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.info-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.8rem;
  display: grid;
  place-items: center;
  background: #0b1f3f;
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.4rem;
}
.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--accent);
}
.info-card p {
  color: rgba(255,255,255,0.9);
}

/* SOBRE NOSOTROS */
.about-lead {
  max-width: 820px;
  margin: 0 auto 1.6rem;
  color: rgba(255,255,255,0.9);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.about-card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.about-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.8rem;
  display: grid;
  place-items: center;
  background: #0b1f3f;
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.4rem;
}
.about-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--accent);
}
.about-card p {
  color: rgba(255,255,255,0.9);
}

/* COTIZACIÓN RÁPIDA */
.quote-form {
  margin-top: 1.6rem;
  display: grid;
  gap: 1rem;
  text-align: left;
}
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.quote-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
}
.quote-field input,
.quote-field select,
.quote-field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: var(--surface);
  color: var(--text);
  font-size: clamp(16px, 2.5vw, 1rem);
  outline: none;
}
.quote-field input::placeholder,
.quote-field textarea::placeholder {
  color: rgba(255,255,255,0.6);
}
.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
  border-color: rgba(255,255,255,0.45);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}
.quote-field.full {
  grid-column: 1 / -1;
}
.quote-form .btn-primary {
  justify-self: center;
}
.form-note {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
  text-align: left;
}
.faq-item {
  background: var(--glass);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}
.faq-item p {
  margin-top: 0.6rem;
  color: rgba(255,255,255,0.85);
}

@media(max-width: 900px){
  .info-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .quote-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 600px){
  .info-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
}
@media(max-width: 768px){
  .info-section { max-width: 94%; }
}

main {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4rem);
}

/* Separación uniforme entre secciones no-hero */
.seccion {
  padding-top: clamp(2.8rem, 7vw, 4.5rem);
  padding-bottom: clamp(2.8rem, 7vw, 4.5rem);
}

@media (max-width: 768px) {
  main {
    gap: clamp(3rem, 9vw, 4.5rem);
  }
  .seccion {
    padding-top: clamp(3.2rem, 10vw, 4.8rem);
    padding-bottom: clamp(3.2rem, 10vw, 4.8rem);
  }
}

#portafolio h2.titulo-catalogo {
  font-size: clamp(1.8rem, 4.8vw, 3.2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 0 3px 12px rgba(0,0,0,0.7);
  color: var(--text);
}

#portafolio p {
  text-align: center;
  margin-bottom: 1.4rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
}

#portafolio .catalogo {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

/* PRODUCTO */
#portafolio .producto {
  background: var(--glass);
  backdrop-filter: var(--blur);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border: 1px solid rgba(255,255,255,0.12);
}

#portafolio .producto img.producto-imagen {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

#portafolio .producto img.producto-imagen:hover {
  transform: scale(1.06);
}

#portafolio .producto-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

#portafolio .producto-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

#portafolio .producto-info button.ver-fotos {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#portafolio .producto-info button.ver-fotos:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(255,85,0,0.35);
}

/* RESPONSIVE */
@media(max-width: 768px){
  #portafolio .producto {
    flex: 1 1 45%;
    
    
  }
  #portafolio {
  max-width: 94%;
}

@media(max-width: 480px){
  #portafolio .catalogo { gap: 0.8rem; }
  #portafolio .producto {
    flex: 0 0 calc(50% - 0.8rem);
    max-width: calc(50% - 0.8rem);
    padding: 0.6rem 0.7rem;
  }
  #portafolio .producto-info h3 {
    font-size: 0.95rem;
  }
  #portafolio .producto-info button.ver-fotos {
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
  }
}
}

/* MODAL FULL-SCREEN PORTAFOLIO */
.modal-portafolio {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-portafolio-contenido {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-portafolio img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  object-fit: contain;
}

/* Botón de cerrar */
.modal-portafolio-cerrar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.8rem;
  font-weight: 700;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}
.modal-portafolio-cerrar:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(255,85,0,0.5);
}

/* Botones de navegación */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-btn:hover {
  background: rgba(0,0,0,0.6);
}
.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }

/* Responsive móvil */
@media(max-width: 768px){
  .slider-btn { width:40px; height:40px; font-size:1.5rem; }
  .modal-portafolio img { max-height:70vh; }
}
@media(max-width:480px){
  .slider-btn { width:35px; height:35px; font-size:1.2rem; }
  .modal-portafolio img { max-height:60vh; }
}



.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent); /* color principal: naranja */
  color: white;
  font-weight: 600;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 2px solid var(--brand-dark);
  box-shadow: none;
}


.btn-primary:hover {
  background-color: #cc4400; /* naranja más oscuro para hover */
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
  border: 2px solid var(--brand-dark);
  background: rgba(255,255,255,0.08);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  box-shadow: none;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-1px);
  box-shadow: none;
}












.words-carousel {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  max-width: 1100px;
  margin: 0.8rem auto 0.3rem;
  position: relative;
  font-size: clamp(1.1rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  color: rgba(255,255,255,0.9);
  padding: 0.6rem 0;
}



.words-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--primary), transparent);
}

.words-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--primary), transparent);
}

/* TRACK */
.words-track {
  display: inline-flex;
  gap: 1.2rem;
  padding: 0 2rem;
  animation: marquee 36s linear infinite;
  will-change: transform;
}

/* ANIMACIÓN REALMENTE INFINITA */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* RESPONSIVE */
.words-track span {
  padding: 0.2rem 0.8rem;
  display: inline-block;
}

@media (max-width: 768px) {
  .words-track span {
    font-size: clamp(1.1rem, 4vw, 1.6rem);
  }
}

@media (max-width: 480px) {
  .words-track span {
    font-size: clamp(1rem, 4.5vw, 1.4rem);
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .words-track { animation: none; }
  .carrusel-track { transition: none; }
  .servicio-slide,
  .producto,
  .info-card,
  .about-card { transition: none; }
}
