/*
 * Fichero: components.css
 * Descripción: Clases para componentes reutilizables (Botones, Cards, Forms, etc.).
 * Principios: Modulares, BEM-like (ptk-), estados (hover, focus) y accesibilidad.
*/

/* 1. Botones (.ptk-btn) */
.ptk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--ptk-text-sm);
  font-weight: var(--ptk-weight-medium);
  line-height: 1.2;
  padding: var(--ptk-space-3) var(--ptk-space-6);
  min-height: 44px;
  /* Altura mínima táctil */
  border-radius: var(--ptk-radius-lg);
  border: 1px solid transparent;
  transition: all var(--ptk-dur-fast) var(--ptk-ease);
}

/* Variantes */
.ptk-btn--primary {
  background-color: var(--ptk-color-primary);
  color: var(--ptk-color-surface);
  /* Texto blanco/claro */
  box-shadow: var(--ptk-shadow-sm);
}

.ptk-btn--primary:hover {
  background-color: var(--ptk-color-primary-600);
  box-shadow: var(--ptk-shadow-md);
  transform: translateY(-1px);
}

/* ... resto de variantes: secondary, ghost, danger, link ... */

/* Tamaños */
.ptk-btn--sm {
  min-height: 36px;
  padding: var(--ptk-space-2) var(--ptk-space-4);
}

.ptk-btn--lg {
  min-height: 52px;
  font-size: var(--ptk-text-md);
  padding: var(--ptk-space-4) var(--ptk-space-8);
}

/* ... 2. Cards (.ptk-card), 3. Forms (.ptk-input), 4. Badges, etc. ... */
.ptk-card {
  background-color: var(--ptk-color-surface);
  border-radius: var(--ptk-radius-md);
  border: 1px solid var(--ptk-color-border);
  padding: var(--ptk-space-6);
}

.ptk-card--elevated {
  border: none;
  box-shadow: var(--ptk-shadow-md);
}

.ptk-card--outlined {
  background-color: transparent;
  border: 1px solid var(--ptk-color-border);
}

/*
 * --------------------------------
 * 4. Navbar & Navigation
 * --------------------------------
*/

/* Lista base de enlaces */
.ptk-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--ptk-space-6);
  /* Espacio entre enlaces */
  align-items: center;
}

/* Enlaces individuales */
.ptk-navbar__link {
  color: var(--ptk-color-text);
  padding: var(--ptk-space-2) 0;
  font-weight: var(--ptk-weight-medium);
  position: relative;
  transition: color var(--ptk-dur-fast) ease;
}

.ptk-navbar__link:hover,
.ptk-navbar__link[aria-expanded="true"] {
  color: var(--ptk-color-primary);
}

/* Indicador de página activa (underline animado) */
.ptk-navbar__link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--ptk-color-primary);
  transform: scaleX(0);
  transition: transform var(--ptk-dur-fast) var(--ptk-ease);
}

.ptk-navbar__link:hover::after,
.ptk-navbar__link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* --- Submenu / Mega-Menu --- */
.ptk-nav-item--has-submenu {
  position: relative;
}

.ptk-submenu {
  position: absolute;
  top: 100%;
  /* Justo debajo del enlace padre */
  left: 50%;
  transform: translateX(-50%);
  z-index: 950;
  min-width: 280px;
  background-color: var(--ptk-color-surface);
  border: 1px solid var(--ptk-color-border-strong);
  border-radius: var(--ptk-radius-md);
  padding: var(--ptk-space-4);
  box-shadow: var(--ptk-shadow-md);

  /* Ocultar por defecto (será mostrado por JS/CSS en hover/focus) */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--ptk-dur-fast) ease, visibility 0s linear var(--ptk-dur-fast);

  /* Reset de lista para cuando es un <ul> */
  list-style: none;
  margin: 0;
}

.ptk-nav-item--has-submenu:hover .ptk-submenu,
.ptk-nav-item--has-submenu:focus-within .ptk-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

