/* ==========================================================================
   DAYAJO CONSTRUCTORA & DESARROLLADORA, S.A. DE C.V.
   Hoja de Estilos Corporativa de Alta Gama
   Colores de marca: Azul Marino Profundo (#111E33), Gris Acero (#475569) y Ámbar Eléctrico (#E5832E)
   ========================================================================== */

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

/* --- Variables y Sistema de Diseño --- */
:root {
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Paleta Oficial DAYAJO */
  --navy-deep: #0B1320;
  --navy-dark: #111E33;
  --navy-mid: #182C4B;
  --navy-light: #243E66;
  --navy-soft: #2F4E7E;

  --amber-core: #E5832E;
  --amber-light: #F69848;
  --amber-glow: rgba(229, 131, 46, 0.35);
  --amber-subtle: rgba(229, 131, 46, 0.12);
  --amber-dark: #C96B1C;

  --steel-50: #F8FAFC;
  --steel-100: #F1F5F9;
  --steel-200: #E2E8F0;
  --steel-300: #CBD5E1;
  --steel-400: #94A3B8;
  --steel-500: #64748B;
  --steel-600: #475569;
  --steel-700: #334155;
  --steel-800: #1E293B;
  --steel-900: #0F172A;

  --white: #FFFFFF;
  --black: #000000;

  /* Sombras y Elevaciones */
  --shadow-sm: 0 2px 4px rgba(11, 19, 32, 0.05);
  --shadow-md: 0 6px 16px rgba(11, 19, 32, 0.08);
  --shadow-lg: 0 14px 30px rgba(11, 19, 32, 0.12);
  --shadow-xl: 0 24px 50px rgba(11, 19, 32, 0.18);
  --shadow-amber: 0 10px 25px rgba(229, 131, 46, 0.3);

  /* Transiciones */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Contenedores */
  --container-max: 1280px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 9999px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--steel-50);
  color: var(--steel-700);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg, video {
  max-width: 100%;
  display: block;
}

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

button, input, select, textarea {
  font: inherit;
}

ul {
  list-style: none;
}

/* --- Contenedor Global --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --- Barra Superior (Top Bar) --- */
.top-bar {
  background-color: var(--navy-deep);
  color: var(--steel-300);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  color: var(--amber-core);
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(229, 131, 46, 0.15);
  color: var(--amber-light);
  border: 1px solid rgba(229, 131, 46, 0.3);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- Encabezado Principal (Navbar Sticky) --- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--steel-200);
  transition: all var(--transition-normal);
}

.main-header.scrolled {
  box-shadow: 0 8px 24px rgba(17, 30, 51, 0.09);
  background: rgba(255, 255, 255, 0.98);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

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

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--navy-dark);
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-core);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-mid);
  position: relative;
  padding: 0.35rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber-core);
  transition: width var(--transition-normal);
  border-radius: var(--radius-full);
}

.nav-link:hover, .nav-link.active {
  color: var(--amber-core);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy-dark);
}

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-core) 0%, var(--amber-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(229, 131, 46, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--amber-light) 0%, var(--amber-core) 100%);
  box-shadow: 0 6px 20px rgba(229, 131, 46, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--navy-dark);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-navy {
  background-color: transparent;
  color: var(--navy-dark);
  border-color: var(--navy-mid);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  background-color: var(--navy-deep);
  color: var(--white);
  padding: 6.5rem 0 5rem;
  overflow: hidden;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(229, 131, 46, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(24, 44, 75, 0.7) 0%, transparent 50%),
    linear-gradient(180deg, rgba(11, 19, 32, 0.88) 0%, rgba(11, 19, 32, 0.96) 100%),
    url('../images/construction-hero.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: normal, normal, normal, overlay;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 131, 46, 0.35);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--amber-light);
  margin-bottom: 1.5rem;
}

.hero-tag .dot {
  width: 8px;
  height: 8px;
  background: var(--amber-core);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--amber-core);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-title .highlight-amber {
  color: var(--amber-core);
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--steel-300);
  margin-bottom: 2.25rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-badges-strip {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.75rem;
  flex-wrap: wrap;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--steel-300);
}

.hero-badge-item svg {
  color: var(--amber-core);
  width: 18px;
  height: 18px;
}

