
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700&display=swap');

:root{
  --brand:#10B981;        /* verde del logo */
  --fg:#0F172A;           /* texto principal (oscuro) */
  --muted:#4B5563;        /* gris contenido */
  --card-bg:#FFFFFF;      /* fondo base de la tarjeta */
  --radius:12px;          /* esquinas suaves */
}

*{box-sizing:border-box}
body{margin:0; font-family:'Plus Jakarta Sans',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; color:var(--fg); background:#fff;}

.section{ max-width:1180px; margin:40px auto; padding:0 16px; }
.section h2{ font-size:clamp(28px,3vw,40px); margin:0 0 16px; }

/* GRID */
.svc-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
@media (max-width:1024px){
  .svc-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:640px){
  .svc-grid{ grid-template-columns:1fr; }
}

/* CARD (sin imágenes) */
.svc-card{
  position:relative;
  display:block;
  text-decoration:none;
  color:var(--muted);
  background:var(--card-bg);
  border:1.5px solid var(--brand);
  border-radius:var(--radius);
  padding:21px 22px;
  overflow:hidden;                 /* asegura recorte del overlay */
  transition: color .25s ease, border-color .25s ease, background-color .25s ease;
  will-change: color, border-color, background-color;
}

/* Overlay de color (sube desde abajo y cubre todo) */
.svc-card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:var(--brand);
  transform:translateY(100%);
  transition:transform .35s ease;
  z-index:0;
  backface-visibility:hidden;
}
.svc-card > *{ position:relative; z-index:1; }

/* Títulos y texto */
.svc-title{
  margin:0 0 8px;
  font-weight:700;
  font-size:clamp(17px,1.7vw,20px);
  color:#111827;
  letter-spacing:-.01em;
  line-height:1.15;
}
.svc-desc{ font-size:0.95rem;
  margin:0;
  line-height:1.5;
}

