/* =====================================================
   GRÚAS NONGUÉN — CUSTOM PROFESSIONAL DESIGN
   Paleta: Azul marino profundo + Ámbar de emergencia
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Open+Sans:wght@300;400;600;700&display=swap');

/* ── Variables ─────────────────────────────────────── */
:root {
  --primary:    #1a2744;
  --primary-d:  #0d1520;
  --accent:     #f0a500;
  --accent-d:   #c8860a;
  --light:      #f4f6f9;
  --white:      #ffffff;
  --gray:       #6c757d;
  --transition: .3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  color: #2d2d2d;
  background: var(--primary-d);
  background-image: none;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--primary-d); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── NAVBAR ────────────────────────────────────────── */
#site-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13, 21, 32, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--accent);
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.navbar-brand-custom {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.navbar-logo {
  height: 44px;
  width: auto;
  filter: brightness(1.1);
}

.navbar-brand-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .04em;
  line-height: 1.1;
}

.navbar-brand-text span {
  display: block;
  font-size: .7rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.nav-links a i {
  font-size: 1rem;
  color: var(--accent);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(240, 165, 0, .15);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--primary-d) !important;
  padding: .5rem 1.25rem !important;
  font-weight: 700 !important;
  border-radius: 30px !important;
}

.nav-cta:hover {
  background: var(--accent-d) !important;
  color: var(--white) !important;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: .3rem .6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--primary-d);
    flex-direction: column;
    padding: 1rem;
    gap: .25rem;
    border-bottom: 2px solid var(--accent);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: .75rem 1rem; }
}

/* ── HERO SECTION ──────────────────────────────────── */
#home {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../../images/foto6.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13,21,32,.9) 0%,
    rgba(26,39,68,.82) 50%,
    rgba(13,21,32,.75) 100%
  );
  z-index: 1;
}

/* Stripe decorativa */
.hero-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-d) 0%, var(--accent) 50%, var(--primary-d) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 2rem 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(240,165,0,.18);
  border: 1px solid rgba(240,165,0,.5);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
}

.hero-badge i { font-size: .9rem; animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}

.hero-title span {
  color: var(--accent);
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  max-width: 600px;
  margin: 1.25rem auto 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--accent);
  color: var(--primary-d);
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(240,165,0,.4);
}

.btn-hero-primary:hover {
  background: var(--accent-d);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(240,165,0,.5);
  text-decoration: none;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: transparent;
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .85rem 2rem;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.5);
  text-decoration: none;
  transition: var(--transition);
}

.btn-hero-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
  color: var(--white);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Stats bar */
.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  background: rgba(13,21,32,.85);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(240,165,0,.3);
  display: flex;
  justify-content: center;
  gap: 0;
}

.hero-stat {
  padding: 1.2rem 3rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
}

.hero-stat:last-child { border-right: none; }

.hero-stat-number {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: .25rem;
}

@media (max-width: 768px) {
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { padding: .9rem 1.5rem; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); flex: 1 1 50%; }
  .hero-stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
}

/* ── SECTION COMMON ────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
}

/* ── SERVICIOS SECTION ─────────────────────────────── */
#Servicios {
  background: var(--light);
  padding: 6rem 0 5rem;
  margin: 0;
}

.servicios-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.servicios-header .section-title { color: var(--primary); }

.servicios-header p {
  color: var(--gray);
  font-size: 1rem;
  max-width: 520px;
  margin: .75rem auto 0;
}

/* Service Cards */
.service-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26,39,68,.15);
}

.service-card-top {
  background: linear-gradient(135deg, var(--primary) 0%, #253562 100%);
  padding: 2.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-icon-wrap {
  width: 80px;
  height: 80px;
  background: rgba(240,165,0,.15);
  border: 2px solid rgba(240,165,0,.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon-wrap img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.service-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .02em;
  margin-bottom: .25rem;
}

.service-number {
  font-family: 'Oswald', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.service-card-body {
  padding: 1.75rem 1.75rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body p {
  color: #555;
  font-size: .95rem;
  line-height: 1.75;
  flex: 1;
  margin: 0;
}

.service-accent-line {
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 1.25rem 0 0;
}

/* ── TRABAJOS SECTION ──────────────────────────────── */
#work {
  background: var(--primary);
  padding: 5.5rem 0;
  margin: 0;
}

.work-header {
  text-align: center;
  margin-bottom: 3rem;
}

.work-header .section-label { justify-content: center; }
.work-header .section-title { color: var(--white); }

/* Carousel custom */
.carousel-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 50px rgba(0,0,0,.5);
  margin-bottom: 2.5rem;
}

.carousel-wrapper .carousel-item img {
  height: 480px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .carousel-wrapper .carousel-item img { height: 260px; }
}

/* Custom carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(240,165,0,.9) !important;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1 !important;
}

.carousel-control-prev { left: 1rem; }
.carousel-control-next { right: 1rem; }

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

/* Photo grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13,21,32,0);
  transition: background .3s ease;
}

.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { background: rgba(240,165,0,.18); }

/* ── CONTACT SECTION ───────────────────────────────── */
#contact {
  background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 100%);
  padding: 6rem 0 5rem;
  margin: 0;
  position: relative;
  overflow: hidden;
}

/* Decorative diagonal */
#contact::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 60px solid rgba(240,165,0,.06);
  pointer-events: none;
}

#contact::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 80px solid rgba(240,165,0,.04);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.contact-inner .section-label { justify-content: center; }

.contact-inner .section-title {
  color: var(--white);
  margin-bottom: .75rem;
}

.contact-inner > p {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  margin-bottom: 3rem;
}

.contact-methods {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 2rem 2.5rem;
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  transition: var(--transition);
  text-decoration: none;
}

.contact-card:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--accent);
  transform: translateY(-4px);
  text-decoration: none;
}

.contact-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.6rem;
}

.contact-card-icon.wsp {
  background: rgba(37,211,102,.2);
  color: #25d366;
}

.contact-card-icon.phone {
  background: rgba(240,165,0,.2);
  color: var(--accent);
}

.contact-card-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: .3rem;
}

.contact-card-value {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
}

.contact-card-desc {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-top: .25rem;
}

.contact-card.wsp-card:hover .contact-card-icon.wsp {
  background: rgba(37,211,102,.35);
}

.contact-card.phone-card:hover .contact-card-icon.phone {
  background: rgba(240,165,0,.35);
}

/* ── FOOTER ────────────────────────────────────────── */
#site-footer {
  background: var(--primary-d);
  border-top: 1px solid rgba(240,165,0,.2);
  padding: 1.5rem 2rem;
  text-align: center;
  color: rgba(255,255,255,.35);
  font-size: .8rem;
}

/* ── SCROLL-TO-TOP ─────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--primary-d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(240,165,0,.4);
}

#scroll-top.visible { opacity: 1; pointer-events: auto; }
#scroll-top:hover { background: var(--accent-d); color: var(--white); transform: translateY(-3px); }

/* ── UTILITIES ─────────────────────────────────────── */
.container-custom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 576px) {
  .container-custom { padding: 0 1rem; }
  #Servicios { padding: 4rem 0 3rem; }
  #work { padding: 4rem 0; }
  #contact { padding: 4rem 0 3.5rem; }
  .contact-methods { flex-direction: column; align-items: center; }
  .contact-card { max-width: 100%; width: 100%; }
  .hero-stat { flex: 1 1 100%; border-right: none; }
}