/* Tarjeta Hero Visual / Destacada */
.hero-visual-card {
  position: relative;
  background: rgba(17, 30, 51, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.hero-visual-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.hero-visual-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-visual-card:hover .hero-visual-img-wrap img {
  transform: scale(1.05);
}

.hero-floating-pill {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: rgba(11, 19, 32, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--amber-core);
  padding: 1rem 1.4rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pill-icon {
  width: 44px;
  height: 44px;
  background: var(--amber-core);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.pill-text-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--steel-400);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pill-text-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

/* --- Barra de Métricas / KPI Strip --- */
.kpi-section {
  background: var(--white);
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--steel-200);
  padding: 2.25rem 2.5rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  divide-x: 1px solid var(--steel-200);
}

.kpi-item {
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
}

.kpi-item:first-child {
  padding-left: 0;
}

.kpi-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: baseline;
}

.kpi-number .accent {
  color: var(--amber-core);
  font-size: 0.75em;
  margin-left: 0.1em;
}

.kpi-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--steel-600);
  line-height: 1.35;
}

/* --- Títulos de Sección Estándar --- */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--steel-100);
}

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

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-subtitle-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-core);
  background: rgba(229, 131, 46, 0.1);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  border: 1px solid rgba(229, 131, 46, 0.2);
}

.section-dark .section-subtitle-tag {
  background: rgba(229, 131, 46, 0.15);
  border-color: rgba(229, 131, 46, 0.3);
  color: var(--amber-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.15rem;
}

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

.section-desc {
  font-size: 1.05rem;
  color: var(--steel-600);
  line-height: 1.65;
}

.section-dark .section-desc {
  color: var(--steel-300);
}

/* --- Sección Quiénes Somos / Solidez --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

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

.about-main-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4 / 3;
}

.about-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge-card {
  position: absolute;
  bottom: -2.5rem;
  right: -2rem;
  background: var(--navy-dark);
  color: var(--white);
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--amber-core);
  max-width: 280px;
}

.about-badge-card h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--amber-core);
  margin-bottom: 0.25rem;
}

.about-badge-card p {
  font-size: 0.8125rem;
  color: var(--steel-300);
  line-height: 1.4;
}

.about-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.about-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(229, 131, 46, 0.12);
  color: var(--amber-core);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.about-feature-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.2rem;
}

.about-feature-item p {
  font-size: 0.8125rem;
  color: var(--steel-500);
}

/* --- Pestañas de Servicios Interactivos --- */
.services-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.service-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--steel-200);
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-mid);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.service-tab-btn svg {
  width: 20px;
  height: 20px;
  color: var(--steel-500);
  transition: color var(--transition-fast);
}

.service-tab-btn:hover {
  border-color: var(--amber-core);
  color: var(--amber-core);
  transform: translateY(-2px);
}

.service-tab-btn.active {
  background: var(--navy-dark);
  color: var(--white);
  border-color: var(--navy-dark);
  box-shadow: 0 6px 18px rgba(17, 30, 51, 0.2);
}

.service-tab-btn.active svg {
  color: var(--amber-core);
}

.service-tab-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.service-tab-pane.active {
  display: block;
}

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

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

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--steel-200);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(229, 131, 46, 0.4);
}

.service-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-card-image img {
  transform: scale(1.08);
}

.service-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-icon-badge {
  width: 48px;
  height: 48px;
  background: var(--steel-100);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
  margin-top: -3rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.service-card:hover .service-card-icon-badge {
  background: var(--amber-core);
  color: var(--white);
  border-color: var(--amber-core);
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card-desc {
  font-size: 0.875rem;
  color: var(--steel-600);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-card-features {
  border-top: 1px solid var(--steel-200);
  padding-top: 1rem;
  margin-bottom: 1.25rem;
}

.service-card-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--steel-700);
  margin-bottom: 0.4rem;
}

.service-card-features li svg {
  width: 14px;
  height: 14px;
  color: var(--amber-core);
  flex-shrink: 0;
}

/* --- Banner Eléctrico / Solución Especializada --- */
.electrical-highlight-box {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-deep) 100%);
  border: 1px solid rgba(229, 131, 46, 0.35);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
}

.electrical-highlight-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(229, 131, 46, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.electrical-highlight-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.electric-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.electric-spec-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--amber-core);
}

.electric-spec-item h5 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.electric-spec-item p {
  font-size: 0.775rem;
  color: var(--steel-400);
}

/* --- Portafolio de Obras y Proyectos --- */
.portfolio-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--steel-300);
  color: var(--steel-600);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--navy-mid);
  color: var(--navy-dark);
}

.filter-btn.active {
  background: var(--amber-core);
  border-color: var(--amber-core);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(229, 131, 46, 0.3);
}

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

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--steel-200);
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--amber-core);
}