/* Estilos de los enlaces dentro del Submenú */
.ptk-submenu__link {
  display: block;
  padding: var(--ptk-space-2) var(--ptk-space-3);
  border-radius: var(--ptk-radius-xs);
  color: var(--ptk-color-text);
  transition: background-color var(--ptk-dur-fast) ease;
}

.ptk-submenu__link:hover {
  background-color: var(--ptk-color-surface-2);
  text-decoration: none;
}

/* Mega-Menu Grid (para Services) */
.ptk-submenu--grid {
  min-width: 500px;
  padding: var(--ptk-space-6);
}

.ptk-submenu__title {
  font-size: var(--ptk-text-sm);
  color: var(--ptk-color-text-muted);
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: var(--ptk-space-4);
  border-bottom: 1px solid var(--ptk-color-border);
  padding-bottom: var(--ptk-space-2);
}

/* Utilitaria de highlight en el Mega-Menu */
.ptk-text-accent-highlight {
  color: var(--ptk-color-accent) !important;
  font-weight: var(--ptk-weight-semibold);
}

/* Navbar Actions (Desktop default) */
.ptk-navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--ptk-space-4);
}

/* Responsividad para móviles (colapsar menú) */
@media (max-width: var(--ptk-bp-lg)) {

  /* Ocultar el menú principal y mostrar un botón de hamburguesa (requiere JS) */
  .ptk-navbar__menu {
    display: none;
  }

  .ptk-navbar__actions {
    gap: var(--ptk-space-4);
  }

  /* El CTA principal ya está oculto en ptk-hide-sm, lo mantenemos así */
}

/*
 * --------------------------------
 * 11. Form Components
 * --------------------------------
*/

.ptk-form-wrapper {
  /* Ajustes para el contenedor del formulario */
  padding: var(--ptk-space-8);
  background-color: var(--ptk-color-surface);
  /* Fondo claro en light, oscuro en dark */
  width: 100%;
  /* En el grid de 2 columnas, el formulario puede tener más elevación visual */
}

/* Estilos de las Filas/Grupos */
.ptk-form-row {
  display: grid;
  gap: var(--ptk-space-4);
}

.ptk-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Label */
.ptk-label {
  display: block;
  font-size: var(--ptk-text-sm);
  font-weight: var(--ptk-weight-medium);
  color: var(--ptk-color-text-muted);
  margin-bottom: var(--ptk-space-1);
  cursor: pointer;
}

/* Input y Textarea base */
.ptk-input,
.ptk-textarea {
  width: 100%;
  padding: var(--ptk-space-3);
  border: 1px solid var(--ptk-color-border-strong);
  border-radius: var(--ptk-radius-sm);
  background-color: var(--ptk-color-surface-2);
  color: var(--ptk-color-text);
  font-size: var(--ptk-text-base);
  transition: border-color var(--ptk-dur-fast) ease, box-shadow var(--ptk-dur-fast) ease;
}

.ptk-input:focus,
.ptk-textarea:focus {
  outline: none;
  border-color: var(--ptk-color-primary);
  box-shadow: 0 0 0 2px var(--ptk-color-primary-faded);
  /* Anillo de foco accesible */
}

/* Estilo para Textarea */
.ptk-textarea {
  resize: vertical;
}

/* Grupo de Radio Buttons/Checkboxes */
.ptk-radio-group {
  display: flex;
  gap: var(--ptk-space-4);
}

.ptk-radio-label {
  display: flex;
  align-items: center;
  font-size: var(--ptk-text-base);
  cursor: pointer;
}

.ptk-radio-label input[type="radio"] {
  margin-right: var(--ptk-space-2);
  /* Estilos personalizados para radios/checkboxes si es necesario */
}


/* Responsividad específica del Formulario */
@media (max-width: var(--ptk-bp-sm)) {
  .ptk-form-row.ptk-cols-2 {
    grid-template-columns: 1fr;
    /* Apilar en móviles pequeños */
  }

  .ptk-radio-group {
    flex-direction: column;
    /* Apilar radios en móviles pequeños */
    align-items: flex-start;
  }
}

