:root {
  --verde-primario: #0b3d2e;
  --verde-oscuro: #06231a;
  --dorado: #b7925a;
  --dorado-claro: #d0b184;
  --dorado-oscuro: #8e6b3d;
  --blanco: #ffffff;
  --gris-claro: #f4f4f4;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #000;
  color: var(--blanco);
}

/* Justificar texto de contenido */
p,
li {
  text-align: justify;
}


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

/* ====== NAVBAR ====== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: linear-gradient(
    to right,
    var(--verde-oscuro),
    var(--verde-primario)
  );
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* LOGO MÁS GRANDE */
.navbar-logo img {
  height: 88px;
  width: auto;
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar-brand span:first-child {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gris-claro);
}

.navbar-brand span:last-child {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dorado);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  font-weight: 500;
  color: var(--gris-claro);
  transition: color 0.2s ease-in-out;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--dorado);
  transition: width 0.2s ease-in-out;
}

.nav-links a:hover {
  color: var(--blanco);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--dorado);
  background: transparent;
  color: var(--dorado);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease-in-out, color 0.2s ease-in-out,
    transform 0.1s ease-in-out;
}

.nav-cta:hover {
  background: var(--dorado);
  color: var(--verde-oscuro);
  transform: translateY(-1px);
}


/* ===== DROPDOWN SERVICIOS ===== */

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

/* Botón que se ve como los <a> del menú */
.nav-dropdown-toggle {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: var(--gris-claro);
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;
}

/* Línea dorada bajo “Servicios” al hover (como los otros links) */
.nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--dorado);
  transition: width 0.2s ease-in-out;
}

.nav-dropdown-toggle:hover {
  color: var(--blanco);
}

.nav-dropdown-toggle:hover::after {
  width: 100%;
}

.nav-caret {
  font-size: 0.7rem;
}

/* Submenú base */
.nav-dropdown-menu {
  position: absolute;
  top: 150%;
  left: 0;
  min-width: 210px;
  background: var(--verde-oscuro);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  padding: 0.5rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease-out, visibility 0.18s ease-out,
    transform 0.18s ease-out;
  z-index: 150;
}

.nav-dropdown-menu a {
  font-size: 0.9rem;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  color: var(--gris-claro);
  text-align: left;
}

.nav-dropdown-menu a:hover {
  background: rgba(212, 175, 55, 0.18);
  color: var(--blanco);
}

/* Desktop: mostrar con hover */
@media (min-width: 769px) {
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* Mobile: usar clic (clase .open desde JS) */
@media (max-width: 768px) {
  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    border: none;
    padding-left: 1rem;
    margin-top: 0.25rem;

    opacity: 1;
    visibility: visible;
    transform: none;
    display: none; /* oculto por defecto en mobile */
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: flex;
  }
}


/* Hamburguesa (mobile) */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--blanco);
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ====== HERO CON VIDEO ====== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  width: 100%;
  margin-top: 80px; /* espacio para navbar */
  overflow: hidden;
  background: #000;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* más presencia del video */
  filter: grayscale(0.1);
}

/* OVERLAY MÁS SUAVE, MENOS SATURADO */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to right,
      rgba(6, 35, 26, 0.6),
      rgba(11, 61, 46, 0.35),
      rgba(0, 0, 0, 0.2)
    ),
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.18), transparent);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
  color: var(--blanco);
}

.hero-copy small {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--dorado);
  font-weight: 600;
}

.hero-copy h1 {
  margin-top: 0.7rem;
  font-size: clamp(1.8rem, 2.5vw + 1rem, 2.6rem);
  line-height: 1.1;
  font-weight: 700;
  max-width: 26rem;
}

.hero-copy h1 span {
  color: var(--dorado);
}

.hero-copy p {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  max-width: 28rem;
  color: #e4e4e4;
}

.hero-badges {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-badge {
  font-size: 0.78rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(228, 228, 228, 0.4);
  background: rgba(6, 35, 26, 0.65);
  backdrop-filter: blur(4px);
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: var(--dorado);
  color: var(--verde-oscuro);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s ease-in-out, box-shadow 0.12s ease-in-out;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(228, 228, 228, 0.7);
  background: transparent;
  color: var(--blanco);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  backdrop-filter: blur(3px);
  transition: background 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: var(--dorado);
}

.hero-metrics {
  display: none;
}

.hero-card {
  justify-self: center;
  width: 100%;
  max-width: 360px;
  padding: 1.4rem 1.4rem 1.6rem;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.4);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.hero-card-logo {
  height: 60px;
  width: auto;
}

.hero-card-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #f1f1f1;
}

