/* =================================================
   TIPOGRAFÍA OFICIAL – RETHINK SANS
   ================================================= */
@import url('https://fonts.googleapis.com/css2?family=Rethink+Sans:wght@400;500;700&display=swap');

/* =================================================
   BRAND GUIDELINES – COLORES OFICIALES
   ================================================= */
:root{
  --brand-blue: #01537b;       /* Azul Von Hesse */
  --brand-blue-light: #378ba4; /* Azul claro */
  --midnight-blue: #01273e;    /* Azul medianoche */
  --gray-light: #f2f2f2;
  --gray-medium: #d3d3d3;
  --text-primary: #1f2937;
  --text-muted: #4b5563;
  --max-width: 1200px;
}

/* =================================================
   RESET BASE
   ================================================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body {
  font-family: 'Rethink Sans', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: linear-gradient(to bottom, #f9fbfd, #e6f0f7);
}


img{
  max-width:100%;
  display:block;
}

a{
  text-decoration:none;
  color:inherit;
}

.hero-wrapper::before {
  pointer-events: none;
}

.logo {
  position: relative;
  z-index: 10;
}
.logo a {
  display: inline-block;
}
.container{
  max-width: var(--max-width);
  margin: auto;
  padding: 0 20px;
}

/* =================================================
   HEADER / NAV
   ================================================= */
.header {
  background: transparent;
  padding: 20px 0;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 52px;       /* tamaño ideal para header */
  width: auto;
  max-width: 290px; 
  position: relative;  
  top: 15px;/* evita logos gigantes */
}

.contact-item a {
  color: inherit;
  text-decoration: none;
}


nav ul{
  display:flex;
  align-items:center;
  gap:30px;
  list-style:none;
  margin:0;
  padding:0;
}

nav li{
  display:flex;
  align-items:center;
}

.nav a {
  color: #fff;
  margin-left: 24px;
  text-decoration: none;
}


.nav a {
  color: #0c0c0c;
  margin-left: 24px;
  text-decoration: none;
}

nav .btn-primary{
  background: var(--brand-blue);
  border-radius:6px;
  padding:0 20px;
}

nav .btn-primary:hover{
  background: var(--brand-blue-light);
  color:#fff;
}

nav a:hover{
  color: var(--brand-blue-light);
}
nav ul li a {
  text-decoration: none;
  color: #ffffff;
  padding: 9px 13px;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
nav ul li a.btn-contact {
  background-color: #01537b; /* color de ejemplo */
  color: #fff;
  border-radius: 5px;
  padding: 12px 18px; /* más grande que antes */
  font-size: 1.05rem; /* ligeramente más grande */
  font-weight: 500;   /* un poco más visible */
}

nav ul li a.btn-contact:hover {
  background-color: #01334a;
}



/* ================= HERO NUEVO LAYOUT ================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero .container {
 
  margin-right: auto;
  padding-left: 0;
}
.home .hero-wrapper {
  min-height: 80vh;
}

.home .hero {
  min-height: 60vh;
  align-items: center;
}

/* Ajuste fino de posición (no tan arriba) */
.home .hero-grid {
  transform: translateX(-600px) translateY(50px);
}

/* ================= HERO + HEADER ================= */
.hero-wrapper {
  min-height: 100vh;
  background-image: url("../img/employee-showing-appreciation-each-other.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: #fff;
}

.hero-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  z-index: 2;
  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(20, 60, 90, 0.28),   /* ⬅️ antes 0.45 */
      rgba(20, 60, 90, 0.28)
    ),
    url("../img/10603.jpg");

  background-repeat: no-repeat;
  background-size: cover;
  background-position: left top;

  opacity: 0.65;              /* ⬅️ antes 0.90 */
  mix-blend-mode: overlay;    /* se mantiene */

  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 75%,
    rgba(0,0,0,0.4) 90%,
    rgba(0,0,0,0) 100%
  );

  mask-image: linear-gradient(
    to right,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 75%,
    rgba(0,0,0,0.4) 90%,
    rgba(0,0,0,0) 100%
  );
}



  .scroll-top-btn {
  position: fixed;
  bottom: 25px;
  right: 20px;
  z-index: 9999;

  font-size: 38px; /* tamaño grande de la flecha */
  background: none; /* quitamos el fondo azul */
  border: none;

  cursor: pointer;
  display: none; /* oculto por defecto */
  transition: transform 0.2s ease;
}

