/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.6;
  background: var(--light);
  color: var(--primary);
  scroll-behavior: smooth;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}


/* --- Animaciones reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 2s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar */
header {
  position: fixed;
  width: 100%;
  background: #EFEDE7;
  z-index: 1000;
}

/* --- NAVBAR --- */
nav {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 144px;
  height: 104px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.logo {
  max-width: 129px;
  max-height: 96px;
}

.logo img {
  height: 69px;
  max-width: 129px;
  cursor: pointer;
}

/* --- LINKS --- */
.nav-links {
  list-style: none;
  display: flex;
  gap: 3.5rem;
  align-items: center;
  justify-content: center;
}

.nav-links a {
  color: #24406C;
  font-weight: 600;
  font-size: 1.4rem;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #DEA95A;
}

/* --- BOTÓN CONTACTO --- */
.btn-contacto {
  display: flex;
  align-items: center;
  background: #24406C;
  border: 1px solid;
  padding: 16px 32px;
  border-radius: 12px;
  font-family: Roboto;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-contacto:hover {
  background: #1E3456;
}

/* --- HAMBURGUESA --- */
/* --- HAMBURGUESA --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
  position: relative;
  width: 28px;
  height: 22px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

/* 🔹 Mantiene tus 3 líneas como siempre */
.hamburger.active span {
  opacity: 0; /* Las oculta al hacer clic */
}

/* 🔹 Inserta la imagen de "X" cuando está activo */
.hamburger.active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  background: url("img/close_hamb_icon.svg") no-repeat center center;
  background-size: contain;
  transform: translate(-50%, -50%);
}

/* --- EXTRA CONTACTO --- */
.extra-contacto {
  display: none;
}

/* === MEDIA QUERIES === */

@media (min-width: 1280px) {
  nav {
    padding: 0 79.5px;
  }
  .nav-links {
    gap: 3rem;
  }
  .nav-links a {
    font-size: 1.2rem;
  }
  .btn-contacto {
    font-size: 1rem;
    padding: 14px 28px;
    margin-left: 120px;
  }
}

/* 1025px–1279px */
@media (max-width: 1279px) and (min-width: 1025px) {
  nav {
    padding: 0 64px;
  }
  .nav-links {
    gap: 1.5rem;
  }
  .nav-links a {
    font-size: 1.3rem;
  }
}

/* 769px–1024px */
@media (max-width: 1024px) and (min-width: 769px) {
  nav {
    padding: 0 64px;
  }
  .nav-links {
    gap: 1.4rem;
  }
  .nav-links a {
    font-size: 1.2rem;
  }
  .btn-contacto {
    padding: 12px 24px;
    font-size: 0.95rem;
     margin-left: 48px;
  }
}

/* ≤768px */
@media (max-width: 768px) {
  nav {
    padding: 0 16px;
    height: 70px;
  }

  .logo img {
    height: 48px;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 70px);
    background: #EFEDE7;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    gap: 2rem;
    display: none;
    overflow-y: auto;
    z-index: 1000;
    margin: 0;
    transition: transform 0.3s ease-in-out;
    transform: translateY(-100%);
  }

  .nav-links.active {
    display: flex;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    height: 50px;
  }

  .nav-links li a {
    width: 90%;
    text-align: left;
    margin-left: 20px;
    display: inline-block;
    font-size: 44px;
    font-family: "Sentient";
    font-weight: 300;
  }

  .link::before {
    content: "";
    display: block;
    width: 90%;
    border-top: 1px solid black;
    margin: 0 auto;
  }

  .btn-link {
    padding: 20px;
  }

  .btn-contacto {
    width: 147px;
    margin: 0 auto;
    text-align: center;
   
  }

  .nav-links.active .extra-contacto {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 30px;
    padding-bottom: 20px;
    font-family: "Sentient";
  }

  .extra-contacto p {
    margin: 5px 0;
  }

  .extra-contacto a {
    font-size: 24px;
    color: #24406C;
    text-decoration: none;
  }

  .extra-contacto a:hover {
    text-decoration: underline;
  }
}

/* === HERO === */
.hero {
  position: relative;
  height: 765px;
  padding: 168px 144px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  overflow: hidden;
  background-color: transparent;
}

.hero-video,
.video.mobile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.video.mobile { display: none; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #70552E;
  mix-blend-mode: hard-light;
  pointer-events: none;
}

.hero-content {
  position: relative;
  color: #fff;
  max-width: 1152px;
  z-index: 2;
  animation: fadeUp 2s ease forwards;
}

.hero-title {
  font-family: "Merriweather", serif;
  font-size: 60px;
  line-height: 1.28;
  font-weight: 600;
  max-width: 842px;
  margin-bottom: 1rem;
  text-align: left;
  opacity: 0;
  animation: fadeInText 1.5s ease forwards 0.5s;
}

.hero-subtitle {
  font-family: "Source Sans 3", sans-serif;
  font-size: 24px;
  max-width: 732px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInText 1.5s ease forwards 1.2s;
}

.btn-cta {
  display: inline-block;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  background: #F4F1E5;
  color: #24406C;
  font-family: "Manrope", sans-serif;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  animation: fadeInText 1.5s ease forwards 1.8s;
  transition: background 0.5s ease, color 0.5s ease, transform 0.5s ease;
}

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

/* --- Scroll indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator span {
  display: block;
  width: 25px;
  height: 25px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  margin-bottom: 5px;
  animation: bounce 1.5s infinite;
}

/* --- Phone link --- */
.phone {
  color: inherit;
  text-decoration: none;
  -webkit-text-fill-color: inherit;
  -webkit-touch-callout: none;
}

.phone:visited,
.phone:active {
  color: inherit;
  text-decoration: none;
}

/* --- Animaciones --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(-45deg); }
  40% { transform: translateY(8px) rotate(-45deg); }
  60% { transform: translateY(4px) rotate(-45deg); }
}

/* === MEDIA QUERIES === */

/* ≤1200px */
@media (max-width: 1200px) {
  .hero {
    padding: 140px 96px;
    height: 700px;
  }
  .hero-title { font-size: 52px; max-width: 700px; }
  .hero-subtitle { font-size: 22px; max-width: 600px; }
  .btn-cta { font-size: 15px; padding: 14px 28px; }
}

/* ≤992px */
@media (max-width: 992px) {
  .hero {
    padding: 120px 72px;
    height: 640px;
  }
  .hero-title { font-size: 44px; max-width: 600px; line-height: 1.25; }
  .hero-subtitle { font-size: 20px; max-width: 500px; }
  .btn-cta { font-size: 15px; padding: 14px 24px; }
}

/* ≤768px */
@media (max-width: 768px) {
  .hero {
    height: 932px;
    padding: 0;
    margin: 0;
  }

  .hero-content {
    padding: 96px 32px;
  }

  .hero-title {
    font-size: 64px;
    max-width: 764px;
  }

  .hero-subtitle {
    font-size: 24px;
    max-width: 732px;
  }

  .btn-cta {
    width: 100%;
    max-width: 240px;
    margin: 20px auto;
  }

  .scroll-indicator { bottom: 20px; }
}

/* ≤589px */
@media (max-width: 589px) {
  .hero {
    height: 745px;
    padding: 0;
    margin: 0;
  }

  .hero-content { padding: 96px 32px; }

  .hero-title {
    font-size: 48px;
    max-height: 231px;
  }

  .hero-subtitle { font-size: 16px; }

  .btn-cta {
    width: 100%;
    max-width: 240px;
    margin: 20px auto;
  }

  .scroll-indicator { bottom: 20px; }
}

/* ≤480px */
@media (max-width: 480px) {
  #inicio { padding: 40px 16px; }

  .hero-video { display: none; }
  .video.mobile { display: block; }

  .hero-title {
    font-size: 40px;
    max-width: 380px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 24px;
    max-width: 380px;
    margin-top: 30px;
  }

  .hero-content {
    margin: 0;
    text-align: left;
  }

  .btn-cta {
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    padding: 16px 24px;
    margin: 0 auto;
  }

  .hero::before {
    background-color: rgba(112, 85, 46, 0.8);
  }

  
}

/* === Servicios === */
.servicios-section {
  background: #f5f3ef;
  font-family: "Inter", sans-serif;
  padding-bottom: 72px;
  padding-top: 110px;
  padding-left: 144px;
  min-width: 1296px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  align-items: flex-start;
  gap: 160px;
  max-width: 1296px;
}

/* Columna izquierda */
.servicios-header {
  display: flex;
  flex-direction: column;
 justify-content: center; /* centra vertical */
  align-items: left;  
  gap: 20px;
  height: 100%;
  margin: 0;
  padding: 0;
}

.servicios-header h2 {
   font-family: "Merriweather", serif;
  font-size: 32px;
  font-weight: 600;
  color: #1c1c1c;
}

.carousel-controls {
  display: flex;
  justify-content: space-between;
  width: 120px;
  margin-top: 70px;
}

.carousel-controls button {
  background: #24406C;
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
}


/* Carrusel */
.carousel-wrapper {
  overflow: hidden;
  width: 1296px;
}