.project-thumbnail {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-thumbnail img {
  transform: scale(1.08);
}

.project-category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(11, 19, 32, 0.85);
  backdrop-filter: blur(8px);
  color: var(--amber-light);
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(229, 131, 46, 0.4);
}

.project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.project-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--steel-500);
  margin-bottom: 1rem;
}

.project-location svg {
  width: 14px;
  height: 14px;
  color: var(--amber-core);
}

.project-specs-list {
  display: flex;
  gap: 1.25rem;
  border-top: 1px solid var(--steel-200);
  padding-top: 0.85rem;
  margin-top: auto;
  font-size: 0.775rem;
  color: var(--steel-600);
}

.project-spec-item strong {
  color: var(--navy-dark);
  display: block;
}

/* --- Cotizador Interactivo / Calculadora de Proyecto --- */
.estimator-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--steel-200);
  overflow: hidden;
}

.estimator-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
}

.estimator-form-area {
  padding: 3rem;
}

.estimator-summary-area {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.form-group-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-mid);
  margin-bottom: 1rem;
}

.project-type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.type-radio-card {
  position: relative;
}

.type-radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-radio-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  border: 2px solid var(--steel-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--steel-50);
}

.type-radio-box svg {
  width: 28px;
  height: 28px;
  color: var(--steel-500);
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

.type-radio-box span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-mid);
}

.type-radio-card input:checked + .type-radio-box {
  border-color: var(--amber-core);
  background: rgba(229, 131, 46, 0.06);
}

.type-radio-card input:checked + .type-radio-box svg {
  color: var(--amber-core);
}

.type-radio-card input:checked + .type-radio-box span {
  color: var(--navy-dark);
}

.range-slider-group {
  margin-bottom: 2rem;
}

.range-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.range-val-badge {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--amber-dark);
  background: rgba(229, 131, 46, 0.1);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(229, 131, 46, 0.25);
}

.custom-range-slider {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--steel-200);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--amber-core);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(229, 131, 46, 0.5);
  border: 2px solid var(--white);
  transition: transform var(--transition-fast);
}

.custom-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.addons-checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.custom-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--steel-700);
  cursor: pointer;
  background: var(--steel-50);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--steel-200);
  transition: all var(--transition-fast);
}

.custom-checkbox-label:hover {
  border-color: var(--steel-400);
}

.custom-checkbox-label input {
  accent-color: var(--amber-core);
  width: 16px;
  height: 16px;
}

.summary-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.summary-sub {
  font-size: 0.8125rem;
  color: var(--steel-400);
  margin-bottom: 2rem;
}

.summary-breakdown-list {
  margin-bottom: 2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

.summary-row span:first-child {
  color: var(--steel-300);
}

.summary-row span:last-child {
  font-weight: 600;
  color: var(--white);
}

.summary-estimate-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(229, 131, 46, 0.4);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.estimate-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-light);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.estimate-range-val {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
}

.estimate-note {
  font-size: 0.725rem;
  color: var(--steel-400);
  margin-top: 0.5rem;
}

/* --- Normas y Certificaciones --- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cert-badge-box {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-badge-box:hover {
  transform: translateY(-4px);
  border-color: var(--amber-core);
  box-shadow: var(--shadow-lg);
}

.cert-icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(229, 131, 46, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-core);
  margin-bottom: 1.25rem;
}

.cert-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.4rem;
}

.cert-desc {
  font-size: 0.8125rem;
  color: var(--steel-500);
  line-height: 1.45;
}

/* --- Metodología DAYAJO (4 Pasos) --- */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 3rem;
}

.process-step-item {
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-number-tag {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: rgba(229, 131, 46, 0.25);
  line-height: 1;
  margin-bottom: -0.85rem;
  z-index: 1;
  transition: color var(--transition-fast);
}

.process-step-item:hover .step-number-tag {
  color: var(--amber-core);
}

.step-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--steel-200);
  box-shadow: var(--shadow-sm);
  height: 100%;
  z-index: 2;
  transition: all var(--transition-normal);
}

.process-step-item:hover .step-card {
  box-shadow: var(--shadow-md);
  border-color: var(--navy-light);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.65rem;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--steel-600);
  line-height: 1.55;
}

