/* ═══════════════════════════════════════════════════
   Servicios Integrales DAR — Hoja de estilos principal
   Desarrollado por LARR SpA · larr.cl
═══════════════════════════════════════════════════ */

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

:root {
  --navy: #0A1628;
  --blue: #1B3D8F;
  --gold: #F5C842;
  --gold-dark: #D4A820;
  --white: #F8F9FC;
  --gray: #8A9BB5;
  --light: #EFF2F8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 5%;
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245,200,66,0.15);
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.logo-house {
  width: 38px; height: 38px;
  background: var(--blue);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.logo-house svg { width: 26px; height: 26px; fill: var(--gold); }
.nav-brand { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 2px; }
.nav-brand span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gray);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: var(--gold); color: var(--navy);
  padding: 0.5rem 1.3rem; border-radius: 4px;
  font-weight: 600; font-size: 0.82rem; letter-spacing: 1px;
  text-transform: uppercase; text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--gold-dark); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  padding: 80px 5% 0; gap: 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(27,61,143,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    linear-gradient(var(--white) 1px, transparent 1px),
    linear-gradient(90deg, var(--white) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(245,200,66,0.12); border: 1px solid rgba(245,200,66,0.3);
  padding: 0.35rem 0.9rem; border-radius: 20px;
  font-family: 'Space Mono', monospace; font-size: 0.7rem;
  color: var(--gold); letter-spacing: 1px; margin-bottom: 1.5rem;
}
.hero-tag::before { content: '◆'; font-size: 0.5rem; }
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 0.95; letter-spacing: 2px;
  margin-bottom: 1.5rem;
}
.hero h1 .line-accent { color: var(--gold); display: block; }
.hero h1 .line-dim { color: rgba(248,249,252,0.55); }
.hero-desc {
  font-size: 1.05rem; line-height: 1.7;
  color: rgba(248,249,252,0.7);
  max-width: 440px; margin-bottom: 2.5rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold); color: var(--navy);
  padding: 0.9rem 2rem; border-radius: 6px;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 1px;
  text-transform: uppercase; text-decoration: none;
  transition: all 0.25s; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(245,200,66,0.3); }
.btn-secondary {
  background: transparent; color: var(--white);
  padding: 0.9rem 2rem; border-radius: 6px;
  font-weight: 600; font-size: 0.9rem; letter-spacing: 1px;
  text-transform: uppercase; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.25s; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.hero-stats {
  display: flex; gap: 3rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08);
}
.stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--gray); letter-spacing: 1px; text-transform: uppercase; margin-top: 0.2rem; }
.hero-visual {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem;
}
.photo-card {
  border-radius: 10px; overflow: hidden;
  aspect-ratio: 4/3; position: relative;
  border: 1px solid rgba(255,255,255,0.07);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card:first-child { grid-column: 1 / -1; aspect-ratio: 16/7; }
.photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.5) 0%, transparent 60%);
}
.photo-label {
  position: absolute; bottom: 0.7rem; left: 0.8rem;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--white);
  background: rgba(10,22,40,0.6); backdrop-filter: blur(4px);
  padding: 0.25rem 0.6rem; border-radius: 3px;
  border-left: 2px solid var(--gold);
}

/* ── SERVICIOS ── */
.services {
  padding: 6rem 5%;
  background: linear-gradient(to bottom, var(--navy), #0D1E35);
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow {
  font-family: 'Space Mono', monospace; font-size: 0.7rem;
  color: var(--gold); letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem); letter-spacing: 2px;
}
.section-title span { color: var(--gold); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 2rem;
  transition: all 0.3s; cursor: default;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 0; background: var(--gold);
  transition: height 0.3s;
}
.service-card:hover { background: rgba(27,61,143,0.25); border-color: rgba(245,200,66,0.2); transform: translateY(-4px); }
.service-card:hover::before { height: 100%; }
.service-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(245,200,66,0.1); border: 1px solid rgba(245,200,66,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.2rem;
}
.service-card h3 {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem;
  letter-spacing: 1.5px; margin-bottom: 0.6rem; color: var(--white);
}
.service-card p { font-size: 0.88rem; line-height: 1.6; color: var(--gray); }

/* ── PORTFOLIO ── */
.portfolio { padding: 6rem 5%; background: #0A1628; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 3rem;
}
.port-item { border-radius: 10px; overflow: hidden; position: relative; cursor: pointer; }
.port-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.port-item:hover img { transform: scale(1.04); }
.port-item:nth-child(1) { grid-column: 1 / 3; height: 320px; }
.port-item:nth-child(2) { height: 320px; }
.port-item:nth-child(3), .port-item:nth-child(4), .port-item:nth-child(5) { height: 240px; }
.port-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.1) 50%, transparent 100%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: flex-end; padding: 1.2rem;
}
.port-item:hover .port-overlay { opacity: 1; }
.port-tag {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold);
  border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}

