* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.6;
  text-align: justify;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.logo-mobile {
  display: none;
}

/* ========================= Hero ========================= */
.hero {
  background: linear-gradient(rgba(10,31,68,0.8), rgba(10,31,68,0.8)),
              url('icons/hero.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
}


/*------------Quienes somos-----------------*/
.quienes-somos {
  position: relative;
  border-radius: 8px;
  padding: 4rem 2rem;

  background: 
    linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)),
    url('icons/hero2.jpeg') center/cover no-repeat;
    
}


.quienes-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.quienes-texto {
  flex: 1;
  font-size: 1rem;
}

.quienes-texto p {
  margin-bottom: 1rem;
}



.quienes-imagen img {
  width: 100%;
  max-width: 420px;   /* 👈 un poco más grande y elegante */
  border-radius: 12px;
  margin: auto;
  display: block;
}


.quienes-texto p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.quienes-somos h2 {
  font-size: 2.25rem;
}



/* ===== SECCIÓN EQUIPO ===== */
.equipo {
  text-align: center;
}

.equipo h2 {
  font-size: 2.3rem;

}
/* GRID */
.equipo-grid {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* TARJETA */
.miembro {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 320px;
  width: 100%;

  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* HOVER elegante */
.miembro:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* IMAGEN */
.miembro img {
  width: 100%;
  height: 300px;             /* 👈 altura fija para uniformidad */
  object-fit: cover;         /* 👈 recorte profesional */
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* NOMBRE */
.miembro h3 {
  color: #0a1f44;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

/* ESPECIALIDAD */
.miembro p {
  color: #555;
  font-size: 0.95rem;
}



/* ========================= Container ========================= */
.container {
  max-width: 1000px;
  margin: auto;
  padding: 3rem 2rem;
}

h2 {
  text-align: center;
  margin-bottom: 4rem;
  color: #0a1f44;
  margin-top: 70px;
  font-size: 1.7rem;
}

/* ================== Bloques jurídicos (Civil, Laboral, Pensiones) ================= */
.btn-vermas {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 1rem;

  background: transparent;
  border: 1px solid #0a1f44;
  color: #0a1f44;

  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;

  transition: all 0.3s ease;
  align-self: flex-start;
}

.bloque-azul .btn-vermas {
  border: 1px solid #fff;
  color: #fff;
}

.btn-vermas:hover {
  background: #0a1f44;
  color: #fff;
}

.bloque-azul .btn-vermas:hover {
  background: #fff;
  color: #0a1f44;
}




.bloque-juridico { 
  display: flex;
  flex-wrap: wrap;
  align-items: center;   /* centra vertical */
  justify-content: center;
  border-radius: 0;
  padding: 3rem 2rem;
  margin: 0;
  width: 100%;
  gap: 2rem;
}

/* Fondo azul */
.bloque-azul {
  background-color: #0a1f44;
  color: #fff;
}

.bloque-azul h3 { 
  color: #fff; 
}

.bloque-blanco {
  background-color: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* Imagen */
.bloque-juridico .bloque-imagen {
  flex: 1;
  display: flex;
  justify-content: center;
}

.bloque-juridico .bloque-imagen img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  object-fit: cover;
}

/* Texto */
.bloque-juridico .bloque-contenido {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
}

/* Tipografía */
.bloque-juridico h3 {
  margin-top: 0;
  font-size: 1.8rem;
}

.bloque-juridico p {
  text-align: justify;
  text-justify: inter-word;
}

.bloque-juridico ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.bloque-juridico li {
  margin-bottom: 0.5rem;
}

/* Workflow */

.workflow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
  align-items: stretch;
  justify-content: center;
  max-width: 600px;   /* 🔥 ajusta según se vea mejor */
  margin: 0 auto;
}

/* Contenedor de cada paso */
.workflow .card {
  background: #f9f9f9;          /* fondo claro */
  border: 2px solid #0a1f44;    /* borde azul distintivo */
  border-radius: 8px;           /* esquinas redondeadas */
  padding: 1.5rem;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;

  height: 100%;
  justify-content: flex-start;
  text-align: center;
}

.workflow .card:hover {
  transform: translateY(-5px);  /* efecto al pasar el mouse */
}

.workflow .card strong {
  color: #0a1f44;
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.workflow .card h4 {
  margin-bottom: 0.5rem;
  color: #0a1f44;
}

.workflow .card p {
  min-height: 60px;
}
/* ========================= FAQ ========================= */
.faq-item {
  margin-bottom: 1rem;
}

.faq-question {
  background: #0a1f44;
  color: #fff;
  border: none;
  padding: 1rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-weight: bold;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #132f66;
  transform: translateY(-3px);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;

  background: #f4f4f4;
  padding: 0 1rem; /* 👈 sin padding vertical cuando está cerrado */
  border-radius: 6px;
  margin-bottom: 1rem;

  transition: all 0.4s ease;
}

/* abierto al pasar el mouse */
.faq-item:hover .faq-answer {
  max-height: 300px;
  opacity: 1;
  padding: 1rem;
}


/* Animación de aparición al hacer scroll */
section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-in-out;
  will-change: transform;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}
 /* ========================= Footer ========================= */
footer {
  background: #0a1f44;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

footer p {
  margin: 0.5rem 0;
}

.social {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex: 1; /* ocupa espacio central */
  text-align: center;
}

.social a:hover {
  text-decoration: underline;
}

.social a { 
  color: #d2c684; /* amarillo para destacar */
  text-decoration: none;
  font-size: 1rem;
}

.social span { 
  color: #fff; /* blanco para separadores */
}

/* ========================= Testimonios ========================= */

.testimonios {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 3rem 2rem;
  position: relative;
  overflow: visible;
}

/* ========================= Carrusel ========================= */

.carousel {
  position: relative;
  overflow: hidden;
  width: 80%;       /* ancho del carrusel */
  margin: auto;     /* centrado dentro del container */;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonio {
  flex: 0 0 33.333%; /* 3 testimonios visibles */
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.testimonio p {
  font-style: italic;
  margin-bottom: 1rem;
  color: #333;
}

.testimonio h4 {
  text-align: right;
  color: #0a1f44;
  font-weight: bold;
}

/* ========================= Flechas del carrusel ========================= */

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #0a1f44;
  color: #fff;
  border: none;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  border-radius: 50%;   /* forma circular elegante */
  font-size: 1rem;
  z-index: 10;
}

/* Flecha izquierda */
.carousel-btn.prev {
  left: 10px;   /* ajusta más o menos según lo lejos que quieras */
}

/* Flecha derecha */
.carousel-btn.next {
  right: 10px;  /* ajusta más o menos según lo lejos que quieras */
}
.carousel-btn:hover {
  background: #132f66;
}


.blog {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 3rem 2rem;
}

.blog h2 {
  color: #0a1f44;
  margin-bottom: 2rem;
  text-align: center;
}

.post {
  background: #fff;
  border: 1px solid #ddd;
  border-left: 4px solid #0a1f44; /* detalle técnico */
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 6px;
}

.post h3 {
  color: #0a1f44;
  margin-bottom: 1rem;
}

.post p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.post .referencia {
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
  border-top: 1px dashed #ccc;
  padding-top: 0.5rem;
}


/* Fondo del modal */
.modal {
  display: none; /* oculto por defecto */
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); /* fondo semi-transparente */
  justify-content: center;
  align-items: center;
}

/* Caja del modal */
.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
}

/* ========================= Botones dentro del modal ========================= */

.modal-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 1.5rem;
}

.modal-buttons button {
  background: #0a1f44;
  color: #fff;
  border: none;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s;
}

.modal-buttons button:hover {
  background: #132f66;
}

/* ========================= Botón de cerrar (X) ========================= */

.close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}


/* ========================= Información básica ========================= */
.contact-info {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* ========================= Botones rápidos ========================= */
.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}



/* ========================= Formulario ========================= */

/* ========================= Caja de contacto =========================*/

.container.contacto {
  background: 
    linear-gradient(rgba(255, 255, 255, 0.341), rgba(255, 255, 255, 0.297)),
    url('icons/Contactanos.jpg') center/cover no-repeat;

  border-radius: 8px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 600px;
}

.contact-form {
  border-radius: 8px;
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;

background: rgba(255, 255, 255, 0.35);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
padding: 2rem;
}

.contact-form label {
  font-weight: bold;
  color: #0a1f44;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Botón ENVIAR */
.contact-form button[type="submit"] {
  background: #132f66;
  color: #fff;
  border: none;
  padding: 0.8rem;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.3s;
}

/* Botones Gmail y WhatsApp */
.btn-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.2s ease;
}

.btn-icon img {
  width: 55px;
  height: 55px;
}

.btn-icon:hover {
  transform: scale(1.1);
}

.btn-icon:focus {
  outline: none;
}

.contact-info {
  margin-top: -3.5rem;
}



/*----------------BOTON AGENDA------*/

.cta-servicio .btn-vermas {
  background: #fff;        /* fondo blanco */
  color: #0a1f44;          /* texto azul */
  border: none;
}

/* Hover elegante */
.cta-servicio .btn-vermas:hover {
  background: #d4af37;     /* dorado */
  color: #0a1f44;
}


.btn-agenda {
  position: fixed;       /* 👈 lo fija en la pantalla */
  bottom: 20px;          /* distancia desde abajo */
  right: 20px;           /* distancia desde la derecha */
  background: lch(72.91% 73.38 83.94 / 0.76);   /* amarillo */
  border: none;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  border-radius: 6px;
  font-weight: bold;
  color: #0a1f44;
  z-index: 999;          /* asegura que quede encima de todo */
  transition: background 0.5s;
}

.btn-agenda:hover {
  background: #e6c200;   /* tono más oscuro al pasar el mouse */
  transform: translateY(-4px);
}


/* ========================= Menú a la derecha ========================= */

nav {
  display: block; /* nav existe en desktop, con ul horizontal */
  position: static;
  background: transparent;
  padding: 0;
  width: auto;
}

nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;      /* horizontal en desktop */
  gap: 2rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}