.hero-card-subtitle {
  font-size: 0.7rem;
  color: var(--dorado);
}

.hero-card-body {
  font-size: 0.8rem;
  color: #e7e7e7;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 0.8rem;
}

.hero-card-body ul {
  margin-top: 0.6rem;
  list-style: none;
}

.hero-card-body li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.hero-card-body li::before {
  content: "•";
  color: var(--dorado);
  margin-top: 0.05rem;
}

.hero-card-footer {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #cfcfcf;
}

.hero-card-footer strong {
  color: var(--dorado);
}

/* ====== FOOTER PROFESIONAL ====== */

.footer {
  background: radial-gradient(circle at top, #0f3f30 0, #031612 55%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gris-claro);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.7rem 1.25rem 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
  align-items: flex-start;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* LOGO GRANDE EN FOOTER */
.footer-brand-logo img {
  height: 108px;
  width: auto;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-brand-text span:nth-child(1) {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dorado);
}

.footer-brand-text span:nth-child(2) {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blanco);
}

.footer-brand-desc {
  font-size: 0.85rem;
  max-width: 19rem;
  color: #dcdcdc;
}

.footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gris-claro);
  margin-bottom: 0.8rem;
}

.footer-shortcuts ul,
.footer-contact ul {
  list-style: none;
  font-size: 0.85rem;
}

.footer-shortcuts li,
.footer-contact li {
  margin-bottom: 0.45rem;
}

.footer-shortcuts a {
  color: var(--gris-claro);
  transition: color 0.2s ease-in-out;
}

.footer-shortcuts a:hover {
  color: var(--dorado);
}

.footer-contact li strong {
  color: var(--blanco);
  font-weight: 600;
}

.footer-contact li span {
  display: block;
}

.footer-extra-block {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-payments img {
  max-width: 260px;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(183,146,90,0.26);
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
  padding: 0.45rem 0.6rem;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blanco);
  transition: background 0.2s ease-in-out, transform 0.1s ease-in-out,
    border-color 0.2s ease-in-out;
}

.social-icon:hover {
  background: var(--dorado);
  color: #031612;
  border-color: var(--dorado);
  transform: translateY(-1px);
}

.footer-bottom {
  margin-top: 2.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: #c8c8c8;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-legal a {
  color: #e2e2e2;
  position: relative;
  padding-bottom: 2px;
}

.footer-legal a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--dorado);
  transition: width 0.2s ease-in-out;
}

.footer-legal a:hover::after {
  width: 100%;
}

/* ====== RESPONSIVE ====== */

@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: 1fr;
    align-items: flex-start;
    padding-top: 3rem;
  }

  .hero-card {
    justify-self: flex-start;
    max-width: 420px;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }
}

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

  /* MENÚ MÓVIL SOLO CUANDO SE HACE CLIC */
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--verde-oscuro);
    padding: 0.85rem 1.25rem 1rem;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 0.3rem;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    margin-top: 76px;
  }

  .hero-copy h1 {
    font-size: 1.8rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-brand-desc {
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 560px;
  }

  .hero-card {
    margin-top: 0.5rem;
  }
}

@media (max-width: 768px) {
  /* ...lo que ya tengas aquí... */

  /* Ocultar la tarjeta del hero en móvil */
  .hero-card {
    display: none;
  }
}


/* ====== PÁGINA DE SERVICIOS ====== */

/* ===== HERO SERVICIOS ===== */
.hero.hero-servicios {
  position: relative;
  height: 50vh;
  min-height: 360px;
  margin-top: 80px; /* mismo offset que tu hero principal */
  overflow: hidden;

  /* OJO: desde assets/css/ hay que subir a ../img */
  background-image: url("../img/hero-servicios.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Overlay específico para este hero */
.hero.hero-servicios .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to right,
      rgba(6, 35, 26, 0.7),
      rgba(11, 61, 46, 0.45),
      rgba(0, 0, 0, 0.3)
    );
  z-index: 1;
}

