/* ============================================
   BARCELONA MORTGAGE SERVICING
   Main Stylesheet
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --color-primary: #0C4DA2;
  --color-primary-dark: #0a3d80;
  --color-dark: #323232;
  --color-gray-light: #f1f1f1;
  --color-gray-border: #ebebeb;
  --color-white: #ffffff;
  --color-text: #444444;
  --color-heading: #2a2a2a;
  --color-coral: #e74d3c;

  --font-family: montserrat, HelveticaNeue, "Helvetica Neue", Helvetica-Neue, Helvetica, Arial, sans-serif;

  --header-height: 90px;
  --transition: 0.3s ease;
  --shadow-natural: 6px 6px 9px rgba(0, 0, 0, 0.2);
  --shadow-deep: 12px 12px 50px rgba(0, 0, 0, 0.4);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.65;
  background: var(--color-white);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

h2 {
  line-height: 1.1;
}

h3 {
  line-height: 1.1;
}

ul {
  list-style: none;
}

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

/* ---- Container ---- */
.container {
  max-width: 1600px;
  width: 95%;
  margin: 0 auto;
  padding-left: 50px;
  padding-right: 50px;
}

header .container,
.site-header .container {
  max-width: 100%;
  width: auto;
  padding: 0;
  margin: 0 30px;
}

/* ---- Sections ---- */
.section {
  padding: 80px 0;
}

.section-white {
  background: var(--color-white);
}

.section-gray {
  background: var(--color-gray-light);
}

.section-dark-blue {
  background: var(--color-primary);
}

/* ---- Section Labels & Titles ---- */
.section-label {
  display: block;
  color: #34495e;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: normal;
  margin-bottom: 10px;
}

.section-label.light {
  color: rgba(255, 255, 255, 0.75);
}

.section-label.text-center,
.section-title.text-center {
  text-align: center;
}

.section-title {
  font-size: 40px;
  font-weight: 600;
  color: #34495e;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-title.light {
  color: var(--color-white);
}

.section p {
  color: #323232;
}

.section-divider {
  width: 50px;
  height: 2px;
  background-color: rgb(0, 0, 0);
  margin-bottom: 30px;
}

.section-divider.centered {
  margin-left: auto;
  margin-right: auto;
}

.section-divider.light {
  background: rgba(255, 255, 255, 0.5);
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: rgba(0,0,0,0.1) 0px 0px 2px 1px;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 32px;
  padding: 15px 0;
}

.logo img {
  height: auto;
  max-height: 90px;
  width: auto;
  display: block;
  transition: transform var(--transition);
}

.logo:hover img {
  transform: scale(1.02);
}

/* ---- Main Navigation ---- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: flex-end;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav ul li a {
  display: block;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 400;
  color: #34495e;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  position: relative;
  line-height: 90px;
  white-space: nowrap;
  transition: color var(--transition);
}

.main-nav ul li a.active,
.main-nav ul li.active a {
  color: #e74d3c;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.main-nav ul li a:hover {
  color: var(--color-primary);
}

.main-nav ul li a:hover::after {
  transform: scaleX(1);
}

/* ---- Nav Extras ---- */
.nav-extras {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  font-size: 20px;
  line-height: 1;
  color: var(--color-primary);
  border: none;
  padding: 4px 6px;
  border-radius: 3px;
  transition: opacity var(--transition);
  display: inline-flex;
  align-items: center;
}

.lang-toggle:hover {
  opacity: 0.75;
  color: var(--color-primary);
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-links a {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: #34495e;
  font-size: 16px;
  transition: color var(--transition);
}

.social-links a:hover {
  color: var(--color-primary);
}

/* ---- Mobile Nav Toggle ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
  margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
  height: 550px;
  min-height: 550px;
}

.hero-swiper,
.hero-swiper .swiper-slide {
  height: 550px;
}

.hero-swiper {
  width: 100%;
  line-height: 0;
  font-size: 0;
}

.swiper-slide {
  position: relative;
  overflow: hidden;
  line-height: normal;
  font-size: 16px;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 8s ease;
}

.swiper-slide-active .slide-bg {
  /* transform: scale(1.05); */
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background-color: rgb(52, 73, 94);
  opacity: 0.8;
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 100%;
  width: 100%;
  padding: 0 50px;
}

.slide-content-center {
  align-items: center;
  text-align: center;
}

.slide-content-left {
  align-items: flex-start;
  text-align: left;
}

.slide-title {
  font-size: 90px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.slide-subtitle {
  font-size: 25px;
  color: #ffffff;
  line-height: 32.5px;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.slide-btn {
  background: transparent;
  border: 2px solid white;
  color: white;
  font-size: 13px;
  padding: 15px 30px 13px;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.13px;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s, background var(--transition);
}

.slide-btn:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

.swiper-slide-active .slide-title,
.swiper-slide-active .slide-subtitle,
.swiper-slide-active .slide-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Swiper navigation arrows */
.swiper-button-prev,
.swiper-button-next {
  --swiper-navigation-color: #ffffff;
  --swiper-navigation-size: 22px;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  transition: background 0.2s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(0, 0, 0, 0.5);
}

.swiper-button-prev {
  left: 20px;
}

.swiper-button-next {
  right: 20px;
}

/* ============================================
   STATISTICS BAR — fondo gris claro, 3 items
   ============================================ */
.stats-bar {
  background: var(--color-gray-light);
  padding: 36px 0;
  border-bottom: 1px solid var(--color-gray-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 20px 32px;
}

.stat-icon {
  font-size: 50px;
  color: #34495e;
  flex-shrink: 0;
}

.stat-text {
  display: flex;
  flex-direction: column;
}

.stat-title {
  font-size: 20px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 4px;
  text-transform: none;
}

.stat-label,
.stat-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: #323232;
  letter-spacing: 0;
  text-transform: none;
}

/* ============================================
   QUIÉNES SOMOS
   ============================================ */
.quienes-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
}

.quienes-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
}
.quienes-text-col {
  flex: 0 0 60%;
  max-width: 60%;
  padding-right: 40px;
}
.quienes-counter-col {
  flex: 0 0 20%;
  max-width: 20%;
  display: flex;
  flex-direction: column;
}

.quienes-text p {
  color: var(--color-text);
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.8;
}

.quienes-text .btn {
  margin-top: 10px;
}

/* Label Quiénes somos — hereda de .section-label */

/* Botón outline oscuro Quiénes somos */
.btn-quienes-somos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #34495e;
  color: #34495e;
  padding: 12px 24px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
  margin-top: 10px;
}

.btn-quienes-somos:hover {
  background: #34495e;
  color: #ffffff;
}

/* Contadores quiénes somos */
.quienes-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.counter-item {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.counter-value {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.counter-prefix {
  font-size: 40px;
  font-weight: 400;
  color: #34495e;
  line-height: 1;
}

.counter-number {
  font-size: 50px;
  font-weight: 400;
  color: #34495e;
  line-height: 1;
  letter-spacing: -1px;
}

.counter-label {
  font-size: 15px;
  color: #323232;
  font-weight: 400;
  line-height: 1.3;
}

.counter-divider {
  height: 1px;
  background: var(--color-gray-border);
  width: 100%;
}

/* ============================================
   FEATURES / ¿POR QUÉ ELEGIRNOS?
   — Fondo blanco, iconos outline oscuro, sin border card
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.feature-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
}

.feature-icon {
  background: transparent;
  border: 1.5px solid #34495e;
  color: #34495e;
  border-radius: 50%;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  transition: background var(--transition), color var(--transition);
}

.feature-card:hover .feature-icon {
  background: #34495e;
  color: var(--color-white);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.7;
}

/* ============================================
   SERVICIOS DETALLE
   ============================================ */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.servicio-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px;
  border: 1px solid var(--color-gray-border);
  border-radius: 8px;
  background: var(--color-white);
  transition: box-shadow var(--transition), transform var(--transition);
}

.servicio-card:hover {
  box-shadow: var(--shadow-natural);
  transform: translateY(-4px);
}

.servicio-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 22px;
}

.servicio-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 10px;
}

.servicio-card p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
}

