:root {
  --primary: #041a4b;
  --primary-light: #0a2f7a;
  --accent: #f5c24b;
  --text: #222;
  --text-light: #fff;
  --bg-light: #f7f7f7;
  --border: #e0e0e0;
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* TOP BAR */

.top-bar {
  background: #000c2a;
  color: var(--text-light);
  font-size: 0.9rem;
}

.top-bar__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.top-bar__social a {
  margin-left: 12px;
}

.top-bar__social .social-icon svg {
  width: 20px;
  height: 20px;
}

.top-bar__social .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}

.top-bar__social .social-icon:hover svg {
  transform: scale(1.12);
  transition: 0.2s;
}


/* HEADER */

.main-header {
  background: var(--text-light);
  border-bottom: 1px solid var(--border);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.header__logo img {
  height: 60px;
}

.header__nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.header__nav a {
  font-weight: 500;
}
/* NAV ITEMS CON SUBMENÚ */

.header__nav-item {
  position: relative;
}

.header__nav-item > a {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Menú desplegable de servicios (desktop) */
.header__dropdown {
  position: absolute;
  top: 120%;
  left: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  min-width: 220px;
  display: none;
  z-index: 20;
}

.header__dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.header__dropdown a:hover {
  background: #f4f6fb;
}

/* Mostrar dropdown al pasar el mouse */
.header__nav-item--has-dropdown:hover .header__dropdown {
  display: block;
}

.header__menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
}

/* HERO */

/* HERO */

.hero {
  position: relative;
  color: var(--text-light);
  padding: 160px 0 180px 0;
  overflow: hidden;
  background: var(--primary); /* azul de respaldo por si no cargan las fotos */
}

/* contenedor del carrusel */
.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* cada slide */
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

/* slide visible */
.hero__slide--active {
  opacity: 1;
}

/* capa azul encima de las fotos */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 26, 75, 0.3);
  z-index: 1;
}

/* texto por encima de todo */
.hero__content {
  position: relative;
  z-index: 2;
}

.hero__text {
  max-width: 600px;
}

.hero__text h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.hero__text p {
  font-size: 1.1rem;
  margin-bottom: 24px;
}


/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: #000;
}

.btn--primary:hover {
  background: #f0b022;
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn--full {
  width: 100%;
}

/* SECTIONS */

.section {
  padding: 60px 0;
}

.section--light {
  background: var(--bg-light);
}

.section--primary {
  background: var(--primary);
  color: var(--text-light);
}

.section__title {
  text-align: center;
  margin: 0 0 8px;
  font-size: 2rem;
}

.section__title--light {
  color: var(--text-light);
  text-align: left;
}

.section__underline {
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 30px;
}

.section__underline--light {
  margin-left: 0;
}

/* SERVICES */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}


.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.service-card__icon {
  margin-bottom: 12px;
}

.service-card h3 {
  margin-bottom: 8px;
}
/* ANIMACIONES DE ENTRADA EN SCROLL */

.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Para las que vienen desde la izquierda */
.reveal-left {
  transform: translateX(-40px);
}

/* Cuando el elemento ya es visible */
.in-view {
  opacity: 1;
  transform: translateX(0);
}


/* ABOUT */

.about {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.about__text {
  flex: 1 1 320px;
}

.about__image {
  flex: 1 1 320px;
}

/* CONTACT */

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}

.contact__info {
  flex: 1 1 260px;
}

.contact__form {
  flex: 2 1 340px;
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 24px;
}

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

input,
select,
textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font: inherit;
}
/* TITULOS ALINEADOS A LA IZQUIERDA (PARA PÁGINAS INTERNAS) */

.section__title--left {
  text-align: left;
}

.section__underline--light,
.section__underline--left {
  margin-left: 0;
}

/* DETALLE DE SERVICIOS */

.service-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}

.service-detail__text {
  flex: 2 1 340px;
}

.service-detail__media {
  flex: 1.2 1 260px;
}

.service-detail__tag {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-light);
  background: #eef2ff;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.service-detail__title {
  margin-top: 0;
  margin-bottom: 12px;
}

.service-detail__list {
  padding-left: 18px;
  margin-bottom: 16px;
}

.service-detail__card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.service-detail__card h3 {
  margin-top: 0;
}

/* responsive para servicios detalle */
@media (max-width: 768px) {
  .service-detail {
    flex-direction: column;
  }
}
.service-card img {
  width: 80px;   /* cambia este valor hasta que te guste */
  margin: 0 auto 16px;
  height: auto;
}

/* FAQ */

