@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --orange: #F37021;
  --blue-dark: #002D57;
  --gray-dark: #4d4d4d;
  --white: #FFFFFF;
  --slider-icon: 20px;
  --header-z-index: 10000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--gray-dark);
  background-color: var(--white);
  animation: pageFadeIn 0.35s ease forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Páginas internas: header + main (flexible) + footer */
body.page-interna {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.page-interna main {
  flex: 1;
  padding-top: 1.5rem;
}

.site {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.container {
  width: 100%;
  max-width: 80%;
}

section {
  width: 100%;
  padding: 4rem 0;
  background: var(--white);
}

@media (max-width: 1200px) {
  :root { --slider-icon: 14px; }
}

@media (max-width: 768px) {
  :root { --slider-icon: 10px; }
 
}

@media (min-width: 780px) {
 .logoMobileV1{
    display: none;
  }
}

/* Logo IpmOS: solo visible en móvil ≤768px en páginas internas */
@media (min-width: 769px) {
  .logoMobileSuperior {
    display: none;
  }
}

@media (max-width: 768px) {
  .logoMobileSuperior {
    display: block;
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    width: clamp(55px, 16vw, 82px);
    height: auto;
    z-index: 10;
    pointer-events: none;
  }
}


/* ============================================================
   TOP-BAR  (barra gris superior: email, teléfono, banderas)
   ============================================================ */
header {
  width: 100%;
}

.header-hero-wrapper {
  position: relative;
}

.top-bar {
  color: var(--white);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  position: relative;
  z-index: 1001;
  background: linear-gradient(
    to right,
    #404040 0%,
    #404040 28%,
    #4d4d4d 28%,
    #4d4d4d 100%
  );
  overflow: visible;
}

.topbar-shape {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: clamp(250px, 25vw, 400px);
  pointer-events: none;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  max-width: 100%;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-icon-img {
  width: 16px;
  height: auto;
  margin-right: 5px;
}

.text-hide {
  font-size: 10px;
}

.flecha-separador {
  width: 300px;
  display: flex;
  height: auto;
  margin-right: 0;
  margin-left: auto;
}

/* Selector de idioma (banderas) */
.language-selector {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.language-selector a {
  color: var(--white);
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.language-selector a:hover .flag {
  opacity: 0.8;
}

.flag {
  width: 22px;
  height: auto;
  display: block;
  opacity: 0.5;
  filter: grayscale(40%);
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.flag.active {
  opacity: 1 !important;
  filter: grayscale(0%) drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
  transform: scale(1.1);
}

/* Separador decorativo (pleca gris) entre top-bar y navbar */
.separador {
  height: 5px;
  background: url('Assets/Pleca-gris.png') no-repeat right center;
  background-size: contain;
}

/* — Responsive top-bar — */
@media (max-width: 768px) {
  /* Top-bar fondo uniforme oscuro (sin degradado asimétrico) */
  .top-bar {
    background: #404040;
    padding: 0.6rem 0;
  }

  /* Ocultar email en móvil, dejar solo teléfono */
  .contact-info .info-item:first-child {
    display: none;
  }

  /* Mostrar el número de teléfono */
  .text-hide {
    display: inline;
    font-size: 0.82rem;
  }

  /* Ícono más grande en móvil (el gris que agregarás) */
  .contact-icon-img {
    width: 26px;
    margin-right: 8px;
  }

  /* Ocultar banderas — el hamburger ocupa ese lugar */
  .language-selector {
   width: 15px;
   padding: 0;
   margin-right: 30%;
  }

  /* Espacio derecho para el hamburger fijo */
  .top-bar .container {
    padding-right: 3.5rem;
  }

  .separador {
    background: #FFFFFF;
  }
}


/* ============================================================
   NAVBAR  (Home page — posición absoluta sobre el hero)
   ============================================================ */
.navbar {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  width: 100%;
}

.logo img {
  height: 50px;
  width: auto;
}

/* Links del menú (desktop) */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.8rem;
}

.nav-menu li {
  padding: 0.5rem 0;
}

.nav-menu li + li {
  border-left: 1px solid var(--orange);
  padding-left: 0.8rem;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  padding: 5px 0;
}

.nav-menu li a:hover {
  color: var(--orange);
}

/* Hamburguesa (oculta en desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  margin-left: auto;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  display: block;
  transition: all 0.3s ease;
}

/* Animación X al abrir */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}



/* — Responsive navbar — */
@media (max-width: 768px) {
   body.landing-page.scrolled-past-hero .menu-toggle span {
    background: var(--blue-dark);
  }
  /* Navbar se vuelve una pastilla transparente fija en top-right,
     visualmente alineada con el top-bar */
  .navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: auto;
    padding: 0.55rem 1rem;
    background: transparent;
    z-index: 50000;
  }

  .navbar .container {
    padding: 0;
    width: auto;
  }

  /* Mostrar hamburguesa encima de todo */
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 50001;
  }

  /* Drawer lateral desde la derecha */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(270px, 80vw);
    height: 50vh;
    background: var(--blue-dark);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50000;
    box-shadow: -6px 0 28px rgba(0, 0, 0, 0.45);
    border-left: 3px solid var(--orange);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu li {
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu li a {
    font-size: 0.88rem;
    letter-spacing: 2px;
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
  }

  .nav-menu li a:hover,
  .nav-menu li a.nav-active {
    color: var(--orange);
    padding-left: 0.5rem;
  }

  .nav-menu li:not(:last-child)::after {
    display: none;
  }

  /* Overlay oscuro detrás del drawer */
  body.menu-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 49999;
    pointer-events: none;
  }
}



/* ============================================================
   FLECHA DECORATIVA GLOBAL  (esquina superior derecha)
   ============================================================ */
.global-arrow {
  position: absolute;
  top: 0;
  right: 7%;
  width: clamp(200px, 25vw, 450px);
  z-index: 9999;
  pointer-events: none;
}
  


/* ============================================================
   HERO  (sección principal de la home page)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background-color: #0a1f3d;
  background-image: url('Assets/Fondo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-start;
  overflow: visible;
  color: var(--white);
  padding-top: 80px;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right,
    rgba(0, 45, 87, 0.9) 0%,
    rgba(0, 45, 87, 0.4) 50%,
    transparent 100%);
  z-index: 2;
}

.hero-overlay-images {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-arrow {
  position: absolute;
  max-width: 100%;
  width: auto;
  height: auto;
}

.hero-arrow.left {
  left: 0;
  top: auto; 
  max-width: 50%;
  height: auto;
  transform: scale(1.1, 1.0);
  transform-origin: bottom left;
}

.hero-arrow.right {
  right: 0;
  bottom: 5%;
  width: 12%;
}

.hero-arrow.ipmis {
  position: absolute;
  right: 13.5%;
  top: clamp(10%, 3vw, 5%);
  width: clamp(40px, 6vw, 80px);
  height: auto;
  z-index: 20000;
}

.hero-arrow.downLeft {
  left: -2%;
  bottom: 0;
  width: 40%;
}

/* Contenedor interno del hero */
.hero .container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  height: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-left: clamp(1.5rem, 3vw, 3rem);
  position: relative;
}

/* Bloque de texto */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: justify;
  margin-top: -10px;
  margin-left: 0;
  width: clamp(280px, 40vw, 520px);
  max-width: 520px;
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Botón CTA */
.btn-cta {
  background-color: var(--orange);
  color: var(--white);
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: inline-block;
}

.btn-cta:hover {
  background-color: #d9621a;
  transform: scale(1.05);
}

/* Flechas del carrusel */
.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
  transform: translateY(-50%);
}