/* --- Testimonios --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  border: 1px solid var(--steel-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-stars {
  color: #F59E0B;
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1.25rem;
}

.quote-text {
  font-size: 0.9375rem;
  color: var(--steel-700);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.client-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--steel-100);
  padding-top: 1rem;
}

.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-mid);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.client-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy-dark);
}

.client-role {
  font-size: 0.775rem;
  color: var(--steel-500);
}

/* --- Sección de Contacto --- */
.contact-section-inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info-panel {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 3rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(229, 131, 46, 0.3);
  box-shadow: var(--shadow-xl);
}

.contact-info-panel h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.contact-info-panel p {
  color: var(--steel-300);
  font-size: 0.9375rem;
  margin-bottom: 2.25rem;
}

.contact-channels-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.contact-channel-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(229, 131, 46, 0.15);
  color: var(--amber-core);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-text h5 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel-400);
  margin-bottom: 0.2rem;
}

.channel-text a, .channel-text span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.channel-text a:hover {
  color: var(--amber-core);
}

.legal-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.775rem;
  color: var(--steel-400);
}

.contact-form-card {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--steel-200);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-mid);
}

.form-field label span.req {
  color: var(--amber-core);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--steel-300);
  border-radius: var(--radius-md);
  background-color: var(--steel-50);
  color: var(--steel-800);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--amber-core);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(229, 131, 46, 0.18);
}

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

.form-feedback {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.form-feedback.success {
  display: block;
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

/* --- Modal Ficha Técnica de Proyecto --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 32, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--white);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(11, 19, 32, 0.7);
  color: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--amber-core);
}

.modal-header-image {
  height: 280px;
  position: relative;
}

.modal-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content-body {
  padding: 2.25rem;
}

.modal-badge {
  display: inline-block;
  background: rgba(229, 131, 46, 0.12);
  color: var(--amber-dark);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 0.5rem;
}

.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.875rem;
}

.modal-specs-table tr {
  border-bottom: 1px solid var(--steel-200);
}

.modal-specs-table td {
  padding: 0.75rem 0;
}

.modal-specs-table td:first-child {
  font-weight: 700;
  color: var(--navy-mid);
  width: 35%;
}

.modal-specs-table td:last-child {
  color: var(--steel-700);
}

/* --- Pie de Página (Footer) --- */
.main-footer {
  background-color: var(--navy-deep);
  color: var(--steel-300);
  padding: 5rem 0 2rem;
  border-top: 2px solid rgba(229, 131, 46, 0.4);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand-info p {
  font-size: 0.875rem;
  color: var(--steel-400);
  margin: 1.25rem 0;
  line-height: 1.6;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--amber-core);
}

.footer-links-list li {
  margin-bottom: 0.65rem;
}

.footer-links-list a {
  font-size: 0.875rem;
  color: var(--steel-400);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-links-list a:hover {
  color: var(--amber-core);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--steel-400);
  margin-bottom: 0.9rem;
  align-items: flex-start;
}

.footer-contact-item svg {
  color: var(--amber-core);
  width: 16px;
  height: 16px;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--steel-500);
}

/* --- Botones Flotantes (WhatsApp & Back to Top) --- */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.btn-floating-whatsapp {
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-normal);
  position: relative;
}

.btn-floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.btn-back-to-top {
  width: 44px;
  height: 44px;
  background: var(--navy-dark);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.btn-back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.btn-back-to-top:hover {
  background: var(--amber-core);
  transform: translateY(-3px);
}

/* --- Responsive & Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-visual-card {
    max-width: 600px;
    margin: 0 auto;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .services-cards-grid,
  .portfolio-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .estimator-inner {
    grid-template-columns: 1fr;
  }

  .estimator-summary-area {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

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

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .navbar {
    height: 70px;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow: var(--shadow-xl);
    transition: left var(--transition-normal);
    overflow-y: auto;
  }

  .nav-menu.open {
    left: 0;
  }

  .mobile-toggle-btn {
    display: block;
  }

  .header-actions .btn-sm {
    display: none;
  }

  .services-cards-grid,
  .portfolio-grid,
  .testimonials-grid,
  .certs-grid,
  .process-timeline,
  .kpi-grid,
  .project-type-selector,
  .form-grid-row,
  .about-features-list,
  .contact-section-inner,
  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .kpi-section {
    padding: 1.5rem;
  }

  .estimator-form-area,
  .estimator-summary-area,
  .contact-info-panel,
  .contact-form-card {
    padding: 1.75rem;
  }

  .electrical-highlight-box {
    padding: 2rem;
  }

  .electrical-highlight-grid {
    grid-template-columns: 1fr;
  }

  .hero-floating-pill {
    position: static;
    margin-top: 1rem;
  }
}