.carousel-track {
  display: flex;
  gap: 40px;
  transition: transform 0.6s ease-in-out;
}

.card-servicio {
  background: #fff;
  border-radius: 16px;
  padding: 2rem; /* Los rem le da una proporción más flexible de acuerdo al navegador, ya que los px, al ser exacto, puede haber problemas de navegador */
  max-width: 344px;
  height: 490px; 
  display: flex; 
  flex-direction: column; /* organiza título, texto e imagen en una columna. Hijos en columna */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  flex: 0 0 calc((100% - 40px) / 3); /* 3 cards visibles */

}

/* Márgenes entre elementos internos */
.card-servicio h3 {
  margin-bottom: 1rem; /* 16px */
  font-size: 26px;
  height: auto;
  line-height: 1.12;
  font-weight: 600;
  color: #1c1c1c;
}

.card-servicio p {
  margin-bottom: 1.5rem; /* 24px */
  margin-top: 16px;
  font-size: 14px;
  color: #444;
  line-height: 1.25;
}

.card-servicio .servicio-img {
  width: 240px;
  max-height: 152px;
  overflow: hidden;
  border-radius: 16px;
  margin-top: auto; /* empuja la imagen hacia abajo si usas flex en el card */
}

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

.servicio-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  
}

.card-text{
  width: 100%;
  height: 249px;
  font-family: "Source Sans 3", sans-serif;
}

.bold-size-question {

font-size: 18px;
font-weight: 450;

}

.carousel-controls button.disabled,
.carousel-controls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
}


.asesoria {
  max-width: 1296px;
  padding: 72px 144px; 
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.asesoria-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  
}

 /* Sección Cards */

.card {
  width: 550px;
  display: flex;
  flex-direction: column;
  gap:32px; 
  padding: 64px;
  min-height: 474px;
  border-radius: 24px;
 
}

.card.left {
  background: #DEA95A;
  color: #233B67;
  
}

.card.right {
  background: #233B67;
  color: #F4F1E5;

  
}

.card h2 {
  font-size: 40px;
  font-family: "Merriweather", serif;
  line-height: 1.2;
  margin: 0;
  font-weight:normal;
  margin-bottom: 24px;
  width: 415px;
}

.card p.lead {
  margin: 0;
  color: #233B67;
  margin-top: 16px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 18px;
  line-height: 1.4;
  width: 383px;
}

.card.right p.lead {
  color: white;

}

.card.left .phone {
  margin-top: 25px;
  font-family: "Merriweather", serif;
  font-size: 28px;
  font-weight: 700;
}
.card.left .small {
  color: #233B67;
  font-size: 16px;
  line-height: 1.6;
  font-family: "Source Sans 3", sans-serif;
}

.card-footer {
  margin-top: auto; /* Empuja el bloque del botón al fondo */

}

/* Aqui los btn de los cards */
.btn {
  display: inline-block;
  max-width: 263px;
  height: 56px;
  padding: 16px 32px;
  border-radius: 12px;
  font-family: "Manrope", sans-serif;
  font-weight:bold;
  font-size: 16px;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
}

.btn.left {
  background: #233B67;
  color: white;

}

.btn.right {
  background: #DEA95A;
  color: #233B67;
 
}

.btn.left:hover{
  background-color: #1E3456;
  color: #fff;
}

.btn.right:hover{
  background-color: #C0924E;
  color:#F4F1E5;
}

/* === RESPONSIVE 480px === */
@media (max-width: 480px) {
  /* === Servicios === */
  .servicios-section {
    padding: 70px 16px;
    min-width: auto;
  }

  .servicios-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  /* Título */
  .servicios-header {
    order: 1;
    text-align: left;
    margin-bottom: 6px;
  }
  .servicios-header h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }

  /* Carrusel (cards) */
  .carousel-wrapper {
    order: 2;
    width: 1400px;
  }
  .carousel-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 32px;
  }
  .card-servicio {
    flex: 0 0 100%;   /* ocupa todo el ancho */
    max-width: 100%;
    height: auto;
    max-width: 296px;
    padding: 32px 24px;
  }
  .card-text {
    width: 100%;
    height: auto;
  }
  .card-servicio p{
    width: 228px;
  }
  .servicio-img img {
    width: 100%;
    max-width: 240px;
    height: auto;
  }
  .card.left, .card.right {
  width: 100%;
  padding: 32px 32px;      /* ocupa todo el ancho del contenedor */
  min-height: 420px;
  }
  .card.left h2{
    font-size: 32px;
    font-weight: 400;
    line-height: 1.3;
  }
   .card.left p.lead{
    font-size: 16px;
    font-family: "Merriweather", serif;
   }
   .card.left .phone{
    font-family: "Merriweather", serif;
    font-weight: 700;
    text-decoration: none !important;
   }
.card.right{
  padding: 32px;
  min-height: 360px;
}
 .card.right h2 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.3;
  }
.card.right p.lead {
    font-size: 16px;
    font-family: "Merriweather", serif;
    line-height: 1.6;
    font-weight: 100;
   }
  .btn.right{
   max-width: 288px; 
   margin: 0 auto;
  }
  /* Flechas → debajo de las cards */
  .carousel-controls {
    order: 3;                  /* las manda debajo */
    display: flex;             /* aseguras flex */
    justify-content: left;   /* centrado horizontal */
    align-items: center;
    margin: 20px auto 0;
    gap: 24px;
    width: 100%;               /* ocupa todo el ancho */
  }
/* Contenedor principal */
  .asesoria {
  padding: 40px 16px;       /* margen lateral fijo */
  box-sizing: border-box;    /* incluye padding en ancho total */
  }

/* Grid para las cards */
  .asesoria-row {
  display: grid;
  grid-template-columns: 1fr; /* una columna adaptable */
  gap: 24px;                  /* espacio entre cards */
  width: 100%;  
  }

/* Card individual */
  .card {           
    max-width: calc(100%-32px);    /* ocupa todo el ancho del contenedor */
    min-width: calc(100%-32px);
    height: auto;
  padding: 24px 16px;        /* padding interno coherente con margen lateral */
  box-sizing: border-box;     /* evita overflow por padding */
  border-radius: 16px;
  background: #fff;
  overflow: hidden;           /* corta cualquier contenido que se salga */
  }
/* Título dentro de la card */
  .card h2 {
  margin: 0 0 16px 0;
  font-size: 20px;
  max-width: 100%;
  word-break: break-word;     /* evita que palabras largas rompan el diseño */
  } 
/* Párrafo dentro de la card */
  .card p.lead {
  width: 100%;
  font-size: 16px;
  max-width: 100%;
  word-break: break-word;     /* evita overflow por texto largo */
  }
/* Botones */
  .btn {
  width: 100%;
  margin: 0 auto;
  }
