/* ═══════════════════════════════════════
   FERROPRIME SAS – Stylesheet
   Paleta: Negro #0a0a0a | Naranja #f97316 | Blanco #ffffff
   Fuente display: Bebas Neue | Body: Barlow
═══════════════════════════════════════ */

:root {
  --black:   #0a0a0a;
  --black2:  #111111;
  --orange:  #f97316;
  --orange2: #ea6a0a;
  --white:   #ffffff;
  --gray:    #888888;
  --card-bg: #161616;
  --border:  #2a2a2a;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black2); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--orange);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.7; }

.nav-social {
  position: absolute;
  right: 40px;
  display: flex;
  gap: 16px;
}
.nav-social a {
  color: var(--white);
  font-size: 18px;
  transition: color 0.2s;
}
.nav-social a:hover { color: var(--orange); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 20px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--black2);
  padding: 24px 30px 30px;
  z-index: 99;
  flex-direction: column;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mob-link {
  font-weight: 600;
  font-size: 16px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mob-social { display: flex; gap: 20px; margin-top: 8px; }
.mob-social a { font-size: 22px; color: var(--white); }
.mob-social a:hover { color: var(--orange); }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  position: relative;
}

/* Subtle grain overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

.hero-content {
  max-width: 760px;
  animation: fadeUp 0.8s ease both;
}

.hero-logo {
  width: 220px;
  margin: 0 auto 36px;
  filter: brightness(0) invert(1);
  animation: fadeIn 1s ease both;
}

.hero-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 12px;
}

.hero-sub {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--orange);
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(249,115,22,0.4);
}
.btn-primary:hover { background: var(--orange2); box-shadow: 0 6px 28px rgba(249,115,22,0.5); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--orange);
}
.btn-outline:hover { background: var(--orange); }

/* ══ SERVICES GRID 6 cards ══ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  width: 100%;
  margin-top: 70px;
  animation: fadeUp 1s 0.3s ease both;
}

.srv-card {
  background: #181818;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s;
  cursor: default;
}
.srv-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}
.srv-card i {
  font-size: 30px;
  color: var(--orange);
  margin-bottom: 18px;
  display: block;
}
.srv-card h3 {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}
.srv-card p {
  font-size: 13px;
  color: #999;
  line-height: 1.65;
}

/* ═══════════════════════════════════════
   SERVICIOS
═══════════════════════════════════════ */
#servicios {
  padding: 80px 0;
}

.service-row {
  display: flex;
  align-items: center;
  min-height: 360px;
  max-width: 960px;
  margin: 0 auto 80px;
  gap: 48px;
  padding: 0 24px;
}
.service-row.reverse { flex-direction: row-reverse; }

.service-img {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  max-height: 340px;
}
.service-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s ease;
}
.service-img img:hover { transform: scale(1.04); }

.service-text {
  flex: 1;
}
.service-text h2 {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.1;
}
.service-text p {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.7;
}

/* Card box style (for reverse rows) */
.service-card-box {
  border: 2px solid var(--orange);
  border-radius: 8px;
  padding: 28px 32px;
}
.service-card-box h2 { margin-bottom: 12px; }

.service-text.right h2 { color: var(--white); }

/* ═══════════════════════════════════════
   QUIÉNES SOMOS
═══════════════════════════════════════ */
#quienes {
  padding: 100px 24px;
  text-align: center;
}
.quienes-inner {
  max-width: 620px;
  margin: 0 auto;
}
#quienes h2 {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 24px;
}
#quienes p {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.8;
}

/* ═══════════════════════════════════════
   CONTACTO
═══════════════════════════════════════ */
#contacto {
  padding: 100px 24px;
  text-align: center;
}
.contacto-inner {
  max-width: 500px;
  margin: 0 auto;
}
.contact-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 4px;
}
.contact-sub {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2.5vw, 26px);
  color: #999;
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #555; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--orange); }

.btn-send {
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 8px;
  padding: 16px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-send:hover { background: var(--orange); color: var(--white); transform: translateY(-2px); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  background: var(--black2);
  border-top: 1px solid var(--border);
  padding: 60px 40px 24px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-logo img {
  width: 120px;
  filter: brightness(0) invert(1);
}
.footer-cols {
  display: flex;
  gap: 60px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h4 {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 13px;
  color: var(--gray);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  max-width: 960px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 12px;
  color: #444;
}

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══ WHATSAPP FLOTANTE ══ */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.65);
}
.wa-float i { line-height: 1; }

.wa-tooltip {
  position: absolute;
  right: 70px;
  background: #25d366;
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.wa-float:hover .wa-tooltip { opacity: 1; }

/* ══ CONTACT INFO ══ */
.contact-info {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  transition: opacity 0.2s;
}
.contact-info-item:hover { opacity: 0.75; }
.contact-info-item i { font-size: 16px; }

/* ══ FOOTER EMAIL ══ */
.footer-tagline {
  font-size: 12px;
  color: #555;
  margin: 10px 0 8px;
  line-height: 1.6;
}
.footer-email {
  font-size: 12px;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}
.footer-email:hover { opacity: 0.75; }

/* ══ RESPONSIVE GRID ══ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-social { display: none; }
  .hamburger { display: flex; }

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

  .service-row,
  .service-row.reverse { flex-direction: column; gap: 24px; }
  .service-img img { height: 240px; }

  .footer-inner { flex-direction: column; }
  .footer-cols { gap: 30px; }

  .wa-float { bottom: 20px; right: 20px; width: 54px; height: 54px; font-size: 26px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ══ HERO BG EXTRAS ══ */
.hero-logo-wrap {
  display: inline-block;
  margin-bottom: 32px;
}
.hero-logo-wrap::after {
  content: '';
  display: block;
  width: 55%;
  height: 2px;
  background: var(--orange);
  margin: 12px auto 0;
  border-radius: 2px;
  opacity: 0.8;
}
#hero .hero-title {
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}
#hero .hero-sub {
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
/* Mobile: disable fixed attachment (perf) */
@media (max-width: 768px) {
  #hero {
    background-attachment: scroll;
    background-position: center center;
  }
}