/* ============================================
   GARANTÍAS LEGALES — fondo blanco, 2 columnas
   ============================================ */
#financiacion {
  position: relative;
  overflow: hidden;
}
#financiacion:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-image: url(https://barcelonams.es/wp-content/uploads/2021/02/Fondo-centrado-derecha-1030x579.png);
  background-attachment: scroll;
  background-position: top right;
  opacity: 0.4;
}

/* #financiacion::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -150px;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: rgba(255, 200, 200, 0.3);
  z-index: 0;
  pointer-events: none;
} */

#financiacion .container {
  position: relative;
  z-index: 1;
}

.garantias-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Tarjeta col izquierda */
.garantias-card {
  box-shadow: 0 0 40px 0 rgba(10, 10, 10, 0.1);
  padding: 50px 70px 50px 70px;
  border-radius: 10px;
  background: var(--color-white);
}

.garantias-logos {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.garantias-logo-item {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.garantias-logo-sep {
  height: 1px;
  background: var(--color-gray-border);
  width: 100%;
}

.garantias-logo-img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.garantias-co {
  max-height: 70px;
}

.garantias-logo-text {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.6;
}

/* Col derecha */
.garantias-text-col p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.8;
}

/* Label garantías — hereda de .section-label */

/* ============================================
   CONTACTO — fondo gris claro
   ============================================ */
.section-contact-bg {
  background: #f1f1f1;
}

/* Light-bg overrides: dark text on gray */
.section-contact-bg .section-label {
  color: #34495e;
}

.section-contact-bg .section-title {
  color: #000000;
}

.section-contact-bg .section-divider {
  background: #cccccc;
}

.section-contact-bg .contacto-intro {
  color: #323232;
}

.section-contact-bg .info-item p {
  font-size: 16px;
  color: #323232;
}

.section-contact-bg .info-item a {
  color: #323232;
  text-decoration: none;
}

.section-contact-bg .info-item a:hover {
  text-decoration: underline;
}

.section-contact-bg .contacto-info a[href^="tel"],
.section-contact-bg .contacto-info a[href^="mailto"] {
  color: #323232;
}

/* Kept for any dark-bg use elsewhere */
.section-contact-dark {
  background: #2d3748;
}

.section-contact-dark .section-label { color: rgba(255,255,255,0.7); }
.section-contact-dark .section-title { color: #ffffff; }
.section-contact-dark .section-divider { background: rgba(255,255,255,0.3); }
.section-contact-dark .contacto-intro { color: rgba(255,255,255,0.85); }
.section-contact-dark .contacto-intro strong { color: #ffffff; }
.section-contact-dark .info-item p { color: rgba(255,255,255,0.85); }
.section-contact-dark .info-item a { color: #ffffff; }
.section-contact-dark .contacto-info a { color: rgba(255,255,255,0.8); }
.section-contact-dark .contacto-info a:hover { color: #ffffff; }

.contacto-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  margin-top: 0;
}

/* Contact Info */
.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacto-info a[href^="tel"],
.contacto-info a[href^="mailto"] {
  color: #323232;
  text-decoration: none;
}

.contacto-intro {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.65;
  margin-bottom: 8px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-item .fas {
  font-size: 18px;
  color: var(--color-primary);
  margin-top: 2px;
  flex-shrink: 0;
  width: 22px;
}

.info-item p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
}

.info-item a {
  color: var(--color-primary);
}

.info-item a:hover {
  color: var(--color-primary-dark);
}

/* Contact Form */
.contacto-form {
  background: var(--color-white);
  border: none;
  border-radius: 8px;
  padding: 50px 70px;
  box-shadow: 0 0 40px rgba(10, 10, 10, 0.1);
}

.form-title {
  font-size: 20px;
  font-weight: 600;
  color: rgb(34, 34, 34);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444444;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-group.full-width {
  margin-bottom: 16px;
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  color: #222222;
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: 3px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.contacto-form input,
.contacto-form textarea,
.contacto-form select {
  border: 2px solid #222;
  background-color: transparent;
}

.contacto-form textarea {
  resize: vertical;
  min-height: 120px;
  margin-bottom: 0;
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
  color: #999;
  font-weight: 300;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 1px 3px rgba(12, 77, 162, 0.15);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--color-primary);
}

.form-check label {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.5;
  cursor: pointer;
}

.link-blue {
  color: var(--color-primary);
}

.link-blue:hover {
  text-decoration: underline;
}

/* Botón ENVIAR outline oscuro */
.btn-enviar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid rgb(34,34,34);
  color: rgb(34,34,34);
  padding: 15px 30px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 5px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
}

.btn-enviar:hover {
  background: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.8);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.form-success {
  margin-top: 16px;
  padding: 14px 18px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 4px;
  color: #2e7d32;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: uppercase;
  border-radius: 5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* Fix: override transparent border from .btn base */
.btn-quienes-somos {
  border-color: #34495e;
  color: #34495e;
}
.btn-enviar {
  border-color: rgb(34,34,34);
  color: rgb(34,34,34);
}

/* ============================================
   FOOTER — 4 columnas
   ============================================ */
.site-footer {
  background: #35383C;
  color: rgba(255, 255, 255, 0.7);
}

.footer-top {
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-col h2, .footer-col h4, .footer-heading {
  font-size: 18px;
  font-weight: 600;
  text-transform: none;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-col h3 {
  font-size: 17.6px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  text-transform: none;
}

.footer-col ul li {
  margin-bottom: 0px;
}

.footer-col a, .footer-col li, .footer-col p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
}

.footer-col ul li a {
  font-size: 16px;
  color: #ffffff;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-white);
}

/* Col 2 - dónde encontrarnos */
.footer-donde .contact-list {
  margin-bottom: 12px;
}

.footer-horario {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* Col 3 - contacto y partners */
.footer-contacto-col .contact-list {
  margin-bottom: 24px;
}

.footer-partners-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.footer-partners-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-partner-logo {
  max-height: 48px;
  width: auto;
  opacity: 0.85;
}

/* Col 4 - regulado por */
.footer-regulado-bde {
  font-size: 12px;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-regulado-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-regulado-link {
  font-size: 12px;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.6;
}

.footer-regulado-link:hover {
  text-decoration: underline;
}

.footer-regulado-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-reg-logo {
  max-width: 100%;
  height: auto;
  opacity: 0.85;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
  line-height: 1.5;
}

.contact-list li .fas {
  color: var(--color-primary);
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 13px;
}

.contact-list a {
  color: rgba(255, 255, 255, 0.6);
}

.contact-list a:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding: 12px 0;
  text-align: center;
  background-color: #282b2e;
}

.footer-bottom p {
  font-size: 12px;
  color: #e8e8e8;
  line-height: 1.6;
}

.footer-copyright {
  font-size: 11px;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 50px;
  right: 50px;
  width: 50px;
  height: 50px;
  background: #282b2e;
  color: var(--color-white);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(12, 77, 162, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #3a3f44;
}

/* Section title colors */
#financiacion .section-title,
#servicios .section-title,
#contacto .section-title {
  color: rgb(0, 0, 0);
}

/* Garantías text */
#financiacion p {
  color: rgb(50, 50, 50);
  font-size: 16px;
}

/* Feature card text */
.feature-card p {
  color: rgb(50, 50, 50);
}

/* Contact links */
.contacto-info a[href*="maps"],
a.como-llegar {
  color: rgb(50, 50, 50);
  text-decoration: none;
}

/* Privacy links */
.form-privacy-links a {
  color: rgb(52, 73, 94);
  text-decoration: underline;
}

/* Btn enviar — inline, auto width */
.btn-enviar.btn-block {
  display: inline-block;
  width: auto;
  font-weight: 400;
  letter-spacing: normal;
  font-size: 14.72px;
}

/* Footer bottom social */
.footer-bottom-social a {
  color: #777;
  font-size: 14px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet: 1024px */
@media (max-width: 1024px) {
  .quienes-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .quienes-stats {
    order: -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
  }

  .counter-item {
    flex: 1 1 45%;
    padding: 16px;
  }

  .counter-divider {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .garantias-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-item {
    padding: 16px 16px;
  }
}

/* Small tablet: 768px */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .section {
    padding: 60px 0;
  }

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

  .slide-title {
    font-size: 1.8rem;
  }

  .hero-slider {
    height: 550px;
    min-height: 550px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-item {
    padding: 14px 10px;
    gap: 10px;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
    z-index: 100;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 90px 28px 28px;
    gap: 24px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 50;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }

  .main-nav ul li {
    width: 100%;
    border-bottom: 1px solid var(--color-gray-border);
  }

  .main-nav ul li a {
    padding: 14px 0;
    font-size: 15px;
  }

  .main-nav ul li a::after {
    display: none;
  }

  .nav-extras {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 40px auto 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contacto-form {
    padding: 30px 24px;
  }

  .form-row,
  .form-row-3,
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* Mobile: 480px */
@media (max-width: 480px) {
  .slide-title {
    font-size: 1.5rem;
  }

  .slide-subtitle {
    font-size: 12px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }

  .counter-number {
    font-size: 36px;
  }
}

/* ============================================
   NAV OVERLAY (mobile)
   ============================================ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 40;
  opacity: 0;
  transition: opacity var(--transition);
}

.nav-overlay.active {
  opacity: 1;
}

@media (max-width: 768px) {
  .nav-overlay {
    display: block;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: ensure animated elements are always visible */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   SLIDE TITLE SMALL VARIANT
   ============================================ */
.slide-title-sm {
  font-size: 2.8rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .slide-title-sm {
    font-size: 1.8rem;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .slide-title-sm {
    font-size: 1.4rem;
    white-space: normal;
  }
}

/* ============================================
   INNER PAGE HEADER (hero for subpages)
   ============================================ */
.page-header {
  margin-top: var(--header-height);
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(50, 60, 80, 0.72);
}

.page-header-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-header-content .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-header-subtitle {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.page-header-title {
  font-size: 42px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
}

@media (max-width: 768px) {
  .page-header {
    height: 220px;
  }
  .page-header-title {
    font-size: 28px;
  }
}

/* ============================================
   INNER PAGE: TWO-COLUMN CONTENT LAYOUT
   ============================================ */
.inner-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Quiénes somos hero: 55%/45% split */
.qs-hero-section .inner-content-grid {
  grid-template-columns: 55% 42%;
  gap: 3%;
  align-items: center;
}

.qs-hero-section .inner-img-col img {
  height: 500px;
  border-radius: 3px;
  box-shadow: none;
  object-fit: cover;
  object-position: center top;
}

/* Quiénes somos — entrada animada del hero */
.qs-hero-section .inner-text-col,
.qs-hero-section .inner-img-col {
  opacity: 0;
  will-change: transform, opacity;
}

.qs-hero-section .inner-text-col {
  animation: qs-slide-in-left 900ms cubic-bezier(0.22, 1, 0.36, 1) 150ms forwards;
}

.qs-hero-section .inner-img-col {
  animation: qs-slide-in-right 900ms cubic-bezier(0.22, 1, 0.36, 1) 300ms forwards;
}

@keyframes qs-slide-in-left {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes qs-slide-in-right {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .qs-hero-section .inner-text-col,
  .qs-hero-section .inner-img-col {
    animation: none;
    opacity: 1;
  }
}

/* Servicios — entrada animada del hero y tabs */
.srv-hero-section .inner-text-col,
.srv-hero-section .inner-img-col {
  opacity: 0;
  will-change: transform, opacity;
}

.srv-hero-section .inner-text-col {
  animation: qs-slide-in-left 900ms cubic-bezier(0.22, 1, 0.36, 1) 150ms forwards;
}

.srv-hero-section .inner-img-col {
  animation: qs-slide-in-right 900ms cubic-bezier(0.22, 1, 0.36, 1) 150ms forwards;
}

.srv-tabs-nav .srv-tab-btn {
  opacity: 0;
  animation: srv-fade-up 700ms cubic-bezier(0.22, 1, 0.36, 1) 600ms forwards;
}

@keyframes srv-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .srv-hero-section .inner-text-col,
  .srv-hero-section .inner-img-col,
  .srv-tabs-nav .srv-tab-btn {
    animation: none;
    opacity: 1;
  }
}

.inner-content-grid.text-left .inner-text-col {
  order: 1;
}

.inner-content-grid.text-left .inner-img-col {
  order: 2;
}

.inner-img-col img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.inner-text-col p {
  font-size: 16px;
  color: #323232;
  line-height: 1.65;
  margin-bottom: 20px;
}

.inner-text-col ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 24px;
}

.inner-text-col ul li {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 6px;
}

.inner-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 28px 0;
}

.inner-two-cols .inner-sub-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #34495e;
  margin-bottom: 12px;
}

.inner-two-cols .inner-sub-col p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .inner-content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .inner-img-col img {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .inner-two-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ============================================
   MISSION / VISION / VALUES — 3-column minimal
   ============================================ */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 50px;
}

.mvv-col {
  text-align: center;
  padding: 20px 28px 40px;
}

.mvv-heading {
  font-size: 40px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 16px;
  line-height: 1.1;
}

.mvv-divider {
  width: 50px;
  height: 3px;
  background: #34495e;
  margin: 0 auto 20px;
}

.mvv-col p {
  font-size: 16px;
  color: #323232;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .mvv-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================
   CEO / TEAM SECTION — dark background
   ============================================ */
.section-dark {
  background: #323232;
  color: rgba(255, 255, 255, 0.85);
}

.section-dark .section-title {
  color: #ffffff;
}

.section-dark .section-label {
  color: rgba(255, 255, 255, 0.6);
}

.section-dark .section-divider {
  background: rgba(255, 255, 255, 0.35);
}

.ceo-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
  padding: 60px 0;
}

.ceo-img-placeholder {
  width: 280px;
  height: 320px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  flex-shrink: 0;
}

.ceo-info h3 {
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.ceo-info .ceo-title {
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: normal;
  text-transform: none;
  margin-bottom: 24px;
  display: block;
}

.ceo-info p {
  font-size: 16px;
  color: #ffffff;
  line-height: 1.65;
  margin-bottom: 24px;
}

.ceo-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 36px;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

.ceo-linkedin:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .ceo-grid {
    grid-template-columns: 1fr;
  }
  .ceo-img-placeholder {
    width: 100%;
    height: 220px;
  }
}

/* ============================================
   TIMELINE — vertical historia
   ============================================ */
.timeline {
  position: relative;
  padding: 20px 0;
  margin-top: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-gray-border);
}

.timeline-item {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  position: relative;
}

.timeline-year {
  width: 80px;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  color: #34495e;
  padding-top: 4px;
}

.timeline-dot {
  width: 40px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  position: relative;
}

.timeline-dot::before {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 50%;
  display: block;
}

.timeline-body {
  flex: 1;
  padding-left: 20px;
  padding-top: 2px;
}

.timeline-body p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 60px;
  }
  .timeline-year {
    width: 60px;
    font-size: 15px;
  }
}

/* ============================================
   PARTNERS GRID
   ============================================ */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.partner-item {
  background: var(--color-gray-light);
  border: 1px solid var(--color-gray-border);
  border-radius: 4px;
  padding: 20px 32px;
  font-size: 14px;
  font-weight: 500;
  color: #34495e;
  text-align: center;
  min-width: 140px;
  transition: box-shadow var(--transition);
}

.partner-item:hover {
  box-shadow: var(--shadow-natural);
}

/* ============================================
   TIMELINE V2 — centered vertical with icon circles
   ============================================ */
.timeline-v2 {
  position: relative;
  margin-top: 50px;
  padding-bottom: 20px;
}

/* central vertical line */
.timeline-v2::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 2px dashed #ccc;
  transform: translateX(-50%);
}

.timeline-v2-item {
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  gap: 0;
  margin-bottom: 48px;
  align-items: flex-start;
  position: relative;
}

.timeline-v2-center {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 4px;
  position: relative;
  z-index: 2;
}

.timeline-v2-icon {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34495e;
  font-size: 28px;
  flex-shrink: 0;
}

.timeline-v2-content {
  padding: 0 30px;
}

.timeline-v2-left {
  text-align: right;
}

.timeline-v2-right {
  text-align: left;
}

.timeline-v2-year {
  font-size: 25px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 8px;
}

.timeline-v2-content p {
  font-size: 16px;
  color: #323232;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .timeline-v2::before {
    left: 36px;
  }
  .timeline-v2-item {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto;
  }
  .timeline-v2-content.timeline-v2-left {
    display: none;
  }
  .timeline-v2-center {
    grid-column: 1;
    grid-row: 1;
    padding-top: 0;
  }
  .timeline-v2-content.timeline-v2-right {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding: 0 0 0 16px;
  }
  /* On mobile, left-side items become right-side */
  .timeline-v2-item:nth-child(odd) .timeline-v2-content.timeline-v2-left {
    display: block;
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding: 0 0 0 16px;
  }
  .timeline-v2-item:nth-child(odd) .timeline-v2-content.timeline-v2-right {
    display: none;
  }
}

/* ============================================
   PARTNERS SLIDER — dots pagination
   ============================================ */
.partners-section {
  overflow: hidden;
  background: #f7f7f7;
}

.partner-logo-img {
  max-width: 150px;
  max-height: 70px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: opacity 0.3s, filter 0.3s;
}

.partner-logo-img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.partners-slider {
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

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

.partners-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 40px;
  padding: 20px 0 30px;
}

.partner-logo-text {
  font-size: 14px;
  font-weight: 600;
  color: #34495e;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 14px 32px;
  border: 1px solid var(--color-gray-border);
  border-radius: 4px;
  background: #fff;
  min-width: 160px;
}

.partners-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.partners-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition);
}

.partners-dot.active {
  background: #34495e;
}

/* ============================================
   FINANCIACION PAGE — steps section
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 40px;
}

.step-card {
  text-align: center;
  padding: 36px 24px;
  /* border: 1px solid var(--color-gray-border); */
  border-radius: 10px;
  transition: box-shadow var(--transition), transform var(--transition); 
  background: #f7f7f7;
  border-color: #f7f7f7;
}

.step-card:hover {
  box-shadow: var(--shadow-natural);
  transform: translateY(-4px);
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #34495e;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-card h3,
.step-card h2 {
  font-size: 28px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================
   CONDITIONS TABLE
   ============================================ */
.conditions-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  font-size: 13px;
  border: 1px solid var(--color-gray-border);
}

.conditions-table th,
.conditions-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-gray-border);
  font-size: 13px;
}