/* Footer de la card */
.card-footer {
  flex-direction: column;
  align-items: stretch;

.btn.right{
    width: 312px;
    padding: 16px 24px;
  }
.btn.left{
    width: 288px;
    padding: 16px 24px;
  }
}
.phone {
  color: inherit;           
  text-decoration: none;    
  -webkit-text-fill-color: inherit; 
  -webkit-touch-callout: none;      
}
.phone:visited,
.phone:active {
  color: inherit;
  text-decoration: none;
}
}
/* === RESPONSIVE TABLET 768px === */
@media (max-width: 1024px) and (min-width: 769px) {
  .servicios-section {
    padding: 96px 48px;
    min-width: auto;
  }
  .servicios-grid {
    grid-template-columns: 1fr 2fr; /* un poco más balanceado */
    gap: 80px;
  }

  .servicios-header{
    align-items: flex-start;
    padding: 0 24px;
  }

  .carousel-wrapper {
    width: 100%;
  }
  .card-servicio {
    flex: 0 0 calc((100% - 32px) / 2); /* 2 cards visibles */
    max-width: 100%;
    height: auto;
  }
  .card-servicio h3 {
    font-size: 22px;
  }
  .card-servicio p {
    font-size: 14px;
    margin-bottom: 1rem;
  }
  .asesoria {
    padding: 56px 48px;
    flex-direction: column;
    gap: 40px;
  }
  .asesoria-row {
    grid-template-columns: 1fr 1fr; /* una debajo de otra */
    gap: 24px;
  }
  .card {
    width: 100%;
    max-width: 704px;
    gap: 0;
    min-height: 328px ;
    padding: 48px 32px;
    margin: 0 auto;
    gap: 12px;

  }
  .card h2 {
    font-size: 32px;
    width: auto;
  }
  .phone{
    width: 267px;

  }
  .card-footer{
    width: 263px;
    min-height: 56px;
  }
  .card p.lead {
    font-size: 16px;
    width:auto;
  }

  
  .card{
    max-width: 451px;
    padding: 48px;
  }
}
/* === RESPONSIVE SMALL TABLET 768px === */
@media (max-width: 768px) and (min-width: 481px) {
  .servicios-section {
    padding: 80px 32px;
    min-width: auto;
  }
  .servicios-grid {
    display: flex;
    flex-direction: column;
    order: 1;
    gap: 40px;
  }
  /* Flechas → debajo de las cards */
  .carousel-controls {
    order: 3;                  /* las manda debajo */
    display: flex;             /* aseguras flex */
    justify-content: left;   /* centrado horizontal */
    align-items: center;
    margin: 20px auto 0;
    gap: 24px;
    width: 100%;               /* ocupa todo el ancho */
  }
  .carousel-wrapper {
    width: 100%;
    order: 2;
  }
  .card-servicio {
    flex: 0 0 100%; /* ocupa ancho completo */
    max-width: 100%;
    height: auto;
    padding: 28px 20px;
  }
  .asesoria {
    padding: 48px 24px;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    gap: 32px;
  }
  .asesoria-row {
    grid-template-columns: 1fr; /* una columna */
    gap: 24px;
    align-items: center;
    justify-content: center;
  }
  .card {
    width: 100%;
    padding: 36px 24px;
    flex-wrap: wrap;
    border-radius: 20px;
    margin: 0 auto;
    min-height: 328px;
  }
  .card.left{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0px;
    min-height: 320px;
    width: 100%;
  }
  /* Asegura que el contenedor principal permita posición relativa */
  .servicios-section {
    position: relative;
    height: auto;
    padding-bottom: 150px;
  }

  /* Mueve las flechas debajo del carrusel y alineadas a la izquierda */
  .servicios-header .carousel-controls {
    position: absolute;
    bottom: 0;                 /* se ubican al final del carrusel */
    left: 0;                   /* alineadas al borde izquierdo */
    transform: translateY(80%); /* bajarlas visualmente debajo de las cards */
    display: flex;
    justify-content: flex-start; /* mantiene las flechas a la izquierda */
    align-items: center;
    gap: 24px;
    width: 100%;
    margin: 0;
    padding-left: 16px;        /* pequeño margen interno para no pegarse al borde */
  }
  /* Permitir que se vean fuera del carrusel */
  .carousel-wrapper {
    overflow: visible;
  }
  /* Tamaño de las flechas (opcional) */
  .carousel-controls button {
    width: 32px;
    height: 32px;
    font-size: 16px;
    margin-top: 70px;
    margin-bottom: 70px;
  }
  .btn.left{
    margin-bottom: 18px;
  }
  .card.right{
    padding: 48px 32px;
    height: 300px;
  }
  .asesoria-text{
    width: 400px;
  }
  .card.left h2{
    width: 160%;
  }
  .card.card.left p.lead{
    width: 160%;
  }
  .card h2 {
    font-size: 40px;
    width: 100%;
    
  }

  .card p.lead {
    font-size: 18px;
    width: 100%;
    
  }
  .info{
    max-width: 300px;
  }

  .btn {
    width: 100%;
  }
  br{ 
    display: none;
  }
}
/* === TABLET GRANDE: 1024px === */
@media (max-width: 1024px) and (min-width: 769px) {
  .carousel-wrapper {
    width: 100%;
  }

  .carousel-track {
    gap: 32px;
  }

  .card-servicio {
    flex: 0 0 calc((100% - 32px) / 2); /* 2 cards visibles */
    max-width: 100%;
    height: auto;
  }
  
}
/* === TABLET CHICA: 768px === */
@media (max-width: 768px) and (min-width: 481px) {
  .carousel-wrapper {
    width: 100%;
  }

  .carousel-track {
    gap: 24px;
  }

  .card-servicio {
    flex: 0 0 calc((100% - 24px) / 2); /* 2 cards visibles */
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {

  /* Asegura que el contenedor principal permita posición relativa */
  .servicios-section {
    position: relative;
    height: auto;
    padding-bottom: 150px;
  }

  /* Mueve las flechas debajo del carrusel y alineadas a la izquierda */
  .servicios-header .carousel-controls {
    position: absolute;
    bottom: 0;                 /* se ubican al final del carrusel */
    left: 0;                   /* alineadas al borde izquierdo */
    transform: translateY(80%); /* bajarlas visualmente debajo de las cards */
    display: flex;
    justify-content: flex-start; /* mantiene las flechas a la izquierda */
    align-items: center;
    gap: 24px;
    width: 100%;
    margin: 0;
    padding-left: 16px;        /* pequeño margen interno para no pegarse al borde */
  }

  /* Permitir que se vean fuera del carrusel */
  .carousel-wrapper {
    overflow: visible;
  }

  /* Tamaño de las flechas (opcional) */
  .carousel-controls button {
    width: 32px;
    height: 32px;
    font-size: 16px;
    margin-top: 70px;
    margin-bottom: 70px;
  }
}

@media (max-width: 1280px) and (min-width: 1025px){

  .asesoria{
    padding: 144px 64px;
  }
  .asesoria-row{
    max-width: 1150px;
    gap: 24px;
  }
  .card h2{
    font-size: 40px;
    font-weight: 500;
    line-height: 1.12;
  }

  .card p{
    font-size: 18px;
  }
  .card.left .phone{
    font-size: 28px;
  }
}


/* === SOBRE NOSOTROS === */
/* === SOBRE NOSOTROS === */
#nosotros {
  height: auto;
  padding: 130px 144px 96px 144px;
  background: #EFEDE7;
}

.nosotros-content {
  display: flex;
  align-items: center;
  gap: 72px;
  width: 1296px;
  max-height: 458px;
}

.nosotros-img img {
  border-radius: 24px;
}

.nosotros-texto {
  flex: 1.5;
  max-width: 514px;
  height: 400px;
}

.nosotros-texto .subtitulo {
  font-size: 24px;
  width: 91px;
  height: 34px;
  font-weight: 400;
  color: #DEA95A;
  text-align: left;
  margin-bottom: 9px;
  font-family: "Source Sans 3", sans-serif;
}

.nosotros-texto h2 {
  font-size: 40px;
  margin-bottom: 24px;
  font-family: "Merriweather", serif;
  color: #24406C;
  line-height: 1.3;
  text-align: justify;
  font-weight: 400;
  width: 514px;
  height: 105px;
}

.nosotros-texto p {
  font-size: 18px;
  line-height: 1.4;
  font-family: "Source Sans 3", sans-serif;
  color: #444;
  text-align: left;
  width: 514px;
  height: 114px;
}

/* === RESPONSIVE (ordenado por tamaño descendente) === */

/* === Desktop grande (1366px a 1281px) === */

@media (max-width: 1367px) and (min-width: 1281px) {
  #nosotros {
    height: auto;
    padding-top: 152px;
    padding-bottom: 112px;
    padding-left: 80px;
    padding-right: 159px;
  }

  .nosotros-content {
    margin: 0 auto;
    padding: 0;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
  }

  .nosotros-img {
    max-width: 606px;
    max-height: 458px;
  }

  .nosotros-texto {
    width: 100%;
  }

  .nosotros-texto h2 {
    width: 100%;
    text-align: left;
  }

  .nosotros-texto p {
    width: 100%;
    text-align: justify;
  }
}

/* === Laptops grandes (1280px a 1025px) === */
@media (max-width: 1280px) and (min-width: 1025px) {
  #nosotros {
    padding: 96px 64px;
  }

  .nosotros-img {
    max-width: 563px;
  }

  .nosotros-img img {
    border-radius: 32px;
    height: 458px;
  }

  .nosotros-texto {
    max-height: 325px;
  }

  .nosotros-texto h2 {
    font-size: 36px;
    width: 475px;
  }

  .nosotros-texto p {
    font-size: 16px;
    width: 475px;
  }
}

/* === Laptops medianas (≤1200px) === */
@media (max-width: 1200px) {
  #nosotros {
    padding-left: 72px;
    padding-right: 72px;
    height: auto;
  }

  .nosotros-content {
    width: 100%;
    gap: 48px;
  }

  .nosotros-texto {
    max-width: 50%;
    height: auto;
    padding: 0 16px;
  }

  .nosotros-texto h2,
  .nosotros-texto p {
    width: 100%;
    height: auto;
    text-align: left;
  }
}

/* === Laptops / tablets horizontales (≤1024px) === */
@media (max-width: 1024px) {
  #nosotros {
    padding-left: 48px;
    padding-right: 48px;
    height: 904px;
  }

  .nosotros-content {
    gap: 56px;
    width: 100%;
    flex-direction: column;
  }

  .nosotros-img img {
    width: 928px;
    height: 384px;
    object-fit: cover;
  }

  .nosotros-texto {
    padding: 0 14px;
    min-width: 928px;
  }

  .nosotros-texto h2 {
    font-size: 32px;
    width: 100%;
    height: auto;
    text-align: left;
  }

  .nosotros-texto p {
    font-size: 17px;
    width: 100%;
    height: auto;
    text-align: left;
  }
}

/* === Tablets horizontales / pantallas medianas (≤992px) === */
@media (max-width: 992px) {
  #nosotros {
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 96px;
    padding-bottom: 96px;
    height: auto;
  }

  .nosotros-content {
    flex-direction: column;
    align-items: center;
    gap: 64px;
    width: 100%;
    max-height: unset;
  }

  .nosotros-img {
    width: 100%;
    height: 338px;
    border-radius: 24px;
    background-color: #EFEDE7;
    object-fit: cover;
  }

  .nosotros-texto {
    margin-top: 0;
    max-width: 100%;
    height: auto;
    padding: 0 12px;
    text-align: left;
  }

  .nosotros-texto .subtitulo {
    font-size: 24px;
    width: auto;
    height: auto;
    text-align: left;
  }

  .nosotros-texto h2 {
    font-size: 28px;
    margin-bottom: 16px;
    line-height: 1.3;
    width: 100%;
    height: auto;
    text-align: left;
  }

  .nosotros-texto p {
    font-size: 16px;
    line-height: 1.5;
    width: 100%;
    height: auto;
    text-align: left;
  }
}