.slider-nav a {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.slider-nav a img {
  width: var(--slider-icon);
  height: var(--slider-icon);
  display: block;
}

.slider-nav a:hover {
  background: var(--orange);
}

/* — Responsive hero — */
@media (max-width: 768px) {

  .logoMobileV1 {
    display: block;
    position: absolute; 
    top: -90px !important;
    left: 20%;          
    transform: translateX(-50%); 
    width: clamp(70px, 20vw, 110px); 
    height: auto;
    z-index: 99999;    
  }

  .hero-arrow.left {
  left: 0;
  top: auto;
  bottom: 20px;
  max-width: 50%;
  height: auto;
  transform: scale(1.1, 1.0);
  transform-origin: bottom left;
  z-index: 50005; /* Por debajo del logo pero por encima del fondo */
}


   /*logo del footer */
  .footer-brand-logo{ 
    display: none;
  }
  /*Texto de pantalla de inicio */
  .global-arrow {
  display: none;
}

 
  .hero {
    position: relative;
    background-image: url('Assets/FondoMobile2.jpg');
    background-attachment: scroll; /* Mejor para rendimiento en móviles */
    background-size: cover;
    overflow: visible; /* permite que las imágenes decorativas sean visibles */
    height: auto;
    min-height: calc(90vh - 36px);
    padding-top: 1rem;
    padding-bottom: 4rem;
  }

  /* Texto ocupa ~58% izquierdo para no solapar con Ingenieros (fondo-izq) */
  .hero-content {
  display: none;
  }

  .hero-content h1 { font-size: 1.3rem; }
  .hero-content p {
    font-size: 0.78rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
  }

  .btn-cta {
    padding: 0.5rem 1.2rem;
    font-size: 0.82rem;
  }

  .hero-arrow.left {
  left: -75%;
  top: 0%; 
  max-width: 150%;  
  /* transform: scale(0.7, 1); */
  opacity: 0.8;
 
}

  /* Mismos % que desktop → escalan solos al reducirse el viewport */
 
  .hero-arrow.right   { width: 15%; bottom: 1%; right: 0; z-index: 50025; }        /* flecha-inferior */
  .hero-arrow.downLeft {
  left: -2%;
  bottom: 0;
  height: 35%;
  width: 100%;
  z-index:50015; 
}

.footer-social-col {
left: 0; 

}

}

/* — Responsive hero: laptop 1366–1400px — */
@media (max-width: 1400px) {
  .hero .container {
    padding-left: clamp(1.5rem, 2.5vw, 2.5rem);
  }

  .hero-content {
    width: clamp(260px, 36vw, 420px);
    margin-top: 0;
  }

  .hero-content h1 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
  }

  .hero-content p {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
  }

  .slider-nav {
    top: 70%;
  }
}

