/* =========================================================
   DUO ASISTENCIA — Custom theme layer (loaded after main.css)
   Palette: #F5F5DC (beige) · #FFFAF0 (floral white) · #D2B48C (tan)
   + #4a3728 / #3e2c23 (deep brown, added for text contrast)
   ========================================================= */

/* ---- Enlaces de texto (mejor contraste sobre el fondo crema del sitio) ---- */
/* El tono original (--accent-color, tostado claro) apenas se ve sobre el fondo
   crema/floral-white global. Los botones, el menú y el pie tienen su propio
   color definido aparte, así que este cambio solo afecta a los enlaces de
   texto dentro de párrafos, tarjetas, avisos, etc. */
a {
  color: #6f7d33;
}

a:hover {
  color: #4f5a24;
}

/* ---- Gradient hero background ---- */
.hero.section.dark-background {
  background: radial-gradient(circle at 15% 20%, #4a3728 0%, #3e2c23 45%, #2a1d16 100%);
  position: relative;
  overflow: hidden;
}

.hero.section.dark-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 80%, rgba(210, 180, 140, 0.30) 0%, rgba(210, 180, 140, 0) 55%);
  pointer-events: none;
}

.hero .hero-eyebrow {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f0e2c8;
  font-family: var(--nav-font);
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.hero h1 span.grad-text {
  background: linear-gradient(90deg, #e8d3ae 0%, #d2b48c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Gradient buttons ---- */
.btn-get-started,
.btn-getstarted,
.cta-btn,
.pricing-item .buy-btn,
.php-email-form button[type="submit"],
.newsletter-form input[type="submit"],
button.btn-primary {
  background: var(--brand-gradient) !important;
  border: none !important;
  color: #4a3728 !important;
  transition: 0.3s ease-in-out, transform 0.2s ease;
  box-shadow: 0 8px 20px -6px rgba(176, 143, 95, 0.55);
}

.btn-get-started:hover,
.btn-getstarted:hover,
.cta-btn:hover,
.pricing-item .buy-btn:hover,
.php-email-form button[type="submit"]:hover,
button.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  color: #4a3728 !important;
}

.btn-watch-video i {
  color: #b08f5f;
}

/* ---- Section title accent ---- */
.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -12px;
  width: 60px;
  height: 4px;
  border-radius: 4px;
  background: var(--brand-gradient);
}

/* ---- Service / feature icon backgrounds ---- */
.service-item .icon,
.icon-box .icon {
  background: var(--brand-gradient);
  color: #4a3728 !important;
  border-radius: 16px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-item .icon i,
.icon-box .icon i {
  color: #4a3728 !important;
  font-size: 26px !important;
}

.service-item {
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px -12px rgba(176, 143, 95, 0.30);
}

/* ---- Pricing featured card ---- */
.pricing-item.featured {
  border: none !important;
  background: linear-gradient(180deg, #ffffff 0%, #fff8ec 100%);
  box-shadow: 0 20px 40px -18px rgba(176, 143, 95, 0.45);
  position: relative;
}

.pricing-item.featured::before {
  content: "MÁS ELEGIDO";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-gradient);
  color: #4a3728;
  font-family: var(--nav-font);
  font-size: 12px;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 50px;
  box-shadow: 0 6px 14px -4px rgba(176, 143, 95, 0.6);
}

.pricing-item h4 {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Nicho tabs (Servicios page) ---- */
.nicho-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.nicho-tabs button {
  border: 1.5px solid #e8dcc8;
  background: #fff;
  color: var(--heading-color);
  font-family: var(--nav-font);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.25s ease;
}

.nicho-tabs button:hover {
  border-color: #b08f5f;
  color: #b08f5f;
}

.nicho-tabs button.active {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #4a3728 !important;
  box-shadow: 0 8px 18px -8px rgba(176, 143, 95, 0.6);
}

.nicho-panel {
  display: none;
  animation: fadeIn 0.35s ease;
}

.nicho-panel.active {
  display: block;
}

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

.nicho-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 12px 34px -18px rgba(74, 55, 40, 0.20);
}

.nicho-card .nicho-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.nicho-card .nicho-icon i {
  color: #4a3728;
  font-size: 28px;
}

.nicho-card ul.nicho-solutions li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.nicho-card ul.nicho-solutions i {
  color: #b08f5f;
  margin-top: 4px;
}

/* ---- Problem / Solution blocks (Home) ---- */
.problem-card {
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  height: 100%;
  border-top: 4px solid #d2b48c;
  box-shadow: 0 10px 26px -16px rgba(74, 55, 40, 0.20);
}

.solution-card {
  background: var(--brand-gradient-dark);
  border-radius: 18px;
  padding: 34px;
  color: #fffaf0;
  height: 100%;
}

.solution-card h3,
.solution-card p {
  color: #fffaf0;
}

/* ---- Catalogue category cards (Home + Servicios) ---- */
.catalog-card {
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  height: 100%;
  box-shadow: 0 10px 26px -18px rgba(74, 55, 40, 0.18);
  border: 1px solid #f0e8d8;
}

.catalog-card h3 {
  font-size: 19px;
  margin-bottom: 14px;
}

.catalog-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.catalog-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
}

.catalog-card ul li i {
  color: #b08f5f;
  margin-top: 4px;
  flex-shrink: 0;
}

/* ---- Team members (Quiénes somos) ---- */
.duo-member {
  background: #fff;
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 14px 34px -20px rgba(74, 55, 40, 0.25);
  height: 100%;
}

.duo-member .duo-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a3728;
  font-family: var(--heading-font);
  font-size: 40px;
  margin-bottom: 22px;
}