/* === Tablets verticales / móviles grandes (≤768px) === */
@media (max-width: 768px) {
  #nosotros {
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 80px;
    padding-bottom: 80px;
    height: auto;
  }

  .nosotros-content {
    flex-direction: column;
    align-items: center;
    gap: 64px;
    width: 100%;
  }

  .nosotros-img img {
    width: 100%;
    max-width: 100%;
    height: 388px;
    border-radius: 24px;
  }

  .nosotros-texto {
    padding: 0 10px;
    max-width: 100%;
    text-align: left;
  }

  .nosotros-texto h2 {
    font-size: 26px;
    width: 100%;
    height: auto;
  }

  .nosotros-texto p {
    font-size: 16px;
    width: 100%;
    height: auto;
  }
}

/* === Entre 480px y 640px === */
@media (max-width: 640px) {
  .nosotros-content {
    gap: 64px;
  }

  .nosotros-img{
    max-height: 338px;
    width: 100%;
    border-radius: 24px;
    padding-left: 16px;
  }

  .nosotros-texto {
    padding:  0 12px;
    min-width: 100%;
    
  }

  .nosotros-texto h2 {
    font-size: 28px;
    width: 100%;
    padding-left: 16px;
  }
    .nosotros-texto h4 {
    padding-left: 16px;
  }
  .nosotros-texto p {
    font-size: 16px;
    width: 100%;
    padding-left: 16px;

  }
}

/* === Smartphones pequeños (≤480px) === */
@media (max-width: 480px) {
  #nosotros {
    height: auto;
    padding-top: 64px;
    padding-left: 0;
    padding-right: 16px;
    padding-bottom: 88px;
  }

  .nosotros-content {
    flex-direction: column;
    align-items: center;
    gap: 96px;
    width: 100%;
    max-height: unset;
  }

  .nosotros-img {
    width: 100%;
    height: 328px;
    background-color: #EFEDE7;
    border-radius: 24px;

  }

  .nosotros-texto {
    margin-top: 0;
    max-width: 100%;
    height: auto;
    padding: 0 10px;
    text-align: left;
  }

  .nosotros-texto .subtitulo {
    font-size: 24px;
    margin-bottom: 9px;
    width: auto;
    height: auto;
    text-align: left;
  }

  .nosotros-texto h2 {
    font-size: 28px;
    margin-bottom: 16px;
    line-height: 1.3;
    width: 342px;
    height: auto;
    text-align: left;
  }

  .nosotros-texto p {
    font-size: 16px;
    line-height: 1.5;
    width: 90%;
    height: auto;
    text-align: left;
  }
}



/* === Valores === */
#valores {
  max-width: 1248px;
  height: 739px;
  margin: 96px 144px;
  padding-top: 120px;
}

.valor-container {
  max-width: 626px;
  height: auto;
  margin: 0 auto;
  line-height: 1.2;
}

section.valores h2 {
  text-align: center;
  font-size: 40px;
  font-weight: 400;
  font-family: "Merriweather", serif;
  margin-bottom: 24px;
  height: 96px;
  color: #24406C;
}



section.valores .intro {
  text-align: center;
  font-size: 1.04rem;
  margin-bottom: 36px;
  line-height: 1.4;
  color: #222;
}

/* Layout original (desktop) */
.valores-cards {
  display: flex;
  gap: 65px;
  padding-top: 64px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  transition: transform 0.35s ease;
}

.valor-card {
  flex: 1 1 250px;
  max-width: 296px;
  height: 209px;
  text-align: center;
  background: transparent;
}

.valor-icon {
  display: block;
  width: 38px;
  height: 38px;
  background: #d3d3d3;
  border-radius: 10px;
  margin: 0 auto 14px auto;
}

.valor-title {
  font-size: 24px;
  font-weight: 600;
  margin: 16px 0;
  color: black;
  font-family: "Source Sans 3", sans-serif;
}

.valor-desc {
  font-size: 18px;
  color: black;
  font-family: "Source Sans 3", sans-serif;
  line-height: 1.45;
}

/* Contenedor del carousel */
.valores-carousel {
  position: relative;
  width: 100%;
}

/* Flechas (ocultas por defecto) */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: black;
  border: 2px solid;
  font-size: 1.2rem;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  display: none;
}
.carousel-dots{
display: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  #valores {
    max-width: 100%;
    height: auto;
    margin: 88px 16px;
    padding: 80px 0 0;
  }

  .valor-container {
    max-width: 100%;
    margin: 0 auto 24px auto;
    text-align: center;
  }

  section.valores h2 {
    font-size: 28px;
    margin-bottom: 10px;
    height: auto;
  }

  section.valores h3 {
    font-size: 28px;
    margin-bottom: 24px;
  }

  section.valores .intro {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 72px;
    padding: 0 12px;
  }

  /* Carrusel móvil */
  .valores-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  .valores-cards {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0;
  }

  .valores-cards::-webkit-scrollbar {
    display: none;
  }

  .valor-card {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: center;
    background: transparent;
    width: 355px;
    height: 262px;
    padding: 20px 12px;
  }

  .valor-title {
    font-size: 24px;
    margin: 12px 0;
  }

  .valor-desc {
    font-size: 16px;
    line-height: 1.4;
    padding: 0 8px;
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
  }

  .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
  }

  .dot.active {
    background-color: #333;
    transform: scale(1.2);
  }
}

@media (max-width: 1279px) and (min-width: 1024px) {
  #valores {
    max-width: 100%;
    height: auto;
    margin: 88px 48px;
    padding: 160px 0 24px;
  }

  .valor-container {
    max-width: 100%;
    margin: 0 auto 24px auto;
    text-align: left;

  }

  .tittle-valores{
    text-align: left;

  }

  section.valores h2 {
    font-size: 32px;
    margin-bottom: 10px;
    height: auto;
  }

  section.valores h3 {
    font-size: 32px;
    margin-bottom: 24px;
    color: #24406C;
  }

  section.valores .intro {
    font-size: 18px;
    line-height: 1.5;
    padding: 0 12px;
    width: 670px;
    margin: 0 auto;
    margin-top: 24px;
    text-align: center;
  }
  .valores-cards{
    padding-left: 14px;
    padding-right: 14px;
    gap: 24px;
  }
  .valor-desc{
    font-size: 16px;
  }
  .carousel-dots {
    display: none;
  }
  
}

@media (max-width: 1600px) and (min-width: 1024px) {
  .carousel-dots {
    display: none;
  }
}


/* === Testimonios === */
#testimonios {
  background-color: #EFEDE7;
  margin: 0;
}

/* === Sección principal === */
.testimonios-section {
  padding: 120px 144px 88px;
  text-align: center;
  height: 804px;
}

/* === Encabezado === */
.testimonios-header {
  text-align: center;
  max-width: 1152px;
  margin: 0 auto 40px;
  padding: 0;
}

.clientes-title {
  font-size: 40px;
  font-family: "Merriweather", serif;
  font-weight: 500;
  color: #24406C;
}