.section--faq {
  background: #0b204f;
  color: #fff;
}

.faq-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.faq-layout__media {
  flex: 1 1 300px;
}

.faq-video-placeholder video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}


.faq-layout__list {
  flex: 1.8 1 320px;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.faq-item__question {
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 1rem;
  cursor: pointer;
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item__answer p {
  margin: 0 0 16px;
}

/* WHY */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.why-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.why-card img {
  width: 80px;   /* cambia este valor hasta que te guste */
  margin: 0 auto 16px;
  height: auto;
}
/* CLIENTES */

/* CLIENTES - CARRUSEL */
.clients {
  text-align: center;
}

.clients__logos {
  position: relative;
  min-height: 120px;        /* altura para que no “salte” la sección */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.clients__logo {
  position: absolute;
  max-width: 180px;
  width: 40%;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  filter: grayscale(0.2);
}

.clients__logo--active {
  opacity: 1;
  transform: translateX(0);
}
/*testimonios de clientes*/
/* TESTIMONIOS: carrusel 1 a la vez */
.testimonials-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  margin-top: 40px;
  min-height: 220px; /* para que no “salte” al cambiar */
}

.testimonial-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  display: none;                /* 🔴 oculto por defecto */
  gap: 20px;
  align-items: flex-start;
  max-width: 700px;
  transition: opacity .3s ease, transform .3s ease, box-shadow .2s ease;
  opacity: 0;
}

.testimonial-card--active {
  display: flex;                /* 🟢 solo uno visible */
  opacity: 1;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.testimonial-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #041a4b;
}

.testimonial-content h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #041a4b;
}

.testimonial-content p {
  margin-top: 6px;
  font-size: 0.96rem;
  line-height: 1.45;
  color: #444;
}



/* LOGIN */

.section--login {
  background: #f4f6fb;
}

.login {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.login__form-wrapper,
.login__dashboard {
  flex: 1 1 320px;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.login__dashboard {
  display: none; /* Se muestra tras "login" falso desde JS */
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

/* FOOTER */

/* FOOTER BLANCO Y LIMPIO */
.footer {
  background: #ffffff;         /* fondo blanco */
  color: #222;                /* texto oscuro */
  margin-top: 40px;
  border-top: 1px solid #e5e5e5; /* separador sutil */
}

.footer__brand img {
  height: 60px;
  margin-bottom: 8px;
}

.footer__brand p {
  color: #444;
}

.footer__links a {
  color: #333;
}

.footer__links a:hover {
  color: #041a4b;     /* azul corporativo */
  text-decoration: underline;
}

.footer__social a {
  color: #333;
  margin-right: 12px;
}

.footer__social a:hover {
  color: #041a4b;
}

.footer__bottom {
  border-top: 1px solid #ddd;
  text-align: center;
  padding: 12px 0;
  font-size: 0.85rem;
  color: #555;
}

.footer__bottom a {
  color: #041a4b; 
}

.footer__bottom a:hover {
  text-decoration: underline;
}


.footer__content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 32px 0;
}

.footer__brand img {
  height: 60px;
  margin-bottom: 8px;
}

.footer__links a,
.footer__contact p {
  display: block;
  margin-bottom: 6px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 12px 0;
  font-size: 0.85rem;
}
.footer__social .social-icon svg {
  width: 22px;
  height: 22px;
  transition: transform .2s ease;
}

.footer__social .social-icon:hover svg {
  transform: scale(1.12);
}

/* CHATBOT */

.chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.chatbot__toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.chatbot__window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 320px;
  max-height: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chatbot__header {
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot__header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.chatbot__messages {
  padding: 10px;
  flex: 1;
  overflow-y: auto;
  font-size: 0.9rem;
}

.chatbot__message {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
}

.chatbot__message--bot {
  background: #f1f3ff;
  align-self: flex-start;
}

.chatbot__message--user {
  background: #dbe6ff;
  align-self: flex-end;
}

.chatbot__input-area {
  display: flex;
  border-top: 1px solid #eee;
}

.chatbot__input-area input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 0.9rem;
}

.chatbot__input-area button {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .header__nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px 16px;
    display: none;
  }

  .header__nav--open {
    display: flex;
  }

  .header__menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  }

  .hero__text h1 {
    font-size: 2.4rem;
  }

  .contact__form {
    flex: 1 1 100%;
  }

  /* 🔽 TODO ESTO SOLO EN MÓVIL 🔽 */

  .header__nav-item {
    width: 100%;
  }

  /* En móvil, el dropdown se muestra siempre cuando el menú está abierto */
  .header__dropdown {
    position: static;
    box-shadow: none;
    background: transparent;
    padding: 4px 0 0 12px;
    display: block;
    min-width: 0;
  }

  .header__dropdown a {
    padding: 4px 0;
  }
}/* MIS SERVICIOS – PANEL DEL CLIENTE */

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
  font-size: 0.8rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-badge--active {
  background: #e6f7ea;
  color: #1b7b3a;
}

