/* ==========================================================================
   Ingeniería EyT — hoja de estilos
   ========================================================================== */

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter Tight/regular.woff2') format('woff2'),
       url('../fonts/Inter Tight/regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Inter Tight/500.woff2') format('woff2'),
       url('../fonts/Inter Tight/500.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Inter Tight/600.woff2') format('woff2'),
       url('../fonts/Inter Tight/600.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Inter Tight/700.woff2') format('woff2'),
       url('../fonts/Inter Tight/700.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/Inter Tight/800.woff2') format('woff2'),
       url('../fonts/Inter Tight/800.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter Tight/italic.woff2') format('woff2'),
       url('../fonts/Inter Tight/italic.ttf') format('truetype');
}

:root {
  --eyt-yellow: #ffc516;
  --eyt-black: #0a0a0a;
  --eyt-dark: #1a1a1a;
  --eyt-gray-900: #222;
  --eyt-gray-700: #444;
  --eyt-gray-500: #666;
  --eyt-gray-300: #999;
  --eyt-gray-200: #e5e7eb;
  --eyt-gray-100: #f4f4f5;
  --eyt-off-white: #f8f9fa;
  --eyt-white: #fff;
  --eyt-radius: 12px;
  --eyt-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --eyt-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --eyt-container: 1200px;
  --eyt-header-h: 5.2rem;
}

/* Reset & base */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--eyt-header-h) + 1.5rem);
}
body {
  margin: 0;
  font-family: 'Inter Tight', system-ui, sans-serif;
  color: var(--eyt-gray-900);
  line-height: 1.5;
  background: var(--eyt-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--eyt-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography scale */
.h-display { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; line-height: 1.15; }
.h-section { font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 700; line-height: 1.2; }
.h-card { font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
.text-lead { font-size: 1.1rem; font-weight: 400; line-height: 1.6; }
.text-label { font-size: 1rem; font-weight: 500; }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--eyt-yellow); color: var(--eyt-black); }
.btn-primary:hover { background: #e6b013; }
.btn-outline-white { background: transparent; color: var(--eyt-white); border-color: rgba(255, 255, 255, 0.6); }
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--eyt-white); }
.btn-block { width: 100%; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------------------------------------------------------------------- */
/* Header / Nav                                                           */
/* ---------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0.75rem; left: 0.75rem; right: 0.75rem;
  z-index: 1000;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: var(--eyt-white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--eyt-header-h);
  gap: 1.5rem;
  padding-left: 0.5rem;
}
.navbar-brand {
  background: var(--eyt-white);
  border-radius: 999px;
  padding: 0.4rem 1.25rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.navbar-brand img { height: 4rem; width: auto; display: block; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.4rem;
  height: 2.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; height: 2px; background: var(--eyt-white); border-radius: 2px; transition: background-color 0.25s ease; }
.site-header.is-scrolled .nav-toggle span { background: var(--eyt-black); }
.nav-collapse {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: flex-end;
  padding-right: 0.5rem;
}
.nav-links { display: flex; gap: 1.75rem; list-style: none; padding: 0; }
.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--eyt-white);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active { border-bottom-color: var(--eyt-yellow); font-weight: 700; }
.site-header.is-scrolled .nav-links a { color: var(--eyt-black); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-collapse {
    position: absolute;
    top: var(--eyt-header-h);
    left: 0; right: 0;
    background: var(--eyt-white);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    display: none;
  }
  .nav-collapse.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 1rem; }
  .nav-links a { color: var(--eyt-black); }
  .navbar-buttons .btn { width: 100%; }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--eyt-header-h) + 5rem) 0 5rem;
  background-size: cover;
  background-position: center;
  color: var(--eyt-white);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.hero .container { position: relative; max-width: 780px; }
.hero p { margin-top: 1.25rem; }
.hero .btn-row { margin-top: 2rem; }
.hero-home { background-image: url('../assets/images/im0106185-1200x675.jpg'); }
.hero-productos { background-image: url('../assets/images/im0106181-1200x675.jpg'); }
.hero-nosotros { background-image: url('../assets/images/im0106178-1200x675.jpg'); }
.hero-contacto { background-image: url('../assets/images/4505169-980x560.jpg'); }

/* ---------------------------------------------------------------------- */
/* Sections                                                                */
/* ---------------------------------------------------------------------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--eyt-off-white); }
.section-head { max-width: 700px; margin: 0 auto 3rem; text-align: center; }
.section-head p { margin-top: 0.75rem; color: var(--eyt-gray-500); }

.grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 992px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

/* Product cards */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--eyt-white);
  border: 1px solid var(--eyt-gray-200);
  border-radius: var(--eyt-radius);
  overflow: hidden;
  box-shadow: var(--eyt-shadow);
}
.card-img { height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body .h-card { margin-bottom: 0.4rem; }
.card-kicker { font-weight: 600; color: var(--eyt-gray-700); margin-bottom: 0.6rem; }
.card-body p:not(.card-kicker) { color: var(--eyt-gray-500); font-size: 1rem; }
.card-body .btn { margin-top: auto; align-self: flex-start; padding-top: 1.25rem; }

/* Brand cards */
.brand-card {
  text-align: center;
  padding: 2rem;
  background: var(--eyt-white);
  border: 1px solid var(--eyt-gray-200);
  border-radius: var(--eyt-radius);
  box-shadow: var(--eyt-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.brand-card img { height: 80px; width: auto; object-fit: contain; margin: 0 auto 1.25rem; }
.brand-card p { color: var(--eyt-gray-700); flex: 1; }
.brand-card .btn { margin-top: 1.5rem; align-self: center; }

/* Certificates row */
.certs { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* Client logos */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}
@media (max-width: 860px) { .clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }
.client-logo {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--eyt-white);
  border: 1px solid var(--eyt-gray-200);
  border-radius: var(--eyt-radius);
  padding: 1rem;
}
.client-logo img { height: 70px; width: auto; max-width: 100%; object-fit: contain; }

/* ---------------------------------------------------------------------- */
/* Servicios (Nosotros)                                                    */
/* ---------------------------------------------------------------------- */
.service-card {
  background: var(--eyt-white);
  border: 1px solid var(--eyt-gray-200);
  border-radius: var(--eyt-radius);
  padding: 2rem 1.75rem;
  height: 100%;
  box-shadow: var(--eyt-shadow);
}
.service-card .icon { font-size: 2.4rem; color: var(--eyt-yellow); margin-bottom: 1rem; display: block; }
.service-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.service-card ul { list-style: none; padding: 0; margin: 0; }
.service-card li { padding: 0.3rem 0; font-size: 1.1rem; color: var(--eyt-gray-700); }
.service-card li::before { content: "✓ "; color: var(--eyt-yellow); font-weight: 700; }

.quote-box {
  background: var(--eyt-off-white);
  border-left: 4px solid var(--eyt-yellow);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  margin: 3.5rem 0;
  text-align: center;
}
.quote-box p { font-size: 1.1rem; font-style: italic; color: var(--eyt-gray-900); font-weight: 500; }

.pillar { text-align: center; padding: 1.5rem 1rem; }
.pillar .icon { font-size: 2rem; color: var(--eyt-yellow); margin-bottom: 0.75rem; display: block; }
.pillar h4 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.pillar p { font-size: 1.1rem; color: var(--eyt-gray-500); }

/* FAQ (details/summary) */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--eyt-gray-200);
  border-radius: 10px;
  margin-bottom: 0.9rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--eyt-yellow);
  margin-left: 1rem;
}
.faq details[open] summary::after { content: '−'; }
.faq .faq-body { padding: 0 1.4rem 1.3rem; color: var(--eyt-gray-500); }
.faq .faq-body a { color: var(--eyt-black); text-decoration: underline; }