/* — Responsive hero: monitores 1920px+ — */
@media (min-width: 1600px) {
  .hero .container {
    padding-left: clamp(3rem, 4vw, 5rem);
  }

  .hero-content {
    width: clamp(400px, 35vw, 580px);
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.3rem;
  }
}


/* ============================================================
   PAGE HEADER  (navbar reutilizable para páginas internas)
   ============================================================ */
.page-header-wrapper {
  position: relative;
  z-index: 10000;
}

/* Logo IpmOS decorativo (esquina superior derecha del header interno) */
.page-deco-logo {
  position: absolute;
  right: 3%;
  top: 41px;
  width: clamp(70px, 20vw, 110px);
  height: auto;
  z-index: 20000;
  pointer-events: none;
}

/* Navbar con fondo navy sólido (páginas internas) */
.navbar--solid {
  position: relative !important;
  top: auto !important;
  background-color: var(--blue-dark);
  padding: 2.5rem 0;
}

/* Logo de marca en la navbar de páginas internas */
.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-brand-logo {
  height: 44px;
  width: auto;
 /* filter: brightness(0) invert(1); /* blanco sobre fondo azul */
}

/* Logo dentro del drawer (solo móvil) */
.nav-drawer-brand {
  display: none;
}

.nav-drawer-logo {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Enlace activo en naranja */
.nav-menu li a.nav-active {
  color: var(--orange);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 3px;
}

/* — Responsive page header — */
@media (max-width: 768px) {
  .page-deco-logo {
    display: none;
  }

  .page-header-wrapper .global-arrow {
    display: none;
  }

  /* Navbar interno: fijo top-right, transparente, solo hamburger visible */
  .navbar--solid {
    position: fixed !important;
    top: 0 !important;
    right: 0;
    left: auto;
    width: auto;
    padding: 0.55rem 1rem !important;
    background: transparent !important;
  }

  .navbar--solid .container {
    padding: 0;
    width: auto;
  }

  /* Ocultar logo del container (el navbar es invisible en móvil) */
  .navbar-brand {
    display: none;
  }

  /* Mostrar logo en la cabecera del drawer */
  .nav-drawer-brand {
    display: flex !important;
    justify-content: center;
    padding: 0 0 1.2rem !important;
    border-top: none !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2) !important;
    margin-bottom: 0.5rem;
    width: 100%;
  }
}



/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
  background-color: var(--orange);
  color: var(--white);
  width: 100%;
  overflow: hidden;
}

.footer-inner {
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  gap: 0;
}

/* Columna logo */
.footer-logo-col {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-right: 2rem;
}

.footer-logo {
  width: 40px;
  height: auto;
}

.footer-brand-logo {
  width: clamp(70px, 7vw, 100px);
  height: auto;
}

