/* ════════════════════════════════════════════
   PROYECTOS InterA2R – Stylesheet
   Paleta: Blanco, Negro #1D1D1D, Rojo #CE0E2D, Gris #898A8D
   Tipografía: Montserrat (títulos) · Open Sans (cuerpo) · Rajdhani (acento técnico)
════════════════════════════════════════════ */

/* ────────────────────────────────────────
   VARIABLES CSS
──────────────────────────────────────── */
:root {
  --red:        #CE0E2D;
  --red-dark:   #a80a24;
  --black:      #1D1D1D;
  --white:      #FFFFFF;
  --gray:       #898A8D;
  --gray-light: #F5F5F5;
  --gray-mid:   #E8E8E8;

  --font-title: 'Montserrat', sans-serif;
  --font-body:  'Open Sans', sans-serif;
  --font-tech:  'Rajdhani', sans-serif;

  --shadow-sm:  0 2px 12px rgba(0,0,0,.08);
  --shadow-md:  0 8px 32px rgba(0,0,0,.14);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.18);
  --radius:     6px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --header-h:   72px;
}

/* ────────────────────────────────────────
   RESET & BASE
──────────────────────────────────────── */
*, *::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(--black);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ────────────────────────────────────────
   HELPERS
──────────────────────────────────────── */
.container {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

.section-padding { padding-block: clamp(4rem, 8vw, 6rem); }
.alt-bg          { background: var(--gray-light); }

/* Encabezado de sección */
.section-header  { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section-tag {
  display: inline-block;
  font-family: var(--font-tech);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--red);
  padding: .25rem .75rem;
  border: 1px solid var(--red);
  margin-bottom: 1rem;
  position: relative;
}
.section-tag::before,
.section-tag::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid var(--red);
}
.section-tag::before { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.section-tag::after  { bottom: -4px; right: -4px; border-left: none; border-top: none; }

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--red);
  line-height: 1.2;
  margin-bottom: .75rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 540px;
  margin-inline: auto;
}

/* ────────────────────────────────────────
   BOTONES
──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  font-family: var(--font-title);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(206,14,45,.3);
}

.btn-outline-red {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline-red:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-arrow { transition: transform var(--transition); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Spinner dentro del botón de envío */
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.loading .btn-text   { opacity: 0; }
.btn.loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════
   HEADER
════════════════════════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: none;
  transition: box-shadow var(--transition), padding var(--transition);
}
#header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Logo */

.logo-mark { width: 10px; height: auto 

}

/* Navegación escritorio */
.nav-list {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-link {
  font-family: var(--font-title);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .5rem .9rem;
  border-radius: var(--radius);
  color: var(--black);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: .9rem; right: .9rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.nav-link:hover         { color: var(--red); }
.nav-link:hover::after  { transform: scaleX(1); }
.nav-link.active        { color: var(--red); }
.nav-link.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: .5rem 1.2rem;
}
.nav-cta::after { display: none; }
.nav-cta:hover  { background: var(--red-dark); }

/* ─── Hamburger ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}
.ham-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.hamburger.open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay y menú móvil */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 999;
  opacity: 0;
  transition: opacity .3s;
}
.nav-overlay.visible { display: block; opacity: 1; }

.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 80vw);
  height: 100%;
  background: var(--white);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  box-shadow: -8px 0 40px rgba(0,0,0,.2);
  transition: right .35s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { right: 0; }

.mobile-nav-list { display: flex; flex-direction: column; gap: .5rem; }
.mobile-nav-link {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  padding: .75rem 0;
  border-bottom: 1px solid var(--gray-mid);
  display: block;
  transition: color var(--transition), padding-left var(--transition);
}
.mobile-nav-link:hover { color: var(--red); padding-left: .5rem; }



/* ════════════════════════════════════════════
   HERO / SLIDER
════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 960px;
  overflow: hidden;
}

.hero-slider { position: relative; width: 100%; height: 100%; }

/* Slide individual */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 6s ease-out;
}
.hero-slide.active .slide-bg { transform: scale(1); }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(29,29,29,.80) 0%,
    rgba(29,29,29,.55) 55%,
    rgba(206,14,45,.15) 100%
  );
}

/* Contenido del slide */
.slide-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: clamp(1.5rem, 6vw, 3rem);
  max-width: 900px;
  margin-top: var(--header-h);
}

