/* ==========================================================================
   DRO QUERÉTARO - HOJA DE ESTILOS PRINCIPAL
   Dominio: www.droqueretaro.top
   Año: 2026
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@600;700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800;900&display=swap');

:root {
  --primary-navy: #0B192C;
  --secondary-navy: #1E293B;
  --accent-gold: #D97706;
  --accent-gold-hover: #B45309;
  --accent-amber-light: #F59E0B;
  --accent-blue: #0284C7;
  --accent-blue-hover: #0369A1;
  --bg-slate: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #94A3B8;
  --border-light: #E2E8F0;
  --border-dark: #334155;
  --whatsapp-green: #25D366;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15,23,42,0.1), 0 4px 6px -2px rgba(15,23,42,0.05);
  --shadow-xl: 0 20px 30px -5px rgba(15,23,42,0.18), 0 10px 10px -5px rgba(15,23,42,0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: 'Plus Jakarta Sans', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --section-width: 1150px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-slate);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   ANCHO DE SECCIÓN ESTRICTO A 1150px
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--section-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-wrapper {
  width: 100%;
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
}

.section-title-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px auto;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-gold);
  background-color: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-badge.blue {
  color: var(--accent-blue);
  background-color: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.25);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   BOTONES Y LLAMADOS A LA ACCIÓN
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}

.btn-blue {
  background-color: var(--accent-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-blue:hover {
  background-color: var(--accent-blue-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background-color: #FFFFFF;
  color: var(--primary-navy);
  border-color: #FFFFFF;
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--primary-navy);
  border: 2px solid var(--primary-navy);
}

.btn-outline-dark:hover {
  background-color: var(--primary-navy);
  color: #FFFFFF;
}

/* ==========================================================================
   HEADER SUPERIOR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

/* LOGO: Icono arriba, abajo texto DRO Querétaro */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  transition: var(--transition);
}

.header-logo-card:hover {
  transform: scale(1.03);
}

.header-logo-icon {
  width: 46px;
  height: 46px;
}

.header-logo-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--primary-navy);
  line-height: 1.1;
  margin-top: 2px;
}

.header-logo-subtitle {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent-gold);
  line-height: 1;
}

/* MENÚ PRINCIPAL */
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--accent-gold);
}

.header-cta-btn {
  padding: 10px 20px;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Toggle móvil */
.menu-toggle-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   HERO BANNER CON 5 SLIDERS
   - Título exactamente 2 renglones
   - Párrafo exactamente 2 renglones
   ========================================================================== */
.hero-slider-section {
  position: relative;
  background-color: var(--primary-navy);
  color: #FFFFFF;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 580px;
}

.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
}

.slide-item.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 7s ease-out;
  filter: brightness(0.42);
}

.slide-item.active .slide-bg {
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 820px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(217, 119, 6, 0.25);
  border: 1px solid var(--accent-gold);
  color: #FCD34D;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* REGLA ESTRICTA HERO: Título exactamente 2 renglones */
.hero-title {
  font-family: var(--font-heading);
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.22;
  color: #FFFFFF;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  min-height: calc(2.85rem * 1.22 * 2);
  display: block;
}

.hero-title span {
  color: var(--accent-amber-light);
}

/* REGLA ESTRICTA HERO: Párrafo exactamente 2 renglones */
.hero-desc {
  font-size: 1.15rem;
  line-height: 1.55;
  color: #E2E8F0;
  margin-bottom: 30px;
  max-width: 750px;
  min-height: calc(1.15rem * 1.55 * 2);
  display: block;
}

.hero-btn-group {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* Controles del Slider */
.slider-arrows {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 10;
  pointer-events: none;
}

.slider-arrow-btn {
  pointer-events: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(11, 25, 44, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.slider-arrow-btn:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: scale(1.08);
}

.slider-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  width: 38px;
  background: var(--accent-gold);
}

/* ==========================================================================
   HERO BANNER PARA PÁGINAS INDIVIDUALES
   ========================================================================== */
.page-hero-banner {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #172554 100%);
  padding: 70px 0;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--accent-gold);
}

.page-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(2, 132, 199, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.8;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.page-hero-desc {
  font-size: 1.12rem;
  color: #CBD5E1;
  max-width: 700px;
  margin: 0 auto;
}

.breadcrumb-nav {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #94A3B8;
}

.breadcrumb-nav a {
  color: #FCD34D;
}

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

/* ==========================================================================
   SECCIÓN NUESTROS SERVICIOS
   - Título en 1 renglón
   - Descripción con renglones perfectamente alineados
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(2, 132, 199, 0.08);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  background: var(--accent-gold);
  color: #FFFFFF;
  transform: rotate(4deg);
}

/* REGLA ESTRICTA SERVICIOS: Título en 1 solo renglón */
.service-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 14px;
  line-height: 1.3;
  /* Altura y restricción a exactamente 1 renglón */
  height: 1.3em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* REGLA ESTRICTA SERVICIOS: Descripción alineada al mismo número de renglones (3 renglones) */
.service-desc {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
  /* Exactamente 3 renglones */
  height: calc(0.94rem * 1.6 * 3);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.service-link {
  margin-top: auto;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  color: var(--accent-gold);
  gap: 10px;
}

/* ==========================================================================
   OTRAS SECCIONES: POR QUÉ ELEGIRNOS Y PROCESO DRO
   ========================================================================== */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.why-us-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.why-us-image-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.why-us-image-card:hover img {
  transform: scale(1.03);
}

.why-us-badge-floating {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(11, 25, 44, 0.92);
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 14px;
}

.why-badge-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-amber-light);
  line-height: 1;
}

.why-badge-text {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

.why-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

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

.why-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.12);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-feature-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.why-feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* PROCESO DE TRABAJO 4 PASOS */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.process-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px 22px;
  position: relative;
  text-align: center;
  transition: var(--transition);
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.process-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: var(--accent-amber-light);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  border: 3px solid rgba(217, 119, 6, 0.3);
}