.conditions-table thead th {
  background: #34495e;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.conditions-table tbody tr:nth-child(odd) {
  background: #f7f7f7;
}

.conditions-table tbody tr:nth-child(even) {
  background: #ffffff;
}

.conditions-table tbody td:first-child {
  font-weight: 700;
  color: #34495e;
  width: 230px;
  text-transform: uppercase;
  font-size: 13px;
  text-align: right;
  border-right: 1px solid var(--color-gray-border);
}

/* ============================================
   ICON ROW (4 features — financiacion page)
   ============================================ */
.icon-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
  margin-bottom: 10px;
}

.icon-row-item {
  text-align: center;
  padding: 28px 16px;
}

.icon-row-item .icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1.5px solid #34495e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
  color: #34495e;
  transition: background var(--transition), color var(--transition);
}

.icon-row-item:hover .icon-circle {
  background: #34495e;
  color: #fff;
}

.icon-row-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: #34495e;
}

@media (max-width: 768px) {
  .icon-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .icon-row {
    grid-template-columns: 1fr;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================
   TRUST ICONS (bottom of financiacion page)
   ============================================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 50px;
}

.trust-item {
  text-align: center;
  padding: 32px 24px;
}

.trust-item .trust-icon {
  font-size: 36px;
  color: #34495e;
  margin-bottom: 16px;
  display: block;
}

.trust-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: #34495e;
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================
   SERVICIOS PAGE — TABS
   ============================================ */
.tabs-wrapper {
  margin-top: 50px;
}

.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--color-gray-border);
  gap: 0;
  margin-bottom: 0;
}

