/* ===== RESET ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color:#333; background:#fff;
}

/* ===== SIDEBAR IZQUIERDA ===== */
.sidebar{
  position: fixed; left: 0; top: 0; bottom: 0;
  width: 260px; padding: 26px 20px;
  overflow-y: auto;
  /* Fondo texturizado tipo Nuccia */
  background:
    radial-gradient(#ececec 1px, transparent 1px) 0 0/6px 6px,
    radial-gradient(#f1f1f1 1px, transparent 1px) 3px 3px/6px 6px,
    #f7f7f7;
  border-right: 1px solid #e5e5e5;
}

.brand{ margin-bottom: 22px; }
.name-script{
  display:block;
  font-family: "Georgia", "Times New Roman", serif;
  font-style: italic;
  font-size: 26px; line-height: 1.1;
}
.role{ display:block; margin-top:6px; font-size: 13px; opacity:.8; }

.menu{ display:flex; flex-direction:column; gap:12px; margin: 14px 0 18px; }
.menu a{
  text-decoration:none; color:#1a1a1a; font-size:13.5px; letter-spacing:.06em;
}
.menu a.active{ color:#c57a00; }         /* tono dorado para INICIO */
.menu a:hover{ color:#0062cc; }

.contact-mini{
  display:flex; align-items:center; gap:10px;
  margin-top: 26px; color:#444; font-size: 13px;
}
.contact-mini a{ color:#cc2e55; text-decoration:none; word-break: break-all; }

/* ===== CONTENIDO PRINCIPAL ===== */
.content{ margin-left: 260px; min-height: 100%; }

/* Secciones base */
section{ padding: 48px 6vw; }
section h2, section h3{
  color:#333; font-weight:700; margin: 8px 0 16px;
}

/* ===== ACERCA DE MÍ (2 COLUMNAS TIPO NUCCIA) ===== */
.about{ padding-top: 56px; padding-bottom: 40px; }
.about-grid{
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(420px, 1fr);   /* foto ~30%, texto ~70% */
  gap: 48px;
  align-items: center;
}
.about-photo img{
  width: 300px; height: 300px; object-fit: cover;
  border-radius: 50%; display:block;
  border: 6px solid #e9eefc;
}
.about-text h2{
  font-size: 1.9rem; margin-bottom: 12px; text-align: left;
}
.about-text p{
  font-size: 1.05rem; line-height: 1.9; color:#333; text-align: left;
}
.about-text .about-last{ margin-top: 10px; }

/* ===== VIDEOS (fondo gris) ===== */
.videos{ background: #efefef; border-top:1px solid #e5e5e5; border-bottom:1px solid #e5e5e5; }
.videos .section-inner{ max-width: 1200px; margin: 0 auto; }
.videos h3{ text-align:center; font-size: 1.4rem; margin-bottom: 18px; }
.video-grid{
  display: grid; grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 28px 40px;
}
.video-card{ display:flex; flex-direction:column; gap:8px; }
.video-card figcaption{ font-size: 12.5px; color:#444; text-align:left; }
.iframe-wrap{
  position: relative; width: 100%; padding-top: 56.25%; /* 16:9 */
  background:#ddd; border: 1px solid #d6d6d6;
}
.iframe-wrap iframe{ position:absolute; inset:0; width:100%; height:100%; }

/* ===== PERFILES ACADÉMICOS ===== */
.profiles{ text-align:center; }
.profiles h3{ font-size: 1.6rem; margin-bottom: 22px; }
.profile-grid{
  margin: 0 auto; max-width: 1200px;
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px 18px;
}
.profile-card{
  border: 1px solid #cfcfcf; background:#eee; /* gris claro como en referencia */
  padding: 26px 18px; display:flex; flex-direction:column; gap:14px;
  align-items:center; justify-content:center; min-height: 120px;
}
.profile-card header{ font-weight:700; }
.btn{
  display:inline-block; text-decoration:none; font-weight:700;
  padding: 9px 14px; border:0; background:#333; color:#fff;
  border-radius:4px; transition: .2s ease;
}
.btn:hover{ filter: brightness(1.1); }

/* ===== PRINCIPALES LÍNEAS DE INVESTIGACIÓN ===== */
.research-lines{ background:#efefef; text-align:center; }
.research-lines h3{ font-size: 1.6rem; margin-bottom: 22px; }
.research-grid{
  margin: 0 auto; max-width: 1200px;
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.research-card{ position: relative; overflow: hidden; border-radius: 4px; }
.research-card img{
  width:100%; height: 220px; object-fit: cover;
  filter: brightness(70%); transition: transform .3s ease, filter .3s ease;
}
.research-card h4{
  position:absolute; left:20px; bottom:14px; color:#fff;
  font-weight:800; font-size: 1.05rem;
}
.research-card:hover img{ transform: scale(1.05); filter: brightness(60%); }

/* ===== FOOTER ===== */
.footer{
  text-align:center; font-size: 13.5px; color:#555;
  padding: 28px 6vw 40px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px){
  .about-grid{ grid-template-columns: 260px 1fr; gap: 36px; }
  .about-photo img{ width: 260px; height: 260px; }
}
@media (max-width: 900px){
  .video-grid{ grid-template-columns: 1fr; }
  .profile-grid, .research-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px){
  .sidebar{
    position: static; width: 100%;
    display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px;
  }
  .menu{ flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .content{ margin-left: 0; }
  section{ padding: 32px 5vw; }

  .about-grid{
    grid-template-columns: 1fr; text-align:center; gap: 18px;
  }
  .about-text h2, .about-text p{ text-align:center; }
  .about-photo img{ margin: 0 auto 6px; }

  .profile-grid, .research-grid{ grid-template-columns: 1fr; }
}

/* ============ SERVICIOS ============ */

/* Hero con imagen + overlay de texto */
.svc-hero{
  position: relative;
  margin: 28px auto 8px;
  max-width: 1200px;
  padding: 0 6vw;
}
.svc-hero img{
  width: 100%;
  height: 220px;             /* ajusta a 260px si quieres más alto */
  object-fit: cover;
  display: block;
  border: 1px solid #e3e3e3;
}
.svc-hero-overlay{
  position: absolute;
  left: calc(6vw + 12px);    /* respeta padding lateral */
  right: calc(6vw + 12px);
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.svc-hero-overlay h1{
  font-size: 1.9rem;
  margin-bottom: 6px;
  font-weight: 800;
}
.svc-hero-overlay p{
  font-size: 1.05rem;
  font-weight: 600;
}

/* ¿Por qué elegirnos? */
.svc-why{
  max-width: 1200px;
  margin: 18px auto 0;
  padding: 0 6vw;
}
.svc-why h2{ font-size: 1.6rem; margin-bottom: 10px; }
.svc-why p{ line-height: 1.9; }

/* Nuestros servicios incluyen */
.svc-includes{
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 0 6vw 10px;
}
.svc-includes h3{
  font-size: 1.35rem; margin-bottom: 14px;
}

/* Chips (botones grandes de colores) */
.svc-chips{
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-bottom: 16px;
}
.chip{
  display: inline-block;
  padding: 14px 18px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  border-radius: 4px;
  min-width: 280px;
  text-align: center;
}
.chip-lila{ background: #a78bfa; }   /* lila */
.chip-roja{ background: #ef4444; }   /* roja */

.chip:hover{ filter: brightness(1.08); }

/* Lista con checks rojos */
.svc-checklist{
  list-style: none;
  margin-top: 8px;
  display: grid;
  gap: 10px;
}
.svc-checklist li{
  position: relative;
  padding-left: 28px;
  line-height: 1.9;
}
.svc-checklist li::before{
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: #ef4444; font-weight: 900;
}

/* ¿Qué nos distingue? */
.svc-diff{
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 0 6vw 28px;
}
.svc-diff h3{ font-size: 1.35rem; margin-bottom: 14px; }
.svc-bullets{
  list-style: none; display: grid; gap: 12px;
}
.svc-bullets li{
  position: relative; padding-left: 28px; line-height: 1.9;
}
.svc-bullets li::before{
  content: "➤";
  position: absolute; left: 0; top: 0;
  color: #d14646; font-weight: 900;
}

/* Responsive */
@media (max-width: 900px){
  .svc-hero img{ height: 200px; }
  .svc-hero-overlay h1{ font-size: 1.5rem; }
  .svc-hero-overlay p{ font-size: 1rem; }
  .chip{ min-width: 220px; }
}
@media (max-width: 600px){
  .svc-hero{ padding: 0 4vw; }
  .svc-hero-overlay{ left: calc(4vw + 10px); right: calc(4vw + 10px); }
  .svc-hero img{ height: 180px; }
}

/* ============ MEMBRESÍAS ============ */
.membresias {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 6vw 40px;
  text-align: center;
}

.membresias h2 {
  font-size: 1.7rem;
  margin-bottom: 28px;
}

.membresias-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.memb-card {
  border: 1px dashed #aaa;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.memb-card img {
  max-width: 140px;
  height: auto;
  margin-bottom: 12px;
}

.memb-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.memb-card em {
  font-style: italic;
  color: #111;
}

/* Responsive */
@media (max-width: 900px) {
  .membresias-grid {
    grid-template-columns: 1fr;
  }
}
/* ============ PUBLICACIONES ============ */
.pub-cats{ max-width: 1200px; margin: 0 auto; padding: 48px 6vw 24px; text-align:center; }
.pub-cats h2{ font-size: 1.7rem; margin-bottom: 18px; }
.pub-cats-grid{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pub-cat{
  background:#eee; border:1px solid #d8d8d8;
  padding: 28px 18px; display:flex; flex-direction:column; gap:8px;
  align-items:center; justify-content:center; min-height: 160px;
}
.pub-cat-icon{ font-size: 36px; line-height: 1; }
.pub-cat h3{ font-size: 1.05rem; font-weight:700; margin: 6px 0 10px; }

.btn-dark{
  display:inline-block; background:#3a3a3a; color:#fff;
  text-decoration:none; font-weight:800;
  padding: 10px 14px; border-radius:4px;
  transition:.2s ease;
}
.btn-dark:hover{ filter:brightness(1.1); }

/* Listas por categoría */
.pub-list-wrap{
  background:#efefef; border-top:1px solid #e5e5e5; border-bottom:1px solid #e5e5e5;
  padding: 24px 6vw 40px;
}
.pub-list-wrap h3{
  max-width: 1200px; margin: 22px auto 10px;
  font-size: 1.25rem; font-weight:800;
}
.back-top{ max-width:1200px; margin: 0 auto; text-align:right; }

.pub-list{
  max-width: 1200px; margin: 0 auto 18px; display:grid; gap:14px;
}
.pub-item{
  background:#fff; border:1px dashed #9f9f9f;
  padding: 16px 16px; line-height: 1.8; font-size: .98rem;
}

/* Responsive */
@media (max-width: 1000px){
  .pub-cats-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .pub-cats-grid{ grid-template-columns: 1fr; }
}


/* ============ CONFERENCIAS ============ */
.conf-cats{ max-width:1200px; margin:0 auto; padding:48px 6vw 24px; text-align:center; }
.conf-cats h2{ font-size:1.7rem; margin-bottom:18px; }
.conf-cats-grid{
  display:grid; grid-template-columns: repeat(2,1fr);
  gap:18px;
}
.conf-cat{
  background:#eee; border:1px solid #d8d8d8;
  padding:28px 18px; display:flex; flex-direction:column; gap:8px;
  align-items:center; justify-content:center; min-height:150px;
}
.conf-icon{ font-size:36px; }
.conf-cat h3{ font-size:1.05rem; font-weight:700; margin:6px 0 10px; }

.conf-list-wrap{
  background:#efefef; border-top:1px solid #e5e5e5; border-bottom:1px solid #e5e5e5;
  padding:24px 6vw 40px;
}
.conf-list-wrap h3{ max-width:1200px; margin:22px auto 10px; font-size:1.25rem; font-weight:800; }
.back-top{ max-width:1200px; margin:0 auto; text-align:right; }

.conf-list{ max-width:1200px; margin:0 auto 18px; display:grid; gap:14px; }
.conf-item{
  background:#fff; border:1px dashed #9f9f9f;
  padding:16px; line-height:1.7; font-size:.98rem;
}

/* Responsive */
@media (max-width:800px){
  .conf-cats-grid{ grid-template-columns:1fr; }
}


/* ============ TESIS / ASESORADOS ============ */
.tesis{
  max-width:1200px;
  margin:0 auto;
  padding:48px 6vw 40px;
}
.tesis h2{
  text-align:center;
  font-size:1.7rem;
  margin-bottom:24px;
}
.tesis-list{
  display:grid;
  gap:20px;
}
.tesis-item{
  background:#fff;
  border:1px dashed #9f9f9f;
  padding:20px;
  line-height:1.7;
}
.tesis-item h3{
  margin-bottom:6px;
  font-size:1.15rem;
  font-weight:700;
}
.tesis-item ul{
  margin-top:6px;
  padding-left:18px;
  list-style:disc;
}
.tesis-item ul li{
  margin-bottom:4px;
  font-size:.95rem;
}
.tesis-item a{
  color:#d22;
  text-decoration:none;
}
.tesis-item a:hover{
  text-decoration:underline;
}


/* ============ CONTACTO ============ */
.contact{
  max-width:1200px;
  margin:0 auto;
  padding:48px 6vw 40px;
}
.contact h2{
  text-align:center;
  font-size:1.7rem;
  margin-bottom:24px;
}
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  align-items:center;
}
.contact-img img{
  width:100%;
  height:auto;
  border:1px solid #ddd;
  border-radius:6px;
}
.contact-form form{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.contact-form input,
.contact-form textarea{
  padding:12px;
  border:1px solid #ccc;
  border-radius:4px;
  font-size:.95rem;
}
.contact-form button{
  background:#3a3a3a;
  color:#fff;
  padding:12px;
  border:none;
  border-radius:4px;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}
.contact-form button:hover{
  filter:brightness(1.1);
}

/* Responsive */
@media(max-width:800px){
  .contact-grid{
    grid-template-columns:1fr;
  }
}

/* ==== CABECERA + MENÚ MÓVIL (estilo Nuccia) ==== */

/* Botón hamburguesa (oculto en desktop) */
.hamburger {
  display: none;
  position: absolute;
  left: 14px; top: 14px;
  width: 36px; height: 32px;
  background: transparent; border: 0; cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  display: block; height: 3px; margin: 6px 0;
  background: #222; border-radius: 2px;
}

/* Drawer (panel deslizable superior) */
.mobile-drawer[hidden] { display: none !important; }
.mobile-drawer {
  position: fixed; left: 0; right: 0; top: 0;
  background: #fff; z-index: 1200;
  box-shadow: 0 12px 24px rgba(0,0,0,.1);
  padding: 70px 14px 16px; /* espacio para botón cerrar */
}
.drawer-close {
  position: absolute; left: 14px; top: 14px;
  background: transparent; border: 0; font-size: 26px;
  line-height: 1; cursor: pointer;
}
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a {
  display: block;
  padding: 14px 12px;
  text-decoration: none; color: #111; font-weight: 700; letter-spacing: .06em;
  background: #fff; border-bottom: 1px solid #ddd;
}
.drawer-nav a:last-child { border-bottom: 0; }
.drawer-email {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 12px; border-top: 1px solid #ddd; background: #fff;
}
.drawer-email .email { color: #cc2e55; font-weight: 600; word-break: break-all; }

/* Estado abierto: ya tienes animación en tu CSS;
   mantenemos body.menu-open para ocultar el correo fijo */
@media (max-width: 760px){
  /* Sidebar se comporta como cabecera */
  .sidebar{
    position: sticky; top: 0; width: 100%;
    border-right: 0; padding: 18px 20px 14px;
    text-align: center;
  }

  /* Mostrar hamburger y ocultar menú de escritorio */
  .hamburger{ display: block; }
  .menu{ display: none; }

  /* Centrar marca y correo */
  .brand{ margin: 0 auto; }
  .name-script{ font-size: 28px; }
  .role{ display:block; margin-top:6px; }
  .contact-mini{ justify-content: center; margin-top: 10px; }

  /* Contenido a ancho completo */
  .content{ margin-left: 0; }
}

/* (opcional) si quieres una micro animación extra al abrir: ya tienes
   en tu hoja: .mobile-drawer{transform...} .mobile-drawer:not([hidden]){...} */
/* ==== FIX: centrar marca y correo en móvil ==== */
@media (max-width: 760px){
  /* La cabecera deja de ser grid y pasa a columna única */
  .sidebar{
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 18px 20px 14px;
    border-right: 0;
  }

  /* Ocultar menú de escritorio, mostramos el hamburguesa */
  .menu{ display: none !important; }
  .hamburger{ display: block; }

  /* Nombre y rol centrados */
  .brand{ width: 100%; margin: 0 auto; }
  .name-script{ font-size: 28px; }
  .role{ display: block; margin-top: 6px; }

  /* Correo centrado (con icono) */
  .contact-mini{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 0 !important;     /* por si tenía márgenes heredados */
    text-align: center;
  }
  .contact-mini .email{ margin: 0 auto; word-break: break-all; }
}

/* Evitar duplicar el correo cuando el drawer está abierto */
@media (max-width: 760px){
  body.menu-open .contact-mini{ display: none; }
}


/* Icono del correo ARRIBA y centrado en móvil */
@media (max-width: 760px){
  .contact-mini{
    width: 100%;
    display: flex;
    flex-direction: column;     /* <- apila icono arriba y texto abajo */
    align-items: center;
    justify-content: center;
    gap: 6px;                   /* separación entre icono y correo */
    margin-top: 8px !important;
    text-align: center;
  }
  .contact-mini svg{
    width: 22px; height: 22px;  /* tamaño cómodo */
    flex-shrink: 0;
    display: block;
    margin: 0 auto;
  }
  .contact-mini .email{
    margin: 0;
    line-height: 1.2;
    word-break: break-all;
  }
}

/* Botón flotante de WhatsApp */
.whatsapp-float{
  position: fixed;
  right: clamp(14px, 2vw, 22px);
  bottom: clamp(14px, 2vw, 22px);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(37,211,102,.45);
  z-index: 2147483600;                 /* por encima de todo */
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s;
}
.whatsapp-float:hover{
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 30px rgba(37,211,102,.55);
}
.whatsapp-float:active{ transform: scale(.98); }
.whatsapp-float svg{ display:block; width:28px; height:28px; }

/* Evita interferir con el menú móvil cuando está abierto */
body.menu-open .whatsapp-float{
  opacity: .15;
  pointer-events: none;
}

/* No mostrar al imprimir */
@media print { .whatsapp-float{ display:none; } }



/* Espaciado inferior extra para que no se pegue al botón de WhatsApp */
.whatsapp-float{ margin-bottom: 6px; }

/* ===== Parche: títulos centrados en research-card ===== */
.research-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  isolation: isolate;               /* para que el overlay no se “escape” */
}

/* imagen consistente y recortada */
.research-card img {
  display: block;
  width: 100%;
  height: clamp(220px, 28vw, 340px); /* responsivo */
  object-fit: cover;
  filter: saturate(1.05);
  transition: transform .5s ease;
}

/* velo oscuro para legibilidad del texto */
.research-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.35) 60%,
    rgba(0,0,0,.55) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* título centrado perfectamente */
.research-card h4 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  margin: 0;
  padding: .35rem .75rem;
  width: min(92%, 640px);
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: clamp(1rem, 1.6vw + .6rem, 1.35rem);
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
  border-radius: 8px;
}

/* pequeño “zoom” al pasar el mouse */
.research-card:hover img {
  transform: scale(1.03);
}

/* en pantallas muy pequeñas reduce un poco el alto */
@media (max-width: 460px) {
  .research-card img { height: 200px; }
}


/* Justificar texto del bloque Acerca de mí */
.about-text p {
  text-align: justify;          /* justificado */
  text-justify: inter-word;     /* reparte mejor el espacio */
  -webkit-hyphens: auto;        /* guiones automáticos según lang="es" */
  -ms-hyphens: auto;
  hyphens: auto;
}


/* ====== PERFIL ACADÉMICO: 2 por fila en móvil ====== */

/* Si tu grid actual usa auto-fit/auto-fill con un minmax muy grande,
   esto lo sobreescribe en pantallas pequeñas */
@media (max-width: 640px) {
  .profile-grid {
    display: grid;                         /* por si en tu CSS era flex */
    grid-template-columns: repeat(2, 1fr); /* 2 columnas fijas */
    gap: 12px;                             /* separaciones más compactas */
  }

  .profile-card {
    padding: 14px 10px;                    /* reduce padding para que quepan bien */
  }
  .profile-card header {
    font-size: 0.95rem;
  }
  .profile-card .btn {
    width: 100%;
    padding: 10px;
    font-size: 0.95rem;
  }
}

/* Teléfonos muy estrechos (opcional): todavía 2 por fila, con gaps más pequeños */
@media (max-width: 360px) {
  .profile-grid {
    gap: 8px;
  }
  .profile-card header {
    font-size: 0.9rem;
  }
  .profile-card .btn {
    padding: 8px;
    font-size: 0.9rem;
  }
}
/* Tarjeta como columna y la imagen al final */
.memb-card{
  display: flex;               /* activamos flex en columna */
  flex-direction: column;
}

/* La imagen queda al fondo de la tarjeta */
.memb-card img{
  order: 99;                   /* empuja la imagen al final */
  margin: 16px auto 0;         /* separa del contenido y centra */
  width: clamp(140px, 38%, 220px);
  height: auto;                /* mantiene proporción */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

/* El resto del contenido conserva su orden arriba */
.memb-card strong,
.memb-card p,
.memb-card em{ order: 0; }


/* ======= SERVICIOS – Estructura general ======= */
.svc section { margin-block: clamp(22px, 4vw, 42px); }
.svc h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: .8rem; }
.svc p { line-height: 1.7; text-align: justify; }

/* -------- ¿Por qué elegirme? -------- */
.svc-why .lead{
  font-size: clamp(16px, 1.1vw, 18px);
  color:#333;
  margin-bottom: 14px;
}

.pill-row{
  display:flex; flex-wrap:wrap; gap:10px;
}
.pill{
  display:inline-flex; align-items:center; gap:.4rem;
  background:#f5f6f8; border:1px dashed #ddd;
  padding:.45rem .7rem; border-radius:999px; font-size:.95rem;
}

/* -------- Cards de servicios (6) -------- */
.svc-cards{
  list-style:none; padding:0; margin:0;
  display:grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2.2vw, 22px);
}
.svc-card{
  grid-column: span 12;
  background:#fff; border:1px dashed #dcdcdc;
  border-radius:16px; padding: clamp(14px, 2vw, 20px);
  box-shadow:0 8px 20px rgba(0,0,0,.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
@media (min-width: 680px){ .svc-card{ grid-column: span 6; } }   /* 2 por fila en móvil grande/tablet */
@media (min-width: 1100px){ .svc-card{ grid-column: span 6; } }  /* 2 por fila en desktop (consistente) */

.svc-card:hover{ transform: translateY(-3px); box-shadow:0 12px 26px rgba(0,0,0,.07); }

.svc-card__head{ display:flex; align-items:center; gap:.75rem; margin-bottom:.45rem; }
.svc-card h3{ font-size: clamp(17px, 1.5vw, 20px); margin:0; }

.svc-num{
  width:34px; height:34px; border-radius:50%;
  display:grid; place-items:center;
  background:#111; color:#fff; font-weight:700;
  font-size: 15px; box-shadow:0 3px 8px rgba(0,0,0,.15);
}

/* Lista dentro de la card */
.svc-list{ margin:0; padding-left:1.1rem; }
.svc-list li{
  margin:.28rem 0; position:relative;
}
.svc-list li::marker{ color:#9aa0a6; }

/* -------- Lo que te ofrezco / Diferenciales -------- */
.offer-list, .diff-list{
  margin: .6rem 0 0; padding-left: 0; list-style:none;
  display:grid; gap:.5rem;
}
.offer-list li, .diff-list li{
  position:relative; padding-left:1.6rem;
}
.offer-list li::before, .diff-list li::before{
  content:""; position:absolute; left:0; top:.35rem;
  width:10px; height:10px; border-radius:2px;
  background:#0e9f6e;
  box-shadow: 0 0 0 2px rgba(14,159,110,.15);
}

/* -------- FAQ (details/summary) -------- */
.svc-faq .faq-item{
  border:1px dashed #ddd; border-radius:12px;
  background:#fff; margin-bottom:10px; overflow:hidden;
}
.svc-faq summary{
  cursor:pointer; padding:14px 16px; font-weight:600;
  list-style:none; position:relative;
}
.svc-faq summary::-webkit-details-marker{ display:none; }
.svc-faq summary::after{
  content:"▾"; position:absolute; right:16px; top:50%;
  transform: translateY(-50%) rotate(0deg); transition:transform .2s ease;
}
.svc-faq details[open] summary::after{ transform: translateY(-50%) rotate(180deg); }
.svc-faq .faq-body{ padding: 0 16px 14px; color:#333; }

/* Ajuste fino del botón de WhatsApp para no tapar contenido pegado al borde */
.whatsapp-float{ margin-bottom: 8px; }

/* ===== Líneas de Investigación – Intro bonito ===== */
.research-lead{
  max-width: 72ch;
  margin: 6px auto 18px;
  padding: 12px 16px;
  text-align: justify;
  color:#2f2f2f;
  background: linear-gradient(180deg,#fafbfc 0,#ffffff 100%);
  border: 1px dashed #e1e1e1;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.035);
}

/* ===== Grid (ya lo tienes, pero aquí reafirmo por si acaso) ===== */
.membresias{ padding-block: clamp(22px, 4.5vw, 46px); }
.membresias h2{ text-align:left; margin-bottom:12px; }
.membresias-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}
@media (max-width:860px){
  .membresias-grid > .memb-card{ grid-column: 1 / -1; }
}

/* ===== Card pulida (imagen al final) ===== */
.memb-card{
  grid-column: span 6;                 /* 2 por fila en >=860px */
  display:flex; flex-direction:column;
  background:#fff;
  border:1px dashed #dcdcdc;
  border-radius:14px;
  padding: clamp(14px, 2vw, 18px);
  box-shadow:0 8px 22px rgba(0,0,0,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.memb-card:hover{ transform: translateY(-4px); box-shadow:0 12px 28px rgba(0,0,0,.08); }

/* Título */
.memb-head h3{
  margin:2px 0 8px; text-align:center;
  font-size: clamp(18px, 2.1vw, 22px);
}

/* Bullets dentro de la tarjeta */
.memb-points{
  list-style:none; padding:0; margin:0 0 10px;
  display:grid; gap:.4rem;
}
.memb-points li{
  position:relative; padding-left:1.25rem; color:#444;
}
.memb-points li::before{
  content:"•"; position:absolute; left:.2rem; top:0;
  color:#9aa0a6; font-weight:700;
}

/* Imagen al pie de la tarjeta */
.memb-fig{ margin-top: 10px; }
.memb-fig img{
  display:block; width:100%;
  height: clamp(150px, 22vw, 210px);
  object-fit: cover; border-radius:10px;
  filter: saturate(108%) contrast(104%);
  box-shadow:0 6px 16px rgba(0,0,0,.06);
  transition: transform .25s ease, filter .25s ease;
}
.memb-card:hover .memb-fig img{
  transform: scale(1.02);
  filter: saturate(112%) contrast(108%);
}

/* Por si el botón de WhatsApp queda muy pegado en móvil */
.whatsapp-float{ margin-bottom: 8px; }


/* ===== LOGROS (Reconocimientos & Conferencias) ===== */
.achv-intro{ padding-block: clamp(18px,4vw,28px); }
.achv-intro h2{ margin:0 0 4px; }
.achv-lead{
  font-weight:600; color:#333; margin:0 0 6px;
}
.achv-desc{
  max-width:70ch; margin:0 0 14px; color:#444; text-align:justify;
}

/* Tarjetas superiores */
.achv-cards{ padding-block: clamp(10px,3vw,18px); }
.achv-cards-grid{
  display:grid; grid-template-columns: repeat(12,1fr);
  gap: clamp(14px,2.4vw,22px);
}
.achv-card{
  grid-column: span 6; /* 2 por fila en desktop */
  display:flex; flex-direction:column; background:#fff;
  border:1px dashed #dcdcdc; border-radius:14px;
  overflow:hidden;
  box-shadow:0 8px 22px rgba(0,0,0,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.achv-card:hover{ transform: translateY(-4px); box-shadow:0 12px 28px rgba(0,0,0,.08); }

.achv-thumb{ aspect-ratio: 16/9; background:#f5f6f7; overflow:hidden; }
.achv-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.achv-body{ padding:14px 14px 16px; display:grid; gap:8px; }
.achv-tag{
  justify-self:start;
  font-size:.82rem; letter-spacing:.3px;
  background:#eef3ff; color:#2143a2;
  border:1px solid #dfe7ff; border-radius:999px;
  padding:4px 10px; font-weight:600;
}
.achv-body h3{ margin:2px 0 0; font-size: clamp(18px,2vw,20px); }
.achv-body p{ margin:0; color:#444; }

/* Detalles */
.achv-detail{ padding-block: clamp(18px,4vw,28px); }
.achv-detail h3{ margin:0 0 10px; }
.detail-box{
  background:#fff; border:1px dashed #dcdcdc; border-radius:14px;
  padding: clamp(14px,2vw,18px);
  box-shadow:0 6px 18px rgba(0,0,0,.05);
}
.detail-box h4{ margin:0 0 10px; }
.detail-list{ margin:0; padding-left: 1rem; }
.detail-list li{ margin:.4rem 0; color:#333; }

.back-top{ margin-top:12px; }

/* Responsive */
@media (max-width: 860px){
  .achv-card{ grid-column: 1 / -1; }  /* 1 por fila en móvil */
}

/* Botón oscuro (fallback si aún no existe en tu CSS) */
.btn-dark{
  display:inline-block; padding:10px 16px;
  background:#333; color:#fff; border-radius:8px;
  text-decoration:none; font-weight:700;
  transition: filter .2s ease, transform .08s ease;
}
.btn-dark:hover{ filter:brightness(1.1); }
.btn-dark:active{ transform: translateY(1px); }


/* Acerca de mí: justificado, pero SIN guiones al final de línea */
.about-text p{
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
  hyphens: none !important;
  word-break: normal;            /* no rompas palabras a la fuerza */
  overflow-wrap: break-word;     /* por si aparece una palabra muuuy larga/URL */
  text-wrap: pretty;             /* (opcional) mejora el justificado en navegadores modernos */
}


/* ===== TESIS – scoped para no afectar otras páginas ===== */
.tesis-page .th-cats{
  max-width: 1200px; margin: 0 auto; padding: 48px 6vw 20px;
  text-align: center;
}
.tesis-page .th-cats h2{ font-size: 1.7rem; margin-bottom: 8px; }
.tesis-page .th-lead{
  max-width: 70ch; margin: 0 auto 16px; color:#444;
}

.tesis-page .th-cards-grid{
  display:grid; grid-template-columns: repeat(12,1fr);
  gap: clamp(14px,2.2vw,22px);
}
.tesis-page .th-card{
  grid-column: span 4;                      /* 3 por fila en desktop */
  background:#fff; border:1px dashed #dcdcdc; border-radius:14px;
  padding: 16px; text-align:left;
  box-shadow:0 8px 22px rgba(0,0,0,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tesis-page .th-card:hover{ transform: translateY(-3px); box-shadow:0 12px 28px rgba(0,0,0,.08); }
.tesis-page .th-card h3{ margin:4px 0 6px; font-size: clamp(18px,2vw,20px); }
.tesis-page .th-card p{ margin:0 0 10px; color:#444; }
.tesis-page .th-card-tag{
  display:inline-block; font-size:.82rem; letter-spacing:.3px;
  background:#eef3ff; color:#2143a2; border:1px solid #dfe7ff;
  padding:4px 10px; border-radius:999px; font-weight:600;
}

/* Responsive grid de cards */
@media (max-width: 980px){ .tesis-page .th-card{ grid-column: span 6; } } /* 2 por fila */
@media (max-width: 620px){ .tesis-page .th-card{ grid-column: 1/-1; } }  /* 1 por fila */

/* Bloques de detalle por categoría */
.tesis-page .th-detail{
  background:#efefef; border-top:1px solid #e5e5e5; border-bottom:1px solid #e5e5e5;
  padding: 26px 6vw 36px; margin-top: 10px;
}
.tesis-page .th-head{
  max-width:1200px; margin: 0 auto 10px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.tesis-page .th-head h2{ margin:0; font-size:1.45rem; font-weight:800; }

/* Lista de ítems */
.tesis-page .th-list{
  max-width:1200px; margin:0 auto; display:grid; gap:14px;
}
.tesis-page .th-item{
  background:#fff; border:1px dashed #9f9f9f; border-radius:12px;
  padding: 16px 16px; line-height:1.7;
}
.tesis-page .th-item h3{ margin:0 0 4px; font-size:1.05rem; }
.tesis-page .th-item-sub{ margin:0 0 6px; color:#333; }
.tesis-page .th-item-ul{ margin:0; padding-left: 1.1rem; }
.tesis-page .th-item-ul li{ margin: .25rem 0; }

/* Botón oscuro: usa el que ya tienes; si no, queda este fallback */
.tesis-page .btn-dark{
  display:inline-block; padding:10px 14px; background:#333; color:#fff;
  text-decoration:none; border-radius:8px; font-weight:700;
  transition: filter .2s ease, transform .08s ease;
}
.tesis-page .btn-dark:hover{ filter:brightness(1.1); }
.tesis-page .btn-dark:active{ transform: translateY(1px); }