/* === Carrusel de testimonios === */
.testimonial-carousel {
  background: transparent;
  border-radius: 24px;
  padding: 88px;
  max-width: 1152px;
  margin: 0 auto;
  position: relative;
  display: block;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* === Slide individual === */
.testimonial-slide {
  width: 720px;
  margin: 0 auto;
  display: none;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn 0.8s ease-in-out;
}

/* === Texto y autor === */
.testimonial-text {
  color: #6d6d6d;
  font-size: 20px;
  width: 720px;
  text-align: center;
  align-items: center;
  margin-bottom: 32px;
}

.testimonial-author {
  color: #282828;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}

.cargo {
  font-size: 16px;
  color: #242424;
}

.empresa {
  color: #5b5b5b;
  font-weight: 400;
}

/* === Flechas del carrusel === */
.carousel-arrow {
  background: transparent;
  border: 2px solid #C5C5C5;
  border-radius: 50%;
  color: #C5C5C5;
  font-size: 1.2rem;
  padding: 8px 16px;
  position: absolute;
  top: 40%;
  transform: translateY(-60%);
  transition: border 0.2s, color 0.3s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  pointer-events: auto;
}

.carousel-arrow.left {
  left: 34px;
}

.carousel-arrow.right {
  right: 34px;
}

.carousel-arrow:hover {
  border-color: #1a73e8;
  color: #1a73e8;
  cursor: pointer;
}

blockquote {
  quotes: none; /* Desactiva el estilo de comillas */
}


/* === Extra pequeño: hasta 480px === */
@media (max-width: 480px) {
  #testimonios {
    padding: 88px 16px;
    max-width: 100%;
  }

  .testimonios-section {
    margin: 0 12px;
    padding: 20px 0;
    height: auto;
  }

  .testimonios-header {
    text-align: left;
    margin-bottom: 40px;
  }

  .testimonios-header p {
    margin: 0;
  }

  .clientes-title {
    font-size: 28px;
  }

  .clientes-subtitle {
    font-size: 28px;
    margin: 0 auto;
  }

  .testimonial-carousel {
    padding: 20px 16px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    min-height: 385px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
  }

  .testimonial-slide {
    width: 100%;
    padding: 16px 24px;
  }

  .testimonial-text {
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
    width: 100%;
    margin-bottom: 16px;
  }

  .testimonial-text::before {
    content: none;
  }

  .testimonial-author,
  .cargo,
  .empresa {
    font-size: 16px;
    text-align: left;
  }

  .carousel-arrow {
    display: none !important;
  }

  .testimonial-dots {
    position: static;
    margin-top: 40px;
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
  }

  .testimonial-dots span {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.25s ease;
  }

  .testimonial-dots span:hover,
  .testimonial-dots span:active,
  .testimonial-dots span.active {
    transform: scale(1.5);
  }
}



/* === Mediano: 600px–768px (tablets verticales) === */
@media (max-width: 768px) and (min-width: 600px) {
  .testimonios-section {
    padding: 60px 24px;
    height: auto;
  }

  .testimonial-carousel {
    flex-direction: column;
    align-items: center;
    padding: 40px;
  }

  .testimonial-slide {
    width: 100%;
  }

  .testimonial-text {
    font-size: 17px;
    line-height: 1.6;
    max-width: 640px;
    text-align: justify;
  }

  .clientes-title {
    font-size: 26px;
  }

  .carousel-arrow {
    display: none;
  }

  .testimonial-author {
    text-align: center;
  }

  .testimonial-dots {
    margin-top: 20px;
  }
}

/* === Móviles generales <= 768px (incluye sección valores y testimonios) === */
@media (max-width: 768px) {
  /* --- VALORES --- */
  #valores {
    max-width: 100%;
    height: auto;
    margin: 88px 16px;
    padding: 80px 0 0;
  }

  .valor-container {
    max-width: 100%;
    margin: 0 auto 24px auto;
    text-align: center;
  }

  section.valores h2 {
    font-size: 28px;
    margin-bottom: 10px;
    height: auto;
  }

  section.valores h3 {
    font-size: 28px;
    margin-bottom: 24px;
  }

  section.valores .intro {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 72px;
    padding: 0 12px;
  }

  .valores-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  .valores-cards {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0;
  }

  .valores-cards::-webkit-scrollbar {
    display: none;
  }

  .valor-card {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: center;
    background: transparent;
    width: 355px;
    height: 262px;
    padding: 20px 12px;
  }

  .valor-title {
    font-size: 24px;
    margin: 12px 0;
  }

  .valor-desc {
    font-size: 16px;
    line-height: 1.4;
    padding: 0 8px;
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
  }

  .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
  }

  .dot.active {
    background-color: #333;
    transform: scale(1.2);
  }

  /* --- TESTIMONIOS --- */
  .testimonios-section {
    margin: 16px;
    background-color: transparent;
    padding: 40px 0;
  }

  .testimonios-header {
    text-align: center;
    margin: 40px 0 24px;
  }

  .clientes-title {
    font-size: 24px;
  }

  .clientes-subtitle {
    font-size: 18px;
  }

  .testimonial-carousel {
    padding: 24px 20px;
    border-radius: 18px;
    background: #fff;
    min-height: unset;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }

  .testimonial-text {
    font-size: 1rem;
    margin-bottom: 14px;
    line-height: 1.6;
    text-align: left;
    position: relative;
  }

  .testimonial-author {
    font-size: 1rem;
    margin-top: 10px;
    font-weight: 600;
    text-align: left;
  }

  .carousel-arrow {
    display: none;
  }

  .testimonial-dots {
    text-align: center;
    margin-top: 16px;
  }

  .testimonial-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
  }

  .testimonial-dots span.active {
    background: #555;
  }
  
  .carousel-dots{
      display: none;
  }
  
}

/* === 769px–991px (tablets horizontales) === */
@media (max-width: 991px) and (min-width: 769px) {
  .testimonios-section {
    padding: 72px 60px;
    height: auto;
  }

  .testimonial-carousel {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 48px;
    border-radius: 20px;
  }

  .testimonial-slide {
    width: 560px;
  }

  .testimonial-text {
    width: 560px;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
  }

  .testimonial-author {
    font-size: 16px;
  }

  .clientes-title {
    font-size: 32px;
  }

  .carousel-arrow {
    font-size: 1rem;
    padding: 6px 12px;
    display: block;
  }

  .testimonial-dots {
    margin-top: 24px;
    text-align: center;
  }

  .testimonial-dots span {
    width: 10px;
    height: 10px;
  }
  .carousel-dots {
      display: none;
  }
}

/* === 992px–1199px (laptops medianos) === */
@media (max-width: 1199px) and (min-width: 992px) {
  .testimonios-section {
    padding: 80px 48px;
    height: auto;
  }

  .testimonial-carousel {
    padding: 60px;
  }

  .testimonial-slide {
    width: 640px;
  }

  .testimonial-text {
    width: 640px;
    font-size: 18px;
  }

  .clientes-title {
    font-size: 36px;
  }

  .carousel-arrow {
    font-size: 1rem;
    padding: 6px 12px;
  }
  .carousel-dots{
      display: none;
  }
}

/* === 1024px–1279px (pantallas grandes medianas) === */
@media (max-width: 1380px) and (min-width: 1024px) {
  #valores {
    max-width: 100%;
    height: auto;
    margin: 88px 48px;
    padding: 160px 0 24px;
  }

  .valor-container {
    max-width: 100%;
    margin: 0 auto 24px auto;
    text-align: left;
  }

  .tittle-valores {
    text-align: left;
  }

  section.valores h2 {
    font-size: 32px;
    margin-bottom: 10px;
    height: auto;
  }

  section.valores h3 {
    font-size: 32px;
    margin-bottom: 24px;
    color: #24406C;
  }

  section.valores .intro {
    font-size: 18px;
    line-height: 1.5;
    padding: 0 12px;
    width: 670px;
    margin: 0 auto;
    margin-top: 24px;
    text-align: center;
  }

  .valores-cards {
    padding-left: 14px;
    padding-right: 14px;
    gap: 24px;
  }

  .valor-desc {
    font-size: 16px;
  }

  .carousel-dots {
    display: none;
  }
}



/* PASOS */

.seccion-pasos {
  padding: 130px 144px;
  color: #24406C;
  background-color: #EFEDE7;
}

.contenedor-pasos {
  max-width: 1152px;
  margin:0 auto;
  padding: 100px;
  display: flex;
  flex-direction:row;
  justify-content: space-between; /* reparte los elementos */
  align-items: flex-start;
  background-color: white;
  box-sizing: border-box;
  border-radius: 24px;
  overflow: visible;
}

/* código nuevo para expandir el contenedor cuando se expande cad paso ite */

.lista-pasos details summary {
  cursor: pointer;
  
}

.lista-pasos details[open] .contenido {
  animation: expand 0.3s ease forwards;
}

@keyframes expand {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Texto izquierdo */
.texto-pasos{
  line-height: 1.3;
}
.texto-pasos h2 {
  font-size: 40px;       /* grande como en la imagen */
  font-family: "Merriweather", serif; 
  line-height: 1.3;
  font-weight: 500;
  width: 376px;
}

.texto-pasos p {
  margin-top: 8px;
  color: black;
  font-family: "Source Sans 3", sans-serif;
  font-size: 18px;
  width: 376px;
  
}

/* Lista de pasos (derecha) */
.lista-pasos {
  width: 100%;
  max-width: 320px;
  max-height: 1000px; /* si quieres que siempre tenga al menos esa altura */
  transition: max-height 0.4s ease;
  margin: 0;
  
}

/* Estilo base del summary */
.lista-pasos summary {
  padding: 4px 0;
  list-style: none; /* elimina el triángulo por defecto si quieres */
  outline: none; /* quita outline por defecto */
  cursor: pointer; /* visual de que es interactivo */
}

/* Solo muestra outline si el usuario navega con teclado */
.lista-pasos summary:focus-visible {
  outline: 2px solid #0078d4; /* ejemplo de foco accesible */
  outline-offset: 2px;
}

.lista-pasos.collapsed {
  max-height: 270px; /* estado cerrado */
}

/* Cada detalle (item) */
.lista-pasos .paso {
  padding: 10px 0;
  
}


/* agregar línea entre items excepto el último */
.lista-pasos .paso:not(:last-child) {
  border-bottom: 1px solid #7c7c7c;
}

/* summary estilo — texto a la izquierda y flecha a la derecha */
.lista-pasos summary {
  list-style: none;
  cursor: pointer;
  display: block;
  color: #24406C;
   font-family: "Source Sans 3", sans-serif;
  padding-right: 34px;         /* espacio para la flecha */
  font-weight: 500;
  font-size: 22px;
  position: relative;
  outline: none;

}

/* quitar marcador por defecto en webkit */
.lista-pasos summary::-webkit-details-marker {
  display: none;
}

/* flecha con pseudo-elemento (a la derecha) */
.lista-pasos summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #24406C;
  border-bottom: 2px solid #24406C;
  transform: translateY(-50%) rotate(45deg); /* forma de chevron */
  transform-origin: center;
  transition: transform 0.22s ease;
}