.tab-btn {
  background: none;
  border: none;
  padding: 14px 28px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #777;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  color: #34495e;
  border-bottom-color: #34495e;
}

.tab-panel {
  display: none;
  padding: 36px 0;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.8;
}

.tab-panel.active {
  display: block;
}

/* ============================================
   ASSET LENDING SCORING — accordion
   ============================================ */
.scoring-section {
  background: var(--color-gray-light);
}

.scoring-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.scoring-text p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 20px;
}

.accordion {
  margin-top: 10px;
}

.accordion-item {
  border-bottom: 1px solid var(--color-gray-border);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  color: #34495e;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}

.accordion-header:hover {
  color: var(--color-primary);
}

.accordion-header .accordion-icon {
  font-size: 12px;
  color: #999;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 12px;
}

.accordion-item.open .accordion-header .accordion-icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.accordion-body {
  display: none;
  padding: 0 0 18px;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
}

.accordion-item.open .accordion-body {
  display: block;
}

@media (max-width: 1024px) {
  .scoring-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================
   CONTACTO PAGE — map wrapper
   ============================================ */
.map-wrapper {
  margin-top: 60px;
  line-height: 0;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
}

.map-fullwidth {
  margin-top: 60px;
  line-height: 0;
  width: 100%;
}

.map-fullwidth iframe {
  display: block;
  width: 100%;
}

/* Contact page info icons */
.contacto-page-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contacto-page-info .info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contacto-page-info .info-row i {
  font-size: 18px;
  color: var(--color-primary);
  margin-top: 3px;
  flex-shrink: 0;
  width: 22px;
}

.contacto-page-info .info-row p,
.contacto-page-info .info-row a {
  font-size: 15px;
  color: #323232;
  line-height: 1.6;
  margin: 0;
  text-decoration: none;
}

.contacto-page-info .info-row a:hover {
  color: var(--color-primary);
}

.info-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.contacto-page-info .info-divider {
  height: 1px;
  background: var(--color-gray-border);
  margin: 8px 0;
}

/* ============================================
   SECTION DARK BUTTON (btn-dark)
   ============================================ */
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #34495e;
  border: 2px solid #34495e;
  color: #ffffff;
  padding: 15px 30px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 5px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  margin-top: 10px;
}

.btn-dark:hover {
  background: #4a5e72;
  border-color: #4a5e72;
  color: #fff;
}

/* ============================================
   FORM PRIVACY LINKS (inner pages reuse)
   ============================================ */
.form-privacy-links {
  font-size: 12px;
  color: #777;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Override for inner pages — same contacto form */
.inner-page .contacto-form {
  background: var(--color-white);
}

/* ============================================
   CEO QUOTE BLOCKQUOTE
   ============================================ */
.ceo-quote {
  font-size: 16px;
  color: #c89696;
  margin: 20px 0 24px;
  line-height: 1.65;
  border-left: none;
  padding-left: 0;
}

/* ============================================
   ICON ROW — description text
   ============================================ */
.icon-row-item p {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.6;
  margin-top: 8px;
}

/* ============================================
   TRUST GRID — description text
   ============================================ */
.trust-item p {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.6;
  margin-top: 10px;
}

/* ============================================
   TABS — content with image layout
   ============================================ */
.tab-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.tab-content-text h3 {
  font-size: 24px;
  font-weight: 700;
  color: #34495e;
  margin-bottom: 8px;
}

.tab-content-text h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.tab-content-text p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.tab-content-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.tab-stats {
  display: flex;
  gap: 40px;
  margin-top: 28px;
}

.tab-stat {
  text-align: center;
}

.tab-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #34495e;
}

.tab-stat span {
  font-size: 12px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
  .tab-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .tab-content-img img {
    height: 250px;
  }
}

/* ============================================
   COLLAB CARDS (servicios page)
   ============================================ */
.collab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 50px;
}

.collab-card {
  text-align: center;
  padding: 48px 36px;
  border: 1px solid var(--color-gray-border);
  border-radius: 4px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.collab-card:hover {
  box-shadow: var(--shadow-natural);
  transform: translateY(-4px);
}

.collab-icon {
  font-size: 40px;
  color: #34495e;
  margin-bottom: 20px;
}

.collab-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 16px;
}

