:root {
  --blue-400: #60a5fa;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-950: #172554;
 
  --slate-900: #04091f; 
  --gray-600: #4b5563;
  --gray-200: #e5e7eb;

  --radius-xl: 1rem;
  --shadow-lg: 0 10px 25px rgba(0,0,0,.15);
  --shadow-xl: 0 25px 50px rgba(0,0,0,.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--slate-900);
}

/* ================= HERO ================= */
.hero-contabilidad {
  position: relative;
  padding: 6rem 0; /* py-24 */
  background: linear-gradient(
    135deg,
    #0f172a,
    #1e3a8a,
    #0f172a
  ); /* from-slate-900 via-blue-900 to-slate-900 */
}

/* === CONTENEDOR === */
.hero-container {
  max-width: 1280px; /* max-w-7xl */
  margin: 0 auto;
  padding: 0 1rem; /* px-4 */
  text-align: center;
}

@media (min-width: 640px) {
  .hero-container {
    padding: 0 1.5rem; /* sm:px-6 */
  }
}

@media (min-width: 1024px) {
  .hero-container {
    padding: 0 2rem; /* lg:px-8 */
  }
}

/* === CONTENIDO === */
.hero-content {
  opacity: 1;
  transform: none;
}

/* === ICONO === */
.hero-content i {
  font-size: 5rem; /* w-20 h-20 */
  color: #60a5fa; /* text-blue-400 */
  display: block;
  margin: 0 auto 1.5rem; /* mx-auto mb-6 */
}

/* === TÍTULO === */
.hero-content h1 {
  font-size: 3rem; /* text-5xl */
  font-weight: 700; /* font-bold */
  color: #ffffff;
  margin-bottom: 1.5rem; /* mb-6 */
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }
}

/* === DESCRIPCIÓN === */
.hero-content p {
  font-size: 1.25rem; /* text-xl */
  color: #dbeafe; /* text-blue-100 */
  max-width: 48rem; /* max-w-3xl */
  margin: 0 auto;
}

/* ================= ANIMACIONES ================= */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: .8s ease;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    to right,
    var(--slate-900),
    var(--blue-950),
    var(--slate-900)
  );
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
}

/* Container */
.nav-container {
  max-width: 1280px;
  margin: auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo img {
  height: 350px;
  margin-top: 30px;/* controla el tamaño */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* efecto bonito */
.logo img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

@media (max-width: 1024px) {
  .logo img {
    height: 10rem;
    transform: scale(1.5);
    pointer-events: none;
  }
}

/* Desktop links */
.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  position: relative;
  color: #e5e7eb;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--blue-400);
}

.nav-link.active {
  color: var(--blue-400);
}

/* Underline animation */
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--blue-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Mobile menu button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  transition: color 0.3s ease;
}

