/* ===== VARIABLES ===== */
:root {
  --red: #CC1E1E;
  --red-deep: #A01515;
  --red-bright: #E82020;
  --dark: #111111;
  --dark2: #1C1C1C;
  --grey: #2E2E2E;
  --grey-mid: #555555;
  --grey-light: #999999;
  --smoke: #F4F4F4;
  --white: #FFFFFF;
  --accent-amber: #FF6B00;
  --accent-steel: #8AA0B0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(204, 30, 30, 0.3);
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  transition: box-shadow 0.3s;
}

nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.5); }

.nav-logo img {
  height: 42px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--white); }

.nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
}

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 0.45rem 1.2rem;
  font-size: 0.8rem !important;
  letter-spacing: 0.1em !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--red-bright) !important; }
.nav-cta.active::after { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  height: 100vh;
  min-height: 640px;
  background: var(--dark);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.18;
}

.hero::after {
  content: '';
  position: absolute;
  right: -100px;
  top: 0;
  bottom: 0;
  width: 45%;
  background: var(--red);
  clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 0% 100%);
  opacity: 0.9;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  width: 100%;
}

.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--red);
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  max-width: 600px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.5s forwards;
}

.hero-title span {
  color: var(--red);
  display: block;
}

.hero-subtitle {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 420px;
  line-height: 1.7;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.7s forwards;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.9s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--red-bright); transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }

.hero-stats {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 1px;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}

.hero-stat {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 160px;
}

.hero-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 0.3rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}
.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(204,30,30,0.8), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

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

/* ===== PAGE HERO (internal pages) ===== */
.page-hero {
  background: var(--dark);
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: 0;
  bottom: 0;
  width: 38%;
  background: var(--red);
  clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 0% 100%);
  opacity: 0.75;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero .hero-eyebrow {
  animation: none;
  opacity: 1;
}

.page-hero .hero-title {
  animation: none;
  opacity: 1;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.page-hero .hero-subtitle {
  animation: none;
  opacity: 1;
}

/* ===== MARQUEE BAND ===== */
.marquee-band {
  background: var(--red);
  padding: 0.8rem 0;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.marquee-item::after {
  content: '●';
  font-size: 0.4rem;
  color: rgba(255,255,255,0.5);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== SECTION LAYOUT ===== */
section { position: relative; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--dark);
}

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

/* ===== ABOUT SECTION ===== */
.about {
  padding: 8rem 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-text p {
  margin-top: 2rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--grey-mid);
  font-weight: 300;
}

.about-highlight {
  margin-top: 2rem;
  padding: 1.5rem 1.8rem;
  border-left: 3px solid var(--red);
  background: var(--smoke);
}

.about-highlight p {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--grey);
}

.about-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 8px;
  position: relative;
}

.about-img-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-img-grid img:first-child { grid-row: span 2; }

.about-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--red);
  color: var(--white);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(204,30,30,0.4);
}
.about-badge-num { font-size: 2.2rem; line-height: 1; }
.about-badge-text {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 0 10px;
  opacity: 0.85;
}

/* ===== SERVICES ===== */
.services {
  padding: 8rem 0;
  background: var(--dark);
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.service-card:hover img { transform: scale(1.07); }

.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: background 0.3s;
}

.service-card:hover .service-overlay {
  background: linear-gradient(to top, rgba(160,21,21,0.9) 0%, rgba(10,10,10,0.4) 60%, transparent 100%);
}

.service-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.service-card:hover .service-num { color: rgba(255,255,255,0.6); }

.service-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}

.service-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin-top: 0.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}
.service-card:hover .service-desc { max-height: 80px; opacity: 1; }

/* ===== SERVICE DETAIL CARDS (servicios.php) ===== */
.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  margin-bottom: 2px;
  overflow: hidden;
}

.service-detail-card.reversed .service-detail-img { order: 2; }
.service-detail-card.reversed .service-detail-content { order: 1; }

.service-detail-img {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}
.service-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}
.service-detail-card:hover .service-detail-img img { transform: scale(1.04); }

.service-detail-content {
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

.service-detail-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 5rem;
  font-weight: 900;
  color: var(--smoke);
  line-height: 1;
  margin-bottom: -1rem;
  display: block;
}

.service-detail-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.service-detail-text {
  font-size: 0.95rem;
  color: var(--grey-mid);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.service-detail-list {
  list-style: none;
  margin-top: 1rem;
}
.service-detail-list li {
  font-size: 0.9rem;
  color: var(--grey-mid);
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}
.service-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--red);
}

/* ===== KNOWLEDGE SECTION ===== */
.knowledge {
  padding: 8rem 0;
  background: var(--smoke);
}

.knowledge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-top: 3rem;
}

.knowledge-card {
  background: var(--white);
  padding: 2.5rem;
  border-top: 3px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
}
.knowledge-card:hover {
  border-color: var(--red);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.knowledge-icon {
  width: 50px;
  height: 50px;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.knowledge-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--red);
}

.knowledge-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 1rem;
}

.knowledge-text {
  font-size: 0.9rem;
  color: var(--grey-mid);
  line-height: 1.7;
}

.knowledge-link {
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  transition: gap 0.2s;
}
.knowledge-link:hover { gap: 0.8rem; }

/* ===== ARTICLE LAYOUT (conocimiento.php) ===== */
.article-section {
  padding: 6rem 0;
  border-bottom: 1px solid #e8e8e8;
}
.article-section:last-of-type { border-bottom: none; }
.article-section.bg-smoke { background: var(--smoke); }