/* cuando el detalle está abierto, girar la flecha */
.lista-pasos details[open] > summary::after {
  transform: translateY(-50%) rotate(-135deg);
}

/* estilo del texto del contenido que aparece al abrir */
.lista-pasos p {
  margin: 8px 0 0 0;
  color: #24406C;
  font-size: 18px;
  line-height: 1.1;
}

/* Botón centrado abajo del bloque (centro respecto al contenedor max-width) */
.boton-centro {
  max-width: 1100px;
  margin: 28px auto 0 auto;
  display: flex;
  justify-content: center;
}

/* Botón con borde, corners suaves y texto en mayúsculas (como en la imagen) */
.btn-asesoria {
  margin-top: 60px;
  
  display:inline-block;
  padding: 16px 32px;
  border-radius: 12px;

  background: #DEA95A;
  color: #24406C;  
  
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  
  animation: fadeInText 1.5s ease forwards 1.8s;
 
}

.btn-asesoria {
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-asesoria:hover {
  transform: scale(1.05);
  background-color: #C0924E;
  color:#F4F1E5;
}


/* Focus accesible */
.lista-pasos summary:focus,
.btn-asesoria:focus {
  outline: 3px solid rgba(17,17,17,0.12);
  outline-offset: 3px;
}

/* Responsive (móvil) — apila y centra */
@media (max-width: 768px) {
  .contenedor-pasos {
    gap: 24px;
    text-align: center;
  }

  .lista-pasos {
    margin-top: 6px;
  }

  .lista-pasos summary {
    padding-right: 28px;
    text-align: left;
  }

  .texto-pasos h2 {
    font-size: 28px;
  }
  .texto-pasos p{
    max-width: 357px;
  }

  .boton-centro {
    padding: 0 16px;
  }
}

/* === Responsive 480px === */
/* === Responsive 480px === */
@media (max-width: 480px) {
  .seccion-pasos {
    padding: 64px 16px; /* menos padding para móvil */
  }

  .contenedor-pasos {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
    padding: 64px 32px;
    height: auto; /* ajusta altura automáticamente */
    background-color: white;
   min-height: 720px;
   border-radius: 32px;
  }

  /* Texto pasos */
  .texto-pasos {
    width: 100%;
  }

  .texto-pasos h2 {
    font-size: 32px;
    line-height: 1.3;
    width: 100%;
  }

  .texto-pasos p {
    font-size: 16px;
    line-height: 1.5;
    width: 100%;
    margin-top: 8px;
  }

  /* Lista de pasos */
  .lista-pasos {
    width: 100%;
  }

  .lista-pasos .paso {
    padding: 16px 0;
  }

  .lista-pasos summary {
    font-size: 20px;
    padding-right: 20px;
  }

  .lista-pasos p {
    font-size: 15px;
    line-height: 1.4;
    margin-left: 8px;
  }

  /* Botón */
  .boton-centro {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 32px;
    padding: 0px
  }

  .btn-asesoria {
    width: 100%;
    font-size: 16px;
    color: #24406C; /* mantener visibilidad */
    padding: 16px 24px;
    margin: 0 auto;
    border: none;
  }
}
/* === Responsive 600px a 768px (tablets verticales) === */
@media (max-width: 768px) and (min-width: 600px) {
  .seccion-pasos {
    padding: 80px 40px;
  }

  .contenedor-pasos {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
    text-align: left;
    padding: 64px 48px;
    border-radius: 24px;
    background-color: #fff;
  }

  .texto-pasos h2 {
    font-size: 28px;
    line-height: 1.3;
    width: 100%;
  }

  .texto-pasos p {
    font-size: 17px;
    line-height: 1.5;
    min-width: 580px;
  }

  .lista-pasos summary {
    font-size: 19px;
    width: 580px;
  }
  .paso{
    width: 580px;
  }
  
 

  .lista-pasos p {
    font-size: 16px;
    line-height: 1.4;
  }

  .btn-asesoria {
    font-size: 16px;
    padding: 14px 28px;
  }
}

/* === Responsive 769px a 991px (tablets horizontales) === */
@media (max-width: 991px) and (min-width: 769px) {
  .seccion-pasos {
    padding: 100px 72px;
  }

  .contenedor-pasos {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 80px 64px;
    gap: 48px;
    border-radius: 24px;
  }

  .texto-pasos h2 {
    font-size: 32px;
    line-height: 1.3;
    width: 340px;
  }

  .texto-pasos p {
    font-size: 18px;
    width: 340px;
  }

  .lista-pasos summary {
    font-size: 20px;
  }

  .lista-pasos p {
    font-size: 16px;
    line-height: 1.5;
  }

  .btn-asesoria {
    font-size: 16px;
    padding: 16px 32px;
  }
}


/* === Responsive 480px a 579px (móviles medianos, ej. Galaxy, iPhone Plus) === */
@media (max-width: 579px) and (min-width: 480px) {
  .seccion-pasos {
    padding: 64px 24px;
  }

  .contenedor-pasos {
    flex-direction: column;
    gap: 24px;
    padding: 56px 32px;
    border-radius: 28px;
    background: #fff;
  }

  .texto-pasos h2 {
    font-size: 32px;
    line-height: 1.3;
  }

  .texto-pasos p {
    font-size: 16px;
    line-height: 1.5;
  }

  .lista-pasos summary {
    font-size: 18px;
  }

  .lista-pasos p {
    font-size: 15px;
  }

  .btn-asesoria {
    font-size: 16px;
    padding: 16px 28px;
  }
}

/* === Responsive 580px a 768px (tablets verticales y móviles grandes) === */
@media (max-width: 768px) and (min-width: 580px) {
  .seccion-pasos {
    padding: 80px 40px;
  }

  .contenedor-pasos {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
    text-align: left;
    padding: 64px 48px;
    border-radius: 28px;
    background-color: #fff;
  }

  .texto-pasos h2 {
    font-size: 26px;
    line-height: 1.3;
  }

  .texto-pasos p {
    font-size: 17px;
    line-height: 1.5;
  }

  .lista-pasos summary {
    font-size: 19px;
  }

  .lista-pasos p {
    font-size: 16px;
    line-height: 1.4;
  }

  .btn-asesoria {
    font-size: 16px;
    padding: 14px 30px;
  }
}

/* === Responsive 769px a 991px (tablets horizontales) === */
@media (max-width: 991px) and (min-width: 769px) {
  .seccion-pasos {
    padding: 100px 72px;
  }

  .contenedor-pasos {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 80px 64px;
    gap: 48px;
    border-radius: 24px;
  }

  .texto-pasos h2 {
    font-size: 30px;
    line-height: 1.3;
    width: 340px;
  }

  .texto-pasos p {
    font-size: 18px;
    width: 340px;
  }

  .lista-pasos summary {
    font-size: 20px;
  }

  .lista-pasos p {
    font-size: 16px;
  }

  .btn-asesoria {
    font-size: 16px;
    padding: 16px 32px;
  }
}

/* === Responsive 992px a 1199px (laptops medianas) === */
@media (max-width: 1199px) and (min-width: 992px) {
  .seccion-pasos {
    padding: 120px 48px;
  }

  .contenedor-pasos {
    padding: 96px 80px;
    gap: 60px;
  }

  .texto-pasos h2 {
    font-size: 34px;
    width: 360px;
  }

  .texto-pasos p {
    font-size: 18px;
    width: 360px;
  }

  .lista-pasos summary {
    font-size: 21px;
  }

  .lista-pasos p {
    font-size: 17px;
  }

  .btn-asesoria {
    font-size: 17px;
    padding: 16px 36px;
  }
}

/* === Responsive +1200px (desktop grande) === */
@media (min-width: 1200px) {
  .seccion-pasos {
    padding: 140px 160px;
  }

  .contenedor-pasos {
    padding: 100px;
    gap: 72px;
  }

  .texto-pasos h2 {
    font-size: 40px;
    width: 380px;
  }

  .texto-pasos p {
    font-size: 18px;
    width: 380px;
  }

  .lista-pasos summary {
    font-size: 22px;
  }

  .lista-pasos p {
    font-size: 18px;
  }

  .btn-asesoria {
    font-size: 17px;
    padding: 18px 40px;
  }
}

/* CONTACTO */
#contacto {
  padding: 120px 144px;
  background: white;
}

.contacto-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 90px;
}

.contacto-texto {
  flex: 1;
  max-width: 465px;
  max-height: 579px;
}

.contacto-texto h2 {
  font-size: 40px;
  font-weight: bold;
  color: #24406C;
  font-family: "Merriweather", serif;
  line-height: 1;
  font-weight: 500;
  max-width: 439px;
  max-height: 129px;
  margin-bottom: 10px;
}

