/* Paleta de marca: verde Arnavind, grafito, acero y blanco tecnico. */
:root {
  --ink: #07100c;
  --graphite: #111817;
  --panel: #17211f;
  --steel: #61706b;
  --metal: #dce4df;
  --white: #ffffff;
  --soft: #f3f7f4;
  --muted: #aebbb5;
  --brand: #19e21f;
  --brand-dark: #0b8f12;
  --brand-soft: rgba(25, 226, 31, 0.16);
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(25, 226, 31, 0.18);
  background: rgba(7, 16, 12, 0.86);
  backdrop-filter: blur(18px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  min-height: 84px;
  margin: 0 auto;
}

/* Logo integrado al header con fondo transparente. */
.brand {
  display: inline-flex;
  align-items: center;
  width: min(315px, 31vw);
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none;
  line-height: 0;
  overflow: visible;
}

.brand img,
.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.34));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a,
.footer-links a,
.footer-social a {
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.footer-links a:hover,
.footer-social a:hover { color: var(--brand); }

.header-cta,
.btn,
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.header-cta,
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #b7ff67);
  color: #061008;
  box-shadow: 0 18px 38px rgba(25, 226, 31, 0.22);
}

.header-cta:hover,
.btn:hover,
.whatsapp-btn:hover {
  transform: translateY(-3px);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-toggle,
.nav-toggle-label { display: none; }

.hero {
  position: relative;
  display: grid;
  min-height: 96vh;
  padding: 160px max(20px, calc((100vw - 1180px) / 2)) 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: slowZoom 16s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 12, 0.96) 0%, rgba(7, 16, 12, 0.76) 48%, rgba(7, 16, 12, 0.2) 100%),
    linear-gradient(180deg, rgba(7, 16, 12, 0.12) 0%, rgba(7, 16, 12, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 800px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 960px;
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 900;
}

.hero-subtitle {
  max-width: 720px;
  margin: 26px 0 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-panel {
  position: absolute;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: 48px;
  z-index: 2;
  width: min(385px, calc(100% - 40px));
  padding: 26px;
  border: 1px solid rgba(25, 226, 31, 0.28);
  background: rgba(17, 24, 23, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel span {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin: 10px 0 14px;
  font-size: 1.25rem;
  line-height: 1.18;
}

.hero-panel a {
  color: var(--brand);
  font-weight: 900;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #0b1511, #17211f);
}

.trust-strip article {
  min-height: 155px;
  padding: 32px;
  border-right: 1px solid var(--line);
  transition: background 0.25s ease;
}

.trust-strip article:hover { background: var(--brand-soft); }
.trust-strip span { color: var(--brand); font-weight: 900; }
.trust-strip h2 { margin-top: 16px; font-size: clamp(1.15rem, 2vw, 1.55rem); }

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 48px;
}

.section-heading.split {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 48px;
  max-width: none;
  align-items: end;
}

.section-heading h2,
.about-content h2,
.cta-band h2,
.contact-info h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
}

.section-heading p,
.about-content p,
.contact-info p { color: rgba(255, 255, 255, 0.72); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  overflow: hidden;
  min-height: 395px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(25, 226, 31, 0.55);
  background: linear-gradient(180deg, rgba(25, 226, 31, 0.14), rgba(255, 255, 255, 0.035));
}

.service-image {
  display: block;
  width: 100%;
  height: 165px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.service-card h3 {
  padding: 24px 24px 0;
  font-size: 1.35rem;
}

.service-card p {
  margin: 0;
  padding: 14px 24px 26px;
  color: rgba(255, 255, 255, 0.7);
}

.projects {
  width: 100%;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  background: var(--soft);
  color: var(--ink);
}

.projects .eyebrow { color: var(--brand-dark); }
.projects .section-heading p { color: rgba(7, 16, 12, 0.68); }

.project-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.82));
}

.project-card > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-card.large {
  grid-row: span 2;
  min-height: 718px;
}

.project-card.wide { grid-column: span 2; }
.project-card:hover { transform: translateY(-6px); filter: saturate(1.08) contrast(1.04); }
.project-card:hover > img { transform: scale(1.05); }

.project-card div {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 1;
  color: var(--white);
}

.project-card h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.project-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  position: relative;
  min-height: 620px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-image img {
  display: block;
  width: 100%;
  height: 620px;
  object-fit: cover;
}

.about-image::before {
  content: "";
  position: absolute;
  top: -22px;
  right: -22px;
  width: 58%;
  height: 58%;
  border: 1px solid rgba(25, 226, 31, 0.42);
}

.about-content p { font-size: 1.02rem; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.about-stats span {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.about-stats strong {
  display: block;
  color: var(--brand);
  font-size: 1.45rem;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 86px max(20px, calc((100vw - 1180px) / 2));
  background-image: linear-gradient(90deg, rgba(7, 16, 12, 0.94), rgba(11, 143, 18, 0.48)), url("assets/cubiertas-industriales-final.jpg");
  background-size: cover;
  background-position: center;
}

.cta-band h2 { max-width: 850px; }

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 58px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 30px 0;
}

.contact-list a,
.contact-list span {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.84);
}