.scroll-top-btn:hover {
  transform: scale(1.2); /* pequeño efecto al tocar */
}

/* solo móviles */
@media (max-width:768px){
  .scroll-top-btn{
    display:block;
  }
}


/* Overlay oscuro para legibilidad */
.hero-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
  z-index: 1;
}

/* Todo el contenido encima del fondo */
.header,
.hero {
  position: relative;
  z-index: 3;
}

.hero-grid {
  max-width: 760px;
  transform: translateX(-450px);
  margin-left: 800px;
}

.hero-text {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-text h1 {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.15;
}


.hero-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-tagline {
  font-size: 1.2rem;
  font-weight: 500;
  color: #cde8f5;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.9);
}

.hero-actions {
  margin-top: 10px;
}

/* Imagen */
.hero-image img {
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}

.hero-stamps {
  margin-top: 28px;
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-stamps img {
  height: 78px;                 /* tamaño uniforme */
  object-fit: contain;
  filter: grayscale(100%) brightness(2) contrast(1.2);
  opacity: 0.85;
}

/* =================================================
   BOTONES
   ================================================= */
.btn{
  display:inline-block;
  padding:14px 34px;
  border-radius:40px;
  font-weight:500;
  transition:.3s ease;
}

.btn-primary{
  background: var(--brand-blue);
  color:#fff;
}

.btn-primary:hover{
  background: var(--brand-blue-light);
}

.btn-secondary{
  background:#378ba4;
  color:#fff;
}

.btn-secondary:hover{
  background:#01537b;
}

/* =================================================
   SECCIÓN CONTACTO – ELEGANTE Y PROFESIONAL
   ================================================= */

.contact-section {
  padding: 140px 20px;
  background: #ffffff;
}

.contact-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 100px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* FORMULARIO */
.contact-form-pro {
  flex: 1 1 520px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-form-pro h2 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
  position: relative;
}

/* Línea elegante */
.contact-form-pro h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #01537b;
  margin-top: 18px;
}

/* Inputs estilo editorial */
.contact-form-pro input,
.contact-form-pro textarea {
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 14px 4px;
  font-size: 1rem;
  background: transparent;
  transition: all 0.3s ease;
  outline: none;
}

.contact-form-pro input:focus,
.contact-form-pro textarea:focus {
  border-bottom: 1px solid #01537b;
}

.contact-form-pro textarea {
  min-height: 140px;
  resize: none;
}

/* Botón sobrio */
.contact-form-pro button {
  margin-top: 20px;
  padding: 16px;
  background: transparent;
  border: 1px solid #01537b;
  color: #01537b;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form-pro button:hover {
  background: #01537b;
  color: #fff;
}

/* IMAGEN */
.contact-image {
  flex: 1 1 480px;
  position: relative;
  overflow: hidden;
}

.contact-image img {
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}

.contact-image:hover img {
  transform: scale(1.04);
}

/* Responsive */
@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
    gap: 60px;
  }

  .contact-form-pro h2 {
    text-align: center;
  }
}


/* =================================================
   BOTONES
   ================================================= */
.btn{
  display:inline-block;
  padding:14px 34px;
  border-radius:40px;
  font-weight:500;
  transition:.3s ease;
}

.btn-primary{
  background: var(--brand-blue);
  color:#fff;
}

.btn-primary:hover{
  background: var(--brand-blue-light);
}

.btn-secondary{
  background:#378ba4;
  color:#fff;
}

.btn-secondary:hover{
  background:#01537b;
}


/* =================================================
   FOOTER
   ================================================= */