.collab-card p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .collab-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FINANCIACION PAGE — características feature cards
   ============================================ */
.feature-trust-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-trust-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-trust-card .trust-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 500px;
  background: #fff;
  border: 1px solid #34495e;
  color: #34495e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.feature-trust-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 6px;
}

.feature-trust-card p {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   FINANCIACION PAGE — FAQ grid (2 columns)
   ============================================ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 56px;
  margin-top: 36px;
}

.faq-grid-item h4 {
  font-size: 18px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 10px;
  line-height: 1.4;
}

.faq-grid-item p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ============================================
   SERVICIOS PAGE — accent label (orange/copper)
   ============================================ */
.section-label-accent {
  color: #c9934e;
}

/* ============================================
   SERVICIOS PAGE — navigation icon bar
   ============================================ */
.services-nav-bar {
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-border);
  border-bottom: 1px solid var(--color-gray-border);
  padding: 30px 0;
}

.services-nav-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
}

.services-nav-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #34495e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color var(--transition);
}

.services-nav-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid #34495e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #34495e;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.services-nav-icon-item:hover { color: #c9934e; }
.services-nav-icon-item:hover .services-nav-icon-circle {
  background: #c9934e;
  border-color: #c9934e;
  color: #fff;
}

@media (max-width: 600px) {
  .services-nav-icons { gap: 30px; }
}

/* ============================================
   SERVICIOS PAGE — service section grid
   ============================================ */
.service-section-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 70px;
  align-items: center;
}

.service-section-text h2 {
  font-size: 32px;
  font-weight: 700;
  color: #323232;
  margin-bottom: 8px;
  line-height: 1.2;
}

.service-section-text h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #34495e;
  margin-bottom: 20px;
}

.service-section-text p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.service-section-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.service-stats {
  display: flex;
  gap: 40px;
  margin-top: 28px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.service-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #34495e;
}

.service-stat span {
  font-size: 12px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
  .service-section-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .service-section-img img { height: 280px; }
}

/* ============================================
   SERVICIOS PAGE — contact + collab layout
   ============================================ */
.contact-collab-section {
  background: var(--color-gray-light);
}

.contact-collab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form-card {
  background: var(--color-white);
  padding: 40px 0;
}

.contact-form-card h2 {
  font-size: 26px;
  font-weight: 600;
  color: #323232;
  margin-bottom: 28px;
}

.contact-form-card .form-group {
  margin-bottom: 16px;
}

.contact-form-card .form-group input,
.contact-form-card .form-group textarea {
  width: 100%;
  border: 1px solid #ddd;
  background: #f9f9f9;
  padding: 12px 16px;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition);
}

.contact-form-card .form-group input:focus,
.contact-form-card .form-group textarea:focus {
  border-color: var(--color-primary);
  background: #fff;
}

.contact-form-card .form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.captcha-row label {
  font-size: 13px;
  color: #555;
}

.captcha-row input {
  width: 80px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  padding: 8px 12px;
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
}

.collab-section-inner {
  position: relative;
  padding: 40px;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.collab-section-inner h2 {
  font-size: 26px;
  font-weight: 600;
  color: #323232;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.collab-section-fondo {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 220px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.collab-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.collab-item-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  background: #34495e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
}

.collab-item-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: #323232;
  margin-bottom: 4px;
}

.collab-item-text p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .contact-collab-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Scoring accordion uses plus/minus icons (no rotation needed) */
.scoring-section .accordion-item.open .accordion-header .accordion-icon {
  transform: none;
  color: var(--color-primary);
}

/* ============================================
   SERVICIOS PAGE — hero image (portrait PNG, no crop)
   ============================================ */
.servicios-hero-img img {
  height: auto;
  max-height: 480px;
  object-fit: contain;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

/* ============================================
   SERVICIOS PAGE — accordion with icon on left
   ============================================ */
.scoring-accordion-header {
  justify-content: flex-start;
  gap: 14px;
}

.scoring-accordion-header .accordion-icon {
  margin-left: 0;
  flex-shrink: 0;
}

.scoring-section .accordion-item.open .scoring-accordion-header .accordion-icon {
  transform: none;
  color: var(--color-primary);
}

/* ============================================
   FINANCIACION PAGE — horizontal icon row variant
   ============================================ */
.icon-row.icon-row-horiz {
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
}

.icon-row.icon-row-horiz .icon-row-item {
  text-align: left;
  padding: 20px 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.icon-row.icon-row-horiz .icon-row-item .icon-solo {
  font-size: 44px;
  color: #34495e;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
  width: 48px;
  text-align: center;
}

.icon-row.icon-row-horiz .icon-row-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 4px;
}

@media (max-width: 1024px) {
  .icon-row.icon-row-horiz {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .icon-row.icon-row-horiz {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

/* ============================================
   FINANCIACION PAGE — triangular section separator
   ============================================ */
.section-gray-triangle {
  position: relative;
}

.section-gray-triangle::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-top: 20px solid #f1f1f1;
  z-index: 10;
}

/* ============================================
   FINANCIACION PAGE — step cards text-left
   ============================================ */
.step-card.step-card-left {
  text-align: left;
}

.step-card.step-card-left h3 {
  text-align: left;
}

/* ============================================
   FINANCIACION PAGE — hero image natural size (PNG)
   ============================================ */
.inner-img-col.img-natural img {
  height: auto;
  object-fit: unset;
  border-radius: 8px;
}

/* ============================================
   FINANCIACION PAGE — icon row horizontal headings
   ============================================ */
.icon-row.icon-row-horiz .icon-row-item h3 {
  font-size: 20px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 4px;
}

/* ============================================
   FINANCIACION PAGE — feature trust card heading size
   ============================================ */
.feature-trust-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 6px;
}

/* ============================================
   FINANCIACION PAGE — step card h2 text-left
   ============================================ */
.step-card.step-card-left h2 {
  text-align: left;
}

/* ============================================
   SERVICIOS — Botón "COLABORA CON NOSOTROS"
   ============================================ */
.btn-colabora {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(52, 73, 94);
  color: #ffffff;
  border: none;
  padding: 15px 30px 13px;
  border-radius: 5px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 24px;
}
.btn-colabora:hover {
  background-color: rgb(44, 62, 80);
  color: #ffffff;
}

/* ============================================
   SERVICIOS — Sistema de tabs (Originación / Gestión)
   ============================================ */
.srv-tabs-section {
  padding-top: 50px;
  padding-bottom: 0px;
}

.srv-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding-bottom: 0;
  /* border-bottom: 2px solid #d9d9d9; */
  margin-bottom: 0;
  position: relative;
}

.srv-tab-btn {
  display: flex;
  max-width: 100px;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #cecece;
  padding: 0 10px 24px;
  position: relative;
  transition: color var(--transition);
}

/* Prevent child elements from capturing click events */
.srv-tab-btn i,
.srv-tab-btn span,
.srv-tab-btn .srv-tab-icon-circle {
  pointer-events: none;
}

.srv-tab-btn.active {
  color: #34495e;
}

/* Triangle indicator below active tab */
.srv-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  /* width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid #34495e; */
  z-index: 2;
  /* content: ''; */
  /* display: inline-block; */
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 20px solid var(--color-gray-light);
}

.srv-tab-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid #cecece;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #cecece;
  transition: border-color var(--transition), color var(--transition);
}

.srv-tab-btn.active .srv-tab-icon-circle {
  border-color: #34495e;
  color: #34495e;
}

.srv-tab-btn:hover:not(.active) {
  color: #888;
}
.srv-tab-btn:hover:not(.active) .srv-tab-icon-circle {
  border-color: #888;
  color: #888;
}

/* Panels */
.srv-panels-wrapper {
  padding-top: 50px;
}

.srv-tab-panel {
  display: none;
}

/* .srv-tab-panel.active {
  display: block;
  animation: srvSlideInFromRight 0.45s ease-out;
} */
#srv-panel-originacion.active{
  display: block;
  animation: srvSlideInFromLeft 0.45s ease-out;
}
#srv-panel-gestion.active{
  display: block;
  animation: srvSlideInFromRight 0.45s ease-out;
}
@keyframes srvSlideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-500px) ;
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes srvSlideInFromRight {
  from {
    opacity: 0;
    transform: translateX(500px) ;
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 600px) {
  .srv-tabs-nav { gap: 24px; }
}

/* ============================================
   SERVICIOS — Subtítulo h3 sin uppercase
   ============================================ */
.service-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: #34495e;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 20px;
}