.contacto-texto h3 {
  font-size: 1.8rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 20px;
}

.contacto-texto p {
  font-size: 18px;
  color: black;
   font-family: "Source Sans 3", sans-serif;
  line-height: 1.4;
  width: 339px;
}

.contact-form {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  max-height:562px;
}

.form-group.full {
  grid-column: span 2;
  font-family: "Source Sans 3", sans-serif;
  
}

input, textarea {
  width: 100%;
  padding: 12px 15px;
  border: none;
  background: #efefef;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  height: 56px;
  font-family: "Source Sans 3", sans-serif;

}

textarea {
  resize: none;
  

}

#mensaje{
  height: 226px;
 
}

.form-actions {
  grid-column: span 2;
}

.btn-form {
  width: 100%;
  padding: 16px 32px;
  background: #24406C;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 312px;
  height: 56px;
  transition: all 0.3s ease;
}

.btn-form:hover {
  background: #1E3456;
  color: #fff;
}

.nota {
  font-size: 0.85rem;
  color: #333;
  margin-top: 10px;
}

select {
  width: 100%;
  padding: 12px 15px;
  border: none;
  background: #efefef;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  height: 56px;
  appearance: none; /* quita el estilo nativo */
  font-family: "Source Sans 3", sans-serif;
  color: #333;
  cursor: pointer;
}
.modal {
  display: none; /* oculto por defecto */
  position: fixed;
  z-index: 3000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: transparent; /* fondo oscuro */
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 24px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  font-family: "Source Sans 3", sans-serif;
     box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #24406C;
  font-family: "Merriweather", serif;
}

.servicios-lista {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.servicios-lista li {
  background: #efefef;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.servicios-lista li:hover {
  background: #24406C;
  color: #fff;
}

.cerrar-modal {
  padding: 10px 20px;
  background: #24406C;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.cerrar-modal:hover {
  background: #1E3456;
}

/* Responsive */
@media (max-width: 900px) {
  .contacto-content {
    flex-direction: column;
    text-align: center;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-group.full {
    grid-column: span 1;
  }
}
/* Responsive para 480px */
@media (max-width: 480px) {
  #contacto {
    padding: 88px 16px;
  }

  .contacto-texto h2 {
    font-size: 30px;
    text-align: left;
    width: 358px;
    line-height: 1.05;
    height: 69px;
  }

  .contacto-texto h3 {
    font-size: 29px;
    margin-bottom: 10px;
    text-align: left;
  }

  .contacto-texto p {
    font-size: 18px;
    width: 339px;
    margin-bottom: auto;
    text-align: left;
  }

  .contact-form {
    grid-template-columns: repeat(2, 1fr); /* conservar 2 columnas para filas 2-2 */
    gap: 10px;
  }

  /* forzar el span full para inputs que deben ocupar toda la fila */
  .form-group.full {
    grid-column: 1 / -1;
  }

  /* botón y acciones ocupan toda la fila y se estiran */
  .form-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .btn-form {
    width: 100%;
    max-width: 100%;
    padding: 14px 18px;
    font-size: 14px;
    height: 48px;
    border-radius: 8px;
  }

  input, textarea {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 8px;
  }

  .nota {
    font-size: 16px;
    text-align: left;
    margin: 0;
  }
  .modal-content {
    width: 95%;
    padding: 20px;
  }

  .servicios-lista li {
    font-size: 16px;
    padding: 14px;
  } 

}

@media (max-width: 1280px) and (min-width: 1025px) {
  .btn-form {
    width: 100%;
    max-width: 140px;
    height: 52px;
    font-size: 15px;
  } 
}

/* === Responsive 769px a 1024px (tablets horizontales y laptops pequeñas) === */
@media (max-width: 1024px) and (min-width: 769px) {
  #contacto {
    padding: 96px 48px;
  }

  .contacto-content {
    flex-direction: row;
    gap: 60px;
    align-items: flex-start;
  }

  .contacto-texto h2 {
    font-size: 36px;
    line-height: 1.1;
  }

  .contacto-texto h3 {
    font-size: 1.6rem;
  }

  .contacto-texto p {
    font-size: 17px;
    width: 100%;
  }

  .contact-form {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .btn-form {
    width: 100%;
    max-width: 120px;
    height: 52px;
    font-size: 15px;
  }

  input, textarea {
    font-size: 15px;
    padding: 12px 14px;
  }
}

@media (max-width: 768px) and (min-width: 581px) {
  #contacto {
    padding: 88px 40px;
  }

  .contacto-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 48px;
    padding: 0;
    margin: 0;
  }

  .contacto-texto {
    max-width: 600px;
  }

  .contacto-texto h2 {
    font-size: 32px;
    line-height: 1.1;
    text-align: center;
    max-width: 600px;
  }

  .contacto-texto h3 {
    font-size: 1.5rem;
    text-align: center;
  }

  .contacto-texto p {
    font-size: 16px;
    width: 100%;
    text-align: center;
  }

  /* Ajuste del grid para que haya dos columnas */
  .contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 600px;
  }

  /* El campo de nombre ocupa toda la fila */
  .form-group.full {
    grid-column: 1 / 3;
  }

  /* Botón ocupa toda la fila también */
  .btn-form {
    grid-column: 1 / 3;
    width: 100%;
    max-width: 140px;
    font-size: 15px;
    height: 50px;
    justify-content: flex-start;
  }

  input, textarea {
    font-size: 15px;
    padding: 12px 14px;
  }

  .nota {
    font-size: 15px;
    text-align: center;
  }

  .form-actions{
    text-align: left;
  }
  .form-actions p{
    text-align: left;
  }
}


/* === Responsive hasta 580px (ajuste adicional mobile pequeño) === */
@media (max-width: 580px) {
  #contacto {
    padding: 72px 20px;
  }
  .contact-form{
    grid-template-columns: 1fr 1fr;
  }
  
  .contacto-texto h2 {
    font-size: 28px;
    line-height: 1.1;
    text-align: left;
  }

  .contacto-texto h3 {
    font-size: 22px;
    text-align: left;
  }

  .contacto-texto p {
    font-size: 16px;
    text-align: left;
  }



  .btn-form {
    font-size: 14px;
    height: 48px;
  }

  input, textarea {
    font-size: 14px;
  }

  .nota {
    font-size: 14px;
  }
}

/*Whatsapp*/

.btn-whatsapp {
  position: fixed;
  bottom: 126px;
  right: 20px;
  width: 80px;
  height: 80px;
  background-color: #25D366; /* verde WhatsApp */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  z-index: 2000;
}

.btn-whatsapp:hover {
  transform: scale(1.1);
  background-color: #1ebe5d;
}

.icon-whatsapp {
  width: 40px;
  height: 40px;
}

@media (max-width: 480px) {
  .btn-whatsapp {
    bottom: 15px;
    right: 15px;
    width: 64px;
    height: 64px;
  }
  .icon-whatsapp {
    width: 32px;
    height: 32px;
  }
}

/* ===== Footer General ===== */
.footer {
  background: #24406C;
  color: #8FA4C9;
  font-family: "Merriweather", serif;
  padding: 32px 79.5px;
}

/* ===== Grid principal (3 columnas) ===== */
.footer-grid {
  display: grid;
  max-width: 1296px;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin: 56px 32px 41px 0px;
}

/* ===== Columna 1: Logo + Links ===== */
.footer-logo img {
  max-width: 128px;
  margin-bottom: 26px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap:auto;
}

.footer-links-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links-grid li {
  margin-bottom: 0.6rem;
}

.footer-links-grid a {
  text-decoration: none;
  color: #8FA4C9;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-links-grid a:hover {
  color: #0066cc;
}