/* ================= FOOTER COMPLETO CON LOGO ================= */
footer{
  background: var(--midnight-blue);
  color: #fff;
  padding: 50px 20px 20px 20px;
  font-size: 0.95rem;
}
.footer-contact {
  color: #fff;
}

.footer-contact h4 {
  margin-bottom: 18px;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-contact .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

.footer-contact .contact-item img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  opacity: 0.85;
}

.footer-contact .contact-item span {
  line-height: 1.4;
}
footer a{
  color: #e0f0ff;
  text-decoration: none;
}

footer a:hover{
  color: var(--brand-blue-light);
}

.footer-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 40px;
  max-width: var(--max-width);
  margin: auto;
}

.footer-grid h4{
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}

.footer-grid ul{
  list-style: none;
  padding: 0;
}

.footer-grid ul li{
  margin-bottom: 8px;
}

.footer-bottom{
  text-align:center;
  padding-top:20px;
  font-size:0.85rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top:30px;
}

/* ================= LOGO + CONTACTO ================= */
footer .footer-top {
  display: flex;
  justify-content: space-between; /* separa logo y resto */
  align-items: flex-start;
  gap: 40px; /* espacio entre el logo y el resto del contenido */
  padding-bottom: 20px;
}

.footer-logo {
  margin-left: 0; /* logo pegado a la izquierda */
}

.footer-logo img {
  height: 60px;
  width: auto;
  display: block;
}


.cta-blue {
  background: #fff; /* azul Von Hesse */
  color: #01537b; /* texto por defecto blanco */
}

.cta-blue .section-subtitle {
  color: #01537b; /* un azul clarito para subtitulo */
}

/* Desktop: solo hero */
.hero-p-desktop {
  display: block;
  color: #fff; /* blanco para hero */
  margin-top: 16px;
  line-height: 1.6;
  font-size: 1rem;
}

.hero-p-mobile {
  display: none; /* oculto en desktop */
}

/* ================= HEADER / MENÚ HAMBURGUESA ================= */

/* Desktop: menú normal */
.hamburger-btn {
  display: none; /* oculto en desktop */
}
.hamburger-menu {
  display: none; /* oculto en desktop */
}

@media (max-width: 900px) {
/* 🔒 BLOQUEAR SCROLL CUANDO EL MENÚ ESTÁ ABIERTO */
html:has(.hamburger-menu.open),
body:has(.hamburger-menu.open) {
  overflow: hidden;
  height: 100vh;
}

  /* ================= HEADER / NAV ================= */
 .header-content {
    display: flex;
    justify-content: space-between; /* logo a la izquierda, hamburguesa a la derecha */
    align-items: center;
    padding: 10px 20px;
  }
  nav ul {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    display: none; /* oculto por defecto */
    background: #fff;
    position: absolute;
    top: 70px;
    left: 0;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 10px;
    z-index: 10;
  }

  nav ul.show {
    display: flex;
  }

 
  /* HERO WRAPPER */
/* HERO WRAPPER */
.hero-wrapper {
  position: relative;
  min-height: auto;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-image: url("../img/employee-showing-appreciation-each-other.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden; /* importante para overlay */
}

/* LÁMINA SEMITRANSPARENTE */
.hero-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* lámina negra semitransparente */
  z-index: 1; /* debajo del texto, encima de la imagen */
}


  .hero,
.hero-wrapper {
  position: relative;
  z-index: 1;
}

  /* HERO GRID */
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    transform: none !important;  /* ⚡ quitar transform que movía todo fuera */
  }

  /* TEXTO HERO */
.hero-text {
  opacity: 1;
  transform: none;
  animation: none;
  color: #f5f5f5;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.hero-text h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin-bottom: 19px;
}

.hero-text p {
  font-size: 1.03rem;
  margin-bottom: 25px;
}

