/* ============================================
   HADRON — Styles
   ============================================ */

/* --- Font Faces --- */
@font-face {
  font-family: 'Copperplate CC';
  src: url('../fonts/copperplate-cc/CopperplateCC-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Copperplate CC';
  src: url('../fonts/copperplate-cc/CopperplateCC-Heavy.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/Metropolis-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/Metropolis-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/Metropolis-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/Metropolis-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/Metropolis-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/Metropolis-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/Metropolis-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/Metropolis-ExtraLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/Metropolis-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

/* --- Custom Properties --- */
:root {
  --black: #000000;
  --deep-blue: #0A1628;
  --electric-blue: #1400FF;
  --white: #FFFFFF;
  --off-white: #F5F5F5;
  --gray-light: #E0E0E0;
  --gray-mid: #888888;
  --gray-dark: #1A1A1A;
  --font-logo: 'Copperplate CC', monospace;
  --font-sans: 'Metropolis', 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 2rem 3rem;
  transition: background var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: var(--black);
  padding: 1rem 3rem;
}

.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--white);
}

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

.nav-links a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  transition: opacity var(--transition);
}

.nav-links a:hover {
  opacity: 0.7;
}

.btn-nav {
  border: 1.5px solid var(--white);
  padding: 0.6rem 1.5rem;
  transition: background var(--transition), color var(--transition);
}

.btn-nav:hover {
  background: var(--white);
  color: var(--black) !important;
  opacity: 1 !important;
}

/* --- Hero --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  background: url('../7pexels-tara-winstead-8386356.jpg.jpeg') center center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(10, 22, 40, 0.6) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  padding-bottom: 5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--white);
  max-width: 900px;
}

/* --- Nosotros --- */
.nosotros {
  background: var(--white);
  color: var(--black);
  padding: 8rem 3rem;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 4rem;
  align-items: start;
}

.section-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-mid);
  padding-top: 0.3rem;
}

.label-light {
  color: rgba(255, 255, 255, 0.5);
}

.nosotros-content {
  max-width: 650px;
}

.nosotros-heading {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--black);
}

.nosotros-body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  max-width: 560px;
}

/* --- Visual Break --- */
.visual-break {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}

.visual-break--split {
  height: 50vh;
  min-height: 350px;
}

.visual-break-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.visual-break:hover .visual-break-img {
  transform: scale(1.05);
}

/* --- Servicios --- */
.servicios {
  background: var(--electric-blue);
  color: var(--white);
  padding: 8rem 3rem;
}

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

.servicio-card {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 1.5rem;
}

.servicio-num {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-bottom: 1rem;
}

.servicio-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.servicio-desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 320px;
}

/* --- Contacto --- */
.contacto {
  background: var(--black);
  color: var(--white);
  padding: 8rem 3rem;
}

.contacto-content {
  max-width: 600px;
}

.contacto-heading {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.contacto-body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
  max-width: 460px;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.contacto-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--white);
  transition: color var(--transition);
}

.contacto-link:hover {
  color: var(--electric-blue);
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  border: 1.5px solid var(--white);
  padding: 0.85rem 2.2rem;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}

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

/* --- Footer --- */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 3rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.logo--sm {
  font-size: 1.2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-container {
    grid-template-columns: 120px 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1.5rem;
  }

  .navbar.scrolled {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.2rem;
  }

  .hero-content {
    padding: 1.5rem;
    padding-bottom: 3rem;
  }

  .nosotros,
  .servicios,
  .contacto {
    padding: 5rem 1.5rem;
  }

  .section-container {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .section-label {
    margin-bottom: 1rem;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .servicio-desc {
    max-width: 100%;
  }

  .visual-break {
    height: 40vh;
    min-height: 280px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-links a:not(.btn-nav) {
    display: none;
  }

  .hero-title {
    font-size: 2rem;
  }

  .contacto-heading {
    font-size: 2rem;
  }
}