/* Nos aseguramos de que el contenido esté encima de la imagen+overlay */
.hero.hero-servicios .hero-content {
  position: relative;
  z-index: 2;
}



/* Sección de servicios */
.services-section {
  background: #050b09;
  padding: 3rem 1.25rem 4rem;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.services-header {
  max-width: 640px;
  margin-bottom: 2rem;
}

.services-header small {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--dorado);
  font-weight: 600;
}

.services-header h2 {
  margin-top: 0.6rem;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--blanco);
}

.services-header p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: #e3e3e3;
}

/* Grid de servicios */
.services-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card {
  background: rgba(0, 0, 0, 0.65);
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 1.6rem 1.4rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.service-card-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--blanco);
}

.service-card-text {
  font-size: 0.9rem;
  color: #dedede;
  margin-bottom: 0.9rem;
}

.service-card ul {
  list-style: none;
  font-size: 0.85rem;
  color: #e7e7e7;
}

.service-card ul li {
  margin-bottom: 0.35rem;
  position: relative;
  padding-left: 1rem;
}

.service-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--dorado);
}


/* ===== ANIMACIONES GENERALES ===== */

@keyframes fadeUpSoft {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== QUIÉNES SOMOS ===== */

.about-section {
  position: relative;
  background: radial-gradient(circle at top left, #0f3f30 0, #050b09 55%);
  padding: 3.2rem 1.25rem 3.5rem;
  overflow: hidden;
}

/* detalles decorativos de fondo */
.about-section::before,
.about-section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.2;
  z-index: 0;
}

.about-section::before {
  width: 220px;
  height: 220px;
  background: rgba(212, 175, 55, 0.5);
  top: -80px;
  right: 5%;
}

.about-section::after {
  width: 200px;
  height: 200px;
  background: rgba(11, 61, 46, 0.9);
  bottom: -80px;
  left: -40px;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: fadeUpSoft 0.75s ease-out both;
}

.about-header small {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--dorado);
  font-weight: 600;
}

.about-header h2 {
  margin-top: 0.6rem;
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--blanco);
  max-width: 32rem;
}

.about-header p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: #e3e3e3;
  max-width: 40rem;
}

.about-grid {
  display: grid;
  gap: 1.6rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.about-block {
  background: radial-gradient(circle at top left, #0d3326 0, #020404 70%);
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 1.4rem 1.3rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out,
    border-color 0.18s ease-out, background 0.18s ease-out;
  animation: fadeUpSoft 0.75s ease-out both;
}

/* pequeño highlight lateral */
.about-block::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(212, 175, 55, 0.5),
    transparent 30%,
    transparent 70%,
    rgba(212, 175, 55, 0.3)
  );
  opacity: 0;
  transition: opacity 0.18s ease-out;
  pointer-events: none;
}

.about-block:nth-child(1) {
  animation-delay: 0.05s;
}
.about-block:nth-child(2) {
  animation-delay: 0.15s;
}
.about-block:nth-child(3) {
  animation-delay: 0.25s;
}

.about-block h3 {
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
  color: var(--dorado);
}

.about-block p {
  font-size: 0.9rem;
  color: #e2e2e2;
}

/* efecto hover */
.about-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.8);
  border-color: rgba(212, 175, 55, 0.7);
  background: radial-gradient(circle at top left, #135640 0, #020404 70%);
}

.about-block:hover::before {
  opacity: 0.35;
}

.about-values {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  animation: fadeUpSoft 0.8s ease-out both;
  animation-delay: 0.3s;
}

.about-values-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gris-claro);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about-tag {
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(6, 35, 26, 0.7);
  backdrop-filter: blur(4px);
  transition: transform 0.16s ease-out, background 0.16s ease-out,
    border-color 0.16s ease-out;
}

.about-tag:hover {
  transform: translateY(-2px);
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--dorado);
}

/* ===== POR QUÉ ELEGIRNOS ===== */

.why-us-section {
  position: relative;
  background: radial-gradient(circle at top, #0b3d2e 0, #020705 60%);
  padding: 3.2rem 1.25rem 4rem;
  overflow: hidden;
}

.why-us-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.03),
    transparent,
    rgba(255, 255, 255, 0.02)
  );
  opacity: 0.7;
  pointer-events: none;
}

