/* =================================================
   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 */
}


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 {
   align-items: flex-start; /* antes center */
  padding-top: 220px;     
}

.hero-grid {
  max-width: 520px;
  
}
.hero {
  padding-left: 0;
}

.hero .container {
  max-width: 1200px;
  margin-left: 80px;   /* 👈 siempre a la izquierda */
  margin-right: auto;
  padding: 0 20px;
}
.home .hero-wrapper {
  min-height: 80vh;
}

.home .hero {
  min-height: 60vh;
  align-items: center;
}


/* ================= HERO + HEADER ================= */
.hero-wrapper {
  min-height: 100vh;
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: heroSlider 15s infinite;
}

@keyframes heroSlider {
  0% {
    background-image: url("../img/Banner\ Principal\ 1.png");
  }

  33% {
    background-image: url("../img/Banner\ Principal\ 2.png");
  }

  66% {
    background-image: url("../img/Banner\ Principal\ 3.png");
  }

  100% {
    background-image: url("../img/Banner\ Principal\ 1.png");
  }
}

.hero-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  z-index: 2;
  pointer-events: none;

}



  


/* Overlay oscuro para legibilidad */
.hero-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* Todo el contenido encima del fondo */
.header,
.hero {
  position: relative;
  z-index: 3;
}
.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: 2.7rem; /* antes 3rem */
  white-space: nowrap;
}

.hero-text p {
  font-size: 1.15rem;
  white-space: nowrap;
}




.hero-actions {
  margin-top: 10px;
}
@media (min-width: 1600px) {
  .hero .container {
    margin-left: 120px;
  }

  .hero {
    padding-top: 300px;
  }

  .hero-text h1 {
    font-size: 3.4rem; /* 👈 más grande */
  }

  .hero-text p {
    font-size: 1.3rem; /* 👈 más grande */
  }
}
@media (min-width: 1600px) {

  .header-content {
    max-width: 1600px;
    padding: 0 80px; /* más aire */
  }

  /* Logo más grande */


   nav {
    margin-left: auto;
    padding-right: -10px; /* 👈 empuja más a la derecha */
  }

  nav ul {
    gap: 50px;
  }

  nav ul li a {
    font-size: 1.15rem;
  }

  nav ul li a.btn-contact {
    padding: 14px 24px;
    font-size: 1.1rem;
  }
}
/* =================================================
   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;
}

/* =================================================
   SECCIONES
   ================================================= */
.section{
  padding:80px 0;
  position:relative;
}

.section.light{
  background: linear-gradient(180deg, #f2f2f2 0%, #e6f0f8 100%);
}

.section-title{
  font-size:2.2rem;
  font-weight:700;
  color: var(--brand-blue);
  margin-bottom:10px;
}

.section-subtitle{
  font-weight:500;
  color: var(--brand-blue-light);
  margin-bottom:50px;
}

/* =================================================
   AUTHORITY / QUIÉNES SOMOS
   ================================================= */
/* ================= AUTORIDAD / PERFIL ================= */
.authority-section {
  position: relative;
  padding: 90px 0;
  background: linear-gradient(
    to bottom,
    rgba(1,83,123,0.04),
    rgba(255,255,255,0)
  );
  overflow: hidden;
}

/* Logotipos decorativos */
.authority-logo {
  position: absolute;
  width: 90px;

  pointer-events: none;
}

.authority-logo.left {
  top: 30px;
  left: 30px;
}

.authority-logo.right {
  top: 30px;
  right: 30px;
}

/* Layout */
.authority {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* TEXTO | IMAGEN */
  gap: 40px;
  align-items: center;
}


/* Imagen */
.authority-image {
  display: flex;
  justify-content: center;
}

.authority-image img {
  max-width: 420px;
  margin-left:0px; /* 👉 mueve a la derecha */
}


/* Contenido */
.authority-content {
  max-width: 580px;
  text-align: left;
  padding-left: 50px; /* 👉 mueve TODO el texto un poco a la derecha */
}


/* Título */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2; /* mejora legibilidad */
  color: var(--brand-blue);
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: black;
  margin-bottom: 50px;

  padding-left: 30px; /* 👉 mueve a la derecha */
}

.authority-content .section-title {
  text-align: center;
}


