/* Variables y estilos base */
:root {
  /* --- Colores de Marca (Logo) --- */
  --color-primario: #8D0A0A;     /* Rojo/Borgoña principal de DOCHE */
  --color-secundario: #5A5A5A;   /* Gris medio de "CONSTRUCCIONES" */
  --navbar-height: 64px;         /* Altura estándar de la navbar */
  
  /* --- Tipografía Global --- */
  --font-family-base: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  
  /* --- Variantes de Marca (derivadas de #831516) --- */
  --color-primario-brand: #831516;    /* Principal para botones/enlaces/badges */
  --color-primario-soft-bg: #F6E9EA;  /* Fondo suave intermedio */
  --color-primario-soft-border: #E7C3C7; /* Borde suave */
  
  /* --- Colores de Acento (CTA) --- */
  --color-acento-cta: #FF9900;  /* Naranja para botones de contacto y enlaces */

  /* --- Colores Neutrales (Texto y Fondos) --- */
  --color-texto-principal: #333333;   /* Gris oscuro para párrafos */
  --color-texto-claro: #FFFFFF;       /* Texto blanco (para fondos oscuros) */
  --color-fondo-claro: #F8F9FA;      /* Un gris muy suave para fondos de sección */
  --color-fondo-oscuro: #212529;     /* Gris casi negro (para footer o overlays) */
  --color-bordes: #DDDDDD;           /* Para líneas divisorias o bordes de tarjetas */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family-base);
  color: var(--color-texto-principal);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--navbar-height);
}

/* Asegurar que los controles del formulario usen la fuente del sitio */
input, textarea, select, button {
  font-family: inherit;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--color-primario-soft-bg);
}

/* Offset de scroll para anclas por altura de navbar */
section[id],
header[id] {
  scroll-margin-top: var(--navbar-height);
}

.section-title {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 16px 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, var(--color-primario-brand), var(--color-acento-cta));
  border-radius: 2px;
}

/* Jerarquía tipográfica unificada */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-texto-principal);
}
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }

p {
  font-weight: 400;
}

.section-intro {
  margin: 0 0 32px 0;
  color: var(--color-secundario);
}
.contact .section-intro {
  color: var(--color-texto-principal);
  margin-bottom: 20px;
  line-height: 1.6;
}
.clients .section-intro {
  text-align: center;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  color: #910608;
  border-bottom: 1px solid #eeeeee;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand-logo {
  height: 38px;
  width: auto;
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: #910608;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #910608;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  list-style: none;
  margin: 0;
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  height: calc(100vh - 64px);
  overflow-y: auto;
  z-index: 1001;
}
.nav-links a {
  color: #910608;
  text-decoration: none;
  padding: 12px 8px;
  display: block;
  transition: color 0.2s ease;
}
.nav-links a.active {
  color: var(--color-primario-brand);
  border-bottom: 2px solid var(--color-primario-brand);
}
.nav-links a:hover {
  color: var(--color-acento-cta);
}
.btn-cta {
  background: var(--color-primario-brand);
  color: var(--color-texto-claro) !important;
  border-radius: 6px;
  padding: 10px 14px !important;
  font-weight: 600;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.navbar.open .nav-links {
  display: flex;
}
.navbar.open .hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.navbar.open .hamburger span:nth-child(2) {
  opacity: 0;
}
.navbar.open .hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  background: url('../img/hero.png') center/cover no-repeat fixed;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--color-texto-claro);
}
/* Video de fondo del hero */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 480px) {
  .hero { background-attachment: scroll; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.55));
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 16px;
}
.hero h1 {
  font-size: 34px;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
  color: var(--color-texto-claro);
}
.hero p {
  font-size: 16px;
  margin: 0 0 20px 0;
  color: #f1f1f1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: 0;
}
.btn-primary {
  background: var(--color-primario-brand);
  color: var(--color-texto-claro);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover {
  background: #6f1212;
  box-shadow: 0 8px 18px rgba(131, 21, 22, 0.3);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}
.cta-wsp .cta-btn {
  font-weight: 700;
  font-size: 16px;
  padding: 14px 22px;
  text-transform: uppercase;
}
.btn-whatsapp:hover {
  filter: brightness(0.95);
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.35);
  transform: translateY(-1px);
}