/* Estilos de la Columna Alternativa */
.ptk-alternative-contact {
  padding-top: var(--ptk-space-4);
  /* Alineación visual */
}

.ptk-contact-detail {
  border-left: 3px solid var(--ptk-color-accent);
  padding-left: var(--ptk-space-4);
}

.ptk-contact-detail .ptk-heading-4 {
  margin-bottom: var(--ptk-space-2);
  color: var(--ptk-color-text-muted);
}

/*
 * --------------------------------
 * 10. Blog & Post Styles
 * --------------------------------
*/

/* Contenedor estrecho para mejor legibilidad en posts (se agrega a layout.css) */
/* .ptk-container--narrow: se define en layout.css */

/* Componente Tag */
.ptk-tag {
  display: inline-block;
  padding: var(--ptk-space-1) var(--ptk-space-3);
  border-radius: var(--ptk-radius-full);
  font-size: var(--ptk-text-xs);
  font-weight: var(--ptk-weight-semibold);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: var(--ptk-space-3);
}

/* Variantes de Color para Tags */
.ptk-tag--primary {
  background-color: var(--ptk-color-primary-faded);
  color: var(--ptk-color-primary-dark);
}

.ptk-tag--secondary {
  background-color: var(--ptk-color-surface-2);
  color: var(--ptk-color-text);
  border: 1px solid var(--ptk-color-border);
}

.ptk-tag--accent {
  background-color: var(--ptk-color-accent-faded);
  color: var(--ptk-color-accent-dark);
}

/* Post Card (Enlace que contiene la Card) */
.ptk-post-card {
  display: flex;
  /* Para controlar el orden y el espaciado de los elementos internos */
  flex-direction: column;
  text-decoration: none;
  height: 100%;
}

.ptk-post-card__title {
  margin-top: var(--ptk-space-2);
  margin-bottom: var(--ptk-space-3);
  color: var(--ptk-color-text);
  /* Asegura que el título sea visible */
}

.ptk-post-card__excerpt {
  flex-grow: 1;
  /* Empuja la meta data hacia abajo */
}

.ptk-post-card__meta {
  color: var(--ptk-color-text-muted);
  margin-top: var(--ptk-space-4);
}

/* Post de Contenido Individual */
.ptk-post-header {
  padding-block: var(--ptk-space-12) var(--ptk-space-8);
  border-bottom: 1px solid var(--ptk-color-border);
}

.ptk-post-content {
  /* Clásicos estilos de contenido de lectura para tipografía */
  line-height: var(--ptk-leading-relaxed);
  font-size: var(--ptk-text-lg);
}

.ptk-post-content h2,
.ptk-post-content h3 {
  margin-top: var(--ptk-space-8);
  margin-bottom: var(--ptk-space-4);
}

.ptk-section--in-content {
  margin-bottom: var(--ptk-space-10);
}

/* --- Add this utility to your components.css --- */
.ptk-btn--accent-border {
  border-color: var(--ptk-color-accent);
  color: var(--ptk-color-accent);
}

.ptk-btn--accent-border:hover {
  background-color: var(--ptk-color-accent-faded);
  /* No cambia el color del texto para mantener el contraste */
}

/* --- Estilo simple para las tarjetas de principios --- */
.ptk-feature-card {
  /* Usado en la Sección 3 para los 4 principios */
  padding: var(--ptk-space-6);
  /* La animación se maneja con la clase ptk-card--interactive si se usa */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ptk-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ptk-shadow-md);
}

/*
 * --------------------------------
 * 13. Footer Component
 * --------------------------------
*/

.ptk-footer {
  /* El footer siempre usa el color de fondo principal para anclar el contenido */
  background-color: var(--ptk-color-background);
  color: var(--ptk-color-text);
  padding-block: var(--ptk-space-10) var(--ptk-space-4);
  border-top: 1px solid var(--ptk-color-border-strong);
}

