/* =========================
   FUENTES
========================= */
@font-face {
  font-family: 'TT Hover Pro Bold';
  src: url(fonts/TT\ Hoves\ Pro\ Trial\ Expanded\ DemiBold.ttf);
}

@font-face {
  font-family: 'TT Hover Pro Medium';
  src: url(fonts/TT\ Hoves\ Pro\ Trial\ Condensed\ Light.ttf);
}

@font-face {
  font-family: 'TT Hoves Pro Thin';
  src: url(fonts/TT\ Hoves\ Pro\ Trial\ Expanded\ Thin.ttf);
}

/* RESET general */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #020617;
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  padding: 6rem 1rem 2rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(59,130,246,0.25), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(16,185,129,0.15), transparent 45%),
    linear-gradient(180deg, #020617, #020617);
  color: #fff;
  overflow: hidden;
}

.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 3rem;

  /* Mobile first order */
  grid-template-areas:
    "text"
    "visual"
    "actions";
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  align-items: center;
  grid-area: text;
}

/* Nombre */
.hero-name {
  font-family: 'TT Hover Pro Bold';
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
}

.hero-name .surname {
  display: block;
  color: #3B82F6;
}

/* Rol */
.hero-role {
  font-family: 'TT Hover Pro Medium';
  font-size: 1.2rem;
  position: relative;
  width: fit-content;
}

.hero-role::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #3B82F6, #10B981);
  border-radius: 2px;
}