.contact-list a:hover {
  border-color: rgba(25, 226, 31, 0.52);
  color: var(--brand);
}

.whatsapp-btn {
  background: #1fa463;
  color: var(--white);
  box-shadow: 0 18px 38px rgba(31, 164, 99, 0.22);
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 34px;
  border: 1px solid rgba(25, 226, 31, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.contact-form label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
}

.project-fields {
  display: grid;
  gap: 12px;
  margin: 6px 0 2px;
  padding: 18px;
  border: 1px solid rgba(25, 226, 31, 0.2);
  background: rgba(7, 16, 12, 0.38);
}

.project-fields[hidden] { display: none; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 16, 12, 0.72);
  color: var(--white);
  font: inherit;
  outline: none;
  padding: 15px 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input[type="file"] {
  padding: 13px 16px;
  cursor: pointer;
}

.contact-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  background: var(--brand);
  color: #061008;
  font: inherit;
  font-weight: 900;
  padding: 9px 12px;
  cursor: pointer;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(25, 226, 31, 0.14);
}

.contact-form textarea { resize: vertical; }

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--brand);
  font-weight: 900;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.8fr;
  gap: 28px;
  padding: 58px max(20px, calc((100vw - 1180px) / 2)) 32px;
  border-top: 1px solid var(--line);
  background: #050907;
}

.footer-brand {
  margin-bottom: 16px;
  width: min(310px, 100%);
}

.footer-brand img,
.footer-brand .brand-logo { height: auto; }
.site-footer p { margin: 0; color: var(--muted); }

.footer-links,
.footer-social {
  display: grid;
  gap: 10px;
  align-content: start;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.admin-access-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 0;
  border: 1px solid rgba(25, 226, 31, 0.22);
  background: rgba(25, 226, 31, 0.05);
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 8px 10px;
  text-align: left;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.admin-access-link:hover {
  border-color: rgba(25, 226, 31, 0.5);
  background: rgba(25, 226, 31, 0.12);
  color: var(--brand);
}

.admin-login-modal[hidden] {
  display: none;
}

.admin-login-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  width: 100vw;
  height: 100vh;
}

.admin-login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 7, 0.78);
  backdrop-filter: blur(10px);
}

.admin-login-dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow-y: auto;
  padding: 30px;
  border: 1px solid rgba(25, 226, 31, 0.22);
  background: rgba(17, 24, 23, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.admin-login-dialog h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.admin-login-copy {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.admin-login-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.footer-login-form {
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.footer-login-form .btn {
  width: 100%;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

@keyframes slowZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.09); }
}

@media (max-width: 1020px) {
  .navbar { width: min(100% - 28px, 1180px); }
  .brand { width: min(270px, 32vw); }
  .nav-toggle-label {
    display: grid;
    gap: 5px;
    order: 4;
    cursor: pointer;
  }
  .nav-toggle-label span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
  }
  .nav-links {
    position: fixed;
    top: 84px;
    right: 14px;
    left: 14px;
    display: none;
    padding: 24px;
    border: 1px solid var(--line);
    background: rgba(7, 16, 12, 0.96);
  }
  .nav-links a {
    display: block;
    padding: 12px 0;
  }
  .nav-toggle:checked ~ .nav-links { display: block; }
  .header-cta { margin-left: auto; }
  .trust-strip,
  .service-grid,
  .about,
  .contact,
  .site-footer,
  .section-heading.split { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-card.large,
  .project-card.wide {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 380px;
  }
}

@media (max-width: 760px) {
  .navbar { min-height: 74px; }
  .brand {
    width: min(215px, 46vw);
  }
  .header-cta { display: none; }
  .nav-links { top: 74px; }
  .hero {
    min-height: 94vh;
    padding-top: 122px;
  }
  h1 { font-size: clamp(2.45rem, 13vw, 4.15rem); }
  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: end;
    margin-top: 44px;
  }
  .hero-actions,
  .cta-band {
    align-items: stretch;
    flex-direction: column;
  }
  .btn,
  .whatsapp-btn { width: 100%; }
  .trust-strip,
  .service-grid,
  .project-grid,
  .about,
  .about-stats,
  .contact,
  .site-footer,
  .section-heading.split { grid-template-columns: 1fr; }
  .trust-strip article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .section {
    width: min(100% - 28px, 1180px);
    padding: 76px 0;
  }
  .projects {
    width: 100%;
    padding-inline: 14px;
  }
  .service-card { min-height: auto; }
  .project-card,
  .project-card.large,
  .project-card.wide { min-height: 330px; }
  .about-image { min-height: 430px; }
  .about-image img { height: 430px; }
  .about-image::before { right: -10px; }
  .cta-band { padding-block: 70px; }
  .contact-form { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero { padding-inline: 14px; }
  .brand { width: min(180px, 48vw); }
  .section-heading h2,
  .about-content h2,
  .cta-band h2,
  .contact-info h2 { font-size: 2rem; }
}