.ptk-footer__main-grid {
  /* La definición del grid está en el HTML (cols-4) */
  gap: var(--ptk-space-8);
}

.ptk-footer__logo {
  margin-bottom: var(--ptk-space-2);
}

.ptk-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ptk-footer__list a,
.ptk-footer__bottom a {
  /* Usamos el ptk-link-animated que definimos en base.css */
  color: var(--ptk-color-text-muted);
  font-size: var(--ptk-text-base);
}

.ptk-footer__list a:hover,
.ptk-footer__bottom a:hover {
  color: var(--ptk-color-primary);
}

/* Formulario de Suscripción Compacto */
.ptk-subscription-form {
  display: flex;
  gap: var(--ptk-space-2);
  margin-top: var(--ptk-space-3);
}

.ptk-input--compact {
  flex-grow: 1;
  padding: var(--ptk-space-2) var(--ptk-space-3);
  font-size: var(--ptk-text-sm);
}

.ptk-btn--compact {
  /* Asegura que el botón sea más pequeño y coincida con la altura del input */
  padding: var(--ptk-space-2) var(--ptk-space-3);
  font-size: var(--ptk-text-sm);
  line-height: 1;
}

/* Línea de Copyright y Legal */
.ptk-footer__bottom {
  /* Usa ptk-inline-between (definido en layout.css) */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsividad (ajustado al ptk-grid existente) */
@media (max-width: var(--ptk-bp-md)) {
  .ptk-footer__main-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columnas en Tablet */
  }
}

@media (max-width: var(--ptk-bp-sm)) {
  .ptk-footer__main-grid {
    grid-template-columns: 1fr;
    /* 1 columna en Móvil */
  }

  .ptk-footer__bottom {
    flex-direction: column;
    /* Apilar Legal y Copyright */
    align-items: flex-start;
    gap: var(--ptk-space-3);
  }

  .ptk-footer__legal {
    flex-wrap: wrap;
  }
}


/*
 * --------------------------------
 * ***************************************************** Effects ***************************************************************************
 * --------------------------------
*/


/*
 * --------------------------------
 * 16. Image Zoom & Blur Hover Effect for Cards
 * --------------------------------
*/




/* El contenedor de la imagen de fondo */
.ptk-card__image-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  /* La imagen cubre todo el espacio */
  background-position: center;
  /* Centrar la imagen */
  transition: transform 0.5s ease-in-out, filter 0.5s ease-in-out;
  /* Transiciones para zoom y blur */
  z-index: 1;
  /* Detrás del contenido */
}

/* El contenido superpuesto (texto, botones) */
.ptk-card__content-overlay {
  position: relative;
  /* Necesario para que z-index funcione correctamente */
  z-index: 2;
  /* Siempre por encima de la imagen */
  padding: var(--ptk-space-6);
  /* Espaciado interno para el contenido */
  color: var(--ptk-color-text-inverted);
  /* Texto claro sobre fondo oscuro por defecto */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  /* Sombra para mejorar legibilidad sobre imagen */

  /* Degradado para mejorar la legibilidad del texto en la parte inferior */
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.85) 0%,
      /* Oscuro y opaco abajo */
      rgba(0, 0, 0, 0.6) 50%,
      /* Menos opaco en el medio */
      transparent 100%
      /* Transparente arriba */
    );
  border-radius: inherit;
  /* Hereda el radio del padre */
}

/* Estado :hover para la imagen de fondo */


/* Ajustes para el texto en hover si es necesario (ej. si el fondo se vuelve MUY oscuro) */
/* .ptk-card--image-zoom-hover:hover .ptk-card__content-overlay {
    color: var(--ptk-color-text-inverted); 
} */

/*
 * --------------------------------
 * 17. Hero Component (Extracted from index.css)
 * --------------------------------
*/
/* ... */