/* ---------------------------------------------------------------------- */
/* Carrusel de categorías (productos.html)                                */
/* ---------------------------------------------------------------------- */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1.5rem;
  padding: 0.5rem 0 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 320px;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: none;
  background: var(--eyt-gray-200);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.carousel-dot:hover { background: var(--eyt-gray-300); }
.carousel-dot.is-active { background: var(--eyt-yellow); transform: scale(1.3); }
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.carousel-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--eyt-gray-200);
  background: var(--eyt-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background-color 0.15s ease;
}
.carousel-btn:hover { background: var(--eyt-gray-100); }

/* ---------------------------------------------------------------------- */
/* Formulario de contacto                                                  */
/* ---------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }
.form-row { display: flex; gap: 1rem; }
@media (max-width: 560px) { .form-row { flex-direction: column; } }
.form-group { flex: 1; margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.4rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--eyt-gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus { outline: 2px solid var(--eyt-yellow); border-color: var(--eyt-yellow); }
.form-alert {
  padding: 1rem 1.2rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  display: none;
}
.form-alert.is-visible { display: block; }
.form-alert-success { background: #eafbe7; color: #1f7a1f; border: 1px solid #bfe7ba; }
.form-alert-danger { background: #fdeaea; color: #a12525; border: 1px solid #f1bcbc; }
.contact-image img { border-radius: var(--eyt-radius); }

.contact-info p { margin-bottom: 1.25rem; color: var(--eyt-gray-700); }
.contact-info strong { color: var(--eyt-black); }
.map-embed { border-radius: var(--eyt-radius); overflow: hidden; height: 100%; min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer { background: var(--eyt-black); color: var(--eyt-white); padding: 3rem 0 2rem; text-align: center; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.75rem; padding: 0; margin: 0 0 2rem; }
.footer-links a { color: var(--eyt-yellow); font-weight: 700; }
.footer-social { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1.25rem; }
.footer-social i { color: var(--eyt-yellow); font-size: 1.3rem; }
.footer-info p { margin-bottom: 0.4rem; color: var(--eyt-white); }
.footer-copy { margin-top: 2rem; color: var(--eyt-gray-300); font-size: 0.95rem; }