/* Bio */
.hero-bio {
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(6px);
  border-radius: 1rem;
  padding: 1.25rem;
  font-family: 'TT Hoves Pro Thin';
  line-height: 1.6;
  max-width: 520px;
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.hero-bio strong {
  font-family: 'TT Hover Pro Bold';
  color: #10B981;
}

/* =========================
   HERO ACTIONS
========================= */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 360px;
  grid-area: actions;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.9rem 1.4rem;
  border-radius: 0.75rem;
  font-family: 'TT Hover Pro Bold';
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #10B981, #3B82F6);
  color: #020617;
  box-shadow: 0 10px 30px rgba(16,185,129,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(16,185,129,0.45);
}

.btn-secondary {
  background: transparent;
  color: #E5E7EB;
  border: 1px solid rgba(255,255,255,0.25);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: #3B82F6;
}

/* =========================
   BOTÓN BLOG
========================= */
.btn-blog {
  background: rgba(59,130,246,0.15);
  color: #3B82F6;
  border: 1px dashed rgba(59,130,246,0.6);
  font-family: 'TT Hover Pro Bold';
}

.btn-blog:hover {
  background: rgba(59,130,246,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59,130,246,0.35);
}

/* Botón 'Ir al Portfolio' — más grande en móvil/tablet, compacto en desktop */
.btn-portfolio {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.25rem;
  padding: 0.9rem 1.2rem; /* mayor clic target en móvil/tablet */
  font-size: 1rem;
  border-radius: 0.6rem;
}

@media (min-width: 768px) and (max-width: 1199px) {
  /* Ajuste fino para tablets */
  .btn-portfolio {
    padding: 0.85rem 1.1rem;
    font-size: 1.02rem;
  }
}

@media (min-width: 1200px) {
  /* En desktop colocamos el botón arriba a la izquierda dentro del hero */
  .blog-hero {
    position: relative; /* ya lo es, pero aseguramos */
  }
  .btn-portfolio {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    margin-top: 0; /* anulamos el margen móvil */
    padding: 0.5rem 0.9rem; /* tamaño compacto para desktop */
    font-size: 0.9rem;
  }
}

/* Avatar */
.hero-visual {
  display: flex;
  justify-content: center;
  grid-area: visual;
}

.hero-avatar {
  width: clamp(180px, 45vw, 260px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, #3B82F6, #10B981);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #020617;
}

/* =========================
   BARRA DIVISORIA
========================= */
.experience-divider {
  width: 80px;
  height: 4px;
  background-color: #10B981;
  margin: 0 auto;
  border-radius: 2px;
  display: block;
}

/* =========================
   SUBTÍTULOS DE SECCIÓN
========================= */
.subtitles {
  display: flex;
  justify-content: center;
  margin: 3rem 0 1.5rem;
}

.subtitles h2 {
  font-family: 'TT Hover Pro Bold';
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #10B981;
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
}

/* =========================
   EXPERIENCIA
========================= */
.experience {
  display: grid;
  gap: 2rem;
  padding: 3rem 1rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: 1fr;
  background:
    linear-gradient(180deg, #020617 0%, #020617 100%),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.03),
      rgba(255,255,255,0.03) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.03),
      rgba(255,255,255,0.03) 1px,
      transparent 1px,
      transparent 40px
    );
}

/* =========================
   TARJETAS EXPERIENCIA
========================= */
.exp-card {
  perspective: 1200px;
}

.card-inner {
  position: relative;
  min-height: 300px;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  cursor: pointer;
}

.exp-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1.5rem;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-front {
  background:
    linear-gradient(rgba(31,41,55,0.6), rgba(31,41,55,0.6)),
    var(--bg-front) center / cover no-repeat;
  color: #fff;
  gap: 0.75rem;
}

.card-front img {
  background: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  max-width: 160px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.card-front h3 {
  font-family: 'TT Hover Pro Bold';
  font-size: 1.1rem;
  text-align: center;
}

.card-front .date {
  font-size: 0.9rem;
  opacity: 0.85;
  font-family: 'TT Hoves Pro Thin';
}

.card-back {
  background-color: #020617;
  color: #E5E7EB;
  transform: rotateY(180deg);
  text-align: left;
}

.card-back h4 {
  font-family: 'TT Hover Pro Bold';
  margin-bottom: 0.75rem;
}

.card-back ul {
  list-style: none;
  padding: 0;
  font-family: 'TT Hoves Pro Thin';
}

.card-back li {
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.card-back li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #3B82F6;
}

/* =========================
   CERTIFICACIONES
========================= */
.certifications {
  padding: 3rem 1rem 6rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(16,185,129,0.08), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(59,130,246,0.05), transparent 45%),
    #020617;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(17,24,39,0.75);
  padding: 1rem 1.2rem 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  gap: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cert-badge:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 25px rgba(16,185,129,0.35);
}

.badge-top {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cert-badge img {
  width: clamp(80px, 20vw, 150px);
  height: clamp(80px, 20vw, 150px);
  border-radius: 50%;
  object-fit: cover;
  background-color: rgba(17,24,39,0.75);
  padding: 0.5rem;
  display: block;
}

.badge-status {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 0.25rem 0.5rem;
  font-size: 0.65rem;
  font-weight: bold;
  border-radius: 0.5rem;
  text-transform: uppercase;
  color: #fff;
}

.badge-status.valid {
  background-color: #10B981;
  font-family: 'TT Hoves Pro Thin';
}

.badge-status.expired {
  background-color: #EF4444;
  font-family: 'TT Hoves Pro Thin';
}

.cert-badge h3 {
  font-family: 'TT Hover Pro Bold';
  font-size: 1rem;
  color: #10B981;
  margin-bottom: 0.2rem;
}

.cert-badge p {
  font-family: 'TT Hoves Pro Thin';
  font-size: 0.85rem;
  color: #E5E7EB;
  margin-bottom: 0.5rem;
  text-align: center;
}

.btn-cert {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-family: 'TT Hover Pro Bold';
  font-size: 0.8rem;
  color: #020617;
  background: linear-gradient(135deg, #10B981, #3B82F6);
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto; /* empuja el botón al final de la tarjeta */
}

.btn-cert:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(16,185,129,0.35);
}

/* =========================
   FORMACIÓN OFICIAL PANW
========================= */
.training {
  padding: 3rem 1rem 6rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(16,185,129,0.08), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(59,130,246,0.05), transparent 45%),
    #020617;
}

.training-intro {
  max-width: 900px;
  margin: 0 auto 2rem;
  font-family: 'TT Hoves Pro Thin';
  font-size: 0.95rem;
  color: #E5E7EB;
  line-height: 1.6;
  text-align: center;
}

.training-cards {
  display: grid;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: 1fr; /* mobile first */
}

.training-card {
  background: rgba(17, 24, 39, 0.75);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.training-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 25px rgba(16,185,129,0.35);
}

.training-card h3 {
  font-family: 'TT Hover Pro Bold';
  font-size: 1rem;
  color: #10B981;
}

.training-card p {
  font-family: 'TT Hoves Pro Thin';
  font-size: 0.9rem;
  color: #E5E7EB;
  line-height: 1.4;
}


/* =========================
   SLIDERS CLIENTES
========================= */

.clients {
  padding: 3rem 1rem 4rem;
  background: linear-gradient(180deg, #020617 0%, #020617 100%);
}

.clients-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}

.clients-slider {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  gap: 2rem;
  width: 100%;
}

.client-logo {
  flex: 0 0 calc(50% - 1rem); /* mobile: 2 logos */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.9;
  transition: transform 0.3s, opacity 0.3s;
}

.client-logo img {
  max-width: 120px;
  width: 100%;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.client-logo img:hover {
  filter: grayscale(0%);
}

/* Botones */
.client-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #10B981, #3B82F6);
  color: #020617;
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  z-index: 10;
}

.client-btn.prev {
  left: -1rem;
}

.client-btn.next {
  right: -1rem;
}

/* =========================
   RESEÑAS
========================= */
.reviews {
  padding: 3rem 1rem 6rem;
  background: radial-gradient(circle at 20% 20%, rgba(59,130,246,0.08), transparent 40%),
              radial-gradient(circle at 80% 10%, rgba(16,185,129,0.05), transparent 45%),
              #020617;
}

.reviews-container {
  display: grid;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: 1fr; /* mobile-first: 1 por fila */
}

.review-card {
  background: rgba(17, 24, 39, 0.75);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.review-name {
  font-family: 'TT Hover Pro Bold';
  font-size: 1rem;
  color: #10B981;
}

.review-role {
  font-family: 'TT Hoves Pro Thin';
  font-size: 0.85rem;
  color: #E5E7EB;
  opacity: 0.8;
}

.review-stars {
  color: #FACC15; /* dorado para estrellas */
  font-size: 0.95rem;
}

.review-comment {
  font-family: 'TT Hoves Pro Thin';
  font-size: 0.9rem;
  color: #E5E7EB;
  line-height: 1.4;
}

.reviews-source {
  text-align: center;
  font-family: 'TT Hoves Pro Thin';
  font-size: 0.9rem;
  color: #E5E7EB;
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

/* =========================
   SECCIÓN CONTACTO
========================= */
.contact {
  padding: 3rem 1rem 6rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(16,185,129,0.08), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(59,130,246,0.05), transparent 45%),
    #020617;
}

.contact-container {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-title {
  font-family: 'TT Hover Pro Bold';
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: #10B981;
  text-align: center;
}

.contact-subtitle {
  font-family: 'TT Hoves Pro Thin';
  font-size: 1rem;
  color: #E5E7EB;
  opacity: 0.8;
  text-align: center;
}

/* FORMULARIO */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: 'TT Hover Pro Bold';
  color: #E5E7EB;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(17,24,39,0.75);
  color: #fff;
  font-family: 'TT Hoves Pro Thin';
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #10B981;
  box-shadow: 0 0 8px rgba(16,185,129,0.4);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* =========================
   CHECKBOX TRATAMIENTO DE DATOS
========================= */

.form-checkbox {
  display: flex;
  align-items: flex-start;   /* alinea arriba para textos largos */
  gap: 0.6rem;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 0.15rem;       /* ajusta visualmente con el texto */
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  accent-color: #10B981;
  cursor: pointer;
}

.form-checkbox label {
  font-family: 'TT Hoves Pro Thin';
  font-size: 0.85rem;
  line-height: 1.35;
  color: #E5E7EB;
  cursor: pointer;
}

/* BOTONES DEL FORMULARIO */
.form-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center; /* centrado en móvil */
  flex-wrap: wrap;
}

.form-buttons .btn {
  flex: 1 1 45%;
  text-align: center;
}

.form-modal {
  display: none; /* oculto por defecto */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
}

/* Cuando se añade .show el modal se muestra con animación */
.form-modal.show {
  display: flex;
  opacity: 1;
  animation: modalFade 0.22s ease;
}

@keyframes modalFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-modal-content {
  background: rgba(17,24,39,0.95);
  padding: 2rem;
  border-radius: 1rem;
  max-width: 420px;
  width: calc(100% - 3rem);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
  font-family: 'TT Hoves Pro Thin';
  color: #E5E7EB;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.form-modal-content button {
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  border-radius: 0.75rem;
  border: none;
  background: linear-gradient(135deg, #10B981, #3B82F6);
  color: #020617;
  cursor: pointer;
  font-family: 'TT Hover Pro Bold';
}


/* =========================
   FOOTER
========================= */
.site-footer {
  background: linear-gradient(180deg, #020617 0%, #020617 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 1rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  text-align: center;
}

.footer-copy {
  font-family: 'TT Hoves Pro Thin';
  font-size: 0.85rem;
  color: #E5E7EB;
  opacity: 0.75;
}

.footer-socials {
  display: flex;
  gap: 1.2rem;
}

.footer-socials a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(17,24,39,0.75);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-socials a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16,185,129,0.35);
}

.footer-socials i {
  font-size: 1.1rem;
  color: #E5E7EB;
  transition: color 0.3s ease;
}


/* =========================
   BLOG
========================= */

.blog-hero {
  padding: 5rem 1rem 3rem;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(59,130,246,0.15), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(16,185,129,0.12), transparent 45%),
    #020617;
}

.blog-hero h1 {
  font-family: 'TT Hover Pro Bold';
  font-size: clamp(2rem, 6vw, 3rem);
  color: #10B981;
}

.blog-hero p {
  font-family: 'TT Hoves Pro Thin';
  max-width: 600px;
  margin: 1rem auto 0;
  opacity: 0.85;
}

/* LISTADO */
.blog-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem 6rem;
  display: grid;
  gap: 3rem;
}