.hero-text h1,
.hero-text p {
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}
.hamburger-menu.open ~ .hero .hero-text {
  opacity: 0;
  pointer-events: none;
}
/* cuando el menú está abierto */
body.menu-open .hero {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

  html, body {
    overflow-x: hidden;
  }

  /* AUTHORITY */
  .authority-section {
    padding: 40px 0;
  }

    .authority {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 🔥 todo a la izquierda */
  }
  .authority-logo {
    display: none;
  }

  .authority-content {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .authority-content p {
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-align: left !important;
  }
  .authority-content h2 {
    font-size: 24px;
  }
.authority-content p {
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .authority-content p.open {
    max-height: 1000px;
  }

 .read-more {
    display: inline-block;
    background: none;
    border: none;
    color: #0b3d99;
    font-weight: 900;
    margin-top: 10px;
    cursor: pointer;
  }
  .authority-image img {
    max-width: 370px;
    margin: 0 auto;
    display: block;
  }

  /* ❌ DESACTIVAR CARRUSEL */
   /* ocultamos botones */
  .carousel-btn {
    display: none;
  }

  .authority-carousel {
    width: 100%;
    overflow: hidden;
    margin-top: 30px;
  }

  .carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  /* ocultar scrollbar */
  .carousel-track::-webkit-scrollbar {
    display: none;
  }

  .carousel-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    width: 140px;
    display: flex;
    justify-content: center;
  }

  .carousel-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
  }


  /* HERO IMAGE */
  .hero-image img {
    max-width: 100%;
    height: auto;
    margin: 15px auto 0 auto;
    border-radius: 12px;
    display: block;
    z-index: 2;
  }

  /* HERO STAMPS */
  .hero-stamps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
  }

  .hero-stamps img {
    max-width: 70px;
    height: auto;
    display: block;
  }
  /* BOTÓN HAMBURGUESA - visible en mobile */
   /* Logo */
  .header-content .logo {
    max-width: 150px; /* ajusta según tu gusto */
    height: auto;
  }
  /* ================= HEADER / MENÚ HAMBURGUESA ================= */

/* Desktop: menú normal */
.hamburger-btn {
  display: none; /* oculto en desktop */
}
.hamburger-menu {
  display: none; /* oculto en desktop */
}

/* Mobile (≤900px) */

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

