:root {
  --fondo: #080a0d;
  --superficie: #171a1f;
  --superficie-clara: #23272f;

  --azul-acento: #263e5d;
  --azul-suave: #98c1d9;
  --dorado: #c9a227;

  --blanco: #f8fafc;
  --gris: #cbd5e1;
  --gris-oscuro: #94a3b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: var(--fondo);
  color: var(--blanco);
}

a {
  text-decoration: none;
  color: inherit;
}

.header {
  width: 100%;
  padding: 24px 8%;

  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;

  background: rgba(13, 15, 19, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--blanco);
}

.logo span {
  color: var(--azul-suave);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--gris);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--azul-suave);
}


.btn-nav {
  background: var(--azul-acento);

  color: white;

  padding: 16px 36px;

  border-radius: 9px;

  border: 1px solid var(--azul-acento);

  font-weight: 600;

  transition: 0.3s ease;
}


.btn-nav:hover,
.btn-primary:hover {
  background: var(--azul-suave);
  color: var(--fondo);
}

.btn-nav {
  background: #1b2f4a;
  border: 1px solid #2b4568;
}
.btn-nav:hover {
  background: #263e5d;
}


.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 0 8%;

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image: url("../img/hero-bg.jpg");
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;

    filter: grayscale(100%);

    z-index: 0;
}


.hero-overlay {
    position: absolute;
    inset: 0;

    background: rgba(13, 15, 19, 0.72);

    z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.tag {
  color: var(--azul-suave);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  max-width: 650px;
  margin-bottom: 25px;
  color: var(--blanco);
}

.description {
  color: var(--gris);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 35px auto;
  text-align: center;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  width: 100%;
}

html {
  scroll-behavior: smooth;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 240px;
  height: 60px;

  border-radius: 9px;

  font-size: 1.1rem;
  font-weight: 600;
}

.btn-primary {
  background: var(--azul-acento);

  border: 1px solid var(--azul-acento);

  color: white;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--azul-suave);
  color: var(--azul-suave);
}


.btn-secondary:hover {
  background: var(--azul-suave);
  color: var(--fondo);
}





/* =========================
   QUIENES SOMOS
========================= */

.about {
    background: #ffffff;
    padding: 120px 8%;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.about-tag {
    color: var(--azul-acento);

    font-size: .85rem;
    letter-spacing: 3px;
    font-weight: 600;
}

.about-left h2 {
    margin-top: 15px;

    color: #111827;

    font-size: 3rem;
    line-height: 1.2;
}

.about-right p {
    color: #4b5563;

    font-size: 1.1rem;
    line-height: 1.9;

    margin-bottom: 25px;
}

.about-right strong {
    color: var(--azul-acento);
}

/* =========================
   SERVICIOS
========================= */

.services {
  background: var(--fondo);
  padding: 120px 8%;
}

.services-header {
  max-width: 900px;
  margin-bottom: 60px;
}

.services-tag {
  color: var(--azul-suave);
  font-size: .85rem;
  letter-spacing: 3px;
  font-weight: 600;
}

.services-header h2 {
  margin-top: 15px;
  color: var(--blanco);
  font-size: 3rem;
  line-height: 1.2;
}

.services-header p {
  margin-top: 20px;
  color: var(--gris);
  font-size: 1.1rem;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.service-card {
  background: var(--superficie);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(152, 193, 217, 0.4);
}

.service-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  
}

.service-content {
  padding: 28px;
}

.service-content h3 {
  color: var(--blanco);
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.service-content p {
  color: var(--gris);
  line-height: 1.8;
  font-size: 0.98rem;
}

/* =========================
   REPRESENTACIÓN FISCAL
========================= */

.fiscal {
  background: #ffffff;
  color: #111827;
  padding: 120px 8%;
}

.fiscal-container {
  max-width: 1300px;
  margin: 0 auto;
}

.section-tag-dark {
  color: var(--azul-acento);
  font-size: .85rem;
  letter-spacing: 3px;
  font-weight: 700;
}

.fiscal-header h2 {
  margin-top: 15px;
  font-size: 3rem;
  line-height: 1.2;
  max-width: 850px;
  color: #111827;
}

.fiscal-header p {
  margin-top: 20px;
  max-width: 850px;
  color: #4b5563;
  font-size: 1.1rem;
  line-height: 1.8;
}

.fiscal-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.fiscal-card {
  background: #f8fafc;
  padding: 30px;
  border-left: 4px solid var(--azul-acento);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

.fiscal-card h3 {
  color: #111827;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.fiscal-card p {
  color: #4b5563;
  line-height: 1.7;
}


/* =========================
   ÁREAS COMPLEMENTARIAS
========================= */

.legal-areas {
  background: var(--fondo);
  padding: 120px 8%;
}

.legal-areas-container {
  max-width: 1300px;
  margin: 0 auto;
}

.section-tag-light {
  color: var(--azul-suave);
  font-size: .85rem;
  letter-spacing: 3px;
  font-weight: 700;
}

.legal-areas-header h2 {
  margin-top: 15px;
  color: var(--blanco);
  font-size: 3rem;
  line-height: 1.2;
  max-width: 850px;
}

.legal-areas-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.legal-area-card {
  background: var(--superficie);
  padding: 35px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-area-card h3 {
  color: var(--blanco);
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.legal-area-card p {
  color: var(--gris);
  line-height: 1.8;
  margin-bottom: 15px;
}



/* =========================
  contacto
========================= */
/* =========================
  CONTACTO
========================= */

.contact {
  position: relative;
  padding: 120px 8%;
  overflow: hidden;
  background: var(--fondo);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("../img/contact-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: grayscale(100%) brightness(0.45) contrast(1.15);
  z-index: 0;
}

.contact::after {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(8, 10, 13, 0.82);
  z-index: 1;
}

.contact-container {
  position: relative;
  z-index: 2;

  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.contact-tag {
  color: var(--azul-suave);
  font-size: .85rem;
  letter-spacing: 5px;
  font-weight: 800;
}

.contact h2 {
  margin-top: 18px;
  font-size: 3.4rem;
  color: white;
  line-height: 1.1;
}

.contact-description {
  max-width: 820px;
  margin: 28px auto 70px;
  color: var(--gris);
  line-height: 1.9;
  font-size: 1.1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
}

.contact-card {
  position: relative;
  background: rgba(23, 26, 31, 0.78);
  padding: 55px 35px;
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: .3s ease;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 35px;
  left: 0;
  width: 5px;
  height: 70px;
  background: var(--azul-suave);
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(152,193,217,.35);
}

.contact-card h3 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.6rem;
}

.contact-card a {
  display: block;
  margin-bottom: 14px;
  color: var(--gris);
  font-size: 1.05rem;
  transition: .3s;
}

.contact-card a:hover {
  color: var(--azul-suave);
}


/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links,
  .btn-nav {
    display: none;
  }

  .services-grid {
  grid-template-columns: 1fr;
}

.services-header h2 {
  font-size: 2rem;
}

  .hero {
    text-align: center;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 30px;
}

.about-left h2 {
    font-size: 2rem;
}

.fiscal-grid,
.legal-areas-grid {
  grid-template-columns: 1fr;
}

.fiscal-header h2,
.legal-areas-header h2 {
  font-size: 2rem;
}

.contact-grid {
    grid-template-columns: 1fr;
  }

  .contact h2 {
    font-size: 2.2rem;
  }

}

@media (max-width: 500px) {
  .header {
    padding: 18px 5%;
  }

  .hero {
    padding: 40px 5%;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .description {
    font-size: 1rem;
  }
}