/* =========================================================
   TIPOGRAFÍA LOCAL OPTIMIZADA - WOFF2
   ========================================================= */

@font-face {
  font-family: "Bould";
  src: url("fonts/Bould-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bould";
  src: url("fonts/Bould-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bould";
  src: url("fonts/Bould-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bould";
  src: url("fonts/Bould-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   VARIABLES DE COLOR Y CONFIGURACIÓN GLOBAL
   ========================================================= */
:root {
  --azul: #005de0;
  --naranjo: #ff8c00;
  --slide-count: 2;
}

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

body {
  font-family: 'Bould', sans-serif;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

/* =========================================================
   HEADER FIJO SUPERIOR
   ========================================================= */
header {  
  background: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 7vw;
  max-height: 150px;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
}

/* --- Contenedor principal del header --- */
header .container {
  display: flex;
  justify-content: flex-start;
  align-items: stretch; /* Estira los hijos verticalmente */
  padding: 0 0vw;
  height: 9vw;
  max-height: 150px;
  height: 100%; /* Altura base del header */
  box-sizing: border-box;
  position: relative;
}

/* --- Logo --- */
.logo {
  height: 4.5vw;
  max-height: 80px;
  margin-left: 4vw;
  align-self: center;
  transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Botón Cotizar --- */
.btn-nav {
  margin-right: -12vw;
  align-self: center;
  background-color: var(--naranjo);
  color: white !important;
  padding: 0.02vw 2.2vw;
  border-radius: 9999px;
  font-weight: 600;
  font-size: clamp(0.8vw, 1vw, 2.5vw);
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  left: 18vw;
  z-index: 2;
}
.btn-nav:hover {
  background-color: #fff;
  color: var(--naranjo) !important;
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
  transform: translateY(-2px);
}

/* --- Bloque derecho (franjas azul + naranjo) --- */
.header-banner {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

/* --- Franja azul --- */
.banner-blue {
  width: 95%;
  height: 100%;
  background-color: #005de0;
  border-top-left-radius: 20px;
  display: flex;
  justify-content: flex-end; /* texto y barra al lado derecho */
  align-items: center;       /* centra verticalmente */
  position: relative;
  padding-right: 3vw;        /* espacio entre texto y borde */
  margin-left: 8vw;
  box-sizing: border-box;
  z-index: 1;
}

/* --- Texto sobre la franja azul --- */
.header-text {
  color: white;
  font-family: "Bould", sans-serif;
  font-weight: 600;
  text-align: right;
  font-size: clamp(1.5vw, 1vw, 19px);
  line-height: 1.2;
  margin: 0;
  white-space: normal;
  word-break: keep-all;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Franja naranjo --- */
.banner-orange {
  width: 0.4vw;
  background-color: var(--naranjo);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  height: 60%;
  position: absolute;
  right: 0;
  align-self: center;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Efecto al hacer scroll Desktop --- */
header.scrolled {
  background: rgba(255, 255, 255, 0.7);
  padding: 0rem 0;
  backdrop-filter: blur(6px) grayscale(70%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  height: 5vw;
}
header.scrolled .container {
  height: 5vw; /* Altura base del header nueva */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

}
header.scrolled .logo {
  height: 3vw;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

}
header.scrolled .btn-nav {
  padding: 0.02vw 1.6vw;
  font-size: clamp(0.8vw, 0.7vw, 1.7vw);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

}
header.scrolled .header-text {
  font-size: 1.2vw;
  /*opacity: 0.85;*/
  transform: translateY(1px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
header.scrolled .banner-orange {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

}
header.scrolled .banner-blue {
  height: 100%;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* =========================================================
   HERO (SLIDER PRINCIPAL)
   ========================================================= */
/* === HERO === */
.hero {
  position: relative;
  height: 35vw;
  overflow: hidden;
  margin-top: min(6.5vw, 150px);
}

/* Slider */
.hero-slider {
  display: flex;
  height: 100%;
  width: 200%; /* 2 imágenes */
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-slider img {
  width: 50%; /* 2 imágenes → 50% cada una */
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* === PANEL AZUL SOBRE EL HERO === */

.hero-panel {
  position: absolute;
  top: 25%;
  right: 0;
  transform: translateY(-50%);

  background: rgba(0, 93, 224, 0.8); /* azul 70% */
  backdrop-filter: blur(7px);        /* desenfoque detrás */
  -webkit-backdrop-filter: blur(7px); /* soporte Safari */

  color: white;
  width: 45%;
  padding: 2vw 2.5vw;
  padding-right: 9.5vw;

  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;

  display: flex;
  align-items: center;

  text-align: left;
  z-index: 5;
  
}

.hero-panel p {
  margin: 0;
  line-height: 1.4;
  font-size: 1.3vw;
  font-family: "Bould", sans-serif; /* base */
}

.hero-panel .line-strong {
  font-family: "Bould", sans-serif;
  font-weight: 600;
}

.hero-panel .line-regular {
  font-family: "Bould", sans-serif;
  font-weight: 400;
}

/* === TITULAR SERVICIOS SOBRE HERO === */
.hero-services-title {
  position: absolute;
  left: 50%;
  bottom: 20%;                /* ajustable según diseño */
  transform: translateX(-50%);

  color: white;
  text-align: center;
  font-family: "Bould", sans-serif;
  font-weight: 600;
  font-size: clamp(2.2vw, 2.2vw, 2.2rem);
  letter-spacing: 0.03em;
  line-height: 1.2;
  width: 96vw;
  max-width: 1600px;
  white-space: normal;
  word-break: keep-all;

  z-index: 4;                /* sobre la imagen, bajo el panel azul si se cruzan */
}

/* =========================================================
   SECCIÓN SERVICIOS
   ========================================================= */

.servicios {
  position: relative;
  padding-top: 9.5vw;       /* compensa el contenido */
  padding-bottom: 4rem;
  z-index: 3;

  background-image: url("img/pano-02.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding-left: 9.7vw;
  padding-right: 9.7vw;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 5vw;
  margin-top: -14.5vw; /* 👈 SOLO las tarjetas suben */
}
/* --- Cuando ya no caben 4, pasamos a 2 --- */
@media (max-width: 665px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Cuando ya no caben 2, pasamos a 1 --- */
@media (max-width: 664px) {
  .servicios-grid {
    grid-template-columns: 1fr;
  }
}


/* --- Tarjeta base --- */
.servicio-card {
  border: 1px solid var(--azul);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(3px);        /* desenfoque detrás */
  -webkit-backdrop-filter: blur(3px); /* soporte Safari */

  display: flex;
  flex-direction: column;

  height: 28vw;           /* 👈 TODAS iguales */
  
}

/* --- Bloque azul superior --- */
.servicio-header {
  background-color: var(--azul);
  padding: 1.4rem 1.4rem 1.2rem;

  display: flex;
  flex-direction: column;     /* icono arriba */
  align-items: flex-start;
  gap: 0.6rem;
}

/* --- Ícono --- */
.servicio-header img {
  height: 4.5vw;
}

/* --- Título --- */
.servicio-header h3 {
  margin: 0;
  font-family: "Bould", sans-serif;
  font-weight: 600;
  font-size: clamp(2.0vw, 2.0vw, 2.2rem);
  color: white;
  line-height: 1.2;
}

/* --- Bloque blanco inferior --- */
.servicio-body {
  padding: 1.6vw;
  flex: 1;                     /* rellena el alto restante */
  display: flex;
  align-items: flex-start;
}

/* --- Texto --- */
.servicio-body p {
  margin: 0;
    font-family: "Bould", sans-serif;
  font-weight: 400;
  font-size: 1.25vw;
  line-height: 1.2;
  color: var(--azul);
}


/* =========================================================
   SECCIÓN TESTIMONIO
   ========================================================= */
.testimonio {
  background-color: var(--azul);
  padding: 3.5vw 5vw 3.5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.testimonio-top-accent {
  position: absolute;
  top: 0;                 /* 👈 pegada al borde superior */
  left: 50%;
  transform: translateX(-50%);

  width: 8vw;
  height: 0.6vw;
  background-color: #fff;

  border-bottom-left-radius: 999px;
  border-bottom-right-radius: 999px;
}
.testimonio-card {
  background-color: #fff;
  width: 58%;
  max-width: 1100px;
  min-height: 320px;

  display: flex;
  align-items: stretch;
  border-radius: 20px;
  overflow: hidden;
}
.testimonio-photo {
  position: relative;
  width: 30%;
  min-width: 260px;

  display: flex;
  align-items: stretch;
}
.testimonio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}
.testimonio-photo-accent {
  position: absolute;
  top: 20%;
  right: -0.6vw;

  width: 0.6vw;
  height: 60%;

  background-color: var(--naranjo);
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}
.testimonio-text {
  width: 70%;
  padding: 2.5vw 2vw;

  display: flex;
  flex-direction: column;
  justify-content: center;

  text-align: left;
}
.testimonio-name {
  font-family: "Bould", sans-serif;
  font-weight: 600;
  color: var(--azul);
  font-size: 1.8vw;
  line-height: 1.2;
  margin-bottom: 1.2vw;
}

.testimonio-name span {
  display: block;
  font-size: 1.8vw;
  line-height: 2vw;
}

.testimonio-quote {
  font-family: "Bould", sans-serif;
  font-weight: 400;
  color: var(--azul);
  font-size: 1.2vw;
  line-height: 1.2;
}


/* =========================================================
   SECCIÓN CONTACTO
   ========================================================= */
.contacto {
  text-align: center;
  padding: 2rem 0;
  font-family: "Bould", sans-serif;
  font-weight: 400;
  color: var(--azul);
  font-size: 1.4vw;
  line-height: 1.2;
  margin-bottom: 1.2vw;
}
.contacto h2 {
  margin-bottom: 1rem;
  text-align: center;
}
.contacto form {
  display: grid;
  gap: 1rem;
  max-width: 700px;
  margin: 0.1rem auto;
}
.contacto input,
.contacto textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  width: 100%;
}
.contacto-title {
  display: inline-block;            /* se ajusta al contenido */
  background-color: var(--naranjo);
  color: white;

  font-family: "Bould", sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  letter-spacing: 0.05em;

  padding: 0.6em 1.6em;
  border-radius: 9999px;             /* mismo look del botón */

  margin: 0 auto 2rem;               /* centrado + espacio abajo */
}
.contacto-title {
  box-shadow: 0 6px 16px rgba(255, 140, 0, 0.35);
}

.contacto {
  background: #fff;
  padding: 5rem 1rem;
  text-align: center;
}

.contacto-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--azul);
}
.contacto-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 3.5rem;

  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-family: "Bould SemiBold", sans-serif;
  font-size: 0.85rem;
  color: var(--azul);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;

  font-family: "Bould Regular", sans-serif;
  font-size: 0.95rem;

  border-radius: 6px;
  border: 1px solid #ccd6e0;

  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 2px rgba(0, 93, 224, 0.15);
}
.btn-submit {
  margin-top: 2rem;

  background-color: var(--azul);
  color: white;

  font-family: "Bould SemiBold", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;

  padding: 0.8rem 2.5rem;
  border-radius: 9999px;
  border: none;

  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 93, 224, 0.35);
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: white;
  padding: 3vw 0;
}

/* Contenedor general */
.footer-inner {
  display: flex;
  align-items: center;
  padding-left: 9.7vw;
  padding-right: 0;
  width: 100%;
  box-sizing: border-box;
}

/* ==============================
   BLOQUE DIRECCIÓN
   ============================== */

.footer-address {
  display: flex;
  align-items: center;
  gap: 1vw;
  flex-shrink: 0;
}

.footer-icon {
  height: 3.4vw;
  max-height: 48px;
  min-height: 28px;
}

.footer-address-text {
  text-align: left;
  font-family: "Bould", sans-serif;
  font-weight: 600;
  color: var(--azul);
  line-height: 1.2;
  font-size: clamp(14px, 1.1vw, 18px);
}

/* ==============================
   ESPACIADOR
   ============================== */

.footer-spacer {
  flex: 1;
}

/* ==============================
   BLOQUE LOGO DERECHO
   ============================== */

.footer-brand {
  background: var(--azul);
  border-top-left-radius: 22px;
  height: 9vw;
  min-height: 60px;
  max-height: 120px;

  display: flex;
  align-items: center;

  padding-right: 1.7vw;
  box-sizing: border-box;
  min-width: 35vw;
}

/* Franja naranja */
.footer-orange-bar {
  width: 0.6vw;
  min-width: 6px;
  height: 60%;
  background: var(--naranjo);
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  margin-left: 1vw;
  margin-right: 1.5vw;
}

/* Contenido interno */
.footer-brand-content {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Logo */
.footer-logo {
  height: 4vw;
  max-height: 48px;
  min-height: 22px;
  flex-shrink: 0;
}

/* Texto legal */
.footer-legal {
  font-family: "Bould", sans-serif;
  font-weight: 400;
  color: white;
  font-size: clamp(11px, 0.95vw, 13px);
  opacity: 0.85;
  white-space: nowrap;
  width: 150%;
  text-align: right;
  margin-top: clamp(6px, 0.9vw, 10px);
}
@media (max-width: 480px) {

  .footer-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding-right: 9.7vw;
  }

  .footer-brand {
    width: 100%;
    min-width: 0;
  }

  .footer-brand-content {
    align-items: flex-end;
    text-align: right;
    padding-right: 6vw;
  }

}



/* === ANIMACIONES DE ENTRADA === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.servicio-card:nth-child(1) { transition-delay: 0.05s; }
.servicio-card:nth-child(2) { transition-delay: 0.35s; }
.servicio-card:nth-child(3) { transition-delay: 0.95s; }
.servicio-card:nth-child(4) { transition-delay: 1.25s; }


/* =========================================================
   RESPONSIVE (TABLET Y MÓVIL)
   ========================================================= */
@media (max-width: 666px) {
/* --- Estructura vertical del header en mobile --- */
header .container {
  display: flex;
  flex-direction: column; /* logo arriba, franja azul abajo */
  align-items: stretch;   /* cada hijo usa todo el ancho */
  justify-content: flex-start;
  width: 100%;
    height: 26.5vw;
  min-height: 50px;
  max-height: 80px;
  padding: 0;
}
header {  
  background: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 26.5vw;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
}
/* --- Logo --- */
.logo {
  align-self: flex-start;
  margin: 0.8rem 0 0.5rem 1rem; /* espacio superior e izquierdo */
  height: 12vw;
  max-height: 60px;
  z-index: 2;
}

/* --- Franja azul --- */
.header-banner {
  order: 2;
  width: 98%;
  height: 5vw;
  align-self:flex-end ;
}

/* --- Botón Cotizar --- */
.btn-nav {
  font-size: 3.2vw;
  margin-top: -9.3vw;
  margin-bottom: 7vw;
  margin-left: 17vw;
    padding: 0.02vw 4.5vw;

}
.banner-blue {
  width: 100%;
  height: 3.8vw; /* puedes ajustar según proporción deseada */
  min-height: 25px;
  background-color: var(--azul);
  border-top-left-radius: 10px;
  display: flex;
  justify-content: center;  /* ✅ centra horizontalmente el contenido */
  align-items: center;       /* ✅ centra verticalmente el contenido */
  padding: 0 3vw;
  box-sizing: border-box;
  margin: 0;
  z-index: 1;
}

/* --- Texto sobre la franja azul --- */
.header-text {
  color: white;
  text-align: center;
  font-size: clamp(3.5vw, 2.5vw, 16px);
  line-height: 1.2;
  margin: 0;
  white-space: normal;
  width: 100%;
}

/* --- Franja naranjo --- */
.banner-orange {
  width: 4px;
  background-color: var(--naranjo);
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  height: 60%;
  position: absolute;
  right: 0;
  align-self: center;
  z-index: 2;
}
/* --- Efecto al hacer scroll --- */
header.scrolled {
  background: rgba(255, 255, 255, 0.7);
  padding: 0rem 0;
  backdrop-filter: blur(6px) grayscale(70%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  height: 15vw;
}
header.scrolled .container {
  height: 15vw; /* Altura base del header nueva */
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

}
header.scrolled .logo {
  height: 9vw;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

}
header.scrolled .btn-nav {
  
  font-size: 2.5vw;
  margin-top: -8vw;
  margin-bottom: 8vw;
  margin-left: 17vw;
  padding: 0.02vw 3.5vw;

  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

}
header.scrolled .header-text {
  font-size: 0.9rem;
  /*opacity: 0.85;*/
  transform: translateY(1px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
header.scrolled .banner-orange {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

}
header.scrolled .banner-blue {
  height: 100%;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* === HERO === */
.hero {
  height: 50vh;
  margin-top: min(20.5vw, 22vw);
}

/* Slider */
.hero-slider {
  display: flex;
  height: 100%;
  width: 200%; /* 2 imágenes */
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-slider img {
  object-position: 35% center;
}

.hero-panel {
  position: absolute;
  top: 15%;
  right: 0;
  transform: translateY(-25%);

  color: white;
  width: 45%;
  padding: 1rem 1.5rem;
  padding-right: 1.5vw;


  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;

  display: flex;
  align-items: center;

  text-align: left;
  z-index: 5;
  
}
.hero-panel p {
  font-size: 0.85rem;          /* ajustable */
  line-height: 1.3;
  margin: 0;
  font-family: "Bould", sans-serif;
}
/* === TITULAR SERVICIOS SOBRE HERO === */
.hero-services-title {
  position: absolute;
  left: 50%;
  bottom: 9vh;                /* ajustable según diseño */
  transform: translateX(-50%);

  font-size: clamp(1rem, 2.7vw, 3vw);
  letter-spacing: 0.03em;
  line-height: 1.2;
  width: 90vw;
  max-width: 1600px;
  white-space: normal;
  word-break: keep-all;

  z-index: 4; 

  /* =========================================================
   SECCIÓN SERVICIOS
   ========================================================= */
}
.servicios {
  padding-left: 4.7vw;
  padding-right: 4.7vw;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 4vw;
  margin-top: -22.5vw; /* 👈 SOLO las tarjetas suben */

}

/* --- Tarjeta base --- */
.servicio-card {
  height: 65vw;           /* 👈 TODAS iguales */
  
}

/* --- Bloque azul superior --- */
.servicio-header {
  background-color: var(--azul);
  padding: 3.2vw;

  display: flex;
  flex-direction: column;     /* icono arriba */
  align-items: flex-start;
  gap: 0.6rem;
}

/* --- Ícono --- */
.servicio-header img {
  height: 10vw;
}

/* --- Título --- */
.servicio-header h3 {
  font-size: 4.2vw;
  line-height: 1;
}

/* --- Bloque blanco inferior --- */
.servicio-body {
  padding: 3.2vw;
  flex: 1;                     /* rellena el alto restante */
  display: flex;
  align-items: flex-start;
}

/* --- Texto --- */
.servicio-body p {
  margin: 0;
  font-family: "Bould", sans-serif;
  font-weight: 400;
  font-size: 3.3vw;
  line-height: 1.1;
  color: var(--azul);
}

.servicio-card:nth-child(3) { transition-delay: 0.05s; }
.servicio-card:nth-child(4) { transition-delay: 0.35s; }

/* =========================================================
   SECCIÓN TESTIMONIO
   ========================================================= */
.testimonio {
  background-color: var(--azul);
  padding: 3.5vh 1vw 3.5vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.testimonio-top-accent {
  position: absolute;
  top: 0;                 /* 👈 pegada al borde superior */
  left: 50%;
  transform: translateX(-50%);

  width: 8vh;
  height: 0.6vh;
  background-color: #fff;

  border-bottom-left-radius: 999px;
  border-bottom-right-radius: 999px;
}
.testimonio-card {
  background-color: #fff;
  width: 90%;
  max-width: 1600px;
  min-height: 20px;

  display: flex;
  align-items: stretch;
  border-radius: 20px;
  overflow: hidden;
}
.testimonio-photo {
  width: 15%;
  min-width: 100px;

  display: flex;
  align-items: stretch;
}

.testimonio-photo img {
  width: 100%;
  height: 120%;

  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.testimonio-photo-accent {
  top: 15%;
  right: -0.8vh;
  width: 0.8vh;
  height: 70%;

}
.testimonio-text {
  width: 70%;
  padding: 1.5vh 2.5vh;
}
.testimonio-name {
  font-size: 2.3vh;
  line-height: 1;
  margin-bottom: 1.2vw;
}
.testimonio-name span {
  font-size: 2.3vh;
  line-height: 3vh;
}
.testimonio-quote {
  font-size: 1.9vh;
  line-height: 1.2;
}
/* =========================================================
   SECCIÓN CONTACTO
   ========================================================= */
.contacto {
  padding: 0.5rem;
  font-size: 2vh;
  line-height: 1.2;
  margin-bottom: 1.2vw;
}
@media (max-width: 768px) {
  .contacto-card {
    padding: 2rem 0.5rem;
  }
}
/* ==========================================================
FOOTER
=========================================================== */
  .footer-brand {
    height: 60px;
    min-width: 55vw;
  }

  .footer-logo {
    height: 26px;
  }

  .footer-legal {
    font-size: 11px;
    width: 140%;
  }

  .footer-icon {
    height: 32px;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    padding-left: 6vw;
  }

  .footer-brand {
    padding-right: 6vw;
    min-width: 60vw;
  }

  .footer-address-text {
    font-size: 13px;
  }
}