/* Columnas de ciudad */
.footer-city-col {
  flex: 1;
  padding: 0.25rem 1.5rem;
  min-width: 0;
}

.footer-city-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
  color: var(--white);
}

.footer-address {
  margin: 0 0 0.3rem 0;
  font-size: 0.70rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.footer-phone {
  margin: 0 0 0.25rem 0;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--white);
}

.footer-schedule {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

/* Divisor vertical entre ciudades y redes */
.footer-city-divider {
  width: 5px;
  align-self: stretch;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 3px;
  flex-shrink: 0;
}

/* Columna de redes sociales */
.footer-social-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  padding-left: 2rem;
}

.footer-social-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-social-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-social-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-social-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.footer-social-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-social-handle {
  font-size: 0.73rem;
  color: var(--white);
  font-weight: 500;
}

.footer-social-email {
  font-size: 0.70rem;
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Copyright */
.footer-copyright {
  background-color: #1c1c1c;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 0.55rem 0;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  font-family: 'Montserrat', sans-serif;
}

.footer-copyright p {
  margin: 0;
}

/* — Responsive footer: tablet 1024px — */
@media (max-width: 1024px) {
  .footer-inner {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
  }

  .footer-logo-col {
    width: 100%;
    padding-right: 0;
    justify-content: center;
  }

  .footer-city-col {
    flex: 1;
    min-width: 42%;
    padding: 0.25rem 1rem;
  }

  .footer-city-divider {
    display: none;
  }

  .footer-social-col {
    padding-left: 0;
    width: 100%;
    min-width: unset;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
  }
}

/* — Responsive footer: 768px — */
@media (max-width: 768px) {
  .footer-social-col {
    justify-content: flex-start;
    align-items: flex-start;
  }
}

/* — Responsive footer: móvil 600px — */
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-logo-col {
    justify-content: flex-start;
  }

  .footer-city-col {
    min-width: 100%;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .footer-city-col:last-of-type {
    border-bottom: none;
  }

  .footer-social-col {
    flex-direction: column;
    gap: 0.8rem;
  }
}



@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: vtSlideOut 0.38s ease forwards;
}

::view-transition-new(root) {
  animation: vtSlideIn 0.42s ease forwards;
}

@keyframes vtSlideOut {
  to { opacity: 0; transform: translateY(-12px); }
}

@keyframes vtSlideIn {
  from { opacity: 0; transform: translateY(12px); }
}

/* Cortina naranja (fallback Firefox/Safari) */
#ipm-curtain {
  position: fixed;
  inset: 0;
  background: var(--orange);
  z-index: 99999;
  transform: translateX(-101%);
  pointer-events: none;
}

.ipm-curtain--cover {
  transform: translateX(0) !important;
  transition: none !important;
}