/* ============================================
   SERVICIOS — Estadísticas inline (16px)
   ============================================ */
.service-stats-inline {
  margin-top: 20px;
  margin-bottom: 24px;
}

.service-stats-inline p {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 4px;
}

.service-stats-inline strong {
  color: rgb(52, 73, 94);
  font-weight: 700;
}

/* ============================================
   SERVICIOS — Botón ENVIAR del formulario
   ============================================ */
.srv-btn-enviar {
  display: block;
  width: 100%;
  background-color: rgb(50, 50, 50);
  color: #ffffff;
  border: none;
  border-radius: 3px;
  padding: 15px 30px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 8px;
}
.srv-btn-enviar:hover {
  background-color: rgb(30, 30, 30);
  color: #ffffff;
}

/* ============================================
   SERVICIOS — Inputs del formulario
   ============================================ */
.contact-form-card .form-group input,
.contact-form-card .form-group textarea,
.captcha-row input {
  border-radius: 3px !important;
  background: rgb(241, 241, 241) !important;
  border: 1px solid rgb(235, 235, 235) !important;
  font-size: 16px !important;
  padding: 13px 16px !important;
}

/* ============================================
   SERVICIOS — Collab h4 titles
   ============================================ */
.collab-item-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: #323232;
  margin-bottom: 4px;
}

/* ============================================
   BREADCRUMB BAR — inner pages
   ============================================ */
.breadcrumb-bar {
  background: rgb(244, 246, 248);
  border-top: 1px solid #f1f1f1;
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb-title {
  font-size: 16px;
  font-weight: 600;
  color: #999999;
  margin: 0;
  line-height: 36.8px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #999999;
  flex-wrap: wrap;
}

.breadcrumb-here {
  color: #999999;
}

.breadcrumb-nav a {
  color: #999999;
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: #666666;
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #cccccc;
}

.breadcrumb-current {
  color: #999999;
}

/* ============================================
   LEGAL PAGE CONTENT — protección de datos, etc.
   ============================================ */
.legal-page-content {
  padding: 70px 0 80px;
}

.legal-page-h2 {
  font-size: 40px;
  font-weight: 600;
  color: #34495e;
  letter-spacing: 1px;
  line-height: 44px;
  margin-bottom: 0;
  font-family: var(--font-family);
}

.legal-page-divider-wrap {
  margin-top: 10px;
  padding-bottom: 20px;
}

.legal-page-divider {
  width: 50px;
  height: 2px;
  background: #000000;
}

.legal-page-h4 {
  font-size: 18px;
  font-weight: 600;
  color: #34495e;
  line-height: 1.1;
  margin-bottom: 4px;
  font-family: var(--font-family);
}

.legal-page-p {
  font-size: 16px;
  color: #323232;
  line-height: 1.65;
  margin-top: 13.6px;
  margin-bottom: 13.6px;
  font-family: var(--font-family);
}

.legal-page-p a {
  color: #323232;
  text-decoration: none;
}

.legal-page-p a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .breadcrumb-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-page-h2 {
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: 0.5px;
  }

  .legal-page-content {
    padding: 40px 0 60px;
  }
}

/* ============================================
   FINANCIACION PAGE — table value column alternating colors
   ============================================ */
.conditions-table tbody tr:nth-child(odd) td:last-child {
  color: #323232;
}

.conditions-table tbody tr:nth-child(even) td:last-child {
  color: #34495e;
}

/* ============================================
   SERVICIOS — OVERRIDES FINALES (prevalecen sobre reglas anteriores)
   ============================================ */

/* 1. Botón COLABORA CON NOSOTROS — sólido azul oscuro */
.btn.btn-colabora {
  background-color: rgb(52, 73, 94);
  color: #ffffff;
  border: none;
  padding: 15px 30px 13px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 24px;
}
.btn.btn-colabora:hover {
  background-color: rgb(44, 62, 80);
  color: #ffffff;
  transform: none;
}

/* 2a. Tab icons: sin círculo, 40px directo */
.srv-tab-icon {
  font-size: 40px;
  color: #cecece;
  transition: color 0.3s ease;
  display: block;
}
.srv-tab-btn.active .srv-tab-icon {
  color: rgb(52, 73, 94);
}
.srv-tab-btn:hover:not(.active) .srv-tab-icon {
  color: #888;
}

/* 2b. Tab label: 16px, weight 400 */
.srv-tab-label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* 3a. Heading Originación/Gestión h2: 30px, weight 600 */
.service-section-text h2 {
  font-size: 30px;
  font-weight: 600;
  color: #323232;
  margin-bottom: 8px;
  line-height: 1.2;
}

/* 3b. Subtítulo "Préstamos hipotecarios…": 20px, weight 600, rgb(50,50,50) */
.service-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: rgb(50, 50, 50);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 20px;
  line-height: 1.3;
}

/* 5. Accordion headers del Scoring */
.scoring-accordion-header {
  background-color: rgb(247, 247, 247);
  border-bottom: 1px solid rgb(241, 241, 241);
  font-size: 17.6px;
  font-weight: 400;
  color: rgb(50, 50, 50);
  padding: 9px 3px 9px 35px;
  justify-content: flex-start;
  gap: 14px;
}
.scoring-accordion-header .accordion-icon {
  margin-left: 0;
  flex-shrink: 0;
  font-size: 12px;
  color: rgb(50, 50, 50);
}
.accordion-item.open .scoring-accordion-header {
  color: var(--color-primary);
}
.accordion-item.open .scoring-accordion-header .accordion-icon {
  transform: none;
  color: var(--color-primary);
}

/* 7. Botón ENVIAR — sólido oscuro */
.btn.srv-btn-enviar,
.srv-btn-enviar {
  background-color: rgb(50, 50, 50);
  color: #ffffff;
  border: none;
  border-radius: 3px;
  padding: 15px 30px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 8px;
  transition: background 0.3s ease;
}
.btn.srv-btn-enviar:hover,
.srv-btn-enviar:hover {
  background-color: rgb(30, 30, 30);
  color: #ffffff;
  transform: none;
}

/* 8. Inputs del formulario de servicios */
.contact-form-card input,
.contact-form-card textarea {
  border-radius: 3px;
  background: rgb(241, 241, 241);
  border: 1px solid rgb(235, 235, 235);
  font-size: 16px;
  padding: 13px 16px;
  width: 100%;
  font-family: var(--font-family);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.3s ease;
}
.contact-form-card input:focus,
.contact-form-card textarea:focus {
  border-color: var(--color-primary);
  background: #fff;
}

/* ============================================
   SOLICITAR PRESTAMO PAGE
   ============================================ */

/* Hero layout */
.solicitud-hero {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
  margin-top: var(--header-height);
}

.solicitud-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/fondo-solicitud.png');
  background-size: cover;
  background-position: top right;
  background-repeat: no-repeat;
}

.solicitud-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
}

.solicitud-hero-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Gold label */
.section-label-gold {
  display: block;
  color: rgb(192, 159, 100);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

/* Hero text */
.solicitud-hero-text h1 {
  font-size: 40px;
  font-weight: 600;
  color: #34495e;
  line-height: 44px;
  margin-bottom: 0;
}

.solicitud-hero-text .section-divider {
  margin-bottom: 20px;
}

.solicitud-hero-text > p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* Checklist */
.check-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 24px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
}

.check-list li .check-icon {
  color: #34495e;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Garantías legales */
.garantias-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.garantias-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 0;
}

.garantias-section p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 10px;
}

/* Form card */
.solicitud-form-card {
  background: rgba(255, 255, 255, 0.93);
  border-radius: 10px;
  padding: 35px 35px 24px;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 40px 0px;
}

.solicitud-form-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 20px;
}

.solicitud-form-card .form-group {
  margin-bottom: 14px;
}

