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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: #f3f4f6;
  line-height: 1.6;
}

a {
  color: #0f766e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e5e7eb;
  transition: box-shadow 0.15s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: radial-gradient(circle at 0% 0%, #0f766e, #22c55e);
  color: #ecfdf5;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.35);
  font-size: 0.9rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-weight: 700;
  font-size: 1rem;
}

.logo-subtitle {
  font-size: 0.8rem;
  color: #6b7280;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.main-nav a {
  color: #111827;
  font-weight: 500;
}

.main-nav a:hover {
  color: #0f766e;
}

.has-dropdown {
  position: relative;
}

.has-dropdown .dropdown {
  position: absolute;
  top: 120%;
  left: 0;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.20);
  padding: 0.5rem 0;
  display: none;
  min-width: 220px;
  z-index: 40;
}

.has-dropdown:hover .dropdown {
  display: block;
}

.dropdown li {
  padding: 0;
}

.dropdown a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  color: #111827;
}

.dropdown a:hover {
  background: #f3f4f6;
  color: #0f766e;
}

.nav-cta a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e, #22c55e);
  color: #ecfdf5;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
}

.nav-cta a:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.badge {
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  background: #ecfdf5;
  color: #066e58;
  border: 1px solid #a7f3d0;
  font-weight: 500;
}

.site-main {
  padding-bottom: 4rem;
}

.hero {
  padding: 3.5rem 0 3rem;
  background: radial-gradient(circle at top left, #d1fae5, #ecfdf5 40%, #eff6ff 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  color: #047857;
}

.hero h1 {
  margin-top: 0.7rem;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.hero p {
  margin-top: 0.75rem;
  color: #4b5563;
  max-width: 34rem;
}

.hero-bullets {
  list-style: none;
  margin: 1rem 0 1.25rem;
  padding: 0;
  color: #374151;
  font-size: 0.95rem;
}

.hero-bullets li + li {
  margin-top: 0.25rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #0f766e, #22c55e);
  color: #ecfdf5;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  text-decoration: none;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #0f766e;
  color: #0f766e;
  font-weight: 500;
  font-size: 0.9rem;
  background: #ecfdf5;
}

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.hero-badge {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: #064e3b;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-card {
  width: 100%;
  max-width: 320px;
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.4rem 1.4rem 1.6rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  border: 1px solid #e5e7eb;
}

.hero-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.hero-card p {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: #374151;
}

.hero-meta li + li {
  margin-top: 0.3rem;
}

.section {
  padding: 3rem 0;
}

.section-accent {
  background: #f0fdf4;
  border-top: 1px solid #bbf7d0;
  border-bottom: 1px solid #bbf7d0;
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-header h1,
.section-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
}

.section-header p {
  margin: 0;
  color: #4b5563;
  max-width: 34rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.25rem;
  align-items: flex-start;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card-service {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.3rem 1.3rem 1.4rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.card-service h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.card-service p {
  margin: 0 0 0.8rem;
  color: #4b5563;
  font-size: 0.9rem;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
}

.card-link::after {
  content: "→";
  margin-left: 0.25rem;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: #374151;
}

.list-check li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.35rem;
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #16a34a;
  font-weight: 700;
}

.form-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem 1.5rem 1.7rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.12);
  font-size: 0.9rem;
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: #374151;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="time"],
.field textarea {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.65rem;
  font: inherit;
  background: #f9fafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #0f766e;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.4);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.field-checkbox {
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

.field-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-weight: 400;
  color: #4b5563;
}

.field-checkbox input[type="checkbox"] {
  margin-top: 0.1rem;
}

.info-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  font-size: 0.9rem;
}

.info-card h3,
.info-card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.info-card p {
  margin: 0.2rem 0;
  color: #4b5563;
}

.alert {
  border-radius: 0.75rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

.alert.success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #047857;
}

.alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 1.8rem 0 1.2rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-links a {
  color: #4b5563;
}

.footer-bottom {
  border-top: 1px dashed #e5e7eb;
  padding-top: 0.6rem;
}

.footer-bottom small {
  color: #9ca3af;
}

.admin-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
  border-radius: 999px;
  padding: 0.15rem;
  background: #e5e7eb;
}