.ipm-curtain--enter {
  animation: curtainIn 0.42s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.ipm-curtain--leave {
  animation: curtainOut 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes curtainIn {
  from { transform: translateX(-101%); }
  to   { transform: translateX(0); }
}

@keyframes curtainOut {
  from { transform: translateX(0); }
  to   { transform: translateX(101%); }
}

@media (prefers-reduced-motion: reduce) {
  #ipm-curtain { display: none; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* Top-bar azul solo en páginas internas */
body.page-interna .top-bar {
  background: var(--blue-dark);
}

/* Header mobile reutilizable: título naranja + logo IPMOS en fila */
.acerca-logo-mobile {
  display: none;
}

@media (max-width: 768px) {
  .acerca-header-responsive {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .acerca-header-responsive .section-title-orange {
    flex: 1;
    max-width: 60%;
    margin: 0;
  }

  .acerca-logo-mobile {
    display: block;
    width: 70px;
    flex-shrink: 0;
    margin-left: 1rem;
  }

  .acerca-logo-mobile img {
    width: 100%;
    height: auto;
  }
}

/* ============================================================
   ACERCA DE NOSOTROS — estilos de página
   ============================================================ */


.acerca-main,
.acerca-main section {
  position: relative;
  z-index: 2;
}

.acerca-main {
  background: var(--white);
  padding: 3.5rem 0 4rem;
}

/* Layout de dos columnas al 80% del ancho */
.acerca-layout {
  display: flex;
  flex-direction: row;
  gap: 4rem;
  width: 80%;
  margin: 0 auto;
  padding: 0 2rem;
  align-items: flex-start;
  box-sizing: border-box;
}

.acerca-col-text {
  flex: 1.3;
  min-width: 0;
}

.acerca-col-certs {
  flex: 1;
  min-width: 0;
}

/* ---- Columna izquierda: texto ---- */
.section-title-orange {
  color: var(--orange);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 1.4rem 0;
  letter-spacing: 0.5px;
}

.acerca-col-text p {
  line-height: 1.9;
  font-size: 0.95rem;
  color: var(--gray-dark);
  text-align: justify;
  margin: 0;
}

/* ---- Columna derecha: certificaciones ---- */
.acerca-col-certs h2 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.info-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease;
}

.info-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.card-iso {
  width: 80%;
  max-width: 160px;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .acerca-main {
    padding: 2rem 0 3rem;
  }

  .acerca-layout {
    flex-direction: column;
    width: 92%;
    gap: 2rem;
    padding: 0 1rem;
  }

  .acerca-col-text,
  .acerca-col-certs {
    flex: none;
    width: 100%;
  }

  .acerca-col-certs h2 {
    margin-top: 0.5rem;
  }

  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .card-iso {
    max-width: 120px;
  }
}

/* ============================================================
   NOTICIAS — estilos de página
   ============================================================ */
/* ============================================================
   NOTICIAS — estilos de página
   ============================================================ */

/* Flecha decorativa — igual que acerca y servicios */
.page-header-wrapper .global-arrow {
  width: clamp(150px, 12vw, 250px);
}

/* Las secciones se apilan sobre el header para que la flecha no tape el contenido */
.noticias-featured,
.noticias-cards-section {
  position: relative;
  z-index: 2;
}

/* ---- Sección superior: noticias destacadas ---- */
.noticias-featured {
  background: var(--white);
  padding: 2rem 0 0;
}

.noticias-wrapper {
  width: 80%;
  margin: 0 auto;
}

/* Fila de dos noticias */
.news-row {
  display: flex;
  align-items: stretch;
}

/* Artículo individual: imagen + contenido */
.news-item {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 1.1rem;
  padding: 1.4rem 1.6rem;
}

.news-img {
  width: 220px;
  height: 155px;
  object-fit: cover;
  flex-shrink: 0;
}

.news-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0 0 0.65rem 0;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 0.80rem;
  color: var(--gray-dark);
  line-height: 1.55;
  flex: 1;
  margin: 0 0 0.8rem 0;
}

.btn-ver-mas {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--orange);
  text-decoration: none;
  font-size: 0.80rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  align-self: flex-end;
  margin-top: auto;
}

.ver-mas-arrow {
  background: var(--orange);
  color: var(--white);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}

/* Separador vertical entre las dos noticias de una fila */
.news-col-divider {
  width: 1px;
  background: #d8d8d8;
  flex-shrink: 0;
  margin: 1rem 0;
}

/* Separador horizontal entre las dos filas */
.news-row-divider {
  height: 1px;
  background: #d8d8d8;
}

/* ---- Sección inferior: 4 mini cards sin gap ---- */
.noticias-cards-section {
  background: var(--white);
  padding: 0;
}

.noticias-cards-grid {
  width: 80%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 3px solid var(--orange);
}

.mini-card {
  padding: 1.1rem 1.2rem;
  border-right: 1px solid #e0e0e0;
}

.mini-card:last-child {
  border-right: none;
}

.mini-card-header {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.7rem;
}

.mini-card-img-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  flex-shrink: 0;
  overflow: hidden;
}

.mini-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0;
  line-height: 1.4;
}

.mini-card-text {
  font-size: 0.73rem;
  color: var(--gray-dark);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .noticias-wrapper,
  .noticias-cards-grid {
    width: 92%;
  }

  .news-img {
    width: 170px;
    height: 130px;
  }
}

/* Contenedor del título "Noticias": oculto en escritorio */
.noticias-titulo-mobile {
  display: none;
}

/* Tipografía naranja idéntica a acerca.html */
.noticias-titulo-mobile .section-title-orange {
  color: var(--orange);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  /* Mismo ancho efectivo que acerca-layout en móvil: 92% - 2×1rem padding */
  .noticias-titulo-mobile {
    display: block;
    width: 92%;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
    margin-bottom: 0;
  }

  .noticias-wrapper,
  .noticias-cards-grid {
    width: 96%;
  }

  .news-row {
    flex-direction: column;
    gap: 0;
  }

  .news-col-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }

  .news-item {
    padding: 1rem;
  }

  .news-img {
    width: 130px;
    height: 100px;
  }

  .noticias-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mini-card:nth-child(2) {
    border-right: none;
  }

  .mini-card:nth-child(3) {
    border-right: 1px solid #e0e0e0;
  }
}