/* ── POR QUÉ NOSOTROS ── */
.why {
  padding: 6rem 5%;
  background: linear-gradient(135deg, #0D1E35 0%, #0A1628 100%);
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.why-visual { position: relative; }
.why-img { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.07); }
.why-img img { width: 100%; display: block; }
.why-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--gold); color: var(--navy);
  padding: 1.5rem; border-radius: 12px;
  text-align: center; box-shadow: 0 8px 30px rgba(245,200,66,0.4);
}
.why-badge-num { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; line-height: 1; }
.why-badge-text { font-size: 0.7rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 0.2rem; }
.why-list { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-check {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(245,200,66,0.15); border: 1px solid rgba(245,200,66,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 0.8rem; flex-shrink: 0; margin-top: 2px;
}
.why-item-text strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.why-item-text span { font-size: 0.83rem; color: var(--gray); line-height: 1.5; }

/* ── FAQ ── */
.faq { padding: 5rem 5%; background: #0D1E35; }
.faq-list { max-width: 760px; margin: 2.5rem auto 0; display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 1.25rem 1.5rem; cursor: pointer;
}
.faq-item summary {
  font-weight: 600; font-size: 1rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-icon { color: var(--gold); font-size: 1.3rem; flex-shrink: 0; }
.faq-item p {
  margin-top: 0.8rem; font-size: 0.9rem;
  color: var(--gray); line-height: 1.7;
}

/* ── CONTACTO ── */
.contact {
  padding: 6rem 5%;
  background: var(--blue);
  position: relative; overflow: hidden;
}
.contact::before {
  content: 'DAR';
  position: absolute; right: -2%; bottom: -8%;
  font-family: 'Bebas Neue', sans-serif; font-size: 22rem;
  color: rgba(255,255,255,0.04); pointer-events: none; line-height: 1;
  letter-spacing: 10px;
}
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
  align-items: center; position: relative; z-index: 2;
}
.contact h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: 2px; }
.contact h2 span { color: var(--gold); }
.contact-desc { font-size: 1rem; color: rgba(255,255,255,0.75); margin-top: 1rem; line-height: 1.7; }
.contact-methods { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-row {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,0.08); border-radius: 8px;
  padding: 1rem 1.2rem;
}
.contact-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-info strong { display: block; font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.contact-info a, .contact-info span { font-size: 0.95rem; font-weight: 500; color: var(--white); text-decoration: none; }
.contact-info a:hover { color: var(--gold); }
.contact-form { background: rgba(255,255,255,0.06); border-radius: 12px; padding: 2rem; border: 1px solid rgba(255,255,255,0.1); }
.contact-form h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: 1.5px; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 0.4rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 6px;
  padding: 0.75rem 1rem; color: var(--white);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  outline: none; transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group select option { background: var(--navy); }
.form-submit {
  width: 100%; background: var(--gold); color: var(--navy);
  border: none; padding: 0.95rem; border-radius: 6px;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.9rem;
  letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer;
  transition: all 0.25s; margin-top: 0.5rem;
}
.form-submit:hover { background: var(--gold-dark); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  background: #060E1A;
  padding: 2rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap; gap: 1rem;
}
.footer-brand { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: 2px; }
.footer-brand span { color: var(--gold); }
footer p { font-size: 0.78rem; color: var(--gray); }
.footer-ig { display: flex; align-items: center; gap: 0.5rem; color: var(--gray); font-size: 0.82rem; text-decoration: none; transition: color 0.2s; }
.footer-ig:hover { color: var(--gold); }
.footer-credit {
  background: #060E1A; text-align: center;
  padding: 0.75rem 5%; border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-credit p { font-size: 0.72rem; color: #4A5A72; }
.footer-credit a { color: #8A9BB5; text-decoration: none; transition: color 0.2s; }
.footer-credit a:hover { color: var(--gold); }

/* ── WHATSAPP FLOTANTE ── */
.wa-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
  background: #25D366; color: white; border-radius: 50%;
  width: 58px; height: 58px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4); text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.55); }

/* ── ANIMACIONES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-tag    { animation: fadeUp 0.6s ease both; }
.hero h1     { animation: fadeUp 0.6s 0.15s ease both; }
.hero-desc   { animation: fadeUp 0.6s 0.25s ease both; }
.hero-btns   { animation: fadeUp 0.6s 0.35s ease both; }
.hero-stats  { animation: fadeUp 0.6s 0.45s ease both; }
.hero-visual { animation: fadeUp 0.8s 0.3s ease both; }


/* ── HONEYPOT — invisible para humanos ── */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; }
  .hero-visual { display: none; }
  .why { grid-template-columns: 1fr; }
  .why-visual { display: none; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .port-item:nth-child(1) { grid-column: 1 / -1; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .port-item:nth-child(1) { grid-column: 1; height: 220px; }
  .hero-stats { gap: 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
}