/* ===== Columna 2: Contacto ===== */
.footer-col2 {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-col2 a {
  color: #8FA4C9;
  text-decoration: none;
}

.footer-col2 a:hover {
  text-decoration: underline;
}

/* ===== Columna 3: Info + Redes ===== */
.footer-text {
  font-weight: bold;
  color: white;
  font-size: 18px;
  margin-bottom: 0.5rem;
}

.footer-subtext {
  font-size: 16px;
  margin-bottom: 1rem;
  color: #8FA4C9;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.social-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: background 0.3s;
  color: #F4F1E5;
}

.social-circle img{
  width: 28px;
  height: 28px;
}

.social-circle:hover {
  background: #0066cc;
}

/* ===== Línea inferior ===== */
.footer-bottom {  
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #8FA4C9;
  height: 80px;
  gap: 1rem;
}
.footer-bottom::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid #43659A;
}
.footer-bottom p{
 padding: 32px 0;
}
.footer-bottom-links {
  padding: 32px 0px;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.footer-bottom-links1{
  padding: 48px 0px;
  display: flex;
  justify-content: center;
  gap: 16px;
  width: 175px;
  height: 35px;
  margin-bottom: 0;
  align-items: center;
}
.logo-footer{
  width:48px;
  height: 35px;
}

.footer-bottom-links1 a:hover {
  color: #0066cc;
  
}


.footer-bottom-links a {
  color: #8FA4C9;
  text-decoration: none;
}
.footer-bottom-links1 a {
  color: #8FA4C9;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: #0066cc;
}

/* ===== Responsivo ===== */
@media (max-width: 1024px) {

  .footer{
    padding-left: 48px;
    padding-right: 48px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col3 {
    grid-column: span 2;
  }
  .footer-col2 {
    margin-top: 115px;
  }
}

@media (max-width: 600px) {
  .footer {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem; /* más aire */
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-logo img {
    margin: 0 auto 1rem auto;
    max-width: 140px; /* logo más chico en móviles */
  }

  .footer-links-grid {
    grid-template-columns: 1fr; /* links en una sola columna */
    gap: 0.8rem;
  }

  .footer-links-grid li {
    margin-bottom: 0.4rem;
  }

  .footer-col2 {
    margin: 0 auto;
    max-width: 280px; /* no tan ancho */
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .footer-social {
    justify-content: center;
    margin-top: 1rem;
    gap: 0.6rem;
  }

  .social-circle {
    width: 26px;
    height: 26px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
    font-size: 0.8rem;
  }

  .footer-bottom-links {
    justify-content: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  /* contenedor: una columna vertical y alineado a la izquierda */
  .footer {
    padding: 56px 16px;
  }

  /* fuerza columna única y control de orden mediante flex */
  .footer-grid {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    width: auto;
    height: 542px;
    text-align: left;
    margin: 0;
  }

  /* Aseguramos el orden visual exacto (usa order) */
  /* 1) Logo arriba */
  .footer-logo {
    order: 1;
    align-self: flex-start;
    width: 128px;
    height: 105px;
  }
  .footer-logo img {
    display: block;
    max-width: 120px;
    margin: 0 0 8px 0;
  }

  /* 2) Navbar (links) debajo del logo en dos columnas compactas */
  .footer-links-grid {
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: auto;
    align-items: start;
    width: 226px;
    height: 82px;
    margin-bottom:20px ;
  }
  .footer-links-grid li { margin: 0 0 6px 0; list-style: none; }
  .footer-links-grid a {
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
  }

  /* 3) Teléfono / correo / horario (columna 2) */
  .footer-col2 {
    order: 3;
    margin: 0;
    max-width: 100%;
    font-size: 18px;
    line-height: 1.45;
    text-align: left;
    display: block;
    gap: 6px;
  }
  .strong{
    font-size: 14px;
  }
  .atencion{ font-size: 14px;}
  .footer-col2 a { text-decoration: none; display: inline-block;font-size: 14px; }
  .footer-col2 a:hover { text-decoration: underline; }

  /* 4) Texto principal (titular + subtítulo) */
  /* Si tu titular usa otra clase, mantiene .footer-text / .footer-subtext */
  .footer-col3{
    width: 343px;
    margin-top: 24px;
  }
  .footer-text {
    order: 4;
    font-weight: bold;
    font-size: 18px;
  }

  .footer-subtext {
    order: 5;
    font-size: 14px;
    font-weight: 0;

  }

  /* 5) Redes sociales (síguenos) debajo del texto, alineadas a la izquierda */
  .footer-social {
    order: 6;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 24px;
  }
  .footer-social span{
    font-size: 14px;
    font-weight: 700;
  }
  .social-circle {
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background: transparent;
    flex: 0 0 28px;
  }
  .social-circle:hover { background: #0066cc; }
.social-circle img{
  width: 33px;
  height: 33px;
}

  /* 6) Línea del footer: la dibujamos con ::before dentro de .footer-bottom,
         pero la colocamos antes del copy visualmente (usamos order para bloquear) */
  .footer-bottom {
    order: 7;
    position: relative;
    padding-top: 14px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 6px;
    font-size: 14px;
    height: 200px;
    width: 100%;
  }
  
  .footer-bottom::before {
    content: "";
    position: absolute;
    top: 0;
    border-top: 1px solid #43659A;
    width: 100%;
  }

  /* 7) Copy + links (políticas, términos, desarrollado) debajo de la línea */
  .footer-bottom p {
    order: 8; /* el texto dentro del footer-bottom ya aparece tras la línea */
    margin: 0;
    font-size: 0.75rem;
  }

  .footer-bottom-links {
    order: 9;
    padding: 6px 0;
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    width: 100%;
  }
   .footer-bottom-links1 {
    order: 9;
    padding: 7px 0;
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    width: 100%;
  }
    
  .footer-bottom-links a {
    text-decoration: none;
    font-size: 0.82rem;
  }
  .footer-bottom-links a:hover { color: #0066cc; }

  /* ajustes finos */
  .footer-links-grid a, .footer-subtext, .footer-col2 { line-height: 1.35; }

  /* si hay alguna columna extra (.footer-col3) que se muestre como bloque debajo (por seguridad) */
  .footer-col3 { order: 10; width: 100%; }

}

/*Mediaquery para 1600*/

@media (min-width: 1600px) {
  /* Centramos todas las secciones que tienen márgenes fijos */
  .servicios-section,
  .cta-final,
  .footer-grid,
  .testimonios-section,

  .seccion-pasos,
  #valores,
  #contacto {
    /* Quitamos margenes fijos para centrar */
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
  
  }

  #inicio{
  margin: 0;
  padding: 0;
  }
  .contenedor-pasos{
    margin: 0 auto;
  }
  .hero-content{
   max-width: 1440px;
   margin: 0;
   margin-left: calc((100vw - 1440px) / 2);
    margin-right: calc((100vw - 1440px) / 2);
    
  }
  .nosotros-content{
    margin: 0 auto;
  }
  .servicios-grid{
    margin: 0 auto;
  }
 
  .testimonios-header{
    margin: 0;
    margin-left: calc((100vw - 1440px) / 2);
    margin-right: calc((100vw - 1440px) / 2);
    margin-bottom: 20px ;
    
  }
  .asesoria{
    margin: 0 auto;
  }  
  
  /* Navbar: fondo ancho completo, contenido se centra igual que las secciones */
  header {
    width: 100vw;
    left: 0;
    right: 0;
    background: #E4E4E4;
  }

  nav {
    max-width: 1440;
    margin-left: auto !important;
    margin-right: auto !important;

  }
  .logo img {
    margin-left: 144px !important; /* Mantener márgenes en logo */
  }
  .cta-final{
    width: 1440px;
  

  }

  .nav-links {
    margin-right: 144px !important; /* Mantener márgenes en nav-links */
  }
}



/*PP*/
.politica-container {
  padding: 104px 144px;
}

.titulo-politica {
  background-color: #EFEDE7;
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 40px 144px;
}

.titulo-politica p {
  font-size: 16px;
  font-family: Merriweather;
}

.titulo-politica h1 {
  max-width: 1008px;
  font-size: 48px;
  font-family: Merriweather;
  font-weight: 400;
}

.politica-texto {
  padding-top: 80px;
  font-family: "Source Sans 3", sans-serif;
}

.text-1, .text-2, .text-3, .text-4, .text-5, .text-6, .text-7 {
  padding-bottom: 40px;
  max-width: 858px;
  font-size: 18px;
}

.text-1 h2, .text-2 h2, .text-3 h2, .text-4 h2, .text-5 h2, .text-6 h2, .text-7 h2 {
  margin-bottom: 18px;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.36;
}

.text-5 p {
  margin-top: 18px;
}

.p1, .p2 {
  margin-bottom: 18px;
}

.politica-texto li {
  margin-left: 2rem;
  margin-top: 18px;
}

@media (max-width: 768px) {
  .titulo-politica {
    padding: 40px 32px;
    height: auto;

  }

  .titulo-politica h1 {
    font-size: 28px;
  }

  .titulo-politica p {
    font-size: 13px;
  }

  .titulo-politica .breadcrumb {
    font-size: 11px;
  }

  .politica-container {
    padding: 40px 32px;
  }

  .politica-texto h2 {
    font-size: 20px;
  }

  .politica-texto p,
  .politica-texto ul li {
    font-size: 14px;
  }

  .politica-texto ul {
    margin-left: 1.5rem;
  }
}



/* MEDIA QUERY: MÓVIL (≤480px)*/
@media (max-width: 480px) {
  .titulo-politica {
    padding-top: 48px;
    padding-bottom: 40px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .titulo-politica h1 {
    font-size: 32px;
    max-width: 343px;
  }

  .politica-texto{
    padding-top: 40px;
  }

  .titulo-politica p {
    font-size: 16px;
    padding-bottom: 28px;
  }

  .titulo-politica .breadcrumb {
    font-size: 10px;
  }

  .politica-container {
    padding: 48px 24px;
    
  }

  .politica-texto h2 {
    font-size: 24px;
  }

  .politica-texto p,
  .politica-texto ul li {
    font-size: 16px;
  }

  .politica-texto ul {
    margin-left: 1rem;
  }
}

/* === Fix visual para iPhone 14 (390px width) === */
@media (max-width: 400px) {
  .carousel-wrapper {
    overflow: visible;
    padding-right: 24px; /* aire lateral derecho */
  }

  .carousel-track {
    padding-right: 24px; /* evita que el último card se pegue al borde */
    gap: 24px;
  }

  .card-servicio:last-child {
    margin-right: 16px; /* margen extra solo al último card */
  }
}