/* Estado hover/focus: overlay cubre todo, texto blanco */
.svc-card:hover::after,
.svc-card:focus-visible::after{ transform:translateY(0); }
.svc-card:hover, .svc-card:focus-visible{
  color:#fff;
  border-color:transparent;
}
.svc-card:hover .svc-title,
.svc-card:focus-visible .svc-title{ color:#fff; }

/* Accesibilidad */
.svc-card:focus-visible{ outline:3px solid rgba(16,185,129,.45); outline-offset:2px; }

/* Respeto a usuarios con reducción de movimiento */
@media (prefers-reduced-motion:reduce){
  .svc-card, .svc-card::after{ transition:none !important; }
}

/* Lista de características por servicio (texto crudo) */
.svc-list{ margin: 8px 0 0; padding-left: 18px; font-size: 0.95rem; line-height: 1.45; }
.svc-list li{ margin: 2px 0; }

/* Cabecera con ícono + título */
.svc-head{ display:flex; align-items:center; gap:10px; }
.svc-ico{ display:inline-flex; width:22px; height:22px; color:var(--brand); flex:0 0 auto; }
.svc-ico svg{ width:100%; height:100%; display:block; shape-rendering:geometricPrecision; }
.svc-card:hover .svc-ico, .svc-card:focus-visible .svc-ico{ color:#FFFFFF; }


/* Icono en esquina superior derecha */
.svc-card{ position:relative; }
.svc-head{ display:block; } /* título ocupa todo el ancho; ícono sale del flujo */
.svc-ico{
  position:absolute; top:12px; right:12px;
  width:22px; height:22px; color:var(--brand);
  z-index:1; display:inline-flex;
}
.svc-ico svg{ width:100%; height:100%; display:block; shape-rendering:geometricPrecision; }
.svc-card:hover .svc-ico, .svc-card:focus-visible .svc-ico{ color:#FFFFFF; }



/* === Servicios: acabado limpio (borde nítido, icono esquina, sin subrayados) — final === */
#svc-v5 .svc-card{
  position:relative;
  display:block;
  text-decoration:none;
  color:var(--muted);
  background:#fff;
  border:1.5px solid var(--brand);
  border-radius:12px;
  background-clip:padding-box;
  overflow:hidden;
  padding:21px 22px;
  transition:color .25s ease,border-color .25s ease,background-color .25s ease;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
#svc-v5 .svc-card:hover,
#svc-v5 .svc-card:focus,
#svc-v5 .svc-card *{ text-decoration:none; }

#svc-v5 .svc-ico{
  position:absolute; top:12px; right:12px;
  width:22px; height:22px; color:var(--brand);
  z-index:1; display:inline-flex;
}
#svc-v5 .svc-ico svg{ width:100%; height:100%; display:block; vector-effect:non-scaling-stroke; shape-rendering:geometricPrecision; }

#svc-v5 .svc-card::after{
  content:"";
  position:absolute; inset:0;
  border-radius:inherit;
  background:var(--brand);
  transform:translateY(100%);
  transition:transform .35s ease;
  z-index:0;
}
#svc-v5 .svc-card > *{ position:relative; z-index:1; }

#svc-v5 .svc-title{ margin:0 0 8px; font-weight:700; letter-spacing:-.01em; line-height:1.15; }
#svc-v5 .svc-list{ margin:8px 0 0; padding-left:18px; line-height:1.45; }
#svc-v5 .svc-list li{ margin:2px 0; }

#svc-v5 .svc-card:hover::after,
#svc-v5 .svc-card:focus-visible::after{ transform:translateY(0); }
#svc-v5 .svc-card:hover,
#svc-v5 .svc-card:focus-visible{ color:#fff; border-color:transparent; }
#svc-v5 .svc-card:hover .svc-title,
#svc-v5 .svc-card:focus-visible .svc-title{ color:#fff; }
#svc-v5 .svc-card:hover .svc-ico,
#svc-v5 .svc-card:focus-visible .svc-ico{ color:#fff; }

#svc-v5 .svc-card:focus-visible{ outline:3px solid rgba(16,185,129,.45); outline-offset:2px; }

@media (prefers-reduced-motion:reduce){
  #svc-v5 .svc-card, #svc-v5 .svc-card::after{ transition:none !important; }
}
/* === Fin del acabado limpio === */


/* ===========================
   BREADCRUMB STYLES
   =========================== */
.breadcrumb-container {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: #fafafa;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #666;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: #10b981;
}

.breadcrumb-separator {
  color: #999;
}

.breadcrumb-current {
  color: #333;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===========================
   SIDEBAR STYLES
   =========================== */
.sidebar {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
  padding: 1.5rem;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  /* Soporte mejorado para todos los navegadores */
  will-change: transform;
  -webkit-transform: translateZ(0); /* Hardware acceleration */
  transform: translateZ(0);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem 0;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-item {
  display: flex;
  flex-direction: column;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #666;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.sidebar-link:hover {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.sidebar-link-active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-weight: 600;
}

.sidebar-icon {
  flex-shrink: 0;
  transition: transform 0.2s;
}

.sidebar-link-active .sidebar-icon {
  transform: rotate(90deg);
}

.sidebar-sublist {
  list-style: none;
  margin: 0.25rem 0 0 0;
  padding: 0 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-subitem {
  display: flex;
}

.sidebar-sublink {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  color: #666;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.sidebar-sublink:hover {
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
}

.sidebar-mobile-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

/* iPad Portrait y dispositivos medianos */
@media (max-width: 1024px) and (min-width: 768px) {
  .service-layout {
    grid-template-columns: 1fr 260px;
    gap: 1.5rem;
  }

  .sidebar {
    top: 70px;
    padding: 1.25rem;
  }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 767px) {
  .sidebar-mobile-toggle {
    display: flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw; /* No más del 85% del ancho */
    max-height: 100vh;
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
    -webkit-transition: transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out;
    z-index: 100;
    background: white;
    border-radius: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
  }

  .sidebar-mobile-open {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  .sidebar-mobile-open ~ .sidebar-overlay {
    display: block;
  }
}

/* iPad Landscape y pantallas entre 1024-1280px */
@media (min-width: 1025px) and (max-width: 1279px) {
  .service-layout {
    max-width: 1140px;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
  }
}

/* ===========================
   SERVICE HERO STYLES
   =========================== */
.service-hero {
  padding: 3rem 0;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.service-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.service-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.2;
  margin: 0;
}

.service-hero-description {
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}

.service-hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-hero-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  background: #f3f4f6;
}

.service-hero-image {
  object-fit: cover;
}

@media (max-width: 768px) {
  .service-hero {
    padding: 2rem 0;
  }

  .service-hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-hero-title {
    font-size: 1.875rem;
  }

  .service-hero-description {
    font-size: 1rem;
  }
}

/* ===========================
   SERVICE LAYOUT STYLES
   =========================== */
.service-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

/* Pantallas muy grandes: más espacio */
@media (min-width: 1440px) {
  .service-layout {
    max-width: 1280px;
    gap: 2.5rem;
  }
}

.service-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.service-section {
  scroll-margin-top: 100px;
}

.service-section h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 1.5rem 0;
  line-height: 1.3;
}

.service-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

.service-section h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin: 1.5rem 0 0.75rem 0;
  line-height: 1.4;
}

.service-section p {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.8;
  margin: 0 0 1rem 0;
}

.service-section ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-section li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.7;
}

.service-section li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: #10b981;
}

.service-card {
  padding: 1.5rem;
  background: #fafafa;
  border-radius: 8px;
  border-left: 4px solid #10b981;
  margin: 1.5rem 0;
}

.service-card h4 {
  margin-top: 0;
  color: #10b981;
}

/* Móviles pequeños: layout de una columna */
@media (max-width: 767px) {
  .service-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .service-content {
    gap: 2rem;
  }

  .service-section h2 {
    font-size: 1.5rem;
  }

  .service-section h3 {
    font-size: 1.25rem;
  }
}

/* ===========================
   SERVICE CTA STYLES
   =========================== */
.service-cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  margin-top: 3rem;
}

.service-cta-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.service-cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.service-cta-description {
  font-size: 1.125rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.7;
}

.service-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.service-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.service-cta-button-primary {
  background: #10b981;
  color: white;
}

.service-cta-button-primary:hover {
  background: #0e9f76;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.service-cta-button-secondary {
  background: white;
  color: #10b981;
  border: 2px solid #10b981;
}

.service-cta-button-secondary:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

@media (max-width: 768px) {
  .service-cta {
    padding: 3rem 0;
  }

  .service-cta-title {
    font-size: 1.5rem;
  }

  .service-cta-description {
    font-size: 1rem;
  }

  .service-cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .service-cta-button {
    width: 100%;
  }
}