/* Accenture-style Insight Card */
.ptk-card--insight {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  /* Tall card */
  padding: var(--ptk-space-8);
  overflow: hidden;
  border-radius: 0;
  /* Accenture uses sharp or slightly rounded, we'll stick to our radius or 0 */
  border-radius: var(--ptk-radius-md);
  color: white;
  text-decoration: none;
  background-color: var(--ptk-color-surface-2);
  transition: transform var(--ptk-dur) var(--ptk-ease);
}

/* Background Image */
.ptk-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* Gradient Overlay (Always present but changes) */
.ptk-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.8) 100%);
  transition: background 0.4s ease;
  z-index: 2;
}

/* Hover State: Darker/Purple overlay + Zoom */
.ptk-card--insight:hover .ptk-card__bg {
  transform: scale(1.1);
}



/* Content */
.ptk-card__content {
  position: relative;
  z-index: 3;
  transform: translateY(0);
  transition: transform 0.4s var(--ptk-ease);
}



/* Heading: Ensure it stays white */
.ptk-card--insight h3 {
  color: white !important;
  transition: color 0.3s ease;
}

/*
 * --------------------------------
 * 18. Feature Cards (Why Proteck)
 * --------------------------------
*/

/* Image Card Component */
.ptk-card-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--ptk-radius-lg);
  background-color: var(--ptk-color-surface);
  border: 1px solid var(--ptk-color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ptk-card-image:hover {
  transform: translateY(-4px);
  box-shadow: var(--ptk-shadow-lg);
  border-color: var(--ptk-color-primary);
}

.ptk-img-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--ptk-color-surface-2) 0%, var(--ptk-color-surface) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ptk-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}

.ptk-img-placeholder--frontend {
  background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
}

.ptk-img-placeholder--backend {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.ptk-img-placeholder--devops {
  background: linear-gradient(135deg, #F2994A 0%, #F2C94C 100%);
}

.ptk-img-placeholder--qa {
  background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%);
}

.ptk-card-image__content {
  padding: var(--ptk-space-4);
  text-align: center;
}

.ptk-card--feature {
  padding: var(--ptk-space-6);
  background-color: var(--ptk-color-surface-2);
  /* Slightly lighter than bg */
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Subtle border */
  border-radius: var(--ptk-radius-md);
  transition: all 0.3s ease;
  height: 100%;
  /* Ensure equal height in grid */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.ptk-card--feature:hover {
  border-color: var(--ptk-color-primary);
  /* Light up border */
  transform: translateY(-5px);
  /* Lift effect */
  box-shadow: var(--ptk-shadow-lg);
  background-color: var(--ptk-color-surface-1);
  /* Slightly brighter on hover */
}

.ptk-icon-box {
  font-size: 2.5rem;
  margin-bottom: var(--ptk-space-4);
  line-height: 1;
}

.ptk-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--ptk-color-primary);
  color: white;
  font-weight: var(--ptk-weight-bold);
  font-size: var(--ptk-text-lg);
  margin-bottom: var(--ptk-space-4);
  box-shadow: 0 0 15px rgba(var(--ptk-color-primary-rgb), 0.4);
  /* Glow effect */
}