.why-us-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: fadeUpSoft 0.75s ease-out both;
}

.why-us-header small {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--dorado);
  font-weight: 600;
}

.why-us-header h2 {
  margin-top: 0.6rem;
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--blanco);
  max-width: 34rem;
}

.why-us-header p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: #e3e3e3;
  max-width: 40rem;
}

.why-us-grid {
  display: grid;
  gap: 1.6rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.why-card {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.4rem 1.3rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out,
    border-color 0.18s ease-out, background 0.18s ease-out;
  position: relative;
  overflow: hidden;
  animation: fadeUpSoft 0.8s ease-out both;
}

/* ligero resplandor lateral */
.why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.4), transparent 55%);
  opacity: 0;
  transition: opacity 0.18s ease-out;
  pointer-events: none;
}

.why-card:nth-child(1) { animation-delay: 0.05s; }
.why-card:nth-child(2) { animation-delay: 0.1s; }
.why-card:nth-child(3) { animation-delay: 0.15s; }
.why-card:nth-child(4) { animation-delay: 0.2s; }
.why-card:nth-child(5) { animation-delay: 0.25s; }

.why-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
  color: var(--dorado);
}

.why-card p {
  font-size: 0.9rem;
  color: #e5e5e5;
}

/* hover con ligera elevación y brillo */
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.85);
  border-color: rgba(212, 175, 55, 0.7);
  background: radial-gradient(circle at top left, #0d3326 0, #020404 70%);
}

.why-card:hover::before {
  opacity: 0.4;
}

/* Responsive ajustes */

@media (max-width: 768px) {
  .about-section,
  .why-us-section {
    padding: 2.5rem 1.25rem 3rem;
  }

  .about-header h2,
  .why-us-header h2 {
    font-size: 1.5rem;
  }
}



/* ===== TESTIMONIOS ===== */

.testimonials-section {
  background: #050b09;
  padding: 3rem 1.25rem 3.5rem;
}

.testimonials-container {
  max-width: 900px;
  margin: 0 auto;
}

.testimonials-header {
  text-align: center;
}

.testimonials-header small {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--dorado);
  font-weight: 600;
}

.testimonials-header h2 {
  margin-top: 0.6rem;
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--blanco);
}

.testimonials-header p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: #e3e3e3;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-slider {
  margin-top: 2.2rem;
  position: relative;
  min-height: 230px;
}

.testimonial-card {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: none;
}

.testimonial-card.active {
  display: block;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 0.15rem;
  margin-bottom: 0.9rem;
}

.testimonial-stars .star {
  color: var(--dorado);
  font-size: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: #f0f0f0;
  margin-bottom: 1rem;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.85rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--dorado);
}

.testimonial-role {
  color: #d0d0d0;
}

/* Flechas abajo, centradas */

.testimonials-nav {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.testimonial-arrow {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--blanco);
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease-out, color 0.18s ease-out,
    border-color 0.18s ease-out, transform 0.12s ease-out;
}

.testimonial-arrow:hover {
  background: var(--dorado);
  color: #031612;
  border-color: var(--dorado);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 2.5rem 1.25rem 3rem;
  }

  .testimonials-slider {
    min-height: 260px;
  }

  .testimonial-card {
    padding: 1.6rem 1.2rem 1.4rem;
  }
}



/* ===== SERVICIOS (CARDS) ===== */

.services-cards {
  background: #020705;
  padding: 3rem 1.25rem 4rem;
}

.services-cards-container {
  max-width: 1200px;
  margin: 0 auto;
}

.services-cards-header small {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--dorado);
  font-weight: 600;
}

.services-cards-header h2 {
  margin-top: 0.6rem;
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--blanco);
  max-width: 32rem;
}

.services-cards-header p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: #e3e3e3;
  max-width: 40rem;
}

/* Grid de cards */
.services-cards-grid {
  display: grid;
  gap: 1.8rem;
  margin-top: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card {
  background: radial-gradient(circle at top left, #0d3326 0, #020404 70%);
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out,
    border-color 0.18s ease-out, background 0.18s ease-out;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.85);
  border-color: rgba(212, 175, 55, 0.8);
  background: radial-gradient(circle at top left, #135640 0, #020404 70%);
}

.service-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  filter: grayscale(0.1) contrast(1.05);
  transition: transform 0.4s ease-out, filter 0.4s ease-out;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.1);
}