/* Animación base */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes floatSoft {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.authority-image img {
  animation: floatSoft 6s ease-in-out infinite;
}
@keyframes drift {
  0% {
    transform: translateY(0);
    opacity: 0.8;
  }
  100% {
    transform: translateY(10px);
    opacity: 1;
  }
}

.authority-logo.left {
  animation: drift 6s ease-in-out infinite alternate;
}

.authority-logo.right {
  animation: drift 7s ease-in-out infinite alternate-reverse;
}
/* ================= CARRUSEL DENTRO DE AUTHORITY ================= */
/* CONTENEDOR DEL CARRUSEL */
.authority-carousel {
  position: relative;
  overflow: visible; /* 🔥 deja salir las flechas */
}

/* TRACK */
.authority-carousel .carousel-track {
  display: flex;
  gap: 30px;
  align-items: center;
  overflow-x: auto;              /* 🔥 permite scroll */
  scroll-behavior: smooth;
  scrollbar-width: none;         /* Firefox */
}

/* Ocultar scrollbar */
.authority-carousel .carousel-track::-webkit-scrollbar {
  display: none;
}

/* ITEMS */
.authority-carousel .carousel-item {
  flex: 0 0 180px;               /* 🔥 ancho fijo */
  display: flex;
  justify-content: center;
}


.authority-carousel img {
  max-height: 70px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.authority-carousel img:hover {
  opacity: 1;
  transform: scale(1.05);
}
.authority-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(1, 83, 123, 0.9);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  transition: background 0.25s ease, transform 0.2s ease;
}

.authority-carousel .carousel-btn:hover {
  background: #01537b;
  transform: translateY(-50%) scale(1.08);
}

.authority-carousel .carousel-btn.prev {
  left: -12px;
}

.authority-carousel .carousel-btn.next {
  right: -12px;
}


/* Animación al entrar en vista */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ================= REVEAL AUTORIDAD ================= */
@media (prefers-reduced-motion: no-preference) {
  .authority-section {
    opacity: 0;
    transform: translateY(40px);
    animation: authorityReveal 1s ease forwards;
    animation-timeline: view();
    animation-range: entry 20% cover 35%;
  }
}

@keyframes authorityReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= DECORACIÓN QUIÉNES SOMOS ================= */

.about-section {
  position: relative;
  overflow: hidden;
}

/* Forma base */
.about-shape {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(1,83,123,0.18) 0%,
    rgba(1,83,123,0.08) 40%,
    rgba(1,83,123,0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Esquina superior izquierda */
.shape-top-left {
  top: -120px;
  left: -120px;
}

/* Esquina inferior derecha */
.shape-bottom-right {
  bottom: -120px;
  right: -120px;
}

/* Asegura que el contenido quede arriba */
.about-wrapper {
  position: relative;
  z-index: 1;
}


/* Encabezado */
.about-heading {
  margin-bottom: 40px;
}

.about-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #003f8a;    /* azul más intenso */
  opacity: 1;         /* texto completamente visible */
  font-weight: 600;   /* un poco más fuerte */
  margin-bottom: 10px;
}



/* Texto principal */
.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* Frase fuerte */
.about-highlight {
  font-size: 1.15rem;
  font-weight: 600;      /* un poco más fuerte */
  color: #000000;  
  letter-spacing: 0.2px;
     /* negro puro */
}

/* Línea editorial */
.about-divider {
  width: 60px;
  height: 3px;
  background: var(--brand-blue);
  margin: 30px 0;
  border-radius: 3px;
}


.value {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(6, 5, 5, 0.868);
}

.value span {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 6px;
}

.value strong {
  font-size: 1.6rem;
  color: var(--brand-blue);
}

.value p {
  font-size: 0.9rem;
  margin-top: 8px;
  color: var(--text-muted);
}

/* =================================================
   SERVICIOS DESTACADOS – AJUSTES FINALES
   ================================================= */

.featured-services {
  position: relative;      /* necesario para las formas */
  overflow: hidden;        /* oculta exceso de las formas */
  padding: 110px 0;
  background: linear-gradient(
    180deg,
    rgba(1,83,123,0.10) 0%,
    rgba(1,83,123,0.03) 60%,
    #ffffff 100%
  );
}

/* Reutiliza las mismas formas de "Quiénes somos" */
.featured-services .about-shape {
  opacity: 0.75;           /* un poco más sutil en servicios */
}

/* Asegura que el contenido quede encima */
.featured-services .container {
  position: relative;
  z-index: 1;
}

/* Grid de servicios (por si no estaba definido) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Tarjetas */
.featured-services .card {
  background: #f8fcff;
  border-radius: 18px;
  padding: 40px 30px;
  box-shadow: 0 15px 40px rgba(1,39,62,0.08);
  transition: all .35s ease;
}

.featured-services .card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 35px 80px rgba(1,39,62,0.15);
}

/* Imagen dentro de la card */
.featured-services .service-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
}