/* Code Block Component */
.ptk-code-block {
  background-color: #1e1e1e;
  border-radius: var(--ptk-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  font-family: 'Fira Code', 'Courier New', monospace;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.ptk-code-block__header {
  background-color: #252526;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ptk-code-block__dots {
  display: flex;
  gap: 6px;
}

.ptk-code-block__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ptk-code-block__dot--red {
  background-color: #ff5f56;
}

.ptk-code-block__dot--yellow {
  background-color: #ffbd2e;
}

.ptk-code-block__dot--green {
  background-color: #27c93f;
}

.ptk-code-block__filename {
  margin-left: 1rem;
  font-size: 0.8rem;
  color: #9da5b4;
}

.ptk-code-block__content {
  padding: 1.5rem;
  color: #d4d4d4;
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-x: auto;
}

.ptk-code-keyword {
  color: #c586c0;
}

.ptk-code-function {
  color: #dcdcaa;
}

.ptk-code-string {
  color: #ce9178;
}

.ptk-code-comment {
  color: #6a9955;
}

.ptk-code-operator {
  color: #d4d4d4;
}

.ptk-code-variable {
  color: #9cdcfe;
}

/* Markdown Simulation Styles */
.ptk-markdown {
  font-family: 'Fira Code', 'Courier New', monospace;
  color: #d4d4d4;
}

.ptk-md-heading {
  color: #569cd6;
  /* Blue for H1 */
  font-weight: bold;
  font-size: 1.1em;
}

.ptk-md-subheading {
  color: #569cd6;
  /* Blue for H2 */
  font-weight: bold;
}

.ptk-md-text {
  color: #ce9178;
  /* String color for text */
}

.ptk-md-list-item {
  color: #d4d4d4;
  display: block;
  margin-left: 1rem;
}

.ptk-md-bold {
  color: #4ec9b0;
  /* Teal for bold/emphasis */
  font-weight: bold;
}

/* Reveal Text/Link on Hover */
.ptk-card__link-text {
  display: inline-block;
  margin-top: var(--ptk-space-4);
  font-weight: var(--ptk-weight-bold);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--ptk-ease);
  color: white !important;

}

.ptk-card--insight:hover .ptk-card__link-text {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  padding: var(--ptk-space-16) 0;
  background: linear-gradient(180deg,
      var(--ptk-color-surface) 0%,
      var(--ptk-color-surface-2) 100%);
  position: relative;
  overflow: hidden;
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

.hero .ptk-container {
  position: relative;
  z-index: 10;
}

/* Gradient fade at bottom of hero to smooth transition into next section */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  pointer-events: none;
  z-index: 9;
  /* Fade from transparent to the surface color of the page */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--ptk-color-surface) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero::after {
    transition: none;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ptk-space-8);
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-copy .eyebrow {
  color: var(--ptk-color-accent);
  font-weight: var(--ptk-weight-semibold);
  letter-spacing: 0.06em;
  display: inline-block;
  margin-bottom: var(--ptk-space-3);
  align-self: flex-start;
}

.hero-copy h1 {
  margin: 0 0 var(--ptk-space-8) 0;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  color: var(--ptk-color-text);
  font-weight: var(--ptk-weight-bold);
  max-width: 85%;
}

.hero-lead {
  color: var(--ptk-color-text-muted);
  font-size: var(--ptk-text-lg);
  margin: var(--ptk-space-6) 0 0 0;
  align-self: flex-end;
  max-width: 60%;
  text-align: right;
}

.lead {
  color: var(--ptk-color-text-muted);
  font-size: var(--ptk-text-lg);
}

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: var(--ptk-radius-md);
  box-shadow: var(--ptk-shadow-md);
}

.hero-ctas {
  margin-top: var(--ptk-space-6);
  display: flex;
  gap: var(--ptk-space-3);
  align-self: flex-start;
  align-items: center;
  position: relative;
  z-index: 20;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--ptk-color-border);
  background: transparent;
  color: var(--ptk-color-text);
  text-decoration: none;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/*
 * --------------------------------
 * 18. Section Headers & Grids (Extracted from index.css)
 * --------------------------------
*/
.section-header {
  text-align: left;
  margin-bottom: var(--ptk-space-6);
}

.section-header h2 {
  margin: 0 0 var(--ptk-space-3) 0;
  font-size: var(--ptk-text-2xl);
}

.section-subtitle {
  color: var(--ptk-color-text-muted);
  margin: 0;
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ptk-space-8);
  align-items: center;
}

.who-grid img {
  width: 100%;
  border-radius: var(--ptk-radius-md);
  box-shadow: var(--ptk-shadow-sm);
}

@media (min-width: 768px) {
  .who-grid {
    grid-template-columns: 1fr 420px;
  }
}

/* Enhanced Who We Are styles */
.who-we-are {
  padding: var(--ptk-space-10) 0;
}