/* TARJETA */
.blog-card {
  display: flex;
  flex-direction: column; /* mobile */
  background: rgba(17, 24, 39, 0.75);
  border-radius: 1rem;
  overflow: hidden; /* CLAVE para evitar overflow */
  border: 1px solid rgba(255,255,255,0.08);
}

/* MINIATURA */
.blog-thumb {
  width: 100%;
  aspect-ratio: 16 / 9; /* CLAVE */
  overflow: hidden;
  background: #020617;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* CLAVE */
  display: block;
}

/* CONTENIDO */
.blog-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.blog-content h2 {
  font-family: 'TT Hover Pro Bold';
  font-size: 1.2rem;
  color: #10B981;
}

.blog-meta {
  font-family: 'TT Hoves Pro Thin';
  font-size: 0.85rem;
  color: #3B82F6;
}

.blog-excerpt {
  font-family: 'TT Hoves Pro Thin';
  font-size: 0.95rem;
  line-height: 1.5;
  color: #E5E7EB;
}



/* FECHA */
.blog-date {
  font-family: 'TT Hoves Pro Thin';
  font-size: 0.8rem;
  color: #9CA3AF;
  margin-bottom: 0.2rem;
}

/* BADGE GENERAL */
.blog-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.6rem;
  font-family: 'TT Hover Pro Bold';
  font-size: 0.65rem;
  text-transform: uppercase;
  border-radius: 0.5rem;
  z-index: 2;
  letter-spacing: 0.03em;
}