/* ---- Team photo (Quiénes somos) ---- */
.team-photo {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 24px 50px -20px rgba(74, 55, 40, 0.30);
}

/* ---- Human touch banner (Home) ---- */
.human-banner {
  background: var(--brand-gradient-dark);
  border-radius: 22px;
  padding: 40px 44px;
  color: #fffaf0;
}

.human-banner h3,
.human-banner p {
  color: #fffaf0;
}

/* ---- Price toggle (mensual / anual) ---- */
.price-toggle {
  display: inline-flex;
  background: #fff;
  border: 1.5px solid #e8dcc8;
  border-radius: 50px;
  padding: 6px;
  gap: 4px;
}

.price-toggle .toggle-btn {
  border: none;
  background: transparent;
  color: var(--heading-color);
  font-family: var(--nav-font);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-toggle .toggle-btn.active {
  background: var(--brand-gradient);
  color: #4a3728;
  box-shadow: 0 8px 18px -8px rgba(176, 143, 95, 0.6);
}

.price-toggle .toggle-btn .toggle-save {
  background: rgba(74, 55, 40, 0.12);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 50px;
}

.price-toggle .toggle-btn:not(.active) .toggle-save {
  background: #f5ead9;
  color: #9c7a4f;
}

/* ---- Legal / static page content ---- */
.legal-content h2 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  margin-top: 34px;
  margin-bottom: 14px;
  font-size: 22px;
}

.legal-content p,
.legal-content li {
  color: var(--default-color);
  line-height: 1.8;
}

.legal-notice {
  background: #fbf3e3;
  border-left: 4px solid #b08f5f;
  padding: 18px 22px;
  border-radius: 10px;
  margin-bottom: 30px;
}