.slide-tag {
  font-family: var(--font-tech);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--red);
  border-left: 3px solid var(--red);
  padding-left: .75rem;
  margin-bottom: 1.25rem;
  animation: fadeIn .6s .2s both;
}

.slide-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.slide-title em {
  font-style: normal;
  color: var(--red);
}

.slide-sub {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  max-width: 480px;
}

/* Decoraciones geométricas en slides */
.slide-deco { position: absolute; pointer-events: none; z-index: 2; }

.deco-circle-1 {
  width: 400px; height: 400px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
  bottom: -100px; right: -80px;
}
.deco-circle-2 {
  width: 240px; height: 240px;
  border: 1px solid rgba(206,14,45,.15);
  border-radius: 50%;
  bottom: 40px; right: 60px;
}
.deco-lines {
  width: 200px; height: 200px;
  top: 15%; right: 10%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(255,255,255,.04) 8px,
    rgba(255,255,255,.04) 9px
  );
}

/* Animación de entrada en el primer slide */
.hero-slide.active .reveal-up { animation: slideUp .7s both; }
.hero-slide.active .delay-1   { animation-delay: .2s; }
.hero-slide.active .delay-2   { animation-delay: .4s; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* Puntos del slider */
.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .75rem;
  z-index: 20;
}
.dot {
  width: 32px; height: 3px;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
  border-radius: 2px;
}
.dot.active  { background: var(--red); width: 48px; }
.dot:hover   { background: rgba(255,255,255,.7); }

/* Flecha scroll */
.hero-scroll-cta {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 20;
  width: 42px; height: 42px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition), transform var(--transition);
  animation: bounce 2s infinite;
}
.hero-scroll-cta:hover { border-color: var(--red); }
.scroll-arrow {
  display: block;
  width: 10px; height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translateY(-3px);
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ════════════════════════════════════════════
   NOSOTROS
════════════════════════════════════════════ */
.nosotros { position: relative; }

/* Fondo tipo blueprint */
.blueprint-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(206,14,45,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(206,14,45,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Layout 2 columnas */
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.texto-rojo { color: var(--red);
  }
.nosotros-text p { color: #444; margin-bottom: 1rem; }

/* BLOQUES */
.nosotros-mision,
.nosotros-vision,
.nosotros-valores {

    position: relative;

    overflow: hidden;

    background: var(--gray-light);

    border-left: 4px solid var(--red);

    padding: 1rem 1.25rem;

    margin-block: 1.5rem;

    font-style: italic;

    color: var(--red);
}

/* Lista diferenciadores */
.diferenciadores-list { display: flex; flex-direction: column; gap: 1.25rem; }
.dif-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.dif-icon {
  font-size: 1.6rem;
  width: 48px; height: 48px;
  flex-shrink: 0;
  background: var(--gray-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-mid);
}
.dif-item strong { display: block; font-family: var(--font-title); font-weight: 700; margin-bottom: .15rem; }
.dif-item p { font-size: .9rem; color: var(--gray); margin: 0; }

/* Imagen + decoraciones técnicas */
.nosotros-img-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
.nosotros-img-wrap img {
  width: 100%;
  object-fit: cover;
  height: 100%;
  max-height: 500px;
  border-radius: var(--radius);
  filter: contrast(1.05);
}

/* Esquinas técnicas */
.img-frame-corner {
  position: absolute;
  width: 24px; height: 24px;
  border-color: var(--red);
  border-style: solid;
}
.img-frame-corner.tl { top: -8px; left: -8px; border-width: 2px 0 0 2px; }
.img-frame-corner.tr { top: -8px; right: -8px; border-width: 2px 2px 0 0; }
.img-frame-corner.bl { bottom: -8px; left: -8px; border-width: 0 0 2px 2px; }
.img-frame-corner.br { bottom: -8px; right: -8px; border-width: 0 2px 2px 0; }

/* Badge flotante */
.nosotros-badge {
  position: absolute;
  bottom: 1.5rem;
  left: -1.5rem;
  background: var(--red);
  color: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.badge-year {
  display: block;
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}
.badge-label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .85;
  margin-top: .2rem;
}

/* Contadores */
.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-mid);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  overflow: hidden;
}
.counter-item {
  background: var(--white);
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}
.counter-item::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 3px;
  background: var(--red);
}
.counter-number {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: .4rem;
}
.counter-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ════════════════════════════════════════════
   SERVICIOS
════════════════════════════════════════════ */
.servicios { position: relative; }

/* Fondo con líneas diagonales */
.diagonal-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(206,14,45,.025) 40px,
    rgba(206,14,45,.025) 41px
  );
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Tarjeta de servicio */
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transition: transform var(--transition);
  transform-origin: bottom;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleY(1); }