/* NUEVO */
.blog-badge.new {
  background: linear-gradient(135deg, #10B981, #34D399);
  color: #020617;
}

/* DESTACADO */
.blog-badge.featured {
  background: linear-gradient(135deg, #3B82F6, #60A5FA);
  color: #020617;
}

/* Asegura contexto relativo */
.blog-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1rem 1rem 0 0;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* recorte limpio, nunca estira */
  display: block;
}

/* LINK */
.blog-link {
  margin-top: 1rem;
  align-self: flex-start;
  font-family: 'TT Hover Pro Bold';
  font-size: 0.85rem;
  color: #020617;
  background: linear-gradient(135deg, #10B981, #3B82F6);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(16,185,129,0.35);
}

/* =========================
   POST ARTICLE (Blog post styles)
========================= */
.post-main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  /* En pantallas grandes usar hasta 80vw pero con tope razonable */
  .post-main {
    max-width: none; /* anulamos el max-width por defecto */
    width: min(80vw, 1400px);
  }
}

.post-article {
  background: rgba(17,24,39,0.75);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.06);
  color: #E5E7EB;
  font-family: 'TT Hoves Pro Thin';
  line-height: 1.7;
}

.post-article .blog-excerpt {
  font-size: 1.05rem;
  color: #E5E7EB;
  margin-bottom: 1rem;
}

