html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* altura aproximada del header fijo */
}





:root {
  --bg-dark: #05070a;
  --bg-darker: #020305;
  --bg-light: #f5f6fa;
  --bg-card: #11141b;
  --accent-blue: #0d7bff;
  --accent-green: #42c777;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-soft: rgba(255, 255, 255, 0.08);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --max-width: 1120px;
}

/* RESET BÁSICO */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

/* CONTENEDOR GENÉRICO */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HERO */
.hero {
  position: relative;
  min-height: 80vh;
  color: var(--text-main);
  overflow: hidden;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) brightness(0.9); /* ajusta brillo y saturación */
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(13, 123, 255, 0.35), transparent 55%),
              radial-gradient(circle at bottom right, rgba(66, 199, 119, 0.25), transparent 55%),
              linear-gradient(to bottom, rgba(5, 7, 10, 0.65), rgba(5, 7, 10, 0.9));
}

.hero-content {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 5rem;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--accent-green);
  font-size: 0.8rem;
  border: 1px solid rgba(66, 199, 119, 0.5);
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin: 1rem 0 0.5rem;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* NAVEGACION */
.main-nav {
  position: absolute;
  inset-inline: 0;
  top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-main);
}

.nav-logo {
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--text-main);
  text-decoration: none;
  opacity: 0.8;
}

.main-nav a:hover {
  opacity: 1;
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.75);
}

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

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.85);
}

/* SECCIONES GENERALES */
.section {
  padding: 4rem 0;
}

.section-light {
  background: var(--bg-light);
  color: #111827;
}

.section-dark {
  background: radial-gradient(circle at top, #111827, #020617);
  color: var(--text-main);
}

.section-highlight {
  background: linear-gradient(135deg, #020617, #0b1120);
  color: var(--text-main);
}

.section-header {
  text-align: center;
  margin-bottom: 2.4rem;
}

.section-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.section-header p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* INTRO */
.section-intro {
  background: var(--bg-darker);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.intro-grid {
  display: grid;
  gap: 1.8rem;
  align-items: center;
}

.intro-grid h2 {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.intro-grid p {
  color: var(--text-muted);
}

.intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.intro-tags span {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* GRIDS Y CARDS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.3rem;
}

.gallery {
  margin-top: 1rem;
}

.card-image {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-soft);
}

.section-light .card-image {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  border-color: rgba(15, 23, 42, 0.06);
}

.card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease-out;
}

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

.card-image figcaption {
  padding: 0.9rem 1rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.section-light .card-image figcaption {
  color: #4b5563;
}

.card-image-large img {
  height: 280px;
}

/* DOS COLUMNAS */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.two-col h2 {
  margin-top: 0;
}

.two-col p {
  color: var(--text-muted);
}

.two-col-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.two-col-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* BLOQUES MECANIZADO */
.block-category {
  margin-top: 3rem;
}

.block-category h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.block-category p {
  margin-top: 0;
  color: #4b5563;
}

.section-dark .block-category p {
  color: var(--text-muted);
}

/* PLANTA */
.planta-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: flex-start;
}

.planta-main .card-image + .card-image {
  margin-top: 1.2rem;
}

.planta-side h3 {
  margin-top: 0;
}

.planta-side ul {
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}

.mini-gallery img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* CONTACTO */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-grid p {
  color: #4b5563;
}

.contact-form {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.9rem;
}

.form-row label {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: #4b5563;
}

.form-row input,
.form-row textarea {
  border-radius: var(--radius-sm);
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.7rem;
  font-family: inherit;
  font-size: 0.9rem;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 1px;
  border-color: transparent;
}

/* FOOTER */
.footer {
  background: #020617;
  padding: 1.2rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer a {
  color: var(--accent-blue);
  text-decoration: none;
}

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

  .hero-content {
    padding-top: 6rem;
  }

  .two-col,
  .planta-layout,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-image-large img {
    height: 230px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .mini-gallery img {
    height: 70px;
  }
}