@media (max-width: 480px) {
  .noticias-cards-grid {
    grid-template-columns: 1fr;
  }

  .mini-card {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
}
/*
  ============================================================
CONTACTO — estilos de página
   ============================================================ */

   /* ============================================================
   CONTACTO — estilos de página
   ============================================================ */

.contacto-header,
.contacto-section {
  position: relative;
  z-index: 2;
}

/* Flecha decorativa del header */
.page-header-wrapper .global-arrow {
  width: clamp(150px, 12vw, 250px);
}
.page-header-wrapper .page-deco-logo {
  width: clamp(35px, 3.5vw, 58px);
}

/* ---- Banda horizontal: título + subtítulo ---- */
.contacto-header {
  background: #ffffff;
  padding: 2rem 0;
  border-bottom: 1px solid #e8e8e8;
  position: relative;
  
}

.contacto-header-inner {
  max-width: 80%;
  margin: 0 auto;
  padding: 0 2rem;
}

.contacto-header .section-title-orange {
  color: var(--orange);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.contacto-subtitulo {
  font-size: 0.88rem;
  color: var(--gray-dark);
  margin: 0;
  line-height: 1.6;
}

/* ---- Sección principal ---- */
.contacto-section {
  background: #EEEEEE;
  padding: 0;
}

.contacto-body {
  max-width: 80%;
  margin: 0 auto;
  position: relative;
  min-height: 560px;
  background-image: url('Assets/AtencionClientes.jpg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  display: flex;
  align-items: center;
}

/* ---- Formulario encima del espacio vacío izquierdo ---- */
.contacto-form-col {
  width: 56%;
  padding: 2.5rem 2.5rem 2.5rem 2.5rem;
  position: relative;
  z-index: 2;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  max-width: 560px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--orange);
  font-family: 'Montserrat', sans-serif;
}

.form-group input,
.form-group textarea {
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--gray-dark);
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease;
  resize: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--orange);
}

.form-group input::placeholder {
  color: #b0b0b0;
  font-size: 0.82rem;
}

/* ---- Botón enviar ---- */
.btn-enviar {
  align-self: flex-start;
  margin-top: 0.5rem;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 0.55rem 2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}

.btn-enviar:hover {
  background: #d4601a;
  transform: translateY(-1px);
}

.btn-enviar:disabled {
  background: #aaa;
  cursor: default;
  transform: none;
}


/* ---- Validación visual ---- */
.form-group input.input-error,
.form-group textarea.input-error {
  border-color: #e03131;
  background: #fff5f5;
}

/* ---- Modal de confirmación ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: #fff;
  border-radius: 14px;
  padding: 2.8rem 2.2rem 2.2rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  transform: translateY(-18px) scale(0.97);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-icon {
  font-size: 3.8rem;
  color: var(--orange);
  margin-bottom: 0.9rem;
  line-height: 1;
}

.modal-titulo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 0 0 0.7rem 0;
  font-family: 'Montserrat', sans-serif;
}

.modal-texto {
  font-size: 0.88rem;
  color: var(--gray-dark);
  line-height: 1.7;
  margin: 0 0 1.6rem 0;
  font-family: 'Montserrat', sans-serif;
}

/* ---- Toast de error ---- */
.toast-error {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #c0392b;
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 99999;
  max-width: 90vw;
  text-align: center;
}

.toast-error.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */


@media (max-width: 768px) {
  /* Mismo ancho efectivo que acerca-layout en móvil */
  .contacto-header-inner {
    max-width: 92%;
    padding: 0 1rem;
    box-sizing: border-box;
  }
}
@media (max-width: 900px) {
  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .contacto-header {
    padding: 1.75rem 2rem;
  }

  .contacto-form-col {
    width: 100%;
    padding: 2rem 2rem;
  }

  .contacto-form {
    max-width: 100%;
  }

  .contacto-img-col {
    min-height: 320px;
  }
}

@media (max-width: 480px) {
  .contacto-header {
    padding: 1.5rem 1.25rem;
  }

  .contacto-form-col {
    padding: 1.5rem 1.25rem;
  }
}