/* Botón hamburguesa */
.hamburger-btn {
  display: flex;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Iconos dentro del botón */
.hamburger-btn .hamburger-icon { display: inline; color: #1962ea; }
.hamburger-btn .close-icon { display: none; color: #fff; }
.hamburger-btn.open .hamburger-icon { display: none; }
.hamburger-btn.open .close-icon { display: inline; }

/* Menú hamburguesa */
.hamburger-menu {
  width: 100vw;
  height: auto;             /* 🔹 dejar altura automática para que no corte el footer */
  min-height: 100vh;        /* para que siga ocupando toda la pantalla si hay pocos links */
  right: -100vw;            /* oculto al inicio */
  top: 0;
  padding: 60px 20px 20px 20px;
  background: #01537b;
  display: flex;
  flex-direction: column;
  align-items: center;      /* centra horizontalmente */
  justify-content: flex-start;
  gap: 20px;                /* espacio entre links */
  position: fixed;
  z-index: 10000;
  transition: right 0.3s ease;
  overflow-y: auto;         /* permite scroll si el contenido es muy grande */
}
/* Abrir menú */
.hamburger-menu.open {
  right: 0;
}

/* Links del menú siempre visibles */
.hamburger-menu a {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-align: center;
  font-size: 1.2rem;
  width: 100%;
  max-width: 250px;
  margin: 10px auto;       /* agrega espacio vertical entre links */
  padding: 10px 0;         /* aumenta el “clic area” y separación */
  color: #fff;
  text-decoration: none;
}

/* Botón de cerrar (“X”) siempre en esquina superior derecha */
.close-btn {
  display: flex;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10001;
  background: transparent;
  border: none;
  cursor: pointer;
}
.close-btn img {
  width: 48px;
  height: auto;
}

/* Overlay para bloquear scroll y oscurecer fondo */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s ease;
}
.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Bloquear scroll cuando el menú está abierto */
body.menu-open {
  overflow: hidden;
  height: 100vh;
}
/* Redes sociales dentro del menú */
.menu-socials {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.menu-socials a i {
  color: #fff;
  font-size: 1.4rem;
}

.menu-footer {
  margin-top: -90px;
  text-align: center;
  color: #fff;
  font-size: 1.1rem;
}


  /* ================= CASOS DE ESTUDIO – MOBILE ================= */
.cases-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .case-row {
    display: flex;
    flex-direction: column; /* imagen arriba, texto abajo */
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    
  }

 
  .case-thumb {
    order: 1 !important;
    width: 100%;
  }

  .case-content {
    order: 2 !important;
    width: 100%;
  }
  .case-thumb img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

 

  .case-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .case-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
  }

  .case-meta {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 12px;
    color: #666;
  }

  .case-link {
    font-weight: 600;
    color: #1962ea;
  }

  /* botón final centrado */
  #casos-estudio .btn {
    display: block;
    width: 100%;
    text-align: center;
  }

 .testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .testimonial-card {
    padding: 22px 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  }

  .testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
  }

  .testimonial-author {
    text-align: left;
  }

  .testimonial-author strong {
    display: block;
    font-size: 0.9rem;
  }

  .testimonial-author span {
    font-size: 0.8rem;
    color: #666;
  }
  footer .footer-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* todo a la izquierda */
    gap: 30px;
  }

  /* LOGO PRIMERO */
  
  .footer-logo {
    width: 100%;
    display: flex;
    justify-content: center;   /* 🔥 centra horizontal */
    margin: 0;
    padding: 0;
  }

  .footer-logo img {
    display: block;
    margin: 0 auto;            /* 🔥 mata espacio lateral */
    max-width: 570px;
  }
  /* CONTACTO */
  .footer-contact {
    order: 2;
    width: 100%;
  }

  .footer-contact h4 {
    margin-bottom: 12px;
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .contact-item img {
    width: 18px;
    height: 18px;
  }

  /* REDES */
  .footer-social {
    order: 3;
    width: 100%;
  }

  .footer-social ul {
    padding-left: 0;
    list-style: none;
  }

  .footer-social li {
    margin-bottom: 8px;
  }
  
  .services-row .service-image,
  .services-row .service-image img,
  .services-row img.service-img {
    display: none !important;
  }

  /* ✅ ICONOS */
  .services-row .service-icon,
  .services-row i,
  .services-row svg {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  /* Layout limpio */
  .services-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .services-row .service-card {
    padding: 18px 16px;
  }


.contact-image {
  width: 100%;
  height: 320px; /* altura controlada elegante */
  overflow: hidden;
  border-radius: 14px;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 clave */
  object-position: center;
}
  
}
/* Evitar espacio en blanco horizontal */
html, body {
  overflow-x: hidden;
}
/* 🔒 BLOQUEAR SCROLL CUANDO MENÚ ESTÁ ABIERTO */




.hamburger-btn {
  font-size: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2000;
  display: none; /* 🔹 oculto por defecto en pantallas grandes */
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Iconos dentro del botón */
.hamburger-btn .hamburger-icon {
  display: block;
  color: #1962ea;
}

.hamburger-btn .close-icon {
  display: none;
  color: #000;
}

/* Cuando el menú está abierto */
.hamburger-btn.open .hamburger-icon {
  display: none;
}
.hamburger-btn.open .close-icon {
  display: block;
}

/* ================= MENÚ HAMBURGUESA ================= */
.hamburger-menu {
  display: flex;
  flex-direction: column;
  padding: 190px 20px 20px 20px;
  background: rgba(25, 98, 234, 0.9);
  width: 280px;
  height: 100%;
  position: fixed;
  top: 0;
  right: -280px; 
  z-index: 1000;
  transition: right 0.3s ease;
}

.hamburger-menu.open {
  right: 0;
}

/* Animación de links */
.hamburger-menu a {
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  margin: 18px 0;
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateX(20px);
}

.hamburger-menu.open a:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateX(0); }
.hamburger-menu.open a:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateX(0); }
.hamburger-menu.open a:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateX(0); }
.hamburger-menu.open a:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateX(0); }
.hamburger-menu.open a:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateX(0); }