.admin-tabs a {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #4b5563;
}

.admin-tabs a.active {
  background: #ffffff;
  color: #0f766e;
  box-shadow: 0 6px 15px rgba(15, 23, 42, 0.15);
}

.logout-link {
  margin-left: 0.5rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.list-compact {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: #4b5563;
}

.list-compact li + li {
  margin-top: 0.25rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: #ffffff;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.table th,
.table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.table thead th {
  background: #f9fafb;
  font-weight: 600;
  font-size: 0.8rem;
  color: #4b5563;
}

.table tr:last-child td {
  border-bottom: none;
}

.table-actions a {
  margin-right: 0.4rem;
  font-size: 0.8rem;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.badge-pendiente {
  background: #fef3c7;
  color: #92400e;
}

.badge-gestionada {
  background: #dcfce7;
  color: #166534;
}

.row-notes td {
  background: #f9fafb;
  font-size: 0.8rem;
  color: #4b5563;
}

.small {
  max-width: 480px;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.inner {
  margin-top: 2rem;
}

.content {
  font-size: 0.96rem;
  color: #374151;
}

.content p {
  margin-bottom: 0.8rem;
}

/* Servicios landing */
.section-services-hero {
  background: radial-gradient(circle at top left, #d1fae5, #ecfdf5 40%, #eff6ff 70%);
  border-bottom: 1px solid #bbf7d0;
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

.services-intro h1 {
  margin-top: 0.8rem;
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.services-intro p {
  color: #4b5563;
  max-width: 36rem;
}

.services-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #6ee7b7;
}

.pill-soft {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.services-side {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.services-highlight {
  max-width: 320px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}

.services-highlight-note {
  font-size: 0.82rem;
  color: #6b7280;
  margin-top: 0.4rem;
}

.section-services-list {
  background: #f9fafb;
}

.cards-grid-services {
  margin-top: 1.5rem;
}

.card-service--large {
  padding: 1.4rem 1.5rem 1.5rem;
}

.card-service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.card-service-header h3 {
  margin: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.16rem 0.6rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 700;
}

.card-service-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.85rem;
  font-size: 0.82rem;
}

.card-link.subtle {
  color: #6b7280;
  font-weight: 500;
}

.card-link.subtle::after {
  content: "";
  margin: 0;
}

/* Ficha de servicio */
.section-service-hero {
  background: radial-gradient(circle at top left, #d1fae5, #ecfdf5 40%, #eff6ff 70%);
  border-bottom: 1px solid #bbf7d0;
  padding-top: 2.6rem;
  padding-bottom: 2.3rem;
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.service-breadcrumb {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.45rem;
}

.service-breadcrumb:hover {
  color: #0f766e;
  text-decoration: none;
}

.service-hero-main h1 {
  margin-top: 0.3rem;
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  line-height: 1.1;
}

.service-subtitle {
  margin-top: 0.5rem;
  color: #4b5563;
  max-width: 36rem;
}

.service-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.service-hero-side {
  display: flex;
  justify-content: flex-end;
}

.service-hero-card {
  max-width: 340px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.service-hero-btn {
  margin-top: 0.8rem;
}

.section-service-body {
  padding-top: 2.5rem;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.service-content {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.4rem 1.5rem 1.6rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
}

.service-content p:last-child {
  margin-bottom: 0;
}

.service-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.service-note h4 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.service-note p {
  font-size: 0.85rem;
  color: #4b5563;
}

@media (max-width: 900px) {
  .hero-inner,
  .split,
  .admin-grid,
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-side {
    align-items: flex-start;
  }
  .cards-grid {
    gap: 1rem;
  }
  .footer-inner {
    flex-direction: column;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .section-services-hero .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .services-side {
    justify-content: flex-start;
  }
  .cards-grid-services {
    grid-template-columns: minmax(0, 1fr);
  }
  .service-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .service-hero-side {
    justify-content: flex-start;
  }
  .service-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .service-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .main-nav ul {
    display: none;
  }
  .header-inner {
    justify-content: space-between;
  }
  .hero {
    padding-top: 2.4rem;
  }
}