.process-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

.process-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   SECCIÓN QUIÉNES SOMOS
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.about-text-col {
  display: flex;
  flex-direction: column;
}

.about-highlight-box {
  background: rgba(2, 132, 199, 0.05);
  border-left: 4px solid var(--accent-blue);
  padding: 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0 28px 0;
}

.about-highlight-text {
  font-size: 1rem;
  color: var(--primary-navy);
  font-weight: 600;
  font-style: italic;
}

.about-image-stack {
  position: relative;
}

.about-img-main {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

/* ==========================================================================
   SECCIÓN CONTÁCTANOS
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-channel {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
}

.contact-channel:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.1);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-circle.blue {
  background: rgba(2, 132, 199, 0.1);
  color: var(--accent-blue);
}

.contact-icon-circle.green {
  background: rgba(37, 211, 102, 0.12);
  color: #15803D;
}

.contact-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-navy);
  line-height: 1.45;
}

.contact-link-action {
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-link-action:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

.map-embed-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  height: 100%;
  min-height: 380px;
}

.map-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   MÁS INFORMES: FORMULARIO DE CONTACTO CON ANTISPAM ARITMÉTICO
   ========================================================================== */
.form-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 780px;
  margin: 0 auto;
}

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

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

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.form-label span.req {
  color: #DC2626;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  color: var(--text-main);
  transition: var(--transition);
  font-size: 0.96rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Verificación Aritmética (Sin la palabra spam) */
.security-math-box {
  background: rgba(2, 132, 199, 0.05);
  border: 1.5px dashed var(--accent-blue);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.math-challenge-text {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.math-challenge-question {
  background: var(--primary-navy);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
}

.math-answer-input {
  width: 110px;
  padding: 10px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-weight: 700;
  text-align: center;
}

.form-alert-msg {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.94rem;
  display: none;
}

.form-alert-msg.success {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
  display: block;
}

.form-alert-msg.error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
  display: block;
}

/* ==========================================================================
   NUESTROS LOGROS
   ========================================================================== */
.achievements-section {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #0F172A 100%);
  color: #FFFFFF;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.achievement-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
}

.achievement-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-gold);
  transform: translateY(-5px);
}

.achievement-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-amber-light);
  line-height: 1;
  margin-bottom: 12px;
}

.achievement-label {
  font-size: 1rem;
  font-weight: 600;
  color: #E2E8F0;
  line-height: 1.4;
}

/* ==========================================================================
   NUESTROS CLIENTES / TESTIMONIOS
   - Descripciones estrictamente alineadas al mismo número de renglones
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: #F59E0B;
  margin-bottom: 16px;
}

/* REGLA ESTRICTA TESTIMONIOS: Descripción con el mismo número de renglones (4 renglones) */
.testimonial-text {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
  /* Altura fija calculada para exactamente 4 renglones */
  height: calc(0.94rem * 1.6 * 4);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.testimonial-client {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.client-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: var(--accent-amber-light);
  font-family: var(--font-heading);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-name {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.client-role {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ==========================================================================
   SECCIÓN BLOG (6 Artículos aleatorios en Home y Catálogo de 104)
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.35);
}

.blog-card-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: var(--primary-navy);
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.06);
}