.solicitud-form-card .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.solicitud-form-card .form-group input,
.solicitud-form-card .form-group select,
.solicitud-form-card .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-family);
  font-size: 14px;
  color: #323232;
  outline: none;
  transition: border-color var(--transition);
  box-sizing: border-box;
  background: #fff;
}

.solicitud-form-card .form-group input:focus,
.solicitud-form-card .form-group select:focus,
.solicitud-form-card .form-group textarea:focus {
  border-color: #34495e;
}

.solicitud-form-card .form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.solicitud-form-card .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.solicitud-form-card .form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 8px;
}

.solicitud-form-card .form-check input {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
}

.solicitud-form-card .form-check label {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.solicitud-form-card .form-privacy-links {
  font-size: 12px;
  color: #777;
  margin-bottom: 16px;
  line-height: 1.5;
}

.solicitud-form-card .form-privacy-links a {
  color: var(--color-primary);
}

.btn-solicitud-submit {
  display: block;
  width: 100%;
  background: #34495e;
  border: none;
  color: #fff;
  padding: 15px 30px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 5px;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-solicitud-submit:hover {
  background: #4a5e72;
}

.solicitud-form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 14px;
  margin-top: 12px;
}

/* Section 2 — 3 features */
.features-3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.feature-3-item {
  text-align: center;
  padding: 40px 32px;
  border-right: 1px solid var(--color-gray-border);
}

.feature-3-item:last-child {
  border-right: none;
}

.feature-3-icon {
  font-size: 50px;
  color: #34495e;
  margin-bottom: 18px;
}

.feature-3-item h3 {
  font-size: 20px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 12px;
}

.feature-3-item p {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin: 0;
}

/* Section 4 — Por qué elegirnos */
.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 72px;
  max-width: 960px;
  margin: 40px auto 0;
}

.why-choose-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.why-choose-icon {
  font-size: 32px;
  color: #34495e;
  flex-shrink: 0;
  margin-top: 4px;
}

.why-choose-item h3 {
  font-size: 20px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 8px;
}

.why-choose-item p {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin: 0;
}

/* Responsive — solicitar prestamo */
@media (max-width: 1024px) {
  .solicitud-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-3-grid {
    grid-template-columns: 1fr;
  }

  .feature-3-item {
    border-right: none;
    border-bottom: 1px solid var(--color-gray-border);
    padding: 32px 24px;
  }

  .feature-3-item:last-child {
    border-bottom: none;
  }

  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .solicitud-hero {
    padding: 60px 0;
  }

  .solicitud-hero-text h1 {
    font-size: 30px;
  }

  .solicitud-form-card .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   QUIÉNES SOMOS — hero table (Para Clientes / Para Inversores)
   ============================================ */
.qs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
  color: var(--color-text);
}

.qs-table th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #34495e;
  padding: 9px 12px;
  border-top: 1px solid #f1f1f1;
  border-bottom: 1px solid #f1f1f1;
  border-right: 1px solid #f1f1f1;
  text-align: left;
  width: 50%;
}

.qs-table th:first-child {
  border-left: 1px solid #f1f1f1;
}

.qs-table td {
  padding: 9px 12px;
  line-height: 1.7;
  vertical-align: top;
  border-top: 1px solid #f1f1f1;
  border-bottom: 1px solid #f1f1f1;
  border-right: 1px solid #f1f1f1;
}

.qs-table td:first-child {
  border-left: 1px solid #f1f1f1;
}

@media (max-width: 600px) {
  .qs-table,
  .qs-table thead,
  .qs-table tbody,
  .qs-table th,
  .qs-table td,
  .qs-table tr {
    display: block;
  }
  .qs-table th + th,
  .qs-table td + td {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--color-gray-border);
    margin-top: 16px;
    padding-top: 16px;
  }
}

/* ============================================
   QUIÉNES SOMOS — triangle separator between sections
   ============================================ */
.qs-triangle-separator {
  position: relative;
  height: 0;
  line-height: 0;
  overflow: visible;
  z-index: 5;
  text-align: center;
  margin-top: -1px;
}

.qs-triangle-separator::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-top: 20px solid #fff;
}

.qs-triangle-separator--white::after {
  border-top-color: #fff;
}

/* ============================================
   QUIÉNES SOMOS — CEO photo
   ============================================ */
.ceo-img-col {
  flex-shrink: 0;
}

.ceo-photo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  display: block;
}

@media (max-width: 768px) {
  .ceo-photo {
    width: 220px;
    height: 220px;
  }
}

/* ============================================
   SOLICITAR PRÉSTAMO — section label (plain text style)
   ============================================ */
.solicitud-section-label {
  display: block;
  color: #34495e;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 10px;
}

/* ============================================
   SOLICITAR PRÉSTAMO — intro/section text
   ============================================ */
.process-intro-text {
  text-align: center;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 48px;
}

/* ============================================
   SOLICITAR PRÉSTAMO — process cards (3 en fila)
   ============================================ */
.process-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.process-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.process-card h2 {
  font-size: 28px;
  font-weight: 600;
  color: #34495e;
  margin: 0 0 10px;
}

.process-card p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.process-card-btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  margin-top: 8px;
}

/* ============================================
   SOLICITAR PRÉSTAMO — FAQ 2-column grid
   ============================================ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 60px;
  margin-top: 40px;
}

.faq-item {
  border-bottom: 1px solid var(--color-gray-border);
  padding-bottom: 24px;
}

.faq-question {
  font-size: 18px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 10px;
  line-height: 1.4;
}

.faq-answer {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .process-cards-grid {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============================================
   SOLICITAR PRÉSTAMO — inline submit button
   ============================================ */
.btn-solicitud-inline {
  display: inline-block;
  width: auto;
}

/* ============================================
   SOLICITAR PRÉSTAMO — features horizontal layout
   ============================================ */
.features-3-horiz .feature-3-item-horiz {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
  padding: 32px 28px;
  border-right: 1px solid var(--color-gray-border);
}

.features-3-horiz .feature-3-item-horiz:last-child {
  border-right: none;
}

.feature-3-icon-wrap {
  font-size: 44px;
  color: #34495e;
  flex-shrink: 0;
  line-height: 1;
}

.feature-3-text h3 {
  font-size: 20px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 8px;
}

.feature-3-text p {
  font-size: 16px;
  color: #323232;
  line-height: 1.7;
  margin: 0;
}

/* FAQ — no border separators */
.faq-item {
  border-bottom: none;
  padding-bottom: 0;
}

@media (max-width: 1024px) {
  .features-3-horiz .feature-3-item-horiz {
    border-right: none;
    border-bottom: 1px solid var(--color-gray-border);
  }
  .features-3-horiz .feature-3-item-horiz:last-child {
    border-bottom: none;
  }
}

/* =============================================
   SERVICIOS PAGE — SESSION 6 OVERRIDES
   ============================================= */

/* A1/C1/D1/F1+F2 — Paragraph text: 16px, #323232, 1.65 line-height */
.inner-text-col p,
.srv-tab-panel p,
.scoring-text p {
  font-size: 16px;
  line-height: 1.65;
  color: #323232;
}

/* A4/F3 — Button COLABORA: font-weight 400, letter-spacing 0.13px */
.btn.btn-colabora {
  font-weight: 400;
  letter-spacing: 0.13px;
}

/* B1 — Tab labels: no uppercase, no letter-spacing */
.srv-tab-label {
  text-transform: none;
  letter-spacing: normal;
}

/* B2 — Tab children: pointer-events none so click always reaches <button> */
.srv-tab-btn i,
.srv-tab-btn span {
  pointer-events: none;
}

/* C2 — Stats numbers: blue */
.service-stats-inline strong {
  color: #34495e;
}

/* C4 — Button CONTÁCTANOS: font-weight 400, letter-spacing 0.13px */
.btn.btn-quienes-somos {
  font-weight: 400;
  letter-spacing: 0.13px;
}

/* D3 — Accordion icon size */
.scoring-accordion-header .accordion-icon {
  font-size: 17.6px;
}

/* E1 — Contact form card: correct padding, border-radius, box-shadow */
.contact-form-card {
  padding: 35px 35px 20px;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0,0,0,0.15);
}