.service-star {
  border-color: var(--red);
  background: #fff5f6;
  grid-column: span 1;
}
.service-star::before { transform: scaleY(1); }

.star-badge {
  position: absolute;
  top: 1rem; right: -2rem;
  background: var(--red);
  color: var(--white);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: .25rem 2.5rem .25rem 1rem;
  transform: rotate(0deg);
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 1.1rem;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-light);
  border-radius: var(--radius);
}
.service-star .service-icon { background: rgba(206,14,45,.1); }

.service-name {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: var(--black);
}
.service-desc {
  font-size: .9rem;
  color: var(--gray);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.5rem;
}
.service-btn { margin-top: auto; align-self: flex-start; }

/* ════════════════════════════════════════════
   PROYECTOS / CARRUSEL
════════════════════════════════════════════ */
.proyectos-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.proyectos-track-wrap {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.proyectos-track {
  display: flex;
  gap: 1.5rem;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* Tarjeta de proyecto */
.project-card {
  flex: 0 0 calc((100% - 3rem) / 3); /* 3 por defecto */
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.project-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.project-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover .project-img img { transform: scale(1.06); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(206,14,45,.75);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-title);
  letter-spacing: .06em;
}
.project-card:hover .project-overlay { opacity: 1; }

.project-info { padding: 1.25rem; }
.project-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: .15rem .5rem;
  border-radius: 2px;
  margin-bottom: .6rem;
}
.project-name {
  font-family: var(--font-title);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.project-client {
  font-size: .8rem;
  color: var(--gray);
  margin-bottom: .6rem;
}
.project-highlight {
  font-size: .82rem;
  color: var(--black);
}
.highlight-num {
  color: var(--red);
  font-family: var(--font-title);
  font-weight: 900;
}

/* Botones de navegación del carrusel */
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: var(--white);
  color: var(--red);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover {
  background: var(--red);
  color: var(--white);
}
.carousel-btn:disabled { opacity: .3; cursor: not-allowed; }

/* Indicadores puntito */
.proj-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.5rem;
}
.proj-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-mid);
  border: none;
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
  border-radius: 4px;
}
.proj-dot.active { background: var(--red); width: 24px; }

/* ════════════════════════════════════════════
   CLIENTES
════════════════════════════════════════════ */
.clientes-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.cliente-logo {
  width: 180px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  cursor: default;
  overflow: hidden;
}
.cliente-logo:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.cliente-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.65);
  transition: filter 0.4s ease;
}
.cliente-logo:hover img {
  filter: grayscale(0) opacity(1);
}

.clientes-tagline {
  text-align: center;
  color: var(--gray);
  font-size: .95rem;
  font-style: italic;
}

/* ════════════════════════════════════════════
   CONTACTO
════════════════════════════════════════════ */
.contacto { position: relative; }

/* Formas geométricas de fondo */
.contact-geo-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.contact-geo-bg::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border: 1px solid rgba(206,14,45,.06);
  border-radius: 50%;
  top: -200px; right: -200px;
}
.contact-geo-bg::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border: 1px solid rgba(206,14,45,.05);
  border-radius: 50%;
  bottom: -150px; left: -100px;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Formulario */
.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--red);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form-group label {
  font-size: .82rem;
  font-weight: 700;
  font-family: var(--font-title);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--black);
}
.required { color: var(--red); }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--black);
  background: var(--gray-light);
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(206,14,45,.1);
  background: var(--white);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--red);
  background: #fff5f6;
}
.form-group textarea { resize: vertical; min-height: 120px; }

.field-error {
  font-size: .78rem;
  color: var(--red);
  min-height: 1em;
  display: block;
}

/* Feedback del formulario */
.form-feedback {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  display: none;
}
.form-feedback.success {
  display: block;
  background: #e8f5e9;
  border-left: 4px solid #2e7d32;
  color: #1b5e20;
}
.form-feedback.error {
  display: block;
  background: #fff5f6;
  border-left: 4px solid var(--red);
  color: var(--red-dark);
}

/* Bloque datos de contacto */
.contact-info-block {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.contact-info-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: .15rem;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.contact-details-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.5rem; }
.contact-detail-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.contact-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }
.contact-detail-item strong { display: block; font-weight: 700; margin-bottom: .15rem; }
.contact-detail-item p, .contact-detail-item a { color: var(--gray); font-size: .9rem; }
.contact-detail-item a:hover { color: var(--red); }