.featured-services .service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.featured-services .card:hover .service-image img {
  transform: scale(1.05);
}

/* Texto */
.featured-services .card h3 {
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--brand-blue);
}

.featured-services .card p {
  color: var(--text-muted);
  line-height: 1.6;
}


/* =================================================
   CARRUSEL DE EMPRESAS

  
/* =================================================
 


/* ================= CASOS DE ESTUDIO – ESTILO EDITORIAL ================= */

/* =================================================
   CASOS DE ESTUDIO – FONDO DINÁMICO
   ================================================= */
#casos-estudio {
  position: relative;
  overflow: hidden;
  padding: 110px 20px;
  background: linear-gradient(
    180deg,
    rgba(1,83,123,0.12) 0%,
    rgba(1,83,123,0.03) 60%,
    #ffffff 100%
  );
}


/* Formas flotantes (divs) */
.cases-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(1,83,123,0.15) 0%, rgba(1,83,123,0) 70%);
}

/* Arriba izquierda */
.cases-shape.shape-top-left {
  width: 300px;
  height: 300px;
  top: -120px;
  left: -120px;
  animation: floatSlow 15s ease-in-out infinite alternate;
}

/* Abajo derecha */
.cases-shape.shape-bottom-right {
  width: 220px;
  height: 220px;
  bottom: -100px;
  right: -100px;
  animation: floatSlow 18s ease-in-out infinite alternate-reverse;
}

/* Animación de flotación */
@keyframes floatSlow {
  0% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) translateX(8px) rotate(5deg);
  }
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
}

/* Contenido encima */
#casos-estudio > .container {
  position: relative;
  z-index: 1;
}

/* Contenido encima de las formas */
#casos-estudio > .container {
  position: relative;
  z-index: 1;
}

/* Ajustes de cases-list (grid) */
.cases-list {
  margin-top: 50px;
}

/* Grid de casos */
.case-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(1,83,123,0.12);
}

/* Casos pares → imagen a la derecha */
.case-row:nth-child(even) {
  grid-template-columns: 1fr 180px;
}

.case-row:nth-child(even) .case-thumb {
  order: 2;
}

.case-row:nth-child(even) .case-content {
  order: 1;
  text-align: left;
}

/* Imagen */
.case-thumb img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

/* Contenido */
.case-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 10px;
}

.case-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.case-meta {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue-light);
  margin-bottom: 8px;
}

.case-link {
  font-weight: 600;
  color: var(--brand-blue);
}

.case-link:hover {
  color: var(--brand-blue-light);
}



/* =================================================
   NOSOTROS / TEAM
   ================================================= */
.team{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:40px;
}

.team-member{
  text-align:center;
}

.team-member img{
  border-radius:50%;
  margin-bottom:15px;
}

.team-member h4{
  font-weight:700;
  color: var(--brand-blue);
}

.team-member span{
  font-size:.9rem;
  color: var(--brand-blue-light);
}

/* =================================================
   FORMULARIO / CONTACTO
   ================================================= */
form{
  max-width:600px;
}

input, textarea{
  width:100%;
  padding:14px;
  border-radius:10px;
  border:1px solid var(--gray-medium);
  margin-bottom:15px;
  font-family:inherit;
}

textarea{
  resize:none;
  height:140px;
}

/* =================================================
   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;
}
.contact-item a {
  color: inherit;
  text-decoration: none;
}
.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;
}/* ================= BOTÓN HAMBURGUESA - versión íconos ================= */
.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 ================= */


/* ================= 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 */
}

.read-more {
  display: none;
}