.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.article-grid.reversed .article-img-wrap { order: 2; }
.article-grid.reversed .article-content { order: 1; }

.article-img-wrap {
  position: relative;
  overflow: hidden;
}
.article-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.article-img-wrap:hover img { transform: scale(1.03); }

.article-content p {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--grey-mid);
}

.article-content ul {
  margin-top: 1.2rem;
  padding-left: 1.5rem;
}
.article-content li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--grey-mid);
  margin-bottom: 0.5rem;
}

.article-highlight {
  margin-top: 2rem;
  padding: 1.5rem 1.8rem;
  border-left: 3px solid var(--red);
  background: var(--smoke);
}
.article-highlight p {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--grey);
}

/* ===== CTA BAND ===== */
.cta-band {
  padding: 7rem 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 60%;
  background: url('../images/cta-bg.jpg') center/cover no-repeat;
  opacity: 0.12;
}

.cta-band-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.cta-band .section-title {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.cta-band p {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ===== CLIENTS ===== */
.clients {
  padding: 6rem 0;
  background: var(--white);
  border-top: 1px solid #eee;
}

.clients-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey-light);
  text-align: center;
  margin-bottom: 3rem;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #eee;
}

.client-item {
  background: var(--white);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-pill {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-mid);
  text-align: center;
  transition: color 0.2s;
}
.client-item:hover .client-pill { color: var(--red); }

/* ===== CONTACT ===== */
.contact {
  padding: 8rem 0;
  background: var(--dark2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-top: 2.5rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.5;
}

.contact-info-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 0.3rem;
}

.contact-info-value {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 400;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-light);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  padding: 0.85rem 1rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--red); }
.form-group select option { background: var(--dark2); }
.form-group textarea { height: 120px; }

/* ===== PRESUPUESTO FORM ===== */
.presupuesto-section {
  padding: 6rem 0;
  background: var(--smoke);
}

.presupuesto-intro {
  padding: 6rem 0 0;
  background: var(--smoke);
}

.presupuesto-card {
  background: var(--white);
  padding: 3.5rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

.form-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark);
  margin: 2.5rem 0 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--red);
}
.form-section-title:first-child { margin-top: 0; }

.form-group.light input,
.form-group.light textarea,
.form-group.light select {
  background: var(--smoke);
  border: 1px solid #ddd;
  color: var(--dark);
}
.form-group.light label { color: var(--grey-mid); }
.form-group.light input:focus,
.form-group.light textarea:focus,
.form-group.light select:focus { border-color: var(--red); }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--grey);
  cursor: pointer;
  padding: 0.6rem 1rem;
  background: var(--smoke);
  transition: background 0.2s;
}
.checkbox-item:hover { background: #eaeaea; }
.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
  flex-shrink: 0;
}

/* ===== PROCESS STEPS (oblea-qr.php) ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 3rem;
}

.process-step {
  background: var(--white);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: box-shadow 0.3s;
}
.process-step:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }

.process-step-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  color: var(--smoke);
  line-height: 1;
  display: block;
}

.process-step-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  margin: 0.4rem 0 0.8rem;
}

.process-step-text {
  font-size: 0.85rem;
  color: var(--grey-mid);
  line-height: 1.6;
}

/* ===== INFO CARDS ===== */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 3rem;
}

.info-card {
  background: var(--white);
  padding: 2.5rem;
  border-top: 3px solid var(--red);
}

.info-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 1rem;
}

.info-card-text {
  font-size: 0.9rem;
  color: var(--grey-mid);
  line-height: 1.7;
}

/* ===== NOSOTROS VALUES ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 3rem;
}

.value-item {
  background: var(--dark2);
  padding: 3rem 2.5rem;
  transition: background 0.3s;
}
.value-item:hover { background: var(--grey); }

.value-icon {
  width: 48px;
  height: 48px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.value-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.value-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.value-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ===== MAP PLACEHOLDER ===== */
.map-wrap {
  margin-top: 3rem;
  background: var(--grey);
  height: 300px;
  overflow: hidden;
  position: relative;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.7;
}

/* ===== FOOTER ===== */
footer {
  background: #0a0a0a;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-logo img {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--grey-light);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--grey-light);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background: #25D366;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}
.wa-float svg { width: 30px; height: 30px; fill: white; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(17,17,17,0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 0.5rem;
    border-top: 1px solid rgba(204,30,30,0.3);
    border-bottom: 1px solid rgba(204,30,30,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a.active::after { display: none; }

  .container { padding: 0 1.5rem; }
  .hero-content { padding: 0 1.5rem; }
  .hero-stats { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .services-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .about-img-grid img:first-child { grid-row: auto; }

  .service-detail-card { grid-template-columns: 1fr; }
  .service-detail-card.reversed .service-detail-img { order: 0; }
  .service-detail-card.reversed .service-detail-content { order: 0; }
  .service-detail-img { min-height: 250px; }
  .service-detail-content { padding: 2.5rem 2rem; }
  .service-detail-num { font-size: 3.5rem; }

  .article-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .article-grid.reversed .article-img-wrap { order: 0; }
  .article-grid.reversed .article-content { order: 0; }

  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }

  .checkbox-grid { grid-template-columns: 1fr; }
  .presupuesto-card { padding: 2rem 1.5rem; }

  .page-hero { padding: 7rem 0 3.5rem; }
  .page-hero::after { display: none; }
}