.hamburger-menu a:hover {
  transform: translateX(5px);
}


/* ================= MEDIA QUERY - mostrar en móviles ================= */


/* ================= HEADER / MENÚ HAMBURGUESA ================= */

/* Desktop: menú normal */
.hamburger-btn {
  display: none; /* oculto en desktop */
}
.hamburger-menu {
  display: none; /* oculto en desktop */
}


/* SOLO MÓVILES */
@media (max-width: 768px) {
  .hamburger-btn.open-btn {
    display: flex;           /* siempre visible */
    position: absolute;      /* relativo a header */
    top: 20px;               /* desde arriba del header */
    right: 20px;             /* desde la derecha del header */
    z-index: 50;             /* suficiente solo para el header */
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .hamburger-btn.open-btn img {
    width: 100%;
    height: auto;
  }
}
.scroll-top-btn {
  position: fixed;
  bottom: 25px;
  right: 20px;
  z-index: 9999;

  font-size: 38px; /* tamaño grande de la flecha */
  background: none; /* quitamos el fondo azul */
  border: none;

  cursor: pointer;
  display: none; /* oculto por defecto */
  transition: transform 0.2s ease;
}

.scroll-top-btn:hover {
  transform: scale(1.2); /* pequeño efecto al tocar */
}

/* solo móviles */
@media (max-width:768px){
  .scroll-top-btn{
    display:block;
  }
}
/* =================================================
   RESPONSIVE MOBILE (≤900px)
================================================= */
@media (max-width: 900px) {


/* =================================================
   BLOQUEAR SCROLL CUANDO EL MENÚ ESTÁ ABIERTO
================================================= */

html:has(.hamburger-menu.open),
body:has(.hamburger-menu.open) {
  overflow: hidden;
  height: 100vh;
}

html, body {
  overflow-x: hidden;
}


/* =================================================
   HEADER
================================================= */

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.header-content .logo {
  max-width: 150px;
  height: auto;
}
.header {
  position: relative;
}

/* =================================================
   NAV
===

/* seguridad para el boton */
.hamburger-btn{
  pointer-events:auto !important;
}

.hero,
.hero-wrapper {
  position: relative;
  z-index: 1;
}




/* BOTONES */
.hero-text .btn {
  display: block;        /* 🔥 uno debajo del otro */
  width: 100%;
  max-width: 260px;
  margin: 10px auto;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.95rem;
  border-radius: 30px;
}


.hamburger-menu.open ~ .hero .hero-text {
  opacity: 0;
  pointer-events: none;
}



/* =================================================
   MENÚ HAMBURGUESA
================================================= */

/* Desktop */

.hamburger-btn {
  display: none;
}

.hamburger-menu {
  display: none;
}


/* Mobile */

.hamburger-btn {
  display: flex;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
}


/* Iconos */

.hamburger-btn .hamburger-icon { display: inline; color: #1962ea; }
.hamburger-btn .close-icon { display: none; color: #fff; }
.hamburger-btn.open .hamburger-icon { display: none; }
.hamburger-btn.open .close-icon { display: inline; }


/* Menú */

.hamburger-menu {
  width: 100vw;
  height: auto;
  min-height: 100vh;
  right: -100vw;
  top: 0;
  padding: 60px 20px 20px 20px;
  background: #01537b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  position: fixed;
  z-index: 10000;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.hamburger-menu.open {
  right: 0;
}

.hamburger-menu a {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-align: center;
  font-size: 1.2rem;
  width: 100%;
  max-width: 250px;
  margin: 10px auto;
  padding: 10px 0;
  color: #fff;
  text-decoration: none;
}


/* Cerrar */

.close-btn {
  display: flex;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10001;
  background: transparent;
  border: none;
  cursor: pointer;
}

.close-btn img {
  width: 48px;
  height: auto;
}


/* Overlay */

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

}