.blog-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 25, 44, 0.85);
  color: #FCD34D;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  backdrop-filter: blur(4px);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.35;
  margin-bottom: 12px;
  /* Altura estricta para alineación en 2 renglones */
  height: calc(1.15rem * 1.35 * 2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blog-card-excerpt {
  font-size: 0.91rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 20px;
  /* Altura estricta para alineación en 3 renglones */
  height: calc(0.91rem * 1.55 * 3);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.blog-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-read-more {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-read-more:hover {
  color: var(--accent-gold);
}

.blog-center-cta {
  text-align: center;
  margin-top: 48px;
}

/* BANNER DE CONSTRUCCIÓN CASAS QUERÉTARO DENTRO DE LOS ARTÍCULOS */
.article-cta-box {
  background: linear-gradient(135deg, #0B192C 0%, #1E293B 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin: 40px 0;
  border: 2px solid var(--accent-gold);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.article-cta-box h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.article-cta-box p {
  color: #CBD5E1;
  max-width: 680px;
  margin: 0 auto 22px auto;
  font-size: 1.02rem;
}

/* ==========================================================================
   FOOTER (3 COLUMNAS) Y SUBFOOTER
   - Izquierda: Logo, CTA, redes (Facebook, Instagram, Youtube, LinkedIn, TikTok)
   - Centro: Menú (al dar click que abra en nueva ventana)
   - Derecha: Datos Contacto
   ========================================================================== */
.site-footer {
  background-color: var(--primary-navy);
  color: #E2E8F0;
  padding-top: 70px;
  border-top: 4px solid var(--accent-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 45px;
  padding-bottom: 60px;
}

/* Columna Izquierda */
.footer-col-left {
  display: flex;
  flex-direction: column;
}

.footer-logo-wrap {
  margin-bottom: 18px;
}

.footer-cta-text {
  font-size: 0.95rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 22px;
}

.footer-social-list {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.social-icon-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: var(--transition);
}

.social-icon-link:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #FFFFFF;
  transform: translateY(-3px);
}

/* Columna Centro: Menú */
.footer-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-menu-link {
  color: #94A3B8;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-menu-link:hover {
  color: var(--accent-amber-light);
  transform: translateX(5px);
}

/* Columna Derecha: Datos de Contacto */
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.93rem;
  color: #94A3B8;
  line-height: 1.45;
}

.footer-contact-icon {
  width: 22px;
  height: 22px;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a {
  color: #E2E8F0;
}

.footer-contact-item a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

/* Subfooter */
.site-subfooter {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  font-size: 0.86rem;
  color: #64748B;
  background: #07101C;
}

.subfooter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.subfooter-links {
  display: flex;
  gap: 20px;
}

.subfooter-links a:hover {
  color: #94A3B8;
}

/* ==========================================================================
   BOTONES FLOTANTES: WHATSAPP Y SCROLL UP
   ========================================================================== */
/* Botón WhatsApp Flotante (Izquierda, 60px x 60px, bottom: 30px, left: 30px, pulso infinito) */
@keyframes infinitePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1.06);
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.floating-whatsapp-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  cursor: pointer;
  animation: infinitePulse 2s infinite ease-in-out;
  transition: transform 0.3s ease;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.12);
  background-color: #20BA56;
}

.floating-whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
}

/* Botón Scroll hacia arriba (Derecha, 60px x 60px, bottom: 30px, right: 30px) */
.floating-scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--primary-navy);
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 9998;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.floating-scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.floating-scroll-top-btn:hover {
  background-color: var(--accent-gold);
  transform: translateY(-4px);
}

.floating-scroll-top-btn svg {
  width: 26px;
  height: 26px;
  stroke: #FFFFFF;
}

/* ==========================================================================
   RESPONSIVIDAD Y MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid,
  .testimonials-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid,
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col-right {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.95rem;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    padding: 20px;
    border-bottom: 2px solid var(--accent-gold);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.active {
    display: flex;
  }
  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }
  .menu-toggle-btn {
    display: block;
  }
  .hero-slider-section,
  .slider-container {
    min-height: 520px;
    height: 520px;
  }
  .hero-title {
    font-size: 1.95rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .services-grid,
  .testimonials-grid,
  .blog-grid,
  .process-grid,
  .achievements-grid,
  .why-us-grid,
  .about-grid,
  .contact-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-col-right {
    grid-column: span 1;
  }
  .floating-whatsapp-btn {
    bottom: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
  }
  .floating-scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
}
