/* =============================================
   G & G ASESORES TRIBUTARIOS — STYLE.CSS
   Colores: Azul #0e3d92 | Amarillo #f8b700
   ============================================= */

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BASE ===== */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #ffffff;
  color: #333;
}

/* ===== HEADER ===== */
.header-new {
  background: linear-gradient(90deg, #0a4fa3, #1b78c1);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-new-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.logo-new {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
}

.logo-new img {
  height: 45px;
  margin-right: 10px;
}

/* ===== MENÚ ESCRITORIO ===== */
.menu-new {
  display: flex;
  align-items: center;
  gap: 5px;
}

.menu-new > a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s;
  white-space: nowrap;
}

.menu-new > a:hover {
  background: rgba(255,255,255,0.15);
}

/* ===== DROPDOWN ===== */
.dropdown-new {
  position: relative;
}

.dropbtn-new {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s;
  white-space: nowrap;
  cursor: pointer;
  display: block;
}

.dropbtn-new:hover {
  background: rgba(255,255,255,0.15);
}

.dropdown-content-new {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  border-radius: 8px;
  z-index: 1001;
  overflow: hidden;
}

.dropdown-content-new a {
  color: #333;
  padding: 12px 16px;
  display: block;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.dropdown-content-new a:last-child {
  border-bottom: none;
}

.dropdown-content-new a:hover {
  background: #f0f4ff;
  color: #0e3d92;
}

.dropdown-new:hover .dropdown-content-new {
  display: block;
}

/* ===== MENÚ TOGGLE MÓVIL ===== */
.menu-toggle-new {
  display: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
  user-select: none;
}

.menu-toggle-new:hover {
  background: rgba(255,255,255,0.15);
}

/* ===== BANNER ===== */
.banner {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ===== SERVICES HERO ===== */
.services-hero {
  padding: 80px 20px;
  text-align: center;
  background-color: #ffffff;
}

.hero-text-container {
  max-width: 900px;
  margin: 0 auto;
}

.services-hero h2,
.hero-text-container h2 {
  font-size: 32px;
  font-weight: 700;
  color: #0e3d92;
  margin-bottom: 20px;
}

.services-hero p,
.hero-text-container p {
  max-width: 800px;
  margin: 0 auto 15px;
  font-size: 16px;
  color: #555;
  line-height: 1.7;
}

.highlight-text {
  font-weight: 600;
  color: #0e3d92;
  margin-top: 20px;
}

/* ===== TAX SECTION ===== */
.tax-section {
  padding: 60px 20px;
  background-color: #f7f9fc;
}

.tax-section .title {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  color: #0e3d92;
  margin-bottom: 12px;
}

.tax-section .subtitle {
  text-align: center;
  font-size: 15px;
  color: #555;
  max-width: 800px;
  margin: 0 auto 45px;
  line-height: 1.7;
}

/* TAX DARK */
.tax-section.tax-section-dark {
  background: linear-gradient(90deg, #0a4fa3, #1b78c1);
}

.tax-section.tax-section-dark .title,
.tax-section.tax-section-dark .subtitle {
  color: #ffffff;
}

.tax-section.tax-section-dark .card {
  background: #ffffff;
}

.tax-section.tax-section-dark .image-wrapper i {
  color: #0a4fa3;
}

/* TAX INVERTED */
.tax-section.inverted {
  background: linear-gradient(135deg, #0d6efd, #084298);
}

.tax-section.inverted .title,
.tax-section.inverted .subtitle {
  color: #ffffff;
}

.tax-section.inverted .card {
  background: #ffffff;
}

.tax-section.inverted .image-wrapper i {
  color: #0d6efd;
}

.tax-section.inverted .btn {
  background: #0d6efd;
  color: #ffffff;
}

/* ===== CONTAINER ===== */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== CARDS ===== */
.card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

.image-wrapper {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.image-wrapper i {
  font-size: 70px;
  color: #0a4fa3;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2a44;
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  background-color: #0d6efd;
  color: #ffffff;
  text-decoration: none;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #0b5ed7;
}

.inverted-card {
  background: #ffffff;
}

.btn.inverted-btn {
  background: #0d6efd;
  color: white;
}

/* ===== VISIT SECTION ===== */
.visit-section {
  padding: 70px 20px;
  background: linear-gradient(135deg, #0d6efd, #084298);
  color: #ffffff;
  text-align: center;
}

.visit-container {
  max-width: 900px;
  margin: 0 auto;
}

.visit-container h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.visit-container p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
  opacity: 0.95;
}

.visit-highlight {
  font-weight: 700;
  font-size: 17px;
}

.btn-visit {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 34px;
  background-color: #25d366;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 40px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-visit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

/* ===== OFFICE SECTION ===== */
.office-section {
  padding: 80px 20px;
  text-align: center;
  background: #ffffff;
}

.office-title {
  font-size: 30px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 14px;
}

.office-subtitle {
  font-size: 15px;
  color: #555;
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

.office-list {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.office-card {
  background: linear-gradient(135deg, #0a4fa3, #1b78c1);
  color: #ffffff;
  padding: 40px 30px;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 14px 36px rgba(13,110,253,0.22);
}

.office-icon i {
  font-size: 3.2rem;
  margin-bottom: 16px;
}

.office-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.office-card p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 10px;
  opacity: 0.92;
}

/* ===== LOCATION SECTION ===== */
.location-section {
  padding: 70px 20px;
  background-color: #0d6efd;
}

.location-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.location-info h2 {
  font-size: 30px;
  color: #ffffff;
  margin-bottom: 14px;
}

.location-info p {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin-bottom: 24px;
}

.btn-location {
  display: inline-block;
  padding: 12px 26px;
  background-color: #ffffff;
  color: #0d6efd;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-location:hover {
  background-color: #e9eefc;
  transform: translateY(-2px);
}

.location-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 70px 20px;
  background-color: #ffffff;
  text-align: center;
}

.contact-section .title {
  font-size: 30px;
  font-weight: 700;
  color: #1f2a44;
  margin-bottom: 12px;
}

.contact-section .subtitle {
  font-size: 15px;
  color: #555;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25D366, #1ebe5d);
  color: #fff;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(37,211,102,0.35);
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(37,211,102,0.45);
}

/* ===== FOOTER ===== */
.footer {
  background-color: #0a4fa3;
  color: #ffffff;
  padding: 40px 20px 20px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-item i {
  font-size: 30px;
}

.footer-item h4 {
  font-size: 16px;
  font-weight: 700;
}

.footer-item a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-item a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  width: 58px;
  height: 58px;
  bottom: 28px;
  right: 28px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  font-size: 28px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ===== FAB CHAT ===== */
#fab {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00a884, #128c7e);
  box-shadow: 0 4px 20px rgba(0,168,132,0.5);
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform 0.2s, box-shadow 0.2s;
}

#fab:hover {
  transform: scale(1.08);
}

#fab svg {
  width: 28px;
  height: 28px;
  fill: white;
}

#fab .badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #ff3b30;
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* ===== CHAT WINDOW ===== */
#chat-window {
  position: fixed;
  left: 24px;
  bottom: 94px;
  width: 360px;
  max-height: 580px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  z-index: 9998;
  transform: scale(0.8) translateY(40px);
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom left;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s;
  background: #ece5dd;
  font-family: 'Nunito', sans-serif;
}

#chat-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  background: linear-gradient(135deg, #128c7e, #00a884);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.chat-header .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.chat-header .info .name { font-weight: 700; font-size: 14px; }
.chat-header .info .status { font-size: 12px; opacity: 0.85; }

.chat-header .close-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  opacity: 0.8;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, background 0.2s;
}

.chat-header .close-btn:hover {
  opacity: 1;
  background: rgba(255,255,255,0.15);
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
}

.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }

.msg {
  max-width: 86%;
  padding: 9px 12px 6px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
  animation: popIn 0.2s ease;
}

@keyframes popIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.msg.bot {
  background: white;
  border-radius: 4px 10px 10px 10px;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  color: #111;
}

.msg.user {
  background: #d9fdd3;
  border-radius: 10px 4px 10px 10px;
  align-self: flex-end;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  color: #111;
}

.msg .time { font-size: 10px; color: #999; text-align: right; margin-top: 3px; }
.msg.user .time { color: #7fba6c; }

.options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: flex-start;
  max-width: 90%;
  animation: popIn 0.2s ease;
}

.opt-btn {
  background: white;
  border: 1.5px solid #00a884;
  color: #00a884;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  font-family: 'Nunito', sans-serif;
}

.opt-btn:hover { background: #00a884; color: white; }

.name-input-wrap {
  display: flex;
  gap: 6px;
  align-self: flex-start;
  max-width: 90%;
  animation: popIn 0.2s ease;
}

.name-input {
  border: 1.5px solid #00a884;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
  outline: none;
  flex: 1;
  color: #111;
}

.name-send {
  background: #00a884;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.name-send svg { width: 18px; height: 18px; fill: white; }

.typing {
  display: flex;
  gap: 4px;
  align-items: center;
  background: white;
  padding: 10px 14px;
  border-radius: 4px 10px 10px 10px;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.typing span {
  width: 7px;
  height: 7px;
  background: #bbb;
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}

.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%,60%,100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

.wa-btn {
  background: #25d366;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  align-self: flex-start;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
  transition: transform 0.15s;
  animation: popIn 0.2s ease;
}

.wa-btn:hover { transform: translateY(-2px); }
.wa-btn svg { width: 20px; height: 20px; fill: white; flex-shrink: 0; }

/* ===== INFO SECTION ===== */
.info-section {
  padding: 70px 20px;
  background-color: #f8f9fb;
}

.info-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.info-card {
  background: #ffffff;
  padding: 32px 28px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  transition: transform 0.3s ease;
}

.info-card:hover { transform: translateY(-5px); }

.info-card i {
  font-size: 38px;
  color: #0d6efd;
  margin-bottom: 14px;
}

.info-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 12px;
}

.info-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 10px;
}

.info-card ul {
  padding-left: 18px;
  margin-top: 10px;
}

.info-card ul li {
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.info-card.highlight {
  background: linear-gradient(135deg, #0d6efd, #084298);
}

.info-card.highlight h2,
.info-card.highlight p,
.info-card.highlight li,
.info-card.highlight i {
  color: #ffffff;
}

/* ===== BUSINESS CARDS ===== */
.business-cards-section {
  padding: 60px 20px;
  background: #f8f9fa;
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #084298;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 36px;
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

.business-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.business-card {
  background: #ffffff;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
}

.business-card h3 {
  color: #0d6efd;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.business-card p {
  color: #444;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.btn-card {
  align-self: flex-start;
  padding: 10px 20px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 25px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.3s ease;
}

.btn-card:hover { background-color: #1ebe5d; }

/* ===== VERTICAL SERVICES ===== */
.vertical-services {
  padding: 70px 20px;
  background: #f8f9fc;
}

.vertical-cards {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vertical-card {
  background: #ffffff;
  padding: 36px 32px;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.07);
}

.vertical-card.highlight {
  background: linear-gradient(135deg, #0d6efd, #084298);
  color: #ffffff;
}

.vertical-card i {
  font-size: 2.4rem;
  color: #0d6efd;
  margin-bottom: 16px;
}

.vertical-card.highlight i { color: #ffffff; }

.vertical-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}

.vertical-card.highlight h3 { color: #ffffff; }

.vertical-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
}

.vertical-card.highlight p { color: rgba(255,255,255,0.9); }

/* ===== FIRMA ELECTRÓNICA ===== */
.firma-section {
  padding: 70px 20px;
  background: #f8f9ff;
}

.firma-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.firma-container h1 {
  font-size: 32px;
  color: #0d6efd;
  margin-bottom: 18px;
}

.firma-container p {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.firma-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.firma-card {
  background: #ffffff;
  padding: 30px 22px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  transition: transform 0.3s ease;
}

.firma-card:hover { transform: translateY(-6px); }

.firma-card i {
  font-size: 36px;
  color: #0d6efd;
  margin-bottom: 12px;
}

.firma-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.firma-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* ===== MAIN SERVICES ===== */
.main-services {
  padding: 70px 20px;
  background: #f8f9fc;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: #ffffff;
  padding: 36px 26px;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.07);
  transition: transform 0.3s ease;
}

.service-card:hover { transform: translateY(-6px); }

.service-card i {
  font-size: 2.6rem;
  color: #0d6efd;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ===== LOGO LINK ===== */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}

/* ===== CARRUSEL ===== */
.carousel {
  overflow: hidden;
  position: relative;
  margin-top: 40px;
}

.carousel-track {
  display: flex;
  animation: scroll 40s linear infinite;
}

.carousel-track img {
  width: 280px;
  height: 180px;
  object-fit: cover;
  margin-right: 14px;
  border-radius: 10px;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== SERCOP / UAFE ===== */
.sercop-section, .uafe-section {
  background: linear-gradient(180deg, #0d6efd, #0b5ed7);
  padding: 60px 8%;
  color: #fff;
}

.sercop-cards, .uafe-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sercop-content, .sercop-services,
.uafe-content, .uafe-users, .uafe-services {
  padding: 60px 8%;
  background: #fff;
}

/* ===== CAPACITACIONES ===== */
.cap-hero {
  background: linear-gradient(180deg, #0d6efd, #0b5ed7);
  color: white;
  padding: 70px 10%;
  text-align: center;
}

.cap-hero h1 { font-size: 32px; margin-bottom: 18px; }
.cap-highlight { font-weight: 700; font-size: 17px; }

.cap-info { padding: 60px 10%; background: #f8f9fa; text-align: center; }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.cap-card {
  background: white;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

/* ===== USER MENU (header.js) ===== */
.user-menu-container { position: relative; z-index: 9999; font-family: Montserrat, sans-serif; }

.user-avatar-btn {
  background: #0e3d92;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 7px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.user-avatar-btn .avatar-circle {
  width: 26px;
  height: 26px;
  background: #f8b700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0e3d92;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 48px;
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  min-width: 200px;
  overflow: hidden;
}

.user-dropdown.active { display: block; }

.user-dropdown-header {
  background: #0e3d92;
  color: white;
  padding: 12px 16px;
  font-size: 0.85rem;
}

.user-dropdown-header span {
  display: block;
  font-size: 0.75rem;
  color: #aac4ff;
  margin-top: 2px;
}

.user-dropdown a, .user-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  text-decoration: none;
  color: #1c1c1c;
  font-size: 0.88rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: Montserrat, sans-serif;
  font-weight: 500;
  text-align: left;
  box-sizing: border-box;
}

.user-dropdown a:hover, .user-dropdown button:hover { background: #f5f5f5; }
.user-dropdown .btn-cerrar-sesion { color: #e53935; }
.user-dropdown hr { border: none; border-top: 1px solid #eee; margin: 0; }

.btn-iniciar-sesion {
  background: #f8b700;
  color: #0e3d92;
  border: none;
  border-radius: 50px;
  padding: 7px 16px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: Montserrat, sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-iniciar-sesion:hover { background: #e0a500; }

/* ===== REPORT CARDS ===== */
.report-card {
  background: #eaf4ff;
  border-radius: 14px;
  padding: 26px 22px;
  box-shadow: 0 8px 20px rgba(13,110,253,0.1);
  transition: transform 0.3s ease;
}

.report-card:hover { transform: translateY(-5px); }
.report-card h3, .report-card h4 { color: #0d6efd; margin-bottom: 10px; font-size: 17px; }
.report-card p { color: #333; font-size: 14px; line-height: 1.6; }

.card-whatsapp {
  margin-top: 16px;
  background-color: #25d366;
  color: #fff;
  text-align: center;
  padding: 11px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  display: block;
  transition: background 0.3s ease;
}

.card-whatsapp:hover { background-color: #1ebe5d; }

/* ===================================================
   RESPONSIVE — TABLETS (769px - 1024px)
   =================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .container { grid-template-columns: repeat(2, 1fr); }
  .business-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .sercop-cards, .uafe-cards, .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .location-container { grid-template-columns: 1fr; }
}

/* ===================================================
   RESPONSIVE — MÓVIL (max 768px)
   =================================================== */
@media (max-width: 768px) {

  /* HEADER */
  .header-new-container {
    flex-wrap: nowrap;
    padding: 8px 15px;
    position: relative;
  }

  .logo-new {
    font-size: 12px;
  }

  .logo-new img {
    height: 36px;
  }

  .menu-toggle-new {
    display: block !important;
    flex-shrink: 0;
  }

  /* MENÚ MÓVIL */
  .menu-new {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(180deg, #0a4fa3, #1565c0);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9997;
    padding: 8px 0 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    gap: 0;
  }

  .menu-new.active {
    display: flex;
  }

  .menu-new > a {
    width: 100%;
    padding: 13px 20px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    margin: 0;
  }

  /* DROPDOWNS MÓVIL */
  .dropdown-new {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .dropbtn-new {
    width: 100%;
    padding: 13px 20px !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    background: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .dropbtn-new::after {
    content: "▾";
    font-size: 12px;
    opacity: 0.7;
  }

  .dropdown-new:hover .dropdown-content-new {
    display: none;
  }

  .dropdown-new.active .dropdown-content-new {
    display: block;
  }

  .dropdown-content-new {
    position: static !important;
    background: rgba(0,0,0,0.2) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 100%;
    min-width: unset;
  }

  .dropdown-content-new a {
    color: rgba(255,255,255,0.9) !important;
    padding: 11px 36px !important;
    font-size: 13px !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    background: none !important;
  }

  .dropdown-content-new a:hover {
    background: rgba(255,255,255,0.1) !important;
    color: white !important;
  }

  /* BANNER */
  .banner { height: 180px; }

  /* SERVICIOS HERO */
  .services-hero { padding: 36px 15px; }
  .services-hero h2, .hero-text-container h2 { font-size: 22px; }
  .services-hero p, .hero-text-container p { font-size: 14px; }

  /* TAX SECTIONS */
  .tax-section { padding: 36px 15px; }
  .tax-section .title { font-size: 22px; }
  .tax-section .subtitle { font-size: 13px; margin-bottom: 28px; }

  /* CARDS */
  .container { grid-template-columns: 1fr; gap: 18px; }
  .card { padding: 20px 16px; }
  .card h3 { font-size: 16px; }
  .card p { font-size: 13px; }
  .image-wrapper { height: 90px; }
  .image-wrapper i { font-size: 52px !important; }

  /* VISIT */
  .visit-section { padding: 40px 15px; }
  .visit-container h2 { font-size: 22px; }
  .visit-container p { font-size: 14px; }
  .btn-visit { width: 100%; text-align: center; padding: 13px 20px; font-size: 15px; }

  /* OFFICE */
  .office-section { padding: 48px 15px; }
  .office-title { font-size: 22px; }
  .office-subtitle { font-size: 14px; margin-bottom: 30px; }
  .office-list { flex-direction: column; align-items: center; gap: 18px; }
  .office-card { padding: 28px 20px; max-width: 100%; }
  .office-card h3 { font-size: 17px; }
  .office-card p { font-size: 13px; }
  .office-icon i { font-size: 2.4rem; }

  /* LOCATION */
  .location-section { padding: 40px 15px; }
  .location-container { grid-template-columns: 1fr; gap: 22px; }
  .location-info h2 { font-size: 22px; }
  .location-info p { font-size: 14px; }
  .location-map iframe { height: 220px; }

  /* CONTACT */
  .contact-section { padding: 40px 15px; }
  .contact-section .title { font-size: 22px; }
  .contact-section .subtitle { font-size: 14px; }
  .btn-whatsapp { width: 100%; justify-content: center; font-size: 15px; }

  /* FOOTER */
  .footer { padding: 28px 15px 14px; }
  .footer-container { grid-template-columns: 1fr; gap: 18px; }
  .footer-item i { font-size: 24px; }
  .footer-item h4 { font-size: 14px; }
  .footer-bottom { font-size: 12px; }

  /* WHATSAPP / FAB */
  .whatsapp-float { width: 50px; height: 50px; bottom: 18px; right: 18px; font-size: 24px; }
  #fab { width: 50px; height: 50px; left: 14px; bottom: 14px; }
  #chat-window { left: 8px; right: 8px; width: auto; bottom: 76px; }

  /* BUSINESS CARDS */
  .business-cards-section { padding: 36px 15px; }
  .business-cards-grid { grid-template-columns: 1fr; gap: 18px; }

  /* INFO */
  .info-section { padding: 36px 15px; }
  .info-container { grid-template-columns: 1fr !important; gap: 18px; }
  .info-card { padding: 22px 18px; }

  /* VERTICAL CARDS */
  .vertical-services { padding: 36px 15px; }
  .vertical-card { padding: 24px 18px; }

  /* FIRMA */
  .firma-section { padding: 40px 15px; }
  .firma-container h1 { font-size: 24px; }
  .firma-steps { grid-template-columns: 1fr; gap: 16px; }

  /* SERCOP / UAFE */
  .sercop-cards, .uafe-cards { grid-template-columns: 1fr; }
  .sercop-section, .uafe-section { padding: 40px 5%; }
  .sercop-content, .sercop-services,
  .uafe-content, .uafe-users, .uafe-services { padding: 36px 5%; }

  /* CAPACITACIONES */
  .cap-hero { padding: 50px 5%; }
  .cap-hero h1 { font-size: 26px; }
  .cap-grid { grid-template-columns: 1fr; }

  /* SECCIÓN TÍTULO */
  .section-title { font-size: 22px; }
  .section-subtitle { font-size: 14px; }

  /* POPUP */
  #popup-overlay > div {
    margin: 8px;
    max-width: calc(100% - 16px);
    border-radius: 14px;
  }

  #form-login, #form-registro {
    padding: 20px 16px;
  }
}