/* ---- Footer sitename gradient ---- */
.footer .sitename,
.logo .sitename {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Utility ---- */
.badge-pill-soft {
  display: inline-block;
  background: #f5ead9;
  color: #9c7a4f;
  font-family: var(--nav-font);
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

/* ---- Logo (header) ---- */
.header .logo img {
  max-height: 68px;
  width: auto;
  margin-right: 10px;
}

.header .logo .sitename {
  font-size: 22px;
  letter-spacing: 1px;
}

/* ---- Logo (footer) ---- */
.footer-logo img {
  max-height: 150px;
  width: auto;
}

/* ---- Responsive logo sizing ---- */
@media (max-width: 575px) {
  .header .logo img {
    max-height: 68px;
    margin-right: 8px;
  }

  .header .logo .sitename {
    font-size: 17px;
  }

  .footer-logo img {
    max-height: 68px;
  }
}

/* ============================================================
   Ajustes de cabecera: evitar que el menú y los botones se
   amontonen, y separar el título de cada página del header fijo
   (para que no quede tapado por detrás del menú).
   ============================================================ */

/* Un poco más de anchura en la cabecera para que quepan menú + botones */
.header .container-xl {
  max-width: 1320px;
}

@media (min-width: 1200px) {
  /* Menos aire interno en cada enlace del menú, para ganar espacio */
  .navmenu a,
  .navmenu a:focus {
    padding: 18px 10px;
  }

  /* Separación fija entre el último enlace del menú y los botones */
  #navmenu {
    margin-right: 22px;
  }
}

/* El título (H1) de cada página empieza más abajo, para no quedar
   oculto detrás de la cabecera fija */
.page-title {
  padding-top: 150px;
}

@media (max-width: 1199px) {
  .page-title {
    padding-top: 130px;
  }
}

@media (max-width: 575px) {
  .page-title {
    padding-top: 115px;
  }
}

/* ---- WhatsApp floating button ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px -6px rgba(0,0,0,0.4);
  z-index: 999;
  transition: transform 0.25s ease;
}

.whatsapp-float i {
  color: #fff;
  font-size: 32px;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

@media (max-width: 575px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }
  .whatsapp-float i {
    font-size: 27px;
  }
}

/* ---- Header "¿Te llamamos?" button (mismo estilo que "Pide presupuesto") ---- */
.btn-callback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-gradient) !important;
  border: none !important;
  color: #4a3728 !important;
  font-family: var(--nav-font);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 50px;
  margin-right: 14px;
  cursor: pointer;
  transition: 0.3s ease-in-out, transform 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 8px 20px -6px rgba(176, 143, 95, 0.55);
}

.btn-callback:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  color: #4a3728 !important;
}

/* ---- Callback modal ---- */
#callbackModal .modal-content {
  border-radius: 18px;
  border: none;
}

#callbackModal .modal-header {
  border-bottom: 1px solid #f0e8d8;
}

#callbackModal label {
  display: block;
  font-size: 14px;
  color: var(--heading-color);
}

#callbackModal .btn {
  background: var(--brand-gradient);
  color: #4a3728;
  border: none;
  padding: 8px 20px;
  border-radius: 50px;
}

#callbackModal .loading,
#callbackModal .error-message,
#callbackModal .sent-message {
  display: none;
  font-size: 14px;
  margin-top: 8px;
}

/* ---- Two-path home section (humano / digital) ---- */
.path-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  height: 100%;
  box-shadow: 0 14px 34px -20px rgba(74, 55, 40, 0.25);
  border-top: 4px solid #d2b48c;
}

.path-card .path-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.path-card .path-icon i {
  color: #4a3728;
  font-size: 28px;
}

/* ---- Sector grid cards (home + servicios-b2b) ---- */
.sector-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  height: 100%;
  text-align: center;
  box-shadow: 0 10px 24px -18px rgba(74, 55, 40, 0.20);
  border: 1px solid #f0e8d8;
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -16px rgba(176, 143, 95, 0.4);
}

.sector-card .sector-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.sector-card .sector-icon i {
  color: #4a3728;
  font-size: 24px;
}

.sector-card h4 {
  font-size: 15px;
  color: var(--heading-color);
  margin: 0;
}

/* ---- Feature list (sector pages) ---- */
.feature-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px -18px rgba(74, 55, 40, 0.18);
}

.feature-row .feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-row .feature-icon i {
  color: #4a3728;
  font-size: 20px;
}

.feature-row h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.feature-row p {
  margin: 0;
  font-size: 15px;
}

/* ---- Digital transformation independent block (home) ---- */
.dt-block {
  background: var(--brand-gradient-dark);
  border-radius: 22px;
  padding: 44px;
  color: #fffaf0;
}

.dt-block h3, .dt-block p, .dt-block li {
  color: #fffaf0;
}

.dt-block .dt-price {
  font-family: var(--heading-font);
  font-size: 30px;
  color: #f0e2c8;
}