/* About */
.about { background: #e6e6e6; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.about-text h2 {
  margin: 0 0 12px 0;
}
.about-media img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Overview (Descripción General) */
.overview { background: #e6e6e6; }
.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}
.overview-text p { margin: 0 0 10px 0; }
.overview-bullets {
  margin: 10px 0 0 0;
  padding-left: 18px;
}
.overview-bullets li { margin: 6px 0; }
.overview-media img {
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

@media (min-width: 768px) {
  .overview-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
  }
}

/* Stats (Experiencia en números) */
.stats { background: #e6e6e6; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--color-bordes);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
}
.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primario-brand);
  letter-spacing: 0.5px;
}
.stat-label {
  margin-top: 6px;
  color: var(--color-secundario);
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
  .stat-value { font-size: 34px; }
}

/* Featured works */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.work-card {
  background: #fff;
  border: 1px solid var(--color-bordes);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.work-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.08);
  border-color: #eaeaea;
}
.work-media {
  background: #e9ecef;
}
.work-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.work-info {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.work-info h3 {
  margin: 0;
  font-size: 18px;
}
@media (min-width: 768px) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

/* Testimonials */
.testimonials { background: #ffffff; }
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.testimonial-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-bordes);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}
.testimonial-quote {
  position: absolute;
  top: 6px;
  left: 12px;
  font-size: 36px;
  color: var(--color-primario-soft-border);
  line-height: 1;
}
.testimonial-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.testimonial-user img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #eee;
}
@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}
/* Reasons */
.reasons { background: #ffffff; }
.reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
/* Fondo para Motivos para Elegirnos */
.reasons { background: #ffffff; }
.card {
  border: 1px solid var(--color-bordes);
  border-radius: 10px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primario-brand);
  color: var(--color-texto-claro);
  font-weight: 700;
  margin-bottom: 8px;
}
.badge {
  background: var(--color-primario-brand);
  color: var(--color-texto-claro);
}
.card h3 {
  margin: 0 0 8px 0;
  letter-spacing: 0.3px;
}
.card p {
  margin: 0;
  color: var(--color-secundario);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border-color: #eaeaea;
}

/* Services */
.services { background: #e6e6e6; }
.quotes { background: #e6e6e6; }
.quotes-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}
.quotes .section-intro {
  text-align: center;
}
.btn-quote {
  font-weight: 700;
  font-size: 16px;
  padding: 14px 22px;
  min-width: 260px;
  text-align: center;
}
@media (min-width: 768px) {
  .quotes-actions {
    flex-direction: row;
  }
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.service-card {
  border: 1px solid var(--color-bordes);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.service-media {
  width: 100%;
  background: #e9ecef;
  position: relative;
}
.service-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* respeta la relación de la imagen */
  background: #e9ecef;
}
.service-media .service-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* respeta la relación del video */
  background: #e9ecef;
}
.service-card h3 {
  margin: 0;
  padding: 12px;
  background: #831516;
  color: #fff;
}
.service-note {
  margin: 0 12px 12px 12px;
  color: var(--color-secundario);
  font-size: 14px;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border-color: #eaeaea;
}

/* Lightbox para servicios */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1200;
}
.lightbox.open { display: flex; }
.lightbox-dialog {
  background: #fff;
  border-radius: 14px;
  width: min(900px, 80vw);
  box-shadow: 0 20px 48px rgba(0,0,0,0.25);
  overflow: hidden;
}
.lightbox.open .lightbox-dialog { animation: modalIn 0.2s ease-out; }
@keyframes modalIn {
  from { transform: translateY(6px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 0;
  background: var(--color-primario-brand);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.lightbox-title {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.3px;
  color: var(--color-texto-claro);
}
.lightbox-close {
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #ffffff;
}
.lightbox-body {
  padding: 12px;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.work-modal-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
}
.work-desc {
  margin: 0;
  color: var(--color-secundario);
}
.work-modal-content .work-slider {
  margin-top: 4px;
}
.lightbox-body img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

/* Slider para Obras en modal */
.work-slider {
  position: relative;
  display: grid;
  place-items: center;
}
.work-slider img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  background: #f4f4f4;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.work-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: var(--color-primario-brand);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.work-prev { left: 8px; }
.work-next { right: 8px; }
.work-slider-nav:hover { background: #6f1212; transform: translateY(-50%) scale(1.05); }

.work-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}
.work-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #cfd3d7;
  padding: 0;
  cursor: pointer;
}
.work-dots button[aria-selected="true"] {
  background: var(--color-primario-brand);
}

@media (max-width: 600px) {
  .work-slider-nav {
    width: 32px;
    height: 32px;
  }
}

/* Clients - slider infinito */
.clients {
  background: #ffffff;
}
.logos-slider {
  overflow: hidden;
  position: relative;
  padding: 8px 0 24px 0;
  background-color: var(--logos-bg, transparent);
  cursor: grab;
}
.logos-track-wrapper {
  transform: translateX(var(--logos-offset, 0px));
  transition: transform 0.3s ease;
}
.logos-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: slide 60s linear infinite;
  filter: none;
  opacity: 1;
}
.logos-slider:hover .logos-track {
  animation-play-state: paused;
}
.logos-slider.dragging {
  cursor: grabbing;
}
.logos-slider.dragging .logos-track {
  animation-play-state: paused;
}
.logos-track img {
  height: 100px;
  width: auto;
  transition: opacity 0.2s ease;
}
.logos-track img:hover {
  opacity: 1;
}
.logos-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  color: #910608;
  border: 1px solid #e5e5e5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, color 0.2s ease;
}
.logos-nav:hover {
  background: #ffffff;
}
.logos-prev { left: 8px; }
.logos-next { right: 8px; }
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* FAQ */
.accordion details {
  border: 1px solid var(--color-bordes);
  border-radius: 10px;
  padding: 12px 16px;
  background: #fff;
  margin-bottom: 10px;
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion .content {
  padding-top: 8px;
  color: var(--color-secundario);
}

/* Contact */
.cta-wsp { background: #e6e6e6; }
.contact { background: #ffffff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
.contact-left {
  display: grid;
  gap: 16px;
  align-content: start;
}
.company-block {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--color-bordes);
  border-radius: 8px;
  background: #fff;
}
.company-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--color-secundario);
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}
.company-label i {
  margin-right: 6px;
  color: var(--color-secundario);
  vertical-align: -1px;
}
.contact-company {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
}
.contact-fiscal {
  color: var(--color-secundario);
  font-size: 14px;
  display: grid;
}
.contact-map {
  align-self: start;
}
.map-embed {
  margin-top: 24px;
  width: 100%;
  height: 220px; /* mobile por defecto */
  border: 1px solid var(--color-bordes);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.map-embed .map-link {
  display: none;
  margin: 8px 0 0 0;
}

@media (min-width: 768px) {
  .map-embed {
    height: 420px; /* altura en desktop reducida para balancear la sección */
  }
}
.contact-info h2 {
  margin: 0 0 8px 0;
}
.info-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-list li i {
  font-size: 18px;
  line-height: 1;
  color: var(--color-primario-brand);
}
.social-buttons .bi {
  color: #fff;
}
.social-buttons a,
.social-buttons a:hover {
  text-decoration: none;
}
.info-list a {
  color: var(--color-primario-brand);
  text-decoration: none;
}
.info-list a:hover {
  text-decoration: underline;
}
.info-list .muted {
  color: var(--color-secundario);
  margin-left: 6px;
}
.info-list li svg {
  flex: 0 0 20px;
  margin-top: 2px;
}
.info-list a,
.info-list .muted {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.info-list .social a + .separator {
  margin: 0 8px;
  color: var(--color-bordes);
}
.info-list .social {
  display: grid;
  gap: 8px;
}
.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 10px 0;
}
.company-resources {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.company-resources .company-block { margin-top: 0; }
.company-resources > * { height: 100%; }
.ig-embed {
  margin-top: 10px;
  border: 1px solid var(--color-bordes);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  height: 360px;
}
.ig-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.resource-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--color-bordes);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}
.resource-card i {
  font-size: 22px;
  color: var(--color-primario-brand);
}
.resource-text {
  display: grid;
  gap: 2px;
}
.resource-text strong {
  font-weight: 700;
}
.resource-text span {
  color: var(--color-secundario);
  font-size: 14px;
}
@media (min-width: 768px) {
  .resources-grid {
    grid-template-columns: 1fr 1fr;
  }
  .company-resources {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .ig-embed {
    height: 420px;
  }
}
.contact-agent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.contact-agent .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #eee;
}
.contact-agent .agent-text {
  display: grid;
  gap: 2px;
}
.contact-agent .agent-text a {
  text-decoration: none;
}
.info-list .social .social-cta strong {
  color: var(--color-primario-brand);
}
.social-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-social:hover {
  transform: translateY(-1px);
  filter: brightness(0.95);
}
.btn-social.facebook { background: #1877F2; }
.btn-social.instagram { background: #E4405F; }
.btn-social.whatsapp { background: #25D366; }
.qr img {
  width: 180px;
  height: auto;
}

.form {
  border: 1px solid var(--color-bordes);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}
.form-alert {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
}
.form-alert.alert-success {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #cde7d3;
}
.form-alert.alert-error {
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f5c2c0;
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.field label {
  font-weight: 600;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--color-bordes);
  border-radius: 8px;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--color-primario);
  box-shadow: 0 0 0 3px rgba(141, 10, 10, 0.12);
}

/* Footer */
.footer {
  background: var(--color-fondo-oscuro);
  color: var(--color-texto-claro);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 48px 0;
}
.footer-logo {
  height: 42px;
  width: auto;
  margin-bottom: 12px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  color: var(--color-texto-claro);
  text-decoration: none;
}
.footer-social a:hover {
  color: var(--color-acento-cta);
}
.footer-col h4 {
  margin: 0 0 10px 0;
}
.footer-col ul {
  margin: 0;
  padding: 0 0 0 16px;
}
.footer-bottom {
  background: #1a1d20;
  font-size: 14px;
  padding: 12px 0;
  color: #cfd3d7;
}
.footer-bottom p {
  margin: 0;
  text-align: center;
}

/* Advantages */
.advantages { background: #ffffff; }
.advantages .adv-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-primario-brand);
  border: 1px solid var(--color-primario-soft-border);
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-size: 28px;
}

/* Título con icono en línea (para cards) */
.title-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px 0;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-primario-brand);
  border: 1px solid var(--color-primario-soft-border);
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  z-index: 1030;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

/* Media queries (mobile-first) */
@media (min-width: 640px) {
  .hero h1 { font-size: 42px; }
}

@media (min-width: 768px) {
  .nav-links {
    position: static;
    display: flex !important;
    flex-direction: row;
    background: transparent;
    gap: 6px;
    inset: auto;
    padding: 0;
    width: auto;
    height: auto;
    overflow: visible;
    z-index: auto;
  }
  .hamburger { display: none; }

  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
  }
  .reasons-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .contact-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .section-title { font-size: 32px; }
  .hero h1 { font-size: 54px; }
  .hero p { font-size: 18px; }
}

/* Ajustes para móviles angostos (360px) */
@media (max-width: 400px) {
  .contact-info p {
    font-size: 14px;
  }
  .info-list {
    gap: 8px;
  }
  .info-list a {
    font-size: 14px;
  }
  .info-list .muted {
    display: block;
    margin-left: 0;
    font-size: 12px;
  }
  .info-list .social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .info-list .social .separator {
    display: none;
  }
}