.status-badge--paused {
  background: #fff4e5;
  color: #b56a00;
}

.status-badge--inactive {
  background: #fbe7e7;
  color: #b3261e;
}

.client-services {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.client-service {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.client-service__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.client-service__header h3 {
  margin: 0;
}

.client-service__desc {
  margin: 4px 0 10px;
  font-size: 0.95rem;
}

.client-service__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: #555;
}

.client-service__meta li + li {
  margin-top: 2px;
}

.client-service__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive */
@media (max-width: 600px) {
  .client-service__header {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* PANEL DE GESTIÓN (MANAGEMENT) */

.mgmt-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}

.mgmt-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.mgmt-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.mgmt-card__value {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.mgmt-card__hint {
  margin: 0;
  font-size: 0.8rem;
  color: #666;
}

.mgmt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
}

.mgmt-block {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.mgmt-block h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.mgmt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.mgmt-table th,
.mgmt-table td {
  border-bottom: 1px solid var(--border);
  padding: 8px 6px;
  text-align: left;
}

.mgmt-table th {
  font-weight: 600;
  background: #f9f9f9;
}

.mgmt-note {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #777;
}

/* Responsive */
@media (max-width: 900px) {
  .mgmt-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mgmt-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .mgmt-summary {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* MIS SERVICIOS – PANEL DEL CLIENTE */

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
  font-size: 0.8rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-badge--active {
  background: #e6f7ea;
  color: #1b7b3a;
}

.status-badge--paused {
  background: #fff4e5;
  color: #b56a00;
}

.status-badge--inactive {
  background: #fbe7e7;
  color: #b3261e;
}

.client-services {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.client-service {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.client-service__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.client-service__header h3 {
  margin: 0;
}

.client-service__desc {
  margin: 4px 0 10px;
  font-size: 0.95rem;
}

.client-service__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: #555;
}

.client-service__meta li + li {
  margin-top: 2px;
}

.client-service__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive */
@media (max-width: 600px) {
  .client-service__header {
    flex-direction: column;
    align-items: flex-start;
  }
}
.mgmt-actions {
  display: flex;
  justify-content: flex-end; /* Envía el botón a la derecha */
  margin: 20px 0;
}

/* --- FIX GAP DROPDOWN SERVICIOS --- */
.header__nav-item--has-dropdown {
  position: relative;
}

.header__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
}

.header__nav-item--has-dropdown:hover .header__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Puente invisible para que no se pierda el hover al bajar */
.header__dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}


/* ================================
   MIS SERVICIOS – ESTADOS COMPLETOS
   ================================ */

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
  font-size: 0.8rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ACTIVO */
.status-badge--active {
  background: #e6f7ea;
  color: #1b7b3a;
}

/* EN IMPLEMENTACIÓN */
.status-badge--implementing {
  background: #e6f0ff;
  color: #264d9b;
}

/* PAUSADO */
.status-badge--paused {
  background: #fff4e5;
  color: #b56a00;
}

/* COMPLETADO */
.status-badge--completed {
  background: #e0f7f9;
  color: #00796b;
}

/* INACTIVO */
.status-badge--inactive {
  background: #f1f1f1;
  color: #666666;
}

/* CANCELADO */
.status-badge--cancelled {
  background: #fdecea;
  color: #d32f2f;
}

/* PENDIENTE DE PAGO */
.status-badge--pending-payment {
  background: #fff3cd;
  color: #856404;
}

/* PENDIENTE DE INFORMACIÓN */
.status-badge--pending-info {
  background: #e8f0fe;
  color: #1a73e8;
}

/* Tarjetas de servicios del cliente */
.client-services {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.client-service {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.client-service__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.client-service__header h3 {
  margin: 0;
}

.client-service__desc {
  margin: 4px 0 10px;
  font-size: 0.95rem;
}

.client-service__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: #555;
}

.client-service__meta li + li {
  margin-top: 2px;
}

.client-service__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive */
@media (max-width: 600px) {
  .client-service__header {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* =========================
   MANAGEMENT – VISTA POR SERVICIOS
   ========================= */

.mgmt-section-title {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 600;
}

.mgmt-summary--global {
  margin-bottom: 24px;
}

.mgmt-summary--services {
  margin-bottom: 32px;
}

.mgmt-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-light);
  background: #eef2ff;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

/* Colores por tipo de servicio */
.mgmt-card--procesos {
  border-top: 3px solid #0f9d58;
}

.mgmt-card--tecnologia {
  border-top: 3px solid #4285f4;
}

.mgmt-card--ia {
  border-top: 3px solid #aa00ff;
}

.mgmt-card--auditorias {
  border-top: 3px solid #fbbc04;
}

.mgmt-card--publicidad {
  border-top: 3px solid #ff6d00;
}

.mgmt-card--consultoria {
  border-top: 3px solid #34a853;
}

/* Filtros del panel */
.mgmt-filters {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  margin-bottom: 24px;
}

.mgmt-filters__group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.mgmt-filter {
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.mgmt-filter label {
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: #555;
}

.mgmt-filters__hint {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #777;
}

/* Responsive filters & cards */
@media (max-width: 900px) {
  .mgmt-summary--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .mgmt-summary--services {
    grid-template-columns: minmax(0, 1fr);
  }

  .mgmt-filters__group {
    flex-direction: column;
    align-items: stretch;
  }

  .mgmt-filter {
    width: 100%;
  }
}
/* FAQ cerrada por defecto */
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* FAQ abierta */
.faq-item--open .faq-item__answer {
  max-height: 500px; /* ajusta si necesitas más altura */
}

/* Efecto en el símbolo + */
.faq-item__question span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.faq-item--open .faq-item__question span {
  transform: rotate(45deg); /* el + se convierte en x */
}

/* ================================
   ALTAS – ESTILOS ESPECÍFICOS
   ================================ */

/* Layout principal */
.altas-header-text {
  max-width: 720px;
  font-size: 0.98rem;
  color: #444;
}

.altas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 28px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .altas-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Tarjetas de resumen en altas */
.mgmt-summary--altas {
  margin: 24px 0 12px;
}

/* Tabs */
.altas-tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 16px;
  gap: 8px;
  flex-wrap: wrap;
}

.altas-tab {
  border: none;
  background: #f3f4ff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  color: #333;
}

.altas-tab--active {
  background: #041a4b;
  color: #fff;
}

.altas-tab-panel {
  display: none;
}

.altas-tab-panel--active {
  display: block;
}

/* Formularios */
.mgmt-forms {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mgmt-form .form-group {
  margin-bottom: 14px;
}

.mgmt-form small {
  font-size: 0.8rem;
  color: #666;
}

.form-row-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-row-inline .form-group {
  flex: 1 1 180px;
}

/* Panel lateral */
.altas-side-block + .altas-side-block {
  margin-top: 18px;
}

.altas-search {
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.altas-search input {
  flex: 1 1 160px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 0.85rem;
}

.altas-search label {
  font-size: 0.85rem;
  color: #555;
}

/* Tabla acciones */
.mgmt-table-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Bloques extra según tipo de servicio */
.service-extra {
  display: none;
  padding: 12px;
  margin-top: 8px;
  border-radius: 8px;
  background: #f8f9ff;
  border: 1px dashed #c9d2ff;
}

.service-extra h4 {
  margin-top: 0;
  font-size: 0.9rem;
}


@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* === PWA Install Banner (elegante) === */
.install-banner {
  background: #f7f9fc;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.install-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.install-banner__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.install-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0a2a66;
  background: rgba(10, 42, 102, 0.10);
  border: 1px solid rgba(10, 42, 102, 0.18);
}

.install-banner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.install-banner__text strong {
  font-size: 14px;
  line-height: 1.2;
  color: #0b1b33;
}

.install-banner__text span {
  font-size: 13px;
  line-height: 1.2;
  color: rgba(11, 27, 51, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.install-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.install-btn {
  appearance: none;
  border: 1px solid rgba(10, 42, 102, 0.20);
  background: #0a2a66;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease;
}

.install-btn:hover { opacity: 0.92; }
.install-btn:active { transform: scale(0.98); }

.install-close {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  color: rgba(0,0,0,0.55);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.install-close:hover { background: rgba(0,0,0,0.03); }

/* Móvil */
@media (max-width: 768px) {
  .install-banner__content {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 0;
  }

  .install-banner__text span {
    white-space: normal;
  }

  .install-banner__actions {
    justify-content: space-between;
  }

  .install-btn {
    width: 100%;
    text-align: center;
  }
}
.install-help{
  color: rgba(11, 27, 51, 0.85);
}