/* ---- Particulares / emprendedores note (home) ---- */
.particulares-note {
  background: #fbf3e3;
  border-left: 4px solid #b08f5f;
  padding: 26px 30px;
  border-radius: 14px;
}

/* ---- Blog cards ---- */
.blog-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px -18px rgba(74, 55, 40, 0.22);
  height: 100%;
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card .blog-card-body {
  padding: 22px;
}

.blog-card .blog-date {
  font-size: 13px;
  color: #b08f5f;
  font-family: var(--nav-font);
  margin-bottom: 8px;
  display: block;
}

.blog-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* ---- Price incl/excl IVA note ---- */
.price-iva-note {
  font-size: 13px;
  color: var(--default-color);
  display: block;
  margin-top: 4px;
}

/* ---- Sede España badge (hero) ---- */
.spain-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #f0e2c8;
  font-family: var(--nav-font);
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-top: 16px;
}

/* ---- Botón "Ver ejemplos de servicios que puedes delegar" (planes y precios) ---- */
.btn-services-examples-wrap p {
  font-size: 15px;
}

.btn-services-examples {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  border-radius: 50px;
  border: 2px solid var(--accent-color-2);
  color: var(--heading-color) !important;
  font-family: var(--nav-font);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
}

.btn-services-examples i {
  font-size: 19px;
  line-height: 0;
  transition: transform 0.3s ease;
}

.btn-services-examples:hover {
  background: var(--brand-gradient);
  border-color: transparent;
  color: var(--heading-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(176, 143, 95, 0.55);
}

.btn-services-examples:hover i {
  transform: translateX(4px);
}

/* ---- Botón "subir arriba": lo desplazamos a la izquierda del botón de
   WhatsApp (en vez de superponerse en la esquina inferior derecha) y lo
   centramos verticalmente con él ---- */
.scroll-top {
  right: 98px;
  bottom: 2px;
}

.scroll-top.active {
  bottom: 32px;
}

@media (max-width: 575px) {
  .scroll-top {
    right: 78px;
    bottom: -10px;
  }

  .scroll-top.active {
    bottom: 20px;
  }
}

/* ---- Widget de chat de WhatsApp (panel que se abre al pulsar el globo) ---- */
.whatsapp-widget-panel {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--surface-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.35);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.whatsapp-widget-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.whatsapp-widget-header {
  background: var(--brand-gradient-dark);
  padding: 18px 44px 18px 18px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-widget-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #fffaf0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.35);
}

.whatsapp-widget-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.whatsapp-widget-title {
  color: #fffaf0;
  font-family: var(--nav-font);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.whatsapp-widget-title .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  display: inline-block;
  flex-shrink: 0;
}

.whatsapp-widget-subtitle {
  color: rgba(255, 250, 240, 0.75);
  font-size: 12.5px;
  margin: 0;
  line-height: 1.35;
}

.whatsapp-widget-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fffaf0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.whatsapp-widget-close:hover {
  background: rgba(255,255,255,0.25);
}

.whatsapp-widget-body {
  background: #F5F5DC;
  background-image: radial-gradient(rgba(74, 55, 40, 0.05) 1px, transparent 1px);
  background-size: 14px 14px;
  padding: 18px;
}

.whatsapp-widget-bubble {
  background: #fffaf0;
  border-radius: 12px 12px 12px 2px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--default-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  max-width: 90%;
}

.whatsapp-widget-time {
  font-size: 11px;
  color: #9c8f7a;
  margin-top: 6px;
  display: block;
}

.whatsapp-widget-footer {
  padding: 14px 18px 18px;
  background: #F5F5DC;
}

.whatsapp-widget-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #25D366;
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--nav-font);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.whatsapp-widget-start-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.whatsapp-widget-start-btn i {
  font-size: 18px;
}

.whatsapp-float.is-open i.bi-whatsapp {
  display: none;
}

.whatsapp-float .bi-x-lg {
  display: none;
  color: #fff;
  font-size: 26px;
}

.whatsapp-float.is-open .bi-x-lg {
  display: block;
}

@media (max-width: 575px) {
  .whatsapp-widget-panel {
    right: 16px;
    bottom: 78px;
    width: 300px;
  }
}
