/* 
   ENECYG INGENIERÍA - SISTEMA DE DISEÑO REFINADO
   Enfoque: Premium, Técnico, Navy & Amber Identity.
*/

:root {
  /* Colores de Marca Refinados (Inspiración Navy/Amber) */
  --color-primary: #0f172a;    /* Deep Navy */
  --color-primary-light: #1e293b;
  --color-accent: #0c6854;     /* Technical Amber/Orange */
  --color-accent-hover: #09b484;
  --color-secondary: #475569;   /* Slate Grey */

  /* Paleta Técnica */
  --color-bg: #ffffff;
  --color-bg-alt: #f3f4f6;
  --color-text-main: #111827;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  
  /* Tipografía (Moderna y Geométrica) */
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-technical: "SFMono-Regular", Consolas, monospace;

  /* Estética de Componentes */
  --radius: 12px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  /* Layout */
  --container-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-primary);
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 100px 0;
}

.bg-alt { background-color: var(--color-bg-alt); }
.bg-dark { background-color: var(--color-primary); color: white; }
.text-accent { color: var(--color-accent); }

/* --- COMPONENTES --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(217, 119, 6, 0.1);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

/* --- HEADER --- */
.header {
  height: 90px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.nav-links a:hover { color: var(--color-primary); }

.link-institutional {
  color: var(--color-accent) !important;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  background: var(--color-primary);
  color: white;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/hero-engineering.png') center/cover no-repeat;
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
}

.price-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
  backdrop-filter: blur(8px);
}

.price-box .price {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* --- CARDS & GRIDS --- */
.section-title {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title h2 {
  font-size: 3rem;
  margin-bottom: 1.25rem;
}

.offer-card {
  background: white;
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.offer-icon {
  width: 60px;
  height: 60px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--color-accent);
}

.technical-showcase {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.technical-panel {
  min-height: 320px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.drawing-panel,
.review-panel {
  display: flex;
  flex-direction: column;
}

.drawing-sheet {
  position: relative;
  min-height: 185px;
  margin: 1.25rem;
  border: 1px solid var(--color-border);
  background: #f8fafc;
  overflow: hidden;
}

.sheet-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.7;
}

.sheet-title {
  position: absolute;
  right: 1rem;
  bottom: 0.8rem;
  z-index: 2;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--color-border);
  background: white;
  color: var(--color-primary);
  font-family: var(--font-technical);
  font-size: 0.75rem;
  font-weight: 700;
}

.route {
  position: absolute;
  z-index: 2;
  height: 4px;
  background: var(--color-accent);
  transform-origin: left center;
}

.route-a {
  width: 58%;
  top: 42%;
  left: 12%;
  transform: rotate(18deg);
}

.route-b {
  width: 48%;
  top: 62%;
  left: 22%;
  transform: rotate(-12deg);
  background: var(--color-primary-light);
}

.node {
  position: absolute;
  z-index: 3;
  width: 16px;
  height: 16px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.node-a { top: 37%; left: 18%; }
.node-b { top: 50%; left: 52%; }
.node-c { top: 60%; left: 72%; background: var(--color-primary-light); }

.review-track {
  min-height: 185px;
  margin: 1.25rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-step {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-technical);
  font-weight: 700;
}

.review-step.active {
  border-color: var(--color-accent-hover);
  color: white;
  background: rgba(12, 104, 84, 0.55);
}

.review-line {
  width: min(22%, 90px);
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
}

.technical-panel-copy {
  padding: 0 1.5rem 1.5rem;
}

.technical-panel-copy h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.technical-panel-copy p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.review-summary {
  max-width: 850px;
  margin: 3rem auto 0;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: white;
  text-align: left;
}

.review-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.review-summary-header span {
  color: var(--color-accent-hover);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.review-summary-header strong {
  color: white;
  font-size: 1.15rem;
}

.review-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.review-summary-grid strong {
  display: block;
  color: var(--color-accent-hover);
  font-family: var(--font-technical);
  margin-bottom: 0.5rem;
}

.review-summary-grid p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.deliverable-kit {
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: center;
  text-align: left;
}

.deliverable-stack {
  position: relative;
  min-height: 220px;
}

.file-card {
  position: absolute;
  width: 170px;
  height: 120px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: white;
  color: var(--color-primary);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  font-family: var(--font-technical);
  font-weight: 800;
  box-shadow: var(--shadow-lg);
}

.file-pdf {
  top: 0;
  left: 25%;
}

.file-dxf {
  top: 52px;
  left: 10%;
  background: #e2e8f0;
}

.file-mem {
  top: 96px;
  left: 38%;
  background: var(--color-accent-hover);
  color: white;
}

.deliverable-copy h3 {
  color: white;
  margin-bottom: 1rem;
}

.deliverable-copy p,
.deliverable-copy li {
  color: rgba(255, 255, 255, 0.72);
}

.deliverable-copy ul {
  margin-top: 1rem;
}

.deliverable-copy li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.deliverable-copy li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--color-accent-hover);
}

/* TICKETS VISUAL */
.ticket-visual {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.ticket-item {
  border-left: 4px solid var(--color-accent);
  background: var(--color-bg-alt);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-technical);
}

/* SOBRE NOSOTROS BOX */
.about-box {
  background: var(--color-primary);
  border-radius: 24px;
  padding: 5rem;
  position: relative;
  overflow: hidden;
  color: white;
}

.about-box h2 { color: white; }

.about-box::after {
  content: '';
  position: absolute;
  top: 0;
  right: -100px;
  width: 500px;
  height: 100%;
  background: url('../img/planos.png') center/cover no-repeat;
  opacity: 0.1;
  mask-image: linear-gradient(to left, rgba(0,0,0,1), transparent);
}

/* FAQ REFINADO */
.faq-item {
  background: white;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem 2rem;
  transition: background 0.3s;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question:hover {
  background: var(--color-bg-alt);
}

.faq-answer {
  padding: 0 2rem;
  background: #fdfdfd;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 2rem 1.5rem;
}

/* FOOTER */
.footer {
  background: white;
  padding: 80px 0 40px;
  border-top: 1px solid var(--color-border);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .section-padding { padding: 80px 0; }
  .about-box { padding: 3rem; }
  .about-box::after { display: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .header {
    position: sticky;
    height: auto;
    padding: 1rem 0;
  }
  .header .container {
    align-items: flex-start;
    gap: 1rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem 1rem;
  }
  .nav-links a {
    font-size: 0.78rem;
  }
  .hero h1 { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .section-title h2 { font-size: 2rem; }
  .offer-card { padding: 1.5rem; }
  .technical-panel {
    min-height: auto;
  }
  .review-summary-grid,
  .deliverable-kit {
    grid-template-columns: 1fr;
  }
  .review-summary-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .deliverable-stack {
    min-height: 190px;
  }
  .file-card {
    width: 145px;
    height: 105px;
  }
  .about-box {
    border-radius: var(--radius);
    padding: 2rem;
  }
  .hero {
    min-height: 100svh;
  }
  .grid-2,
  .grid-3,
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: repeat(auto-fit, minmax(400px, 1fr))"] {
    grid-template-columns: 1fr !important;
  }
  [style*="display: flex"][style*="justify-content: center"][style*="gap: 4rem"] {
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
  }
}