/* ========================= Botones de menú ========================= */

/* ========================= Estilos compartidos para ambos botones ========================= */

.menu-toggle,
.menu-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: none;           /* ocultos en desktop */
}

/* Estilos específicos */
.menu-toggle {
  font-size: 2rem;         /* tamaño más grande para el ícono del menú */
}

.menu-close {
  font-size: 1.5rem;       /* tamaño un poco menor */
  position: absolute;      /* botón flotante */
  top: 10px;
  right: 15px;
}

/*-----------html.servicios-------*/

#servicios h2 {
  font-size: 2rem;
  margin: 0;
}

#servicios {
  text-align: center;
  padding: 4rem 0 2rem;
  background: linear-gradient(to bottom, #f9f9f9, #ffffff);
}

/* 🔥 línea elegante debajo del título */
#servicios h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: #d4af37; /* dorado */
  margin: 12px auto 0;
  border-radius: 2px;
}

.subtitulo-servicios {
  margin-top: 0.8rem;
  color: #666;
  font-size: 1rem;
}

.hero-interno {
  background: linear-gradient(rgba(10,31,68,0.8), rgba(10,31,68,0.8)),
              url('icons/hero.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
}

.detalle-servicio {
  text-align: center;
}

.detalle-servicio p {
  max-width: 700px;
  margin: 1rem auto;
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.7;
}

.detalle-servicio ul {
  display: inline-block;
  text-align: left;
  margin-top: 1rem;
}

.cta-servicio {
  text-align: center;
  padding: 3rem 2rem;
  background: #e0e1e3;
  color: #0a1f44;
  margin-top: 2rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.servicio-box {
  background: #f9f9f9;
  border-left: 4px solid #0a1f44;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
}

.lista-centro {
  max-width: 600px;
  margin: auto;
  text-align: left;
}

.intro-pensiones {
  position: relative;
  border-radius: 8px;
  padding: 3rem 2rem;

  background: 
    linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
    url('icons/icon-pensiones.png') center/cover no-repeat;
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.7;
}

/* CIVIL */
.intro-civil {
  position: relative;
  border-radius: 8px;
  padding: 3rem 2rem;

  background: 
    linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
    url('icons/icon-civil.png') center/cover no-repeat;
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.7;
}

/* LABORAL */
.intro-laboral {
  position: relative;
  border-radius: 8px;
  padding: 3rem 2rem;

  background: 
    linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
    url('icons/icon-laboral.png') center/cover no-repeat;
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.7;

}

.intro-content {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.intro-texto {
  max-width: 800px;
  font-size: 1.1rem;
}

.intro-texto p {
  margin-bottom: 1rem;
}

.card-servicio {
  background: #fff;
  border-radius: 10px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;

  border-left: 5px solid #0a1f44; /* línea elegante */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-servicio:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-servicio h3 {
  color: #0a1f44;
  margin-bottom: 0.5rem;
}

.card-servicio .sub {
  color: #555;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.card-servicio ul {
  padding-left: 1.2rem;
}

.card-servicio li {
  margin-bottom: 0.4rem;
}

.problemas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.problema-item {
  background: #f9f9f9;
  padding: 1.2rem;
  border-radius: 8px;
  border-left: 5px solid #e5e2e2; 

  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  font-weight: 500;
  transition: transform 0.2s ease;
}

.problema-item:hover {
  transform: translateY(-3px);
}

.ventajas-simple {
  text-align: center;
}

.ventajas-lista {
  max-width: 800px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ventaja h3 {
  color: #0a1f44;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.ventaja p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
}


/* 👇 El dropdown SIEMPRE vertical */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);

  background: #061b32;
  list-style: none;

  display: flex;              /* 🔥 AÑADE ESTO */
  flex-direction: column;

  padding: 0;          /* 🔥 más compacto */
  border-radius: 6px;
  margin: 0;

  min-width: 180px;
  z-index: 2000;

  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  gap: 0 !important;
}

.animar {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-in-out;
}

.dropdown-menu a {
  display: block;                /* 🔥 CAMBIA ESTO (no flex) */
  padding: 0.5rem 1rem;          /* tamaño limpio */
  font-size: 0.9rem;
  line-height: 1.2;

  white-space: nowrap;           /* evita que crezca raro */
}

.dropdown-menu li {
  margin: 0!important;
  padding: 0!important;
}

.dropdown {
  position: relative;
  display: inline-block; /* 👈 importante */
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a:hover {
  background: #0a1f44;
  padding-left: 1.2rem; /* pequeño efecto */
}

.dropdown-menu li + li {
  margin-top: 0 !important; /* 🔥 evita separación automática */
}

.dropdown-menu li:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}


.ventaja i {
  color: #d4af37; /* dorado elegante */
  margin-right: 8px;
}

.problema-item strong i {
  color: #d4af37; /* dorado elegante */
  margin-right: 8px;
  font-size: 16px;
}

.porque-elegirnos {
  background: #ffffff;
  padding: 80px 20px;
  text-align: center;
    border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.porque-elegirnos h2 {
  font-size: 32px;
  color: #0a1f44; /* azul oscuro */
  margin-bottom: 25px;
  position: relative;
}

/* línea decorativa dorada */
.porque-elegirnos h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #d4af37;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* contenedor del texto */
.porque-elegirnos p {
  max-width: 800px;
  margin: 15px auto;
  font-size: 16px;
  color: #444;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
}
  

/* efecto sutil al hacer scroll (opcional si usas animaciones después) */
.porque-elegirnos p:hover {
  color: #000;
}

.estadisticas {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 1px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 38px;
  color: #d4af37; /* dorado */
  margin: 0;
  font-weight: 700;
}

.stat p {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
}

/* separación visual opcional */
.stat:not(:last-child) {
  border-right: 1px solid #eee;
  padding-right: 40px;
}

/*logos*/

.logos {
  text-align: center;
  margin-top: 3rem;
}

.logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Logos */
.logos-grid img {
  height: 90px;
  object-fit: contain;

  filter: none;
  opacity: 1;

  transition: all 0.3s ease;
}


/* Hover elegante */
/* Para que el link no afecte diseño */
.logos-grid a {
  display: inline-block;
}

/* Hover sobre el link */
.logos-grid a:hover img {
  transform: scale(1.08);
}

/* Texto legal */
.nota-legal {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #777;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================= HEADER NUEVO (LOGO IMAGEN) ========================= */

.header-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto; /* ajusta según tu logo */
  z-index: 1000;
  overflow: visible;
}

/* Imagen de fondo (logo horizontal) */
.header-bg img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Contenido encima */
.header-overlay {

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;

   background: rgba(0, 0, 0, 0.1);
}

/* ========================= INFO (iconos) ========================= */

.header-info {
  display: flex;
  flex-direction: column;   /* 🔥 vertical */
  align-items: flex-start;  /* izquierda */
  gap: 0.3rem;
}

.header-info a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  

  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;

  transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-info a i {
  color: #c8a35c; /* 🔥 dorado elegante */
  font-size: 1rem;
  width: 18px;
}

.header-info a:hover {
  opacity: 0.85;
  transform: translateX(3px);
}

/* ========================= NAV ========================= */

.header-overlay nav {
  display: block;
}

.header-overlay nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.header-overlay nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.header-overlay nav a:hover {
  text-decoration: underline;
}

/* ========================= BOTONES MENÚ ========================= */

.menu-toggle,
.menu-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: none;
}

.menu-toggle {
  font-size: 2rem;
}

.menu-close {
  font-size: 1.5rem;
  position: absolute;
  top: 10px;
  right: 15px;
}

/* ========================= SCROLL HEADER ========================= */

.header-banner.hide {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.header-banner {
  transition: transform 0.3s ease;
}

/* ================================================RESPONSIVE CELULAR============================================================= */
@media (max-width: 768px) {

 .header-banner {
    background: #061b32;
    height: 140px;
  }

 .logo-mobile{
    display: block ;
    width: clamp(300px, 85%, 400px);
    margin-bottom: 8px;
    z-index: 3;
    margin: 10px auto 5px auto;
    
  }
  
  .header-overlay {
    flex-wrap: nowrap;
    align-items: center;
    padding: 0.8rem 1rem;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

  .header-info {
   /* 🔥 CLAVE: lo saca del overlay */
    display: flex;
    flex-direction: row; /* en línea */
    justify-content: center;
    align-items: center;
    gap: 1rem;

    width: auto;
    
  }

  .header-info a {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0; /* 🔥 CLAVE */
  }

  .header-info a i {
    font-size: 0.8rem;
  }

  .header-bg {
    display: none; /* 🔥 elimina conflicto */
  }

  .header-bg img {
  width: 100%;
  height: 140px;        /* 🔥 altura fija elegante */
  object-fit: cover;
  object-position: 40% center;
   }

  .menu-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    display: block;
    font-size: 1.6rem;
    flex-shrink: 0;
    z-index: 10;
    transform: translateY(-50%);
  }

  .header-overlay nav {
    position: absolute;
    top: 60%;
    right: 10px;
    background: #061b32;
    border-radius: 8px;
    padding: 1rem;
    display: none;
    flex-direction: column;
    width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 2000;
  }

  .header-overlay nav.show {
    display: flex;
  }

  .header-overlay nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .menu-close {
    display: block;
  }


  .estadisticas {
    gap: 30px;
  }

  .stat:not(:last-child) {
    border: none;
    padding: 0;
  }

  /* =========================
     COMPENSAR HEADER FIXED
  ========================= */
  body {
    padding-top: 140px;
    transform: none !important;
  }
  
  .quienes-content {
    flex-direction: column;
    text-align: center;
  }

  .equipo-grid {
    display: flex;
    flex-wrap: nowrap;   /* 🔥 evita que bajen */
    justify-content: center;
    gap: 1rem;
  }

  .miembro {
    width: 45%;          /* 🔥 caben 2 en fila */
    max-width: none;
  }

  .miembro img {
    height: auto;
    object-fit: contain;
  }

  .bloque-juridico {
    align-items: center;       /* 👈 centra verticalmente */
    justify-content: center;   /* 👈 centra horizontalmente */
    gap: 1rem;
    text-align: left;
  }

  .bloque-juridico .bloque-imagen {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;   /* 👈 centra horizontalmente la imagen */
    align-items: center;       /* 👈 centra verticalmente */
  }

  .bloque-juridico .bloque-imagen img {
    max-width: 360px;          /* 👈 mismo tamaño que en PC */
    margin: 0;                 /* 👈 elimina margin-left */
  }

  .bloque-juridico .bloque-contenido {
    flex: 1;
    max-width: 600px;          /* 👈 igual que en PC */
    padding-left: 0;           /* 👈 sin padding fijo */
  }

    .bloque-juridico .bloque-contenido ul {
    list-style: disc; 
    padding-left: 1.5rem;
    text-align: left;
    display: inline-block;   /* 👈 centra la lista */
  }

  .bloque-juridico .bloque-contenido li {
    margin-bottom: 0.5rem;
  }

  .bloque-contenido .btn-vermas {
  margin-top: auto;   /* 🔥 ESTO LO ARREGLA TODO */
  align-self: flex-start; /* opcional: lo alinea a la izquierda */
}


  .container.contacto {
    max-width: 95%;       /* se adapta al ancho del móvil */
    padding: 1rem;        /* menos espacio interno */
    margin: 1rem auto;    /* separación más compacta */
  }

  .container.contacto input,
  .container.contacto textarea,
  .container.contacto button {
    width: 100%;          /* 👈 los campos ocupan todo el ancho */
    box-sizing: border-box;
  }
    .workflow {
    grid-template-columns: repeat(2, 1fr);   /* 👈 en móvil: una columna */
    max-width: 95%;
    gap: 1rem;
  }

  .workflow .card {
    padding: 1rem;
  }

  /* ========================= Botón ☰ visible =========================*/
  
  .menu-toggle {
    display: block;
    font-size: 2rem;
    line-height: 1;
  }

  /* ========================= Menú desplegable como panel ========================= */

  nav {
    position: absolute;
    top: 70px;       /* ajusta según la altura real del header */
    right: 20px;
    background: #0a1f44;
    border-radius: 8px;
    padding: 1rem 1rem 1.25rem;
    display: none;   /* oculto por defecto en móvil */
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
    width: 240px;    /* ancho cómodo en móvil */
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }
  
  nav.show { display: flex; } /* se muestra al activar */

  /* ========================= Lista vertical en móvil ========================= */
  
  nav ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /* ========================= Botón ✖ flotante en el panel ========================= */
  
  .menu-close {
    display: block;
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 1.5rem;
    line-height: 1;
  }
}




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

@media (min-width: 769px) {
  .bloque-juridico {
    align-items: center;       /* 👈 centra verticalmente */
    justify-content: center;   /* 👈 centra horizontalmente */
    gap: 1.5rem;
    text-align: left;
  }

  .bloque-juridico .bloque-imagen {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;   /* 👈 centra horizontalmente la imagen */
    align-items: center;       /* 👈 centra verticalmente */
  }

  .bloque-juridico .bloque-imagen img {
    max-width: 400px;          /* 👈 mismo tamaño que en PC */
    margin: 0;
  }

  .bloque-juridico .bloque-contenido {
    flex: 1;
    max-width: 600px;          /* 👈 igual que en PC */
    padding-left: 0;           /* 👈 sin padding fijo */
  }

    .container.contacto {
    max-width: 90%;       /* ocupa casi todo el ancho disponible */
    padding: 1.5rem;      /* reduce el padding */
    margin: 1.5rem auto;  /* ajusta separación */
  }

    .workflow {
    grid-template-columns: repeat(2, 1fr);   /* 👈 en tablet: una columna */
    max-width: 90%;
    gap: 1.5rem;
  }

  .workflow .card {
    padding: 1.25rem;
  }
  /* ========================= Menú sigue horizontal en tablet (como desktop) ========================= */

  nav {
    position: static;
    background: transparent;
    padding: 0;
    display: block;
    width: auto;
  }

  nav ul {
    flex-direction: row;   /* ✅ horizontal como debe ser */
    gap: 1.5rem;
  }

  .menu-toggle, .menu-close { display: none; }

  /* Mostrar dropdown al pasar el mouse (solo en PC) */

  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}



  
/* ========================= AJUSTE GLOBAL ========================= */

/* Evita que el contenido quede debajo del header */
body {
  padding-top: 110px;
}

/* ========================= Guion dorado de h2 ========================= */
#proceso h2::after,
#faq h2::after,
#testimonios h2::after,
#blog h2::after,
#quienes-somos h2::after,
.equipo h2::after,
.logos h2::after,
.detalle-servicio h2::after,
.container h2::after,
.cta-servicio h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: #d4af37;
  margin: 12px auto 0;
  border-radius: 2px;
}

/*No se ve logo en pc*/