.menu-btn:hover {
  color: white
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown .arrow {
  font-size: 0.7rem;
  margin-left: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 250%;
  left: 200%;
  transform: translateX(-50%);
  background: #fff;
  min-width: 220px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
  opacity: 0;
  visibility: hidden;
  transform-origin: top;
  transition: all .25s ease;
  z-index: 1000;
}

.dropdown-menu a {
  text-decoration: none;
  display: block;
  padding: 12px 16px;
  color: #1e293b;
  font-size: 0.9rem;
  transition: background .2s, color .2s;
}

/* Preparar el enlace para la línea */
.dropdown-menu a {
  position: relative;
  padding-left: 26px; /* espacio para la línea */
}

/* Línea decorativa oculta */
.dropdown-menu a::before {
  content: "|";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: currentColor; /* mismo color del texto */
  opacity: 0;
  transition: opacity .2s ease;
}

/* Mostrar línea al pasar el mouse */
.dropdown-menu a:hover::before {
  opacity: 1;
}


.dropdown-menu a:hover {
  color: #2563eb;
}

/* Mostrar dropdown */
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

/* ===================== MOBILE MENU ===================== */
.mobile-menu {
  background: #04091f57;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.mobile-menu.open {
  max-height: 600px;
}

.mobile-link {
  display: block;
  padding: 0.9rem 1.5rem;
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, background 0.3s ease;
}

.mobile-link:hover {
  color: var(--blue-400);
  background: rgba(59, 130, 246, 0.08);
}

.mobile-link.active {
  color: var(--blue-400);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .mobile-dropdown .arrow {
    font-size: 0.7rem;
  }
}

.mobile-dropdown {
  display: flex;
  flex-direction: column;
}

.mobile-toggle {
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding-left: 12px;
}

.mobile-submenu a {
  margin-left: 20px;
  text-decoration: none;
  display: block;
  padding: 10px;
  font-size: .9rem;
  color: #cbd5f5;
}

.mobile-submenu a:hover {
  color: #fff;
}

/* abierto */
.mobile-dropdown.open .mobile-submenu {
  max-height: 500px;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

/* HERO */
.hero {
  padding: 120px 0;
  background: linear-gradient(135deg, #020617, #1d305d, #020617);
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 span {
  color: #60a5fa
}

.hero p {
  font-size: 1.25rem;
  color: #cbd5f5;
  max-width: 700px;
  margin: auto;
}

.servicios-tributarios {
  padding: 4rem 1rem;
  background-color: #ebf5ff
}

.servicios-container {
  max-width: 1280px;
  margin: 0 auto;
}

/* GRID */
.servicios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .servicios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* CARD */
.servicio-card {
  background-color: #f8fafc;
  padding: 2rem;
  border-radius: 16px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.servicio-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* ICONO */
.servicio-icon {
  width: 56px;
  height: 56px;
  background-color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

/* TEXTO */
.servicio-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.servicio-card p {
  color: #4b5563;
  line-height: 1.6;
}

/* ANIMACIÓN */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}


/* === SECCIÓN === */
.optimizacion-fiscal {
  padding: 5rem 0;                /* py-20 */
  background-color: #f8fafc;      /* bg-slate-50 */
}

/* === CONTENEDOR === */
.opt-container {
  max-width: 1280px;              /* max-w-7xl */
  margin: 0 auto;
  padding: 0 1rem;                /* px-4 */
}

@media (min-width: 640px) {
  .opt-container {
    padding: 0 1.5rem;            /* sm:px-6 */
  }
}

@media (min-width: 1024px) {
  .opt-container {
    padding: 0 2rem;              /* lg:px-8 */
  }
}

/* === GRID === */
.opt-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;                      /* gap-16 */
}

@media (min-width: 768px) {
  .opt-grid {
    flex-direction: row;
    align-items: center;
  }
}

/* === IMAGEN === */
.opt-image {
  width: 100%;
}

@media (min-width: 768px) {
  .opt-image {
    width: 50%;
  }
}

.opt-image img {
  width: 100%;
  height: 450px;                  /* h-[450px] */
  object-fit: cover;
  border-radius: 1rem;            /* rounded-2xl */
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); /* shadow-2xl */
}

/* === CONTENIDO === */
.opt-content {
  width: 100%;
}

@media (min-width: 768px) {
  .opt-content {
    width: 50%;
  }
}

/* === TÍTULO === */
.opt-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;                   /* gap-3 */
  margin-bottom: 0.5rem;
}

.opt-icon {
  background-color: #dbeafe;      /* bg-blue-100 */
  padding: 0.5rem;
  border-radius: 0.5rem;          /* rounded-lg */
}

.opt-icon i {
  font-size: 1.5rem;
  color: #2563eb;                 /* text-blue-600 */
}

.opt-title h2 {
  font-size: 1.875rem;            /* text-3xl */
  font-weight: 700;               /* font-bold */
  color: #0f172a;                 /* text-slate-900 */
}

/* === TEXTO === */
.opt-text {
  margin-top: 1.5rem;
  font-size: 1.125rem;            /* text-lg */
  line-height: 1.75;
  color: #4b5563;                 /* text-gray-600 */
}

/* === CAJA === */
.opt-box {
  margin-top: 1.5rem;
  background: #ffffff;
  padding: 1.5rem;                /* p-6 */
  border-radius: 0.75rem;         /* rounded-xl */
  border: 1px solid #e5e7eb;      /* border-gray-200 */
  box-shadow: 0 1px 2px rgba(0,0,0,.05); /* shadow-sm */
}

.opt-box h4 {
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: #0f172a;
}

.opt-box ul {
  list-style: none;
  padding: 0;
}

.opt-box li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: #374151;                 /* text-gray-700 */
}

.opt-box li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background-color: #22c55e;      /* bg-green-500 */
  border-radius: 50%;
  margin-right: 0.75rem;
}

/* === SECCIÓN === */
.seguridad-juridica {
  padding: 5rem 0;                 /* py-20 */
  background-color: #ebf5ff;       /* bg-white */
}

/* === CONTENEDOR === */
.sj-container {
  max-width: 1280px;               /* max-w-7xl */
  margin: 0 auto;
  padding: 0 1rem;                 /* px-4 */
}

@media (min-width: 640px) {
  .sj-container {
    padding: 0 1.5rem;             /* sm:px-6 */
  }
}

@media (min-width: 1024px) {
  .sj-container {
    padding: 0 2rem;               /* lg:px-8 */
  }
}

/* === GRID === */
.sj-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;                       /* gap-16 */
}

@media (min-width: 768px) {
  .sj-grid {
    flex-direction: row-reverse;   /* md:flex-row-reverse */
    align-items: center;
  }
}

/* === IMAGEN === */
.sj-image {
  width: 100%;
}

@media (min-width: 768px) {
  .sj-image {
    width: 50%;
  }
}

.sj-image img {
  width: 100%;
  height: 450px;                   /* h-[450px] */
  object-fit: cover;
  border-radius: 1rem;             /* rounded-2xl */
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); /* shadow-2xl */
}

/* === CONTENIDO === */
.sj-content {
  width: 100%;
}

