/* ================================
   VARIABLES Y RESET
   ================================ */

:root {
  --bg-main: #050608;
  --bg-card: #111827;
  --accent: #2563eb;
  --accent-soft: #3b82f6;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.site-body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
}

/* ================================
   HEADER Y NAV
   ================================ */

/* ================================
   HEADER Y NAV - CENTRADO
   ================================ */

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem 0.75rem;
  background-color: #020617;
  border-bottom: 1px solid #111827;
  gap: 0.75rem;
}

.logo-area {
  display: flex;
  justify-content: center;
}

.logo-area a {
  display: inline-block;
  line-height: 0;
}

.site-logo {
  height: 56px;
  width: auto;
  display: block;
}

.logo-box {
  display: inline-flex;
  flex-direction: column;
}

.logo-text-main {
  font-weight: 700;
  color: var(--accent-soft);
}

.logo-text-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.1rem;
  padding-bottom: 0.25rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.93rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border-bottom: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
  color: var(--text-main);
  background: rgba(255,255,255,0.06);
}

.main-nav a.active {
  color: #fff;
  background: var(--accent);
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 1rem 0.5rem;
    gap: 0.5rem;
  }
  .site-logo {
    height: 44px;
  }
  .main-nav a {
    font-size: 0.82rem;
    padding: 0.3rem 0.6rem;
  }
}

@media (max-width: 480px) {
  .main-nav a {
    font-size: 0.78rem;
    padding: 0.25rem 0.5rem;
  }
}


/* ================================
   FOOTER
   ================================ */

.site-footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  background-color: #020617;
  border-top: 1px solid #111827;
}

/* ================================
   HERO / PORTADA
   ================================ */

.site-main {
  min-height: calc(100vh - 60px);
}

.hero {
  position: relative;
  min-height: calc(100vh - 60px);
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem 1rem;
}

.hero-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero-avatar-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 5px solid var(--accent);
  background-color: #1f2937;
  background-size: cover;
  background-position: center;
  background-image: url('../img/avatar.jpg');
}

.hero-title {
  font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem);
  margin: 0.5rem 0;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-social {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background-color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

/* ================================
   PAGE WRAPPER GENERAL
   ================================ */

.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.page-header h1 {
  font-size: 1.8rem;
  margin: 0 0 1.5rem;
}

.page-subtitle {
  color: var(--text-muted);
  margin: -0.5rem 0 1.5rem;
  font-size: 1rem;
}

/* ================================
   SERVICIOS
   ================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: var(--bg-card);
  border-radius: 0.5rem;
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card-image {
  width: 90px;
  height: 60px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.service-card-image--placeholder {
  background: linear-gradient(135deg, var(--accent-soft), #1d4ed8);
}

.service-card-category {
  color: var(--accent-soft);
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
}

.service-card-title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.service-card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ================================
   NOSOTROS
   ================================ */

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-top: 2rem;
}

.about-image {
  width: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
  max-height: 380px;
}

.about-image-placeholder {
  width: 100%;
  height: 280px;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
}