.who-content p {
  margin: 0 0 var(--ptk-space-4) 0;
  color: var(--ptk-color-text-muted);
}

.bullets {
  list-style: none;
  padding: 0;
  margin: var(--ptk-space-4) 0;
  display: grid;
  gap: 8px;
}

.bullets li {
  position: relative;
  padding-left: 28px;
  color: var(--ptk-color-text);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--ptk-color-primary);
  box-shadow: 0 2px 6px rgba(32, 74, 200, 0.12);
}

.who-ctas {
  margin-top: var(--ptk-space-6);
  display: flex;
  gap: var(--ptk-space-3);
  align-items: center;
}

/* Layout improvements: center and distribute who-we-are text */
.who-we-are .section-header {
  text-align: center;
  margin-bottom: var(--ptk-space-6);
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ptk-space-6);
  align-items: start;
}

.who-content.single-column {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}

.who-content.single-column p,
.who-content.single-column .bullets {
  /* Slightly wider measure for comfortable reading on desktop */
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  line-height: 1.75;
  font-size: var(--ptk-text-md);
}

.who-ctas {
  justify-content: center;
}

@media (min-width: 768px) {
  .who-content.single-column {
    padding-left: 0;
    padding-right: 0;
  }
}

/* New layout to match mockup: image left, large heading right */
.who-about {
  padding: var(--ptk-space-12) 0;
}

.who-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ptk-space-8);
  align-items: center;
}

.who-media .media-frame {
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--ptk-radius-md);
  box-shadow: var(--ptk-shadow-md);
  margin-left: 0;
}

.who-media .media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.who-text {
  position: relative;
}

.who-heading {
  margin: 0 0 var(--ptk-space-6) 0;
  font-weight: var(--ptk-weight-bold);
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.9;
  letter-spacing: -2px;
  color: var(--ptk-color-text);
  text-align: right;
}

.who-copy {
  max-width: 48ch;
  margin-left: auto;
  text-align: left;
}

.who-copy p {
  color: var(--ptk-color-text-muted);
  line-height: 1.75;
  margin: 0 0 var(--ptk-space-4) 0;
}

.who-ctas {
  display: flex;
  gap: var(--ptk-space-3);
  justify-content: flex-end;
  margin-top: var(--ptk-space-4);
}

@media (max-width: 899px) {
  .who-about-grid {
    grid-template-columns: 1fr;
  }

  .who-heading {
    text-align: center;
    font-size: clamp(32px, 8vw, 56px);
  }

  .who-copy {
    max-width: 64ch;
    margin: var(--ptk-space-4) auto 0 auto;
    text-align: left;
  }

  .who-ctas {
    justify-content: center;
  }

  .who-media .media-frame {
    max-width: 720px;
    margin: 0 auto;
  }
}

.who-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--ptk-radius-md);
}

.who-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ptk-space-4);
  margin-top: var(--ptk-space-8);
}

.stat {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  padding: var(--ptk-space-4);
  border-radius: var(--ptk-radius-sm);
  text-align: center;
}

.stat-value {
  font-size: var(--ptk-text-2xl);
  font-weight: var(--ptk-weight-bold);
  color: var(--ptk-color-primary);
}

.stat-label {
  font-size: var(--ptk-text-sm);
  color: var(--ptk-color-text-muted);
}

@media (max-width: 767px) {
  .who-grid {
    grid-template-columns: 1fr;
  }

  .who-stats {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Services grid */


.services-grid {
  display: grid;
  gap: var(--ptk-space-6);
  margin-top: var(--ptk-space-4);
  grid-template-columns: 1fr;
}

/* Card base */
.service-card {
  background: var(--ptk-color-surface);
  border: 1px solid var(--ptk-color-border);
  padding: var(--ptk-space-6);
  border-radius: var(--ptk-radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--ptk-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ptk-shadow-md);
}

/* Tablet */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Card 1 ocupa 2 columnas en tablet */
  .service-card:first-child {
    grid-column: span 2;
  }
}

/* Desktop (1920px, 1440px, 1080p…) */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Card 1 ocupa 2 columnas */
  .service-card:first-child {
    grid-column: span 2;
  }
}