.contact-hours h4 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .7rem;
    padding-bottom: .15rem;
  border-bottom: 1.5px solid var(--red);
  display: inline-block;
}
.contact-hours p { font-size: .88rem; color: var(--gray); }

.contact-map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-mid);
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.footer {
  background: var(--black);
  color: rgba(255,255,255,.75);
  font-size: .88rem;
}

.footer-top-line {
  height: 4px;
  background: var(--red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-block: 3rem;
}

.footer-brand .footer-logo {
  flex-direction: row;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: .75rem;
  gap: 0;
}
.footer-logo .logo-inter  { color: var(--white); }
.footer-logo .logo-bracket { color: rgba(255,255,255,.4); }
.footer-tagline { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.5; }

.footer-col-title {
  font-family: var(--font-title);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a {
  color: rgba(255,255,255,.55);
  transition: color var(--transition), padding-left var(--transition);
  font-size: .88rem;
}
.footer-links a:hover { color: var(--red); padding-left: .3rem; }

.footer-contact-info { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.25rem; }
.footer-contact-info li { color: rgba(255,255,255,.55); }
.footer-contact-info a { color: rgba(255,255,255,.55); }
.footer-contact-info a:hover { color: var(--red); }

.footer-social { display: flex; gap: .6rem; }
.social-btn {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
}
.social-btn i { font-size: 1rem; line-height: 1; }
.social-btn:hover { border-color: var(--red); color: var(--red); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* ════════════════════════════════════════════
   ANIMACIONES SCROLL REVEAL
════════════════════════════════════════════ */
.reveal, .reveal-left, .reveal-right, .reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-up.visible {
  opacity: 1;
  transform: translate(0);
}

/* Retrasos en animaciones de tarjetas */
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* ════════════════════════════════════════════
   RESPONSIVO
════════════════════════════════════════════ */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .service-star   { grid-column: span 2; }

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

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

  /* Carrusel: 2 cards */
  .project-card { flex: 0 0 calc((100% - 1.5rem) / 2); }
}

/* Tablet pequeña y móvil grande (≤ 768px) */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  /* Menú hamburguesa */
  #main-nav   { display: none; }
  .hamburger  { display: flex; }

  /* Nosotros */
  .nosotros-grid { grid-template-columns: 1fr; }
  .nosotros-badge { left: 0; }

  /* Servicios */
  .servicios-grid { grid-template-columns: 1fr; }
  .service-star   { grid-column: span 1; }

  /* Contacto */
  .contacto-grid { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }

  /* Carrusel: 1 card */
  .project-card { flex: 0 0 100%; }
}

/* Móvil (≤ 480px) */
@media (max-width: 480px) {
  .slide-title { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .contacto-form { padding: 1.5rem; }
  .counters-grid { grid-template-columns: 1fr 1fr; }
  .nosotros-badge { display: none; }
}

.error-border {
  border: 2px solid #CE0E2D !important;
  background-color: #FFF5F5;
}

.field-error {
  color: #CE0E2D;
  font-size: 0.8rem;
  margin-top: 4px;
  display: block;
}


/* ═══════════════════════════════════
   MODAL DE PROYECTOS
═══════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.activo {
  display: flex;
}
.modal-contenido {
  background: #fff;
  border-radius: 12px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: entrarModal 0.3s ease;
}
@keyframes entrarModal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-cerrar {
  position: absolute;
  top: 12px; right: 14px;
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}
.modal-cerrar:hover { background: rgba(0,0,0,0.75); }
#modal-imagen {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
}
.modal-contenido .modal-tag {
  display: inline-block;
  border: 1px solid #cc0000;
  color: #cc0000;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 3px;
  margin: 1rem 1.5rem 0.5rem;
}
.modal-contenido h2 {
  font-size: 1.4rem;
  margin: 0.25rem 1.5rem 0.25rem;
  color: #1a1a1a;
}
.modal-contenido p {
  color: #555;
  margin: 0.25rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
/* Chips de detalles (3 columnas simétricas) */
#modal-detalles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
#modal-detalles li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 14px 10px;
  gap: 5px;
}
.det-icon {
  font-size: 22px;
  color: #CE0E2D;
  line-height: 1;
}
.det-label {
  font-size: 10px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
.det-val {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}
.modal-chips-section {
  margin: 0 1.5rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eee;
}