@media (min-width: 768px) {
  .sj-content {
    width: 50%;
  }
}

/* === TÍTULO === */
.sj-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;                    /* gap-3 */
  margin-bottom: 0.5rem;
}

.sj-icon {
  background-color: #dbeafe;       /* bg-blue-100 */
  padding: 0.5rem;                 /* p-2 */
  border-radius: 0.5rem;           /* rounded-lg */
}

.sj-icon i {
  font-size: 1.5rem;
  color: #2563eb;                  /* text-blue-600 */
}

.sj-title h2 {
  font-size: 1.875rem;             /* text-3xl */
  font-weight: 700;                /* font-bold */
  color: #0f172a;                  /* text-slate-900 */
}

/* === TEXTO === */
.sj-text {
  margin-top: 1.5rem;
  font-size: 1.125rem;             /* text-lg */
  line-height: 1.75;
  color: #4b5563;                  /* text-gray-600 */
}

/* === TARJETA === */
.sj-card {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;                       /* gap-4 */
  padding: 1rem;                   /* p-4 */
  background-color: #eff6ff;       /* bg-blue-50 */
  border: 1px solid #dbeafe;       /* border-blue-100 */
  border-radius: 0.5rem;           /* rounded-lg */
}

.sj-card i {
  font-size: 2rem;                 /* w-8 h-8 */
  color: #2563eb;                  /* text-blue-600 */
  flex-shrink: 0;
}

.sj-card h4 {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.sj-card p {
  font-size: 0.875rem;             /* text-sm */
  color: #4b5563;                  /* text-gray-600 */
}

/* === SECCIÓN === */
.outsourcing-fiscal {
  padding: 5rem 0;                  /* py-20 */
  background-color: #f8fafc;        /* bg-slate-50 */
}

/* === CONTENEDOR === */
.of-container {
  max-width: 1280px;                /* max-w-7xl */
  margin: 0 auto;
  padding: 0 1rem;                  /* px-4 */
}

@media (min-width: 640px) {
  .of-container {
    padding: 0 1.5rem;              /* sm:px-6 */
  }
}

@media (min-width: 1024px) {
  .of-container {
    padding: 0 2rem;                /* lg:px-8 */
  }
}

/* === TARJETA === */
.of-card {
  background-color: #ffffff;        /* bg-white */
  border-radius: 1.5rem;            /* rounded-3xl */
  padding: 2.5rem;                  /* p-10 */
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1),
              0 4px 6px -4px rgba(0,0,0,.1); /* shadow-lg */
  border: 1px solid #f3f4f6;        /* border-gray-100 */
}

/* === HEADER === */
.of-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;              /* mb-8 */
}

.of-header i {
  font-size: 2.5rem;                /* w-10 h-10 */
  color: #2563eb;                   /* text-blue-600 */
  margin-right: 1rem;               /* mr-4 */
}

.of-header h2 {
  font-size: 1.875rem;              /* text-3xl */
  font-weight: 700;                 /* font-bold */
  color: #0f172a;                   /* text-slate-900 */
}

/* === TEXTO === */
.of-content {
  max-width: none;                  /* max-w-none */
  font-size: 1.125rem;              /* text-lg */
  line-height: 1.75;                /* leading-relaxed */
  color: #4b5563;                   /* text-gray-600 */
}

.of-content .mb {
  margin-bottom: 1.5rem;            /* mb-6 */
}

.footer {
  background: linear-gradient(
    to right,
    var(--slate-900),
    var(--blue-950),
    var(--slate-900)
  );
  color: white;
}

.footer-container {
  max-width: 1280px;
  margin: auto;
  padding: 3rem 1.5rem 2rem;
}

/* Grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

/* Titles */
.footer-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-title span {
  color: var(--blue-400);
}

.footer-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Text */
.footer-text {
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

/* Contact */
.footer-contact {
  display: grid;
  gap: 0.6rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #d1d5db;
  font-size: 0.95rem;
}

.contact-item .icon {
  font-size: 1rem;
}

/* Links */
.footer-links,
.footer-services {
  list-style: none;
  padding: 0;
}

.footer-links li,
.footer-services li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--blue-400);
}

.footer-services a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-services a:hover {
  color: var(--blue-400);
}

/* Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

.dropdown-menu a.active {
  color: #2563eb;
}

.cta-section {
  background: linear-gradient(
    135deg,
    #2563eb,
    #1e40af
  );
  padding: 5.5rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Glow decorativo sutil */
.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15),
    transparent 70%
  );
}

.cta-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* TÍTULO */
.cta-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2.2rem;
  letter-spacing: -0.02em;
}

/* BOTÓN */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  color: #2563eb;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 2.4rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.15);
}

.cta-btn i {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

/* HOVER */
.cta-btn:hover {
  background: #eff6ff;
  transform: translateY(-3px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.25);
}

.cta-btn:hover i {
  transform: translateX(5px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .cta-title {
    font-size: 2rem;
  }
}