/*
 * --------------------------------
 * 19. Theme Switch
 * --------------------------------
*/
.ptk-theme-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background-color: var(--ptk-color-surface-2);
  border: 1px solid var(--ptk-color-border);
  border-radius: 100px;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.ptk-theme-switch:hover {
  border-color: var(--ptk-color-primary);
}

.ptk-theme-switch__handle {
  width: 22px;
  height: 22px;
  background-color: var(--ptk-color-primary);
  border-radius: 50%;
  position: absolute;
  left: 3px;
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ptk-theme-switch__icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ptk-color-text-muted);
  z-index: 1;
  transition: opacity 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ptk-theme-switch__icon svg {
  width: 100%;
  height: 100%;
}

.ptk-theme-switch__icon--sun {
  right: 6px;
  opacity: 1;
}

.ptk-theme-switch__icon--moon {
  left: 6px;
  opacity: 0;
}

/* Dark Mode State */
[data-theme="dark"] .ptk-theme-switch {
  background-color: var(--ptk-color-surface-2);
  /* Or darker if needed */
}

[data-theme="dark"] .ptk-theme-switch__handle {
  transform: translateX(24px);
  background-color: var(--ptk-color-primary);
}

[data-theme="dark"] .ptk-theme-switch__icon--sun {
  opacity: 0;
}

[data-theme="dark"] .ptk-theme-switch__icon--moon {
  opacity: 1;
  color: var(--ptk-color-text);
  /* Highlight active icon */
}

/* 24. Highlight Component (Vanilla) */
.ptk-highlight {
  position: relative;
  display: inline;
  /* Keep it inline for seamless flow with text */
  padding: 0 1px;
  border-radius: var(--ptk-radius-xs);
  background-image: linear-gradient(to right, #a5b4fc, #c4b5fd);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: bottom left;
  transition: background-size 1.5s ease-out;
  color: inherit;
}

[data-theme="dark"] .ptk-highlight {
  background-image: linear-gradient(to right, rgba(99, 102, 241, 0.4), rgba(168, 85, 247, 0.4));
}

.ptk-highlight.visible {
  background-size: 100% 80%;
}

/* 25. Hero Highlight (Dot Pattern + Mouse Spotlight) */
.ptk-hero-highlight {
  position: relative;
  width: 100%;
  --ptk-mouse-x: -1000px;
  --ptk-mouse-y: -1000px;
  overflow: hidden;
}

/* Base dot pattern */
.ptk-hero-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='16' height='16' fill='none'%3E%3Ccircle fill='%23d4d4d4' id='pattern-circle' cx='10' cy='10' r='1.8'%3E%3C/circle%3E%3C/svg%3E");
  opacity: 0.4;
}

[data-theme="dark"] .ptk-hero-highlight::before {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='16' height='16' fill='none'%3E%3Ccircle fill='%23404040' id='pattern-circle' cx='10' cy='10' r='1.8'%3E%3C/circle%3E%3C/svg%3E");
  opacity: 0.6;
}

/* Hover/Spotlight dot pattern */
.ptk-hero-highlight::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='16' height='16' fill='none'%3E%3Ccircle fill='%235ea2ff' id='pattern-circle' cx='10' cy='10' r='1.8'%3E%3C/circle%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(300px circle at var(--ptk-mouse-x) var(--ptk-mouse-y), black 0%, transparent 100%);
  mask-image: radial-gradient(300px circle at var(--ptk-mouse-x) var(--ptk-mouse-y), black 0%, transparent 100%);
}

.ptk-hero-highlight:hover::after {
  opacity: 1;
}

/* Ensure content is above patterns */
.ptk-hero-highlight>*:not(::before):not(::after) {
  position: relative;
  z-index: 5;
}