/* ============================================
   Solver Tecnología Láser — Estilos
   Inspirado en Siemens + Be1 Global Events
   ============================================ */

:root {
  --color-primary: #003366;
  --color-primary-dark: #002244;
  --color-primary-light: #0052a3;
  --color-dark: #1a1a1a;
  --color-dark-soft: #2d2d2d;
  --color-text: #333;
  --color-text-muted: #666;
  --color-bg: #f5f5f5;
  --color-white: #fff;
  --color-border: #e0e0e0;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --container: min(1200px, 92vw);
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-strong: 0 8px 32px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(135deg, #003366 0%, #002750 100%);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition), box-shadow var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  text-decoration: none;
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-solver {
  color: #4da8d9;
}

.logo-tech {
  color: var(--color-white);
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.nav a:hover {
  color: #4da8d9;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
}

/* Hero — degradado tipo Siemens: imagen visible + overlay oscuro + texto blanco */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: calc(72px + 3rem) 0 4rem;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(8, 32, 50, 0.92) 0%,
    rgba(8, 32, 50, 0.7) 45%,
    rgba(8, 32, 50, 0.35) 100%
  );
  pointer-events: none;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 1.25rem;
}

.hero-title em {
  color: #5dd4d4;
  font-style: normal;
}

.hero-lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2rem;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero .btn-secondary {
  color: #fff;
  border-color: #fff;
}

.hero .btn-secondary:hover {
  background: #fff;
  color: var(--color-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--large {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 2rem;
}

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

/* Nosotros (texto + ventajas + galería) */
.section-nosotros {
  background: var(--color-white);
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.nosotros-text {
  max-width: 56ch;
}

.intro-p {
  margin: 0 0 1rem;
  color: var(--color-text);
}

.intro-p:last-of-type {
  margin-bottom: 0;
}

.intro-p--muted {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.nosotros-visual {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-strong), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.nosotros-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.ventajas-compact {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.ventajas-compact-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 1.5rem;
}

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

.ventaja-card {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}

.ventaja-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.ventaja-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,153,153,0.12);
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.ventaja-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 0.35rem;
}

.ventaja-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.galeria-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  border-radius: 12px;
  overflow: hidden;
}

.galeria-strip img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition), box-shadow var(--transition);
}

.galeria-strip img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-strong);
}

/* Líder */
.section-lider {
  background: var(--color-white);
}

.lider-intro {
  margin: 0 0 2rem;
  font-size: 1.15rem;
  color: var(--color-text-muted);
}

.lider-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 3rem;
  align-items: start;
  background: var(--color-bg);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lider-photo {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-strong), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.lider-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 60%,
    rgba(0, 0, 0, 0.06) 100%
  );
  pointer-events: none;
}

.lider-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.lider-bio {
  margin-top: 1.25rem;
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--color-text);
}

/* Galería de proyecto */
.section-galeria {
  background: var(--color-white);
}

.galeria-intro {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  max-width: 60ch;
}

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

.galeria-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-bg);
}

.galeria-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition), box-shadow var(--transition);
}

.galeria-item img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-strong);
}

/* Animación de entrada portada */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: scale(1.04);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.hero-image-wrap,
.hero-overlay {
  opacity: 0;
  animation: heroFadeIn 1.4s ease-out forwards;
}

.hero-overlay {
  animation-delay: 0.15s;
}

.lider-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 0.25rem;
}

.lider-role {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-primary);
  margin: 0 0 0.4rem;
}

.lider-company,
.lider-period {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.lider-period {
  margin-top: 0.15rem;
}

.section-beneficios {
  background: #f8fbff;
}

.beneficios-imagen {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: var(--color-white);
}

.beneficios-imagen img {
  width: 100%;
  height: min(62vw, 720px);
  max-height: 620px;
  object-fit: contain;
  display: block;
}

/* Contacto */
.section-contacto {
  background: var(--color-bg);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contacto-info p {
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

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

.contacto-form label {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-dark);
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  transition: border-color var(--transition);
}

.contacto-form input:focus,
.contacto-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contacto-form button {
  align-self: flex-start;
}

.form-status {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  min-height: 1.2em;
}

.form-status.success {
  color: #0b7a3f;
}

.form-status.error {
  color: #b42318;
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.8);
  padding: 2rem 0;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-white);
  margin: 0 0 0.25rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-white);
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    gap: 0.5rem;
  }

  .hero {
    min-height: 85vh;
    padding-top: calc(72px + 2rem);
  }

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

  .nosotros-visual {
    order: -1;
  }

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

  .galeria-strip {
    grid-template-columns: 1fr;
  }

  .galeria-strip img {
    height: 200px;
  }

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

  .lider-card {
    grid-template-columns: 1fr;
  }

  .lider-photo {
    max-width: 280px;
    margin: 0 auto;
  }

}

@media (max-width: 600px) {
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

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