.service-card-body {
  padding: 1.4rem 1.3rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* Título elegante */
.service-card-title span {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dorado);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.7);
}

.service-card-snippet {
  font-size: 0.9rem;
  color: #e3e3e3;
}

.service-card-actions {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Botón “Saber más” */
.btn-service-more {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: var(--dorado);
  color: var(--verde-oscuro);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out,
    background 0.16s ease-out;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.btn-service-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.8);
  background: var(--dorado-claro);
}

/* Botón WhatsApp */
.btn-service-whatsapp {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 211, 102, 0.8);
  background: transparent;
  color: #25d366;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.16s ease-out, color 0.16s ease-out,
    border-color 0.16s ease-out, transform 0.16s ease-out;
}

.btn-service-whatsapp::before {
  content: "";
  font-family: "Font Awesome 5 Brands", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-style: normal;
  font-weight: 400;
}

/* Si no usas Font Awesome, puedes comentar el ::before y dejar solo el texto */

.btn-service-whatsapp:hover {
  background: rgba(37, 211, 102, 0.15);
  color: #b9ffd1;
  border-color: #25d366;
  transform: translateY(-2px);
}

/* ===== MODALES DE SERVICIOS ===== */

.service-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1100;
}

.service-modal.open {
  display: flex;
}

.service-modal-dialog {
  background: #050b09;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.7);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.8rem 1.5rem 1.6rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  position: relative;
}

.service-modal h3 {
  font-size: 1.2rem;
  color: var(--dorado);
  margin-bottom: 0.6rem;
}

.service-modal p {
  font-size: 0.95rem;
  color: #f0f0f0;
  margin-bottom: 0.8rem;
}

.service-modal ul {
  margin-left: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #e2e2e2;
}

.service-modal ul li {
  margin-bottom: 0.4rem;
}

/* Botón cerrar modal */
.service-modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  background: transparent;
  border: none;
  color: #e0e0e0;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.16s ease-out, transform 0.16s ease-out;
}

.service-modal-close:hover {
  color: var(--dorado);
  transform: scale(1.05);
}

/* Botón WA dentro del modal */
.modal-whatsapp {
  margin-top: 0.3rem;
}

/* Responsive */
@media (max-width: 768px) {
  .services-cards {
    padding: 2.5rem 1.25rem 3rem;
  }

  .service-modal-dialog {
    max-width: 100%;
    padding: 1.5rem 1.2rem 1.4rem;
  }
}



/* ===== HERO SERVICIOS CONTABLES ===== */
.hero.hero-servicios-contables {
  position: relative;
  height: 50vh;
  min-height: 360px;
  margin-top: 80px;
  overflow: hidden;

  /* IMPORTANTE:
     - style.css está en assets/css/
     - la imagen está en assets/img/
     - por eso subimos con ../ y usamos .svg
  */
  background-image: url("../img/hero-servicios-contables.svg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Overlay específico para este hero */
.hero.hero-servicios-contables .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to right,
      rgba(6, 35, 26, 0.8),
      rgba(5, 32, 25, 0.5),
      rgba(0, 0, 0, 0.35)
    );
  z-index: 1;
}

/* Contenido por encima de la imagen */
.hero.hero-servicios-contables .hero-content {
  position: relative;
  z-index: 2;
}


/* ===== HERO CONTACTO ===== */
.hero.hero-contacto {
  position: relative;
  height: 50vh;
  min-height: 360px;
  margin-top: 80px; /* mismo espacio que tu navbar fija */
  overflow: hidden;

  /* Desde assets/css a assets/img => ../img */
  background-image: url("assets/img/hero-contacto.svg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Overlay específico para contacto (ligeramente más suave) */
.hero.hero-contacto .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to right,
      rgba(6, 35, 26, 0.78),
      rgba(11, 61, 46, 0.5),
      rgba(0, 0, 0, 0.35)
    );
  z-index: 1;
}