.about-contact-box {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.about-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.about-contact-item a {
  color: var(--accent-soft);
  text-decoration: none;
}

.about-contact-item a:hover {
  text-decoration: underline;
}

.about-contact-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.about-title {
  font-size: 1.8rem;
  margin: 0 0 1rem;
}

.about-content-col {
  padding-top: 0.5rem;
}

.wysiwyg p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.wysiwyg ul,
.wysiwyg ol {
  color: var(--text-muted);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.wysiwyg a {
  color: var(--accent-soft);
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { max-height: 250px; }
}

/* ================================
   CURRICULUM
   ================================ */

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.curriculum-group {
  background-color: var(--bg-card);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.curriculum-group-title {
  font-size: 1.1rem;
  margin: 0 0 1.25rem;
  color: var(--accent-soft);
  border-bottom: 1px solid #1f2937;
  padding-bottom: 0.5rem;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.skill-name {
  font-size: 0.93rem;
  color: var(--text-main);
}

.skill-pct {
  font-size: 0.85rem;
  color: var(--accent-soft);
  font-weight: 600;
}

.skill-bar-bg {
  height: 8px;
  background-color: #1f2937;
  border-radius: 999px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

@media (max-width: 992px) {
  .curriculum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 576px) {
  .curriculum-grid { grid-template-columns: 1fr; }
}

/* ================================
   PORTAFOLIO
   ================================ */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.portfolio-card {
  cursor: pointer;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--bg-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.portfolio-card:hover,
.portfolio-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.portfolio-card-img {
  position: relative;
  width: 100%;
  padding-top: 75%;
  background-size: cover;
  background-position: center;
  background-color: #1f2937;
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(37,99,235,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.portfolio-card:hover .portfolio-card-overlay,
.portfolio-card:focus .portfolio-card-overlay {
  background: rgba(37,99,235,0.5);
}

.portfolio-zoom-icon {
  font-size: 2rem;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.portfolio-card:hover .portfolio-zoom-icon,
.portfolio-card:focus .portfolio-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

.portfolio-card-title {
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1200px) {
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 400px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ================================
   LIGHTBOX
   ================================ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 0.5rem;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lightbox-title {
  color: #fff;
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.light
.lightbox-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  z-index: 10000;
  transition: background 0.2s ease;
  line-height: 1;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}

@media (max-width: 768px) {
  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
  .lightbox-prev,
  .lightbox-next { font-size: 1.8rem; padding: 0.4rem 0.7rem; }
}

/* ================================
   PREGUNTAS / FAQs
   ================================ */

.faqs-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2.5rem;
  align-items: start;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-item {
  background: var(--bg-card);
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #1f2937;
  transition: border-color 0.2s ease;
}

.faq-item--open {
  border-color: var(--accent);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 0.97rem;
  font-weight: 600;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--accent-soft);
}

.faq-icon {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent-soft);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item--open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
}

.faq-answer-inner {
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.faqs-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #000;
}

.faqs-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 900px) {
  .faqs-layout { grid-template-columns: 1fr; }
  .faqs-video-col { order: -1; }
}

/* ================================
   BLOG - LISTADO
   ================================ */

.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.blog-cat-btn {
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  border: 1px solid #1f2937;
  transition: all 0.2s ease;
}

.blog-cat-btn:hover,
.blog-cat-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg-card);
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.blog-card-img-link {
  display: block;
}

.blog-card-img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #1f2937;
}

.blog-card-img--placeholder {
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
}

.blog-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-cat {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-soft);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  display: block;
}

.blog-card-title {
  font-size: 1rem;
  margin: 0 0 0.6rem;
  line-height: 1.4;
}

.blog-card-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: var(--accent-soft);
}

.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.blog-card-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.blog-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-btn-pdf {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #1f2937;
  color: var(--accent-soft);
  text-decoration: none;
  font-size: 0.82rem;
  border: 1px solid var(--accent);
  transition: all 0.2s ease;
}

.blog-btn-pdf:hover {
  background: var(--accent);
  color: #fff;
}

.blog-btn-read {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.blog-btn-read:hover {
  background: var(--accent-soft);
  color: #fff;
}

@media (max-width: 992px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 576px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-footer { flex-direction: column; align-items: flex-start; }
}

/* ================================
   BLOG - DETALLE
   ================================ */

.blog-detail {
  max-width: 860px;
  margin: 0 auto;
}

.blog-detail-header {
  margin-bottom: 1.5rem;
}

.blog-detail-title {
  font-size: clamp(1.5rem, 2.5vw + 1rem, 2.2rem);
  margin: 0.5rem 0;
  line-height: 1.3;
}

.blog-detail-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.blog-detail-img-wrapper {
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.blog-detail-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.blog-detail-excerpt {
  font-size: 1.05rem;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.blog-detail-content {
  margin-bottom: 2rem;
}

.blog-detail-pdf {
  background: var(--bg-card);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.blog-detail-pdf h3 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.blog-pdf-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.blog-pdf-viewer {
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #1f2937;
}

.blog-detail-back {
  padding-top: 1rem;
  border-top: 1px solid #1f2937;
}

/* ================================
   CONTACTO
   ================================ */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  background: var(--bg-card);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid #1f2937;
  transition: border-color 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.contact-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.contact-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.contact-card-text {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 0;
  line-height: 1.5;
}

.contact-card-text a {
  color: var(--accent-soft);
  text-decoration: none;
}

.contact-card-text a:hover {
  color: #fff;
  text-decoration: underline;
}

.contact-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent-soft);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.contact-card-link:hover {
  background: var(--accent);
  color: #fff;
}

.contact-btn-wrapper {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-main-btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(37,99,235,0.35);
}

.contact-main-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: #fff;
}

.contact-map {
  margin-bottom: 3rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #1f2937;
}

.contact-form-wrapper
.contact-form-wrapper {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid #1f2937;
}

.contact-form-title {
  font-size: 1.4rem;
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1f2937;
}

.contact-alert {
  padding: 0.9rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.contact-alert--success {
  background: rgba(34,197,94,0.12);
  border: 1px solid #22c55e;
  color: #86efac;
}

.contact-alert--error {
  background: rgba(239,68,68,0.12);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.req {
  color: #ef4444;
}

.contact-form-group input,
.contact-form-group textarea {
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 0.5rem;
  color: var(--text-main);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
  color: #4b5563;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.contact-form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-submit-btn {
  align-self: flex-start;
  padding: 0.8rem 2.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(37,99,235,0.3);
}

.contact-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .contact-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .contact-form-wrapper {
    padding: 1.25rem;
  }
  .contact-form-row {
    grid-template-columns: 1fr;
  }
  .contact-submit-btn {
    width: 100%;
    text-align: center;
  }
}

/* ================================
   SERVICIO DETALLE
   ================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb-sep {
  color: #374151;
}

.service-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.service-detail-img-wrapper {
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.service-detail-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.service-detail-header {
  margin-bottom: 1.25rem;
}

.service-detail-cat {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-soft);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.4rem;
}

.service-detail-title {
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.service-detail-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.service-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid #1f2937;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.service-detail-badge--accent {
  border-color: var(--accent);
  color: var(--accent-soft);
}

.service-detail-excerpt {
  font-size: 1.05rem;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-detail-content {
  margin-bottom: 2rem;
}

.service-detail-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid #1f2937;
}

.service-detail-btn-primary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(37,99,235,0.3);
  text-align: center;
}

.service-detail-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: #fff;
}

.service-detail-btn-outline {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.service-detail-btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.w-full {
  width: 100%;
}

/* SIDEBAR */

.service-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service-sidebar-card {
  background: var(--bg-card);
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid #1f2937;
}

.service-sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #1f2937;
  color: var(--accent-soft);
}

.service-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-sidebar-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #1f2937;
}

.service-sidebar-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-label {
  color: var(--text-muted);
}

.sidebar-value {
  color: var(--text-main);
  font-weight: 600;
}

.sidebar-value--green {
  color: #22c55e;
}

.service-sidebar-text {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 1rem;
  line-height: 1.6;
}

.service-sidebar-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(34,197,94,0.1);
  border: 1px solid #22c55e;
  border-radius: 999px;
  color: #22c55e;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.service-sidebar-whatsapp:hover {
  background: #22c55e;
  color: #fff;
}

/* Relacionados */

.service-sidebar-related {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-related-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

.service-related-item:hover {
  background: rgba(255,255,255,0.05);
}

.service-related-img {
  width: 52px;
  height: 52px;
  border-radius: 0.4rem;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: #1f2937;
}

.service-related-img--placeholder {
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
}

.service-related-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.service-related-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.service-related-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}



/* Botón en tarjeta de servicio */

.service-card-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.4rem 1.1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.service-card-link:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
  color: #fff;
}

/* Responsive detalle */

@media (max-width: 900px) {
  .service-detail-layout {
    grid-template-columns: 1fr;
  }

  .service-detail-sidebar {
    order: -1;
  }
}

@media (max-width: 576px) {
  .service-detail-cta {
    flex-direction: column;
  }

  .service-detail-btn-primary,
  .service-detail-btn-outline {
    width: 100%;
    text-align: center;
  }
}

/* Overlay móvil */
#sb-overlay { display: none; }
#sb-overlay.show { display: block; }

/* Desktop: sidebar empuja contenido */
.sb { transform: translateX(0); transition: transform .3s ease; }
.sb.closed { transform: translateX(calc(-1 * var(--sw))); }

/* Móvil/Tablet: sidebar flota sobre el contenido */
@media (max-width: 900px) {
  .sb {
    transform: translateX(calc(-1 * var(--sw)));
    z-index: 1100;
  }
  .sb.sb-open {
    transform: translateX(0);
  }
  .mn {
    margin-left: 0 !important;
  }
}