/* 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 */
}
.authority-content,
.authority-image {
  opacity: 0;
  transform: translateY(80px); /* más abajo para que se note */
  transition: opacity 1.4s ease, transform 1.4s ease; /* más lento */
}

.authority-section.visible .authority-content,
.authority-section.visible .authority-image {
  opacity: 1;
  transform: translateY(0);
}

/* Grid base: 1 columna (móvil) */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px; /* espacio arriba/abajo y laterales */
}

/* Tarjetas blancas con sombra */
.testimonial-card {
  background: #ffffff; /* blanco */
  border-radius: 16px;
  padding: 28px 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: left;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: #666;
}

/* ================= TABLET (≥ 600px) ================= */
@media (min-width: 600px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================= DESKTOP (≥ 900px) ================= */
@media (min-width: 900px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* 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
================================================= */

nav ul {
  flex-direction: column;
  gap: 15px;
  width: 100%;
  display: none;
  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;
}


/* =================================================
   DESACTIVAR ANIMACIONES EN MOBILE
================================================= */

.card,
.featured-services .card,
.service-image img {
  animation: none !important;
  transform: none !important;
  transition: none !important;
}


/* =================================================
   HERO
================================================= */

.hero-wrapper {
  position: relative;
  min-height: auto;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  animation: none !important;          /* desactiva heroSlider */
    background-image: url("../img/Banner\ Principal\ 1-convertido-a-400x600\ \(5\).jpeg") !important; /* tu imagen móvil */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero-wrapper::before{
  pointer-events:none;
}

/* seguridad para el boton */
.hamburger-btn{
  pointer-events:auto !important;
}

.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;
}


/* TEXTO HERO */

.hero-text {
    opacity: 1;
    transform: none;
    animation: none;
    color: #f5f5f5;
    z-index: 1;
    transition: opacity 0.3s ease;

    text-align: left;       /* mueve todo a la izquierda */
    padding-left: 10px;     /* ajusta margen interno */
    margin-left: -90px;         /* opcional si quieres cero margen externo */
  }

  .hero-text h1 {
    font-size: 1.5rem;      
    line-height: 1.2;
    margin-bottom: 19px;
    white-space: nowrap;    /* evita salto de línea */
    overflow: hidden;       /* corta exceso si no cabe */
    text-overflow: ellipsis;
  }

  .hero-text p {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    white-space: normal !important;   /* permite saltos */
    margin-bottom: 20px !important;
  }

.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;
}

body.menu-open .hero {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}




/* =================================================
   AUTHORITY
================================================= */

.authority-section {
  padding: 40px 0;
}

.authority {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.authority-logo {
  display: none;
}

.authority-content {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.authority-content h2 {
  font-size: 24px;
}

.authority-content p {
  padding-left: 0 !important;
  margin-left: 0 !important;
  text-align: left !important;
  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: 340px;
  margin: 0 auto;
  display: block;
}




/* =================================================
   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;
}

body.menu-open {
  overflow: hidden;
  height: 100vh;
}


/* Redes */

.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
================================================= */

.cases-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.case-row {
  display: flex;
  flex-direction: column;
  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;
}

#casos-estudio .btn {
  display: block;
  width: 100%;
  text-align: center;
}


/* =================================================
   TESTIMONIOS
================================================= */

.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 strong {
  display: block;
  font-size: 0.9rem;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: #666;
}


/* =================================================
   FOOTER
================================================= */

footer .footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.footer-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.footer-logo img {
  display: block;
  margin: 0 auto;
  max-width: 570px;
}

.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;
}

.footer-social {
  order: 3;
  width: 100%;
}

.footer-social ul {
  padding-left: 0;
  list-style: none;
}

.footer-social li {
  margin-bottom: 8px;
}


/* =================================================
   SERVICES
================================================= */

.services-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.services-row .service-image,
.services-row .service-image img,
.services-row img.service-img {
  display: none !important;
}

.services-row .service-icon,
.services-row i,
.services-row svg {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.services-row .service-card {
  padding: 18px 16px;
}


}
/* Evitar espacio en blanco horizontal */
html, body {
  overflow-x: hidden;
}
/* 🔒 BLOQUEAR SCROLL CUANDO MENÚ ESTÁ ABIERTO */