/* Contenido por encima de la imagen */
.hero.hero-contacto .hero-content {
  position: relative;
  z-index: 2;
}



/* ===== CONTACTO ===== */

.contact-section {
  background: #020705;
  padding: 3rem 1.25rem 4rem;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Encabezado */

.contact-header small {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--dorado);
  font-weight: 600;
}

.contact-header h2 {
  margin-top: 0.6rem;
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--blanco);
  max-width: 32rem;
}

.contact-header p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: #e3e3e3;
  max-width: 40rem;
  text-align: justify;
}

/* Grid izquierda/derecha */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.2rem;
  margin-top: 2.3rem;
  align-items: flex-start;
}

/* Bloque izquierdo: datos + formulario */

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Datos de contacto */

.contact-details {
  background: radial-gradient(circle at top left, #0d3326 0, #020404 70%);
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 1.3rem 1.3rem 1.1rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.8);
}

.contact-details h3 {
  font-size: 1rem;
  color: var(--dorado);
  margin-bottom: 0.7rem;
}

.contact-details ul {
  list-style: none;
  font-size: 0.9rem;
  color: #e5e5e5;
}

.contact-details li {
  margin-bottom: 0.5rem;
}

.contact-details strong {
  display: block;
  font-weight: 600;
  color: var(--blanco);
  margin-bottom: 0.1rem;
}

.contact-details a {
  color: var(--gris-claro);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

.contact-details a:hover {
  color: var(--dorado);
}

/* Formulario */

.contact-form {
  background: radial-gradient(circle at top, #0c3729 0, #020404 65%);
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 1.5rem 1.4rem 1.4rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.85);
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-form label {
  font-size: 0.82rem;
  color: var(--gris-claro);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.55);
  color: var(--blanco);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.16s ease-in-out,
    box-shadow 0.16s ease-in-out,
    background 0.16s ease-in-out;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(228, 228, 228, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--dorado);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.5);
  background: rgba(0, 0, 0, 0.7);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Reutiliza .btn-primary y .btn-secondary existentes */
/* Si quieres ajustar solo aquí, puedes añadir algo leve: */

.contact-actions .btn-primary {
  font-size: 0.9rem;
}

.contact-actions .btn-secondary {
  font-size: 0.9rem;
}

/* Bloque derecho: mapa */

.contact-right {
  width: 100%;
}

.contact-map-wrapper {
  background: radial-gradient(circle at top right, #0f3f30 0, #020404 70%);
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 1.5rem 1.4rem 1.4rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.9);
}

.contact-map-wrapper h3 {
  font-size: 1rem;
  color: var(--dorado);
  margin-bottom: 0.4rem;
}

.contact-map-wrapper p {
  font-size: 0.9rem;
  color: #e3e3e3;
  margin-bottom: 0.7rem;
  text-align: justify;
}

.contact-map {
  border-radius: 14px;
  overflow: hidden;
  height: 260px;
  border: 1px solid rgba(0, 0, 0, 0.6);
}

/* ===== CONTACTO RESPONSIVE ===== */

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

  .contact-map {
    height: 240px;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 2.5rem 1.25rem 3rem;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .contact-map {
    height: 220px;
  }
}


/* ===== FLOATING WHATSAPP ===== */
.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.82rem 1.08rem 0.82rem 0.82rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #128c4f, #25d366 58%, #67e7a2);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.floating-whatsapp::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid rgba(37, 211, 102, 0.28);
  animation: whatsappPulse 2.4s infinite;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.48);
  filter: saturate(1.03);
}

.floating-whatsapp-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.floating-whatsapp-content {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.floating-whatsapp-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.floating-whatsapp-text {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.floating-whatsapp-number {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.92;
}

@keyframes whatsappPulse {
  0% { transform: scale(0.98); opacity: 0.8; }
  70% { transform: scale(1.04); opacity: 0; }
  100% { transform: scale(1.04); opacity: 0; }
}

@media (max-width: 640px) {
  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    padding: 0.78rem;
  }

  .floating-whatsapp::after,
  .floating-whatsapp-label,
  .floating-whatsapp-number {
    display: none;
  }

  .floating-whatsapp-icon {
    width: 42px;
    height: 42px;
  }

  .floating-whatsapp-text {
    font-size: 0.9rem;
  }
}