.post-article h1,
.post-article h2,
.post-article h3 {
  font-family: 'TT Hover Pro Bold';
  color: #10B981;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.post-article h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.post-article h2 { font-size: 1.15rem; }
.post-article h3 { font-size: 1rem; }

.post-article p {
  color: #E5E7EB;
}

/* Justificado para mejorar legibilidad del texto en los artículos */
.post-article .blog-excerpt,
.post-article p,
.post-article ul,
.post-article li {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

.post-article .blog-date {
  color: #9CA3AF;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.post-article pre {
  background: rgba(0,0,0,0.45);
  padding: 1rem;
  border-radius: 0.5rem;
  color: #E5E7EB;
  overflow:auto;
  border: 1px solid rgba(255,255,255,0.03);
}

.post-article video {
  border-radius: 0.5rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.6);
}

@media (min-width: 768px) {
  .post-article { padding: 2.5rem; }
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 767px) {
  .hero-actions {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 768px) {
  .hero-container {
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-areas:
      "text visual"
      "actions visual";
    align-items: center;
  }

  .hero-text {
    text-align: left;
    align-items: flex-start;
  }

  .hero-bio {
    text-align: left;
  }

  .experience {
    grid-template-columns: repeat(2, 1fr);
  }

  .training-cards {
    grid-template-columns: repeat(2, 1fr); /* 2 cards por fila */
  }


  .client-logo {
    flex: 0 0 calc(25% - 1.5rem); /* desktop: 4 logos */
  }

  .reviews-container {
    grid-template-columns: repeat(2, 1fr); /* 2 reseñas por fila */
  }

  .form-buttons {
    justify-content: flex-start; /* alineados a la izquierda en pantallas medianas */
  }

  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .blog-card {
    flex-direction: row;
  }

  .blog-thumb {
    flex: 0 0 40%;
  }

  .blog-thumb img {
    height: 100%;
  }
}

@media (min-width: 1200px) {
  .experience {
    grid-template-columns: repeat(3, 1fr);
  }

  .training-cards {
    grid-template-columns: repeat(3, 1fr); /* 3 cards por fila */
  }

  .reviews-container {
    grid-template-columns: repeat(4, 1fr); /* 4 reseñas por fila */
  }

  .contact-container {
    gap: 2rem;
  }

  .form-buttons .btn {
    flex: 1 1 30%;
  }

  .blog-thumb {
    flex: 0 0 35%;
  }

}