/* E2 — Contact form heading */
.contact-form-card h2 {
  font-size: 28px;
  color: #34495e;
}

/* E3 — Button ENVIAR: inline-block, auto width */
.btn.srv-btn-enviar,
.srv-btn-enviar {
  display: inline-block;
  width: auto;
  font-weight: 400;
  letter-spacing: normal;
  font-size: 14.72px;
}

/* E4 — Colabora heading */
.collab-section-card h2 {
  font-size: 40px;
  font-weight: 600;
  color: #323232;
}

/* E5 — Collab items title */
.collab-item-text h4 {
  font-size: 18px;
  font-weight: 600;
  color: #34495e;
}

/* E6 — Collab items description */
.collab-item-text p {
  font-size: 16px;
  color: #34495e;
}

/* E7 — Collab item icon size */
.collab-item-icon i {
  font-size: 30px;
}

/* E8 — Decorative background on contacto section */
#contacto {
  background-image:
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    url('../img/Fondo-abajo-derecha.png');
  background-position: center, right bottom;
  background-repeat: repeat, no-repeat;
  background-size: auto, auto;
}

/* =============================================
   SERVICIOS PAGE — SESSION 7 OVERRIDES
   ============================================= */

/* 1. Tab labels: uppercase (back to original) */
.srv-tab-label {
  text-transform: uppercase;
}

/* 3. Panel grid: 3fr/2fr, no gap, align start */
.service-section-grid {
  grid-template-columns: 3fr 2fr;
  gap: 0;
  align-items: start;
}

/* 4. Panel image: natural ratio, border-radius, fill */
.service-section-img img {
  width: 100%;
  height: auto;
  object-fit: fill;
  border-radius: 3px;
}

/* 5. Section divider: border-top, 30px margin top+bottom */
.section-divider {
  width: 50px;
  height: 0;
  border-top: 2px solid #323232;
  background: none;
  margin: 30px 0;
}

/* 6. Panel h2: no bottom margin (spacing comes from divider) */
.srv-tab-panel h2 {
  margin: 0;
}

/* 7. Panel paragraphs: symmetric margin */
.srv-tab-panel p {
  margin: 13.6px 0;
}

/* 16. ENVIAR button: inline, auto width */
.contact-form-card button[type="submit"] {
  display: inline-block;
  width: auto;
  font-weight: 400;
  letter-spacing: normal;
  font-size: 14.72px;
}

/* 19. Background decorative — replace linear-gradient approach */
#contacto {
  background-image: url('../img/Fondo-abajo-derecha.png');
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: auto;
  position: relative;
}

#contacto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6);
  pointer-events: none;
  z-index: 0;
}

#contacto .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   MOBILE-FIRST RESPONSIVE OVERRIDES
   Aplica a todas las páginas. Diseño escalonado:
   - Tablet: <=1024px
   - Mobile: <=768px
   - Phone:  <=480px
   ============================================================ */

/* --- Slide 2 (home): efecto "narrow" solo en desktop, sin romper mobile --- */
@media (min-width: 1025px) {
  .slide-content-narrow {
    padding-left: 250px;
    padding-right: 250px;
  }
  .slide-title-narrow {
    font-size: 80px;
    max-width: 500px;
  }
  .slide-subtitle-narrow {
    max-width: 500px;
  }
}

/* --- Tablet: container padding más razonable --- */
@media (max-width: 1024px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
    width: 100%;
  }
  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }
  .section-title {
    font-size: 32px;
  }

  /* Quiénes somos hero: forzar 1 columna y poner imagen arriba (recortada) */
  .qs-hero-section .inner-content-grid,
  .qs-hero-section .inner-content-grid.text-left {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .qs-hero-section .inner-content-grid.text-left .inner-img-col {
    order: 1;
  }
  .qs-hero-section .inner-content-grid.text-left .inner-text-col {
    order: 2;
  }
  .qs-hero-section .inner-img-col img {
    width: 100%;
    height: 220px;
    max-height: 220px;
    object-fit: cover;
    object-position: center 25%;
  }

  /* About us (home): texto+botón arriba, 4 counters en 2x2 debajo */
  .quienes-inner {
    flex-wrap: wrap;
    gap: 0;
  }
  .quienes-text-col {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
    margin-bottom: 28px;
  }
  .quienes-counter-col {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 8px;
  }
  .quienes-counter-col:first-of-type {
    border-right: 1px solid var(--color-gray-border);
  }
  .counter-item {
    padding: 18px 8px;
  }
}

/* --- Mobile: tipografía y spacing reducidos --- */
@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .section-title {
    font-size: 26px;
    line-height: 1.15;
  }
  .section-label {
    font-size: 13px;
  }
  /* Hero slider: limitar altura y reposicionar contenido */
  .hero-slider,
  .hero-slider .swiper,
  .hero-slider .swiper-slide {
    height: 480px;
    min-height: 480px;
  }
  .slide-content {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .slide-content-left,
  .slide-content-narrow {
    text-align: left;
  }
  .slide-title {
    font-size: clamp(28px, 7vw, 40px) !important;
    max-width: 100% !important;
    line-height: 1.15;
  }
  .slide-subtitle {
    font-size: 16px !important;
    max-width: 100% !important;
    line-height: 1.4;
  }
  .slide-btn {
    padding: 12px 24px;
    font-size: 13px;
  }
  /* Headings dentro de secciones */
  h1.section-title,
  .breadcrumb-title {
    font-size: 28px;
    line-height: 1.15;
  }
  h2 {
    font-size: 24px;
  }
  h3 {
    font-size: 18px;
  }
  /* Tablas dentro de páginas legales con scroll horizontal */
  .legal-content table,
  .cookie-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  /* Forms — apilar campos */
  .form-row,
  .form-row-2,
  .form-row-3 {
    grid-template-columns: 1fr !important;
    display: grid;
    gap: 12px;
  }
  /* Footer grid: 2 columnas mobile */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px;
  }
  .footer-bottom .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  /* Cookie banner: stack content + buttons */
  #cookie-banner {
    flex-direction: column;
    align-items: stretch !important;
    padding: 16px !important;
    gap: 12px;
  }
  #cookie-banner > div {
    margin-right: 0 !important;
  }
  /* Map iframe: alturas más razonables */
  .map-fullwidth iframe {
    height: 320px !important;
  }
  /* Garantías legales (home): logos AECOSAN + BdE apilados */
  .garantias-logos-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
}

/* --- Phone: tipografía mínima --- */
@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .section {
    padding-top: 44px;
    padding-bottom: 44px;
  }
  .section-title {
    font-size: 24px;
  }
  .section-label {
    font-size: 12px;
  }
  /* Hero más bajo en phone */
  .hero-slider,
  .hero-slider .swiper,
  .hero-slider .swiper-slide {
    height: 420px;
    min-height: 420px;
  }
  .slide-title {
    font-size: clamp(24px, 8vw, 34px) !important;
  }
  .slide-subtitle {
    font-size: 14px !important;
  }
  /* Footer: 1 columna en phone */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
  /* CEO photo / hero images altura */
  .qs-hero-section .inner-img-col img,
  .ceo-photo {
    height: auto !important;
    max-height: 400px;
  }
  /* Stat-bar: ya en columnas reducidas */
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  /* Logo más pequeño */
  .logo img {
    width: 140px !important;
    height: auto;
  }
  /* About us counters: tipografía reducida en phone (mantiene 2x2) */
  .counter-prefix { font-size: 28px; }
  .counter-number { font-size: 36px; letter-spacing: 0; }
  .counter-label { font-size: 13px; }
  .counter-item { padding: 14px 6px; }
  /* Quiénes somos hero: imagen aún más recortada en phone */
  .qs-hero-section .inner-img-col img {
    height: 170px;
    max-height: 170px;
  }
}

/* --- Quitar el padding "narrow" del slide 2 en todo lo no-desktop --- */
@media (max-width: 1024px) {
  .slide-content-narrow {
    padding-left: 0;
    padding-right: 0;
  }
  .slide-title-narrow,
  .slide-subtitle-narrow {
    max-width: 100%;
  }
}

/* --- Evitar overflow horizontal global en mobile --- */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }
}

