/* =========================================
   Paleta
   Base / Primary: #67C090
   Secundario:     #26667F
   Acento claro:   #DDF4E7
   Profundidad:    #124170
   Tipografía: Inter
========================================= */
:root {
  --primary: #67C090;
  --secondary: #26667F;
  --accent: #DDF4E7;
  --deep: #124170;
  --text: #142229;
  --muted: #667986;
  --bg: #ffffff;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(18, 65, 112, .12);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Utils */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}


.narrow {
  max-width: 900px
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0
}

h2 {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  color: var(--deep);
  margin: 0 0 1.8rem;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 12px;
  transition: all 0.3s ease;
}


h2::after {
  content: "";
  width: 70px;
  height: 4px;
  background: var(--primary);
  border-radius: 8px;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  opacity: 0.9;
  transition: width 0.3s ease, background 0.3s ease;
}


h2:hover {
  color: var(--secondary);      
  transform: translateY(-3px); 
}


h2:hover::after {
  width: 110px;                 
  background: var(--deep);      
}


@media (max-width: 720px) {
  h2 {
    font-size: 1.8rem;
  }
}

/* Topbar */

.topbar .container {
  max-width: 100%;
  padding-left: 40px;
  padding-right: 40px;
}
.topbar {
  background: var(--deep);
  color: #fff;
  padding: 6px 0;
  font-size: 0.9rem;
  overflow: hidden;
  position: relative;
  font-size: 1rem;
}


.topbar-message {
  position: absolute;
  left: 50%;
  transform: translateX(-50%); 
  width: 60%;  
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none; 
}

#mensaje-rotativo {
  display: inline-block;
  animation: slideHorizontal 10s linear infinite;
}

@keyframes slideHorizontal {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  45% {
    transform: translateX(0%);
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

/* Íconos a la derecha */
.topbar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 2;
}

.topbar-social a {
  color: #fff;
  margin-left: 12px;
  opacity: .85;
  text-decoration: none!important;
}
.topbar-social a:hover {
  opacity: 1;
  text-decoration: none!important;
}

@media (max-width: 575.98px) {
  .topbar .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar-message {
    display: none;               /* ocultamos el texto rotativo */
  }

  .topbar-inner {
    justify-content: center;     /* centramos íconos */
  }
}

/* Header */

/* Contenedor brand */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;              
  text-decoration: none;
  color: #fff;
}


.site-logo {
  height: 50px;          
  width: auto;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}


.site-header .header-inner {
  padding: 18px 0;    
  padding-left: 40px;
  padding-right: 40px;
  
}

.site-header .container {
  max-width: 100%;
  padding-left: 40px;
  padding-right: 40px;
  height: 70px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  text-decoration: none
}

.nav {
  display: flex;
  gap: 20px
}

.nav a {
  color: #fff;
  text-decoration: none;
  opacity: .95
}


/* Links del menú */
.nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
  opacity: .95;
  padding-bottom: 3px; /* espacio para la línea */
}

/* Línea elegante en hover */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
  border-radius: 10px;
}

.nav a:hover {
  opacity: 1;
}

.nav a:hover::after {
  width: 100%;
}


/* Desktop por defecto */
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* El botón hamburguesa oculto en desktop */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  color: #ffffff;
  cursor: pointer;
}

/* ----- MÓVIL ----- */
@media (max-width: 991.98px) {

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  #primary-nav {
    position: absolute;
    top: 100%;             
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    background: var(--primary);     
    padding: 14px 20px 16px;
    gap: 12px;
    box-shadow: none;             
    border-radius: 0;               
    z-index: 999;
  }

  #primary-nav a {
    color: #ffffff;                 
    padding: 6px 0;
  }


  #primary-nav .btn-agendar {
    background: #ffffff;
    color: var(--deep);
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    text-align: center;
    align-self: center;             
    box-shadow: var(--shadow);
  }

 
  #primary-nav.is-open {
    display: flex;
  }
}

/* HERO  */
.hero {
  position: relative;
  min-height: 420px;
  padding: 96px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

/* Imagen de fondo */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Capa oscura encima de la imagen */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,0.45),
    rgba(0,0,0,0.65)
  );
  z-index: -1;
}

/* Contenido centrado */
.hero-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Título */
.hero-inner h1 {
  font-size: clamp(2.2rem, 3vw + 1rem, 3.4rem);
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.75);
}

/* Párrafo */
.hero-inner p {
  max-width: 720px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* Botones */
.hero-inner .cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Ajustes mobile */
@media (max-width: 768px) {
  .hero {
    min-height: 380px;
    padding: 80px 16px;
  }

  .hero-inner h1 {
    font-size: clamp(1.9rem, 6vw, 2.6rem);
  }

  .hero-inner p {
    font-size: 0.98rem;
  }
}
/* Botón "Agendar Consulta" optimizado */
.nav .btn-agendar {
  background: #ffffff;
  color: var(--deep);
  padding: 6px 14px;         
  font-size: 0.90rem;       
  border-radius: 800px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  margin-left: 14px;
  line-height: 1;            
  display: flex;             
  align-items: center;       
}

.nav .btn-agendar:hover {
  background: var(--secondary);
  color: #fff;
  border-color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  text-decoration: none !important;
}

/* Mobile */
@media (max-width: 720px) {
  .nav .btn-agendar {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    margin: 10px 0 0 0;
  }
}

/* Alerta de suscripción al newsletter */
.newsletter-alert {
  background: var(--accent);
  border: 1px solid var(--primary);
  color: var(--deep);
  padding: 10px 16px;
  border-radius: var(--radius);
  margin: 10px auto 0 auto;
  max-width: 800px;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.4s ease-out forwards;
  opacity: 0;
}


.newsletter-alert::before {
  content: "✔";
  font-weight: bold;
  color: var(--primary);
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}


.fade-out {
  animation: fadeOut 0.4s ease-in forwards;
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}


/* Buttons */
.btn {
  display: inline-block;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: .2s ease
}

.btn-primary {
  background: var(--primary)!important;
  color: #fff
}

.btn-primary:hover {
  background: var(--secondary) !important
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--primary)
}

.btn-outline:hover {
  background: var(--secondary);
  color: #fff
}

/* Sections */
.section {
  padding: 72px 0
}

.section.alt {
  background: var(--accent)
}

.section-title {
  text-align: center;
  color: var(--secondary);
  font-size: 1.875rem;
  margin: 0 0 16px
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.125rem;
  margin: 0 0 32px
}
.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #2a3a44;
  text-align: center;
  margin: 0 auto
}

.pill-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px
}

.pill {
  background: #fff;
  border: 1px solid #d8e9e1;
  color: var(--secondary);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600
}

/* Cards & grid */
.grid {
  display: grid;
  gap: 20px
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center; 
}

.card-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px; 
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
}


.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}



.card h3 {
  margin: 0 0 8px;
  color: var(--secondary)
}

.card p {
  margin: 0 0 12px;
  color: var(--muted)
}

.card-link {
  font-weight: 600;
  color: var(--deep);
  text-decoration: none
}

.card-link:hover {
  color: var(--secondary)
}

/* ======= Servicios  ======= */


#servicios .section-title {
  margin-bottom: 2.5rem;
  font-size: 2rem;
  font-weight: 700;
}


#servicios .cards-3 {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}


#servicios .card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

#servicios .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* Icono grande solo en servicios */
#servicios .card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #e9f5ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

#servicios .card-icon i {
  font-size: 2.2rem;
  color: var(--primary);
}

/* Textos en servicios */
#servicios .card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

#servicios .card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

/* Link en servicios tipo texto subrayado */
#servicios .card-link {
  color: var(--deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: 0.3s;
}

#servicios .card-link:hover {
  border-bottom: 1px solid #0d6efd;
}


/* ======= Responsive Servicios ======= */

/* Tablet: máximo 2 columnas */
@media (max-width: 991.98px) {
  #servicios .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  #servicios .card {
    padding: 1.6rem;
  }

  #servicios .section-title {
    font-size: 1.8rem;
  }
}

/* Móvil: 1 columna, todo más compacto */
@media (max-width: 575.98px) {
  #servicios .cards-3 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  #servicios .card {
    padding: 1.4rem 1.2rem;
  }

  #servicios .card-icon {
    width: 70px;
    height: 70px;
  }

  #servicios .card-icon i {
    font-size: 1.9rem;
  }

  #servicios .card h3 {
    font-size: 1.25rem;
  }

  #servicios .card p {
    font-size: 0.95rem;
  }
}

/* ======= Próximos productos (cursos/podcast/newsletter) ======= */

#cursos .cards-3 {
  display: grid;
  gap: 2rem;
  margin-top: 1.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Card en Próximos productos */
#cursos .card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(31, 41, 55, 0.06);
  border: 1px solid #f2f4f7;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#cursos .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(31, 41, 55, 0.10);
}

/* Icono con animación */
#cursos .card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto .6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

#cursos .card-icon i {
  font-size: 1.7rem;
}

/* Efecto “bounce” suave al pasar el mouse */
#cursos .card:hover .card-icon {
  transform: translateY(-4px) scale(1.05);
  background: var(--accent);
  box-shadow: 0 8px 22px rgba(18,65,112,0.18);
}

/* Textos */
#cursos .card h3 {
  font-size: 1.2rem;
  margin: 0.3rem 0;
  color: var(--deep);
}

#cursos .card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Link como mini-CTA */
#cursos .card-link {
  display: inline-block;
  margin-top: .4rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  color: var(--primary);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

#cursos .card-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ======= Responsivo para Próximos productos ======= */

/* Tablet: 2 columnas */
@media (max-width: 991.98px) {
  #cursos .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  #cursos .card {
    padding: 1.6rem 1.4rem;
  }
}

/* Móvil: 1 columna */
@media (max-width: 575.98px) {
  #cursos .cards-3 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  #cursos .card {
    padding: 1.4rem 1.2rem;
  }

  #cursos .card-icon {
    width: 58px;
    height: 58px;
  }

  #cursos .card-icon i {
    font-size: 1.5rem;
  }
}

/* =========================================
   POSTS EN TARJETA – CON TRANSICIONES
========================================= */

.post {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}

.post:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(18, 65, 112, 0.15);
}

.post-thumb {
  height: 160px;
  border-radius: 12px;
  margin-bottom: 12px;
  background-image: url("IMG/Avances-en-nutricion-scaled.jpeg");
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  transition: transform 0.35s ease;
}

/* Zoom sutil en hover */
.post:hover .post-thumb {
  transform: scale(1.04);
}

.post-title {
  margin: 0 0 6px;
  color: var(--primary);
  transition: color 0.25s ease;
}

.post:hover .post-title {
  color: var(--deep);
}

.post-excerpt {
  margin: 0 0 10px;
  color: var(--muted);
}

.post-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}

.post-link:hover {
  color: var(--muted);
}

.post-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8rem;
  background: #eef7f3;
  color: var(--secondary);
  border-radius: 999px; /* casi 100%, pill perfecto */
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 600;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.tag-pill:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Grid de tarjetas del blog */
.blog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.blog-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 38px rgba(0,0,0,0.09);
}

.blog-card-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: filter .3s ease;
}

.blog-card:hover img {
  filter: brightness(0.85);
}

.blog-card-body {
  padding: 20px 22px;
}

.blog-card-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--secondary);
  font-weight: 700;
}

.blog-card-title a {
  text-decoration: none;
  color: inherit;
}

.blog-card-meta {
  display: flex;
  gap: 10px;
  font-size: .85rem;
  color: #6b7b85;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.meta-tag {
  background: #ddf4e7;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--secondary);
}

.blog-card-excerpt {
  font-size: .95rem;
  color: #55626b;
  line-height: 1.5;
  margin-bottom: 14px;
}

.blog-card-link {
  font-weight: 600;
  color: var(--deep);
  text-decoration: none;
  transition: .2s ease;
  text-align: center;
}

.blog-card-link:hover {
  color: var(--secondary);
}
/* Badges de tags en blog */
.post-tags {
  margin: 8px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-badge {
  display: inline-block;
  background: #ddf4e7;              
  color: var(--secondary);          
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.tag-badge.empty {
  background: #f0f0f0;
  color: #666;
}

/* ============  
   RESPONSIVE  
   =========== */


@media (max-width: 992px) {
  #blog .blog-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr))!important;
  }
}


@media (max-width: 640px) {
  #blog .blog-cards {
    grid-template-columns: 1fr!important;
  }

  #blog .blog-card {
    max-width: 480px;
    margin-inline: auto!important;
  }
}

.blog-date {
  font-size: .85rem;
  color: #6b7b85;
  margin-bottom: 6px;
}

/* Contenedor de tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

/* Badge de tag */
.tag-badge {
  display: inline-block;
  background: #ddf4e7;
  color: var(--secondary);
  padding: 4px 10px;
  font-size: .80rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-badge.empty {
  background: #f1f1f1;
  color: #777;
}


/*--------------------------------------------------------------
# Scroll top button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--deep);
  line-height: 0;
}

.scroll-top:hover {
  background: var(--primary);
  color: #fff;
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}




/* About */
.about {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
}

.about-photo {
  width: 100%;
  height: 260px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background-image: url("img/yo-perfil.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px;

  /* Animación suave */
  animation: float 8s ease-in-out infinite;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.about-photo:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(18, 65, 112, 0.18);
}

/* Keyframes del movimiento leve */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

/* ======= Testimonios – carrusel ======= */

.testimonials-slider {
  position: relative;
  max-width: 860px;              /* un poco más ancho para textos largos */
  margin: 0 auto;
}

/* Contenedor de las cards */
.testimonial-wrapper {
  position: relative;
  padding: 8px 0;                /* espacio vertical extra */
}

/* Cards: base (todas ocultas por defecto) */
.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid #eef2f3;

  /* Ocupan todo el ancho, pero la altura la define la activa */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(20px) scale(.98);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(.22,.61,.36,1),
    visibility 0.45s ease;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Card activa: entra en el flujo normal → el alto se adapta al texto */
.testimonial-card.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

/* Foto redonda */
.testimonial-photo {
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Estrellas */
.testimonial-stars {
  margin-bottom: 8px;
}

.testimonial-stars i {
  color: #FFD700;
  font-size: 1.1rem;
  margin: 0 1px;
  transition: transform 0.25s ease;
}

.testimonial-card.active .testimonial-stars i {
  transform: translateY(-1px);
}

/* Texto del testimonio */
.testimonial-card blockquote {
  margin: 12px auto 8px;
  max-width: 70ch;               /* limita el ancho de línea → mejor lectura */
  font-size: 1rem;
  line-height: 1.7;
  color: var(--deep);
  font-style: italic;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Nombre / firma */
.testimonial-card figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Flechas */
.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: var(--primary);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  font-size: 1.3rem;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  z-index: 2;
}

.testimonial-nav:hover {
  background: var(--secondary);
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 10px 28px rgba(18,65,112,0.22);
}

.testimonial-nav.prev {
  left: -25px;
}

.testimonial-nav.next {
  right: -25px;
}

/* Responsive */
@media (max-width: 767.98px) {
  .testimonial-card {
    padding: 18px 16px;
  }

  .testimonial-nav.prev {
    left: 4px;
  }

  .testimonial-nav.next {
    right: 4px;
  }
}

@media (max-width: 575.98px) {
  .testimonials-slider {
    max-width: 100%;
  }

  .testimonial-wrapper {
    min-height: 320px;          
  }

  .testimonial-card blockquote {
    max-width: 100%;
    font-size: 0.95rem;
  }
}


/* ======= CTA (Call to Action) ======= */

.cta-box {
  background: #e9f5ff;
  border-left: 5px solid #26667F;
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.7s ease;
}

/* Ícono */
.cta-icon {
  font-size: 3.2rem;
  color: #26667F;
  margin-bottom: 12px;
  display: inline-block;
}

/* Título */
.cta-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 12px;
}

/* Texto */
.cta-text {
  max-width: 520px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Botón */
.cta-button {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.25s ease, transform 0.25s ease;
  box-shadow: var(--shadow);
}

.cta-button:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

/* Animación leve de entrada */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 575.98px) {
  .cta-box {
    padding: 32px 20px;
  }

  .cta-title {
    font-size: 1.45rem;
  }

  .cta-text {
    font-size: 0.98rem;
  }
}


/*--------------------------------------------------------------
BLOG
--------------------------------------------------------------*/
.blog .blog-pagination {
  margin-top: 30px;
  color: #555555;
}

.blog .blog-pagination ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.blog .blog-pagination li {
  margin: 0 5px;
  transition: 0.3s;
  border-radius: 10px;
}

.blog .blog-pagination li a {
  color: var(--color-default);
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog .blog-pagination li.active,
.blog .blog-pagination li:hover {
  background: var(--color-primary);
  color: #fff;
}

.blog .blog-pagination li.active a,
.blog .blog-pagination li:hover a {
  color: var(--primary);
}

/*--------------------------------------------------------------
# Blog Posts List
--------------------------------------------------------------*/
.blog .posts-list article {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  padding: 50px;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;


}

.blog .posts-list .post-img {
  max-height: 240px;
  width: 400px;
  
  margin: -30px -30px 15px -30px;
  overflow: hidden;
  height: 300px;
}

.blog .posts-list .post-category {
  font-size: 16px;
  color: #555555;
  margin-bottom: 10px;
}

.blog .posts-list .title {
  font-size: 22px;
  font-weight: 700;
  padding: 0;
  margin: 0 0 20px 0;
}

.blog .posts-list .title a {
  color: var(--color-default);
  transition: 0.3s;
}

.blog .posts-list .title a:hover {
  color: var(--color-primary);
}

.blog .posts-list .post-author-img {
  width: 50px;
  border-radius: 50%;
  margin-right: 15px;

}

.blog .posts-list .post-author-list {
  font-weight: 600;
  margin-bottom: 5px;
}

.blog .posts-list .post-date {
  font-size: 14px;
  color: #3c3c3c;
  margin-bottom: 0;
}
.blog .post-imagen {
  width: 100%;
  height: 200px; /* <- MISMO VALOR QUE INDEX */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog .post-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 👉 rellena siempre, puede recortar bordes */
  border-radius: 8px;
  display: block;
}

/*--------------------------------------------------------------
# Blog Filters  
--------------------------------------------------------------*/
.blog-filters {
  padding: 40px 0 !important;
  background: #f9fafb !important;
  margin-bottom: 30px;


}

.blog-filters .filter-form {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 25px;
  transition: 0.3s ease;
}

.blog-filters .filter-form:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.blog-filters input.form-control,
.blog-filters select.form-select {
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid #d2d6dc;
  font-size: 15px;
  transition: all 0.25s ease;
}

.blog-filters input:focus,
.blog-filters select:focus {
  border-color: #0d9488; 
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

/* Input con ícono */
.input-group-text {
  border-radius: 10px 0 0 10px;
  border: 1px solid #d2d6dc;
  border-right: 0;
}


.btn-filter  {
  background: #05668d !important;       
  border: none;
  color: #ffffff !important;            
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.btn-filter i {
  font-size: 1rem;
  opacity: 0.9;
}


.btn-filter:hover {
  background: #004e70;       
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

@media (prefers-color-scheme: dark) {
  .btn-filter {
    background: #38bdf8;    
    color: #003049;
  }
}


/*--------------------------------------------------------------
# Blog Details
--------------------------------------------------------------*/
.blog .blog-details {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
  border-radius: 15px;
}

.blog .blog-details .post-img {
  width: 100%;
  height: 600px;
  margin: 0 0 20px 0;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  position: relative;
}

.blog .blog-details .post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}



.blog .blog-details .title {
  font-size: 28px;
  font-weight: 700;
  margin: 20px 0;
  color: var(--color-default);
}

.blog .blog-details .content {
  margin-top: 20px;
  padding-left: 10px;
}

.blog .blog-details .content h3 {
  font-size: 22px;
  margin-top: 30px;
  font-weight: bold;
}

.blog .blog-details .content blockquote {
  overflow: hidden;
  background-color: rgba(34, 34, 34, 0.06);
  padding: 60px;
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.blog .blog-details .content blockquote p {
  color: var(--color-default);
  line-height: 1.6;
  margin-bottom: 0;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
}

.blog .blog-details .content blockquote:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--color-secondary);
  margin-top: 20px;
  margin-bottom: 20px;
}

.blog .blog-details .meta-top {
  margin-top: 20px;
  color: #6c757d;
}

.blog .blog-details .meta-top ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
}

.blog .blog-details .meta-top ul li+li {
  padding-left: 20px;
}

.blog .blog-details .meta-top i {
  font-size: 16px;
  margin-right: 8px;
  line-height: 0;
  color: var(--color-primary);
}

.blog .blog-details .meta-top a {
  color: #6c757d;
  font-size: 14px;
  display: inline-block;
  line-height: 1;
}

.blog .blog-details .meta-bottom {
  padding-top: 10px;
  border-top: 1px solid rgba(34, 34, 34, 0.15);
}

.blog .blog-details .meta-bottom i {
  color: #555555;
  display: inline;
}

.blog .blog-details .meta-bottom a {
  color: rgba(34, 34, 34, 0.8);
  transition: 0.3s;
}

.blog .blog-details .meta-bottom a:hover {
  color: var(--color-primary);
}

.blog .blog-details .meta-bottom .cats {
  list-style: none;
  display: inline;
  padding: 0 20px 0 0;
  font-size: 14px;
}

.blog .blog-details .meta-bottom .cats li {
  display: inline-block;
}

.blog .blog-details .content {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  padding: 16px !important;
  background-color: #f9f9f9 !important;
  border-radius: 8px !important;
}

.blog .blog-details .content p {
  font-family: var(--font-secondary) !important;
  line-height: 1.6 !important;
  font-size: 18px !important;
  margin: 0 !important;
  color: #000000;
}

.blog .blog-details .meta-bottom .tags {
  list-style: none;
  display: inline;
  padding: 0;
  font-size: 14px;
}

.blog .blog-details  .correccion-trama {
  display: flex;
  justify-content: space-between;
}

.blog .blog-details .correccion-trama ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 48%;
}



.blog .blog-details .meta-bottom .tags li {
  display: inline-block;
}

.blog .blog-details .meta-bottom .tags li+li::before {
  padding-right: 6px;
  color: var(--color-default);
  content: ",";
}



.blog .blog-details .meta-bottom .share {
  font-size: 16px;
}

.blog .blog-details .meta-bottom .share i {
  padding-left: 5px;
}

.blog .post-author {
  padding: 20px;
  margin-top: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.blog .post-author img {
  max-width: 120px;
  margin-right: 20px;
}

.blog .post-author h4 {
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 0px;
  padding: 0;
  color: var(--color-default);
}

.blog .post-author .social-links {
  margin: 0 10px 10px 0;
}

.blog .post-author .social-links a {
  color: rgba(34, 34, 34, 0.5);
  margin-right: 5px;
}

.blog .post-author p {
  font-style: italic;
  color: rgba(108, 117, 125, 0.8);
  margin-bottom: 0;
}
/* Encabezado del post */
.blog .blog-details .blog-header {
  text-align: center;
  margin-bottom: 10px;
}

.blog .blog-details .title {
  font-size: 2rem;
  font-weight: 700;
  margin: 10px 0 4px;
  color: var(--deep);
}

/* Meta superior centrada */
.blog .blog-details .meta-top {
  margin-top: 4px;
  color: #6c757d;
}

.blog .blog-details .meta-top ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0;
  margin: 0;
}

.blog .blog-details .meta-top ul li {
  font-size: 0.95rem;
}

.blog .blog-details .meta-top a {
  color: #6c757d;
  font-size: 0.95rem;
}

.blog .blog-details .meta-top a:hover {
  color: var(--color-primary);
}

/* Ajuste de la imagen para que funcione bien con el título arriba */
.blog .blog-details .post-img {
  width: 100%;
  height: 500px;
  margin: 20px 0 20px 0;
  overflow: hidden;
  border-radius: 12px;
}

/* Un poco más de aire en mobile */
@media (max-width: 767.98px) {
  .blog .blog-details {
    padding: 20px;
  }

  .blog .blog-details .post-img {
    height: 280px;
  }

  .blog .blog-details .title {
    font-size: 1.6rem;
  }
}


/*--------------------------------------------------------------
# Blog Sidebar
--------------------------------------------------------------*/
.blog .sidebar {
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.blog .sidebar .sidebar-title {
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  margin: 0;
  color: var(--color-default);
}

.blog .sidebar .sidebar-item+.sidebar-item {
  margin-top: 40px;
}

.blog .sidebar .search-form form {
  background: #fff;
  border: 1px solid rgba(34, 34, 34, 0.3);
  padding: 5px 10px;
  position: relative;
  border-radius: 50px;
}

.blog .sidebar .search-form form input[type=text] {
  border: 0;
  padding: 4px;
  border-radius: 50px;
  width: calc(100% - 60px);
}

.blog .sidebar .search-form form input[type=text]:focus {
  outline: none;
}

.blog .sidebar .search-form form button {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  background: none;
  font-size: 16px;
  padding: 0 25px;
  margin: -1px;
  background: var(--color-primary);
  color: #fff;
  transition: 0.3s;
  border-radius: 50px;
  line-height: 0;
}

.blog .sidebar .search-form form button i {
  line-height: 0;
}

.blog .sidebar .search-form form button:hover {
  background: rgba(0, 131, 116, 0.8);
}

.blog .sidebar .categories ul {
  list-style: none;
  padding: 0;
}

.blog .sidebar .categories ul li+li {
  padding-top: 10px;
}

.blog .sidebar .categories ul a {
  color: var(--color-default);
  transition: 0.3s;
}

.blog .sidebar .categories ul a:hover {
  color: var(--color-primary);
}

.blog .sidebar .categories ul a span {
  padding-left: 5px;
  color: rgba(34, 34, 34, 0.4);
  font-size: 14px;
}

.blog .sidebar .recent-posts .post-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.blog .sidebar .recent-posts img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
}

.blog .sidebar .recent-posts h4 {
  font-size: 15px;
  margin-left: 15px;
  font-weight: bold;
}

.blog .sidebar .recent-posts h4 a {
  color: var(--color-default);
  transition: 0.3s;

}

.blog .sidebar .recent-posts h4 a:hover {
  color: var(--color-primary);
}

.blog .sidebar .recent-posts time {
  display: block;
  margin-left: 15px;
  font-style: italic;
  font-size: 14px;
  color: rgba(34, 34, 34, 0.4);
}

.blog .sidebar .tags {
  margin-bottom: -10px;
}

.blog .sidebar .tags ul {
  list-style: none;
  padding: 0;
}

.blog .sidebar .tags ul li {
  display: inline-block;
}

.blog .sidebar .tags ul a {
  color: #555555;
  font-size: 14px;
  padding: 6px 20px;
  margin: 0 6px 8px 0;
  border: 1px solid #d5d5d5;
  display: inline-block;
  transition: 0.3s;
  border-radius: 50px;
}

.blog .sidebar .tags ul a:hover {
  color: #fff;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
}

.blog .sidebar .tags ul a span {
  padding-left: 5px;
  color: rgba(85, 85, 85, 0.8);
  font-size: 14px;
}

/*--------------------------------------------------------------
# Blog Comments
--------------------------------------------------------------*/
.blog .comments {
  margin-top: 30px;
}

.blog .comments .comments-count {
  font-weight: bold;
}

.blog .comments .comment {
  margin-top: 30px;
  position: relative;
}

.blog .comments .comment .comment-img {
  margin-right: 14px;
}

.blog .comments .comment .comment-img img {
  width: 60px;
  border-radius: 30px;
}

.blog .comments .comment h5 {
  font-size: 16px;
  margin-bottom: 2px;
}

.blog .comments .comment h5 a {
  font-weight: bold;
  color: var(--color-default);
  transition: 0.3s;
}

.blog .comments .comment h5 a:hover {
  color: var(--color-primary);
}

.blog .comments .comment h5 .reply {
  padding-left: 10px;
  color: var(--color-primary);
}

.blog .comments .comment h5 .reply i {
  font-size: 20px;
}

.blog .comments .comment time {
  display: block;
  font-size: 14px;
  color: rgba(34, 34, 34, 0.8);
  margin-bottom: 5px;
}

.blog .comments .comment.comment-reply {
  padding-left: 40px;
}

.blog .comments .reply-form {
  margin-top: 30px;
  padding: 30px;
  padding-left: 20px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.blog .comments .reply-form h4 {
  font-weight: bold;
  font-size: 22px;
}

.blog .comments .reply-form p {
  font-size: 14px;
}

.blog .comments .reply-form input {
  border-radius: 4px;
  padding: 10px 10px;
  font-size: 14px;
}

.blog .comments .reply-form input:focus {
  box-shadow: none;
  border-color: var(--color-default);
}

.blog .comments .reply-form textarea {
  border-radius: 4px;
  padding: 10px 10px;
  font-size: 14px;
}

.blog .comments .reply-form textarea:focus {
  box-shadow: none;
  border-color: var(--color-default);
}

.blog .comments .reply-form .form-group {
  margin-bottom: 25px;
}

.blog .comments .reply-form .btn-primary {
  background-color: var(--color-secondary) !important;
  border-color: var(--color-primary) !important;
  font-family: var(--font-primary) !important;
}

.blog .comments .reply-form .btn-primary:hover {
  background-color: var(--color-default) !important;
}

/* ======= FOOTER ======= */

.site-footer {
  background: var(--deep);
  color: #eaf2f8;
  padding-top: 50px;
}

/* Grid principal */
.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 36px;
}

/* Marca y texto */
.footer-brand h4 {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-brand p {
  color: #c7d9e6;
  margin-bottom: 14px;
  font-size: 0.97rem;
}

/* Redes sociales */
.footer-social a {
  font-size: 1.4rem;
  margin-right: 12px;
  color: #eaf2f8;
  opacity: 0.85;
  transition: 0.25s ease;
}

.footer-social a:hover {
  color: var(--primary);
  opacity: 1;
}

/* Navegación */
.footer-nav h5 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.footer-nav a {
  display: block;
  color: #dbe6f0;
  text-decoration: none;
  margin-bottom: 6px;
  transition: 0.2s;
}

.footer-nav a:hover {
  color: var(--primary);
}

/* CTA dentro del footer */
.footer-cta h5 {
  color: #ffffff;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.footer-cta p {
  color: #c7d9e6;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

/* Botón CTA discreto */
.footer-cta-btn {
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
  display: inline-block;
}

.footer-cta-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

/* Línea final */
.copyright {
  text-align: center;
  color: #9fb4c8;
  padding: 12px 0;
  font-size: .9rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin: 0;
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  padding: 16px 0 22px;
}

.dev-credit {
  font-size: 0.85rem;
  color: #9fb4c8;
  margin: 4px 0 0;
}

.dev-credit a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.dev-credit a:hover {
  color: #fff;
  text-decoration: underline;
}


/* Marca con logo */
.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.footer-logo {
  width: 42px;
  height: auto;
  display: block;
  filter: brightness(1.1); /* se ve bien sobre fondo oscuro */
}

/* Responsive footer brand */
@media (max-width: 767.98px) {
  .footer-brand-header {
    justify-content: center;
  }
}

/* ======= Responsive ======= */

@media (max-width: 991.98px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767.98px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social a {
    margin-right: 16px;
  }

  .footer-nav a {
    margin: 4px 0;
  }

  .footer-cta-btn {
    margin: 0 auto;
  }
}

/* Newsletter */
.newsletter {
  background: var(--bg);
  padding: 56px 0;
  border-top: 1px solid #e8f1ed;
  border-bottom: 1px solid #e8f1ed
}

.newsletter h2 {
  text-align: center;
  color: var(--secondary);
  margin: 0 0 8px
}

.newsletter p {
  text-align: center;
  color: var(--muted);
  margin: 0 0 16px
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap
}

.newsletter-form input {
  min-width: 260px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #cfe7db;
  outline: none
}

.newsletter-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(103, 192, 144, .2)
}

.newsletter-form button {
  border-radius: 12px;
  border: 0
}

.form-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--secondary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid #5bb698; /* Verde médico */
  display: inline-block;
}

/* Forzar color del título de post por encima de Bootstrap */
.post-title a,
.post-title a:visited,
.post-title a:active {
  color: var(--primary) !important;
  text-decoration: none !important;
}

/* Hover controlado por vos */
.post-title a:hover {
  color: var(--deep) !important;
  text-decoration: none !important;
}

/* Responsive */
@media (max-width: 960px) {
  .cards-3 {
    grid-template-columns: 1fr 1fr
  }

  .about {
    grid-template-columns: 1fr
  }
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr
  }

  .testimonials {
    grid-template-columns: 1fr
  }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 64px 16px auto 16px;
    background: var(--primary);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 16px;
    flex-direction: column;
    display: none
  }

  .nav.open {
    display: flex
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center
  }
}

/* ===== Página de Podcast / Episodios ===== */

.section#podcast {
  padding-top: 64px;
  padding-bottom: 72px;
}

.podcast-grid {
  display: grid;
  gap: 28px;
  max-width: 960px;
  margin: 24px auto 0;
}

/* Card de episodio */
.podcast-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 20px 22px 18px;
  border: 1px solid #e1ebe6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .03);
}

/* Etiqueta superior (Nuevo, Recomendado, etc.) */
.podcast-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  background: rgba(103, 192, 144, .12);
  color: var(--secondary);
  margin-bottom: 6px;
}

/* Título y descripción */
.podcast-episode-title {
  margin: 4px 0 4px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
}

.podcast-episode-desc {
  margin: 0 0 10px;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Contenedor del reproductor */
.podcast-embed {
  margin-top: 6px;
  border-radius: 18px;
  overflow: hidden;
}

.podcast-embed iframe {
  display: block;
  width: 100%;
  min-height: 152px;
  border: 0;
}

/* Link "Escuchar en Spotify" */
.podcast-link {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(18, 65, 112, .14);
  background: rgba(221, 244, 231, .7);
  color: var(--deep);
  transition: background .2s ease, transform .15s ease, box-shadow .15s ease;
}

.podcast-link:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  transform: translateY(-1px);
}

/* Ajustes responsive */
@media (max-width: 768px) {
  .section#podcast {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .podcast-card {
    padding: 18px 16px 16px;
  }

  .podcast-episode-title {
    font-size: 1.1rem;
  }
}

/* Sobre mí: ficha con foto centrada */
.about-hero {
  display: flex;
  justify-content: center;
  margin-bottom: -60px;   
  position: relative;
  z-index: 2;
}

.about-avatar {
  width: 180px;
  height: 180px;
  object-fit: cover;      
  object-position: center;
  border-radius: 25%;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
  display: block;
}

.about-card {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 80px;      
  text-align: left;
}

.about-card p {
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.7;
}

.about-meta {
  list-style: none;
  padding-left: 0;
  margin: 18px 0 0;
}

.about-meta li {
  margin-bottom: 6px;
}

.about-meta strong {
  color: var(--secondary);
}

.about-actions {
  margin-top: 24px;
    margin-top: 1.5rem;
  display: flex;
  justify-content: center!important;
}


@media (max-width: 768px) {
  .about-avatar {
    width: 150px;
    height: 150px;
  }

  .about-card {
    padding-top: 72px;
  }
}

/* Galería "Un poco más de mi trabajo" */
.about-gallery-section {
  margin-top: 48px;
}

.about-gallery {
  display: grid;
  gap: 24px;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(230px, 260px));
}

/* Cada card de la galería */
.about-gallery-item {
  padding: 14px 14px 18px;
  border-radius: 18px;
  text-align: center;
}

/* Imágenes todas iguales, un poco más grandes */
.about-gallery-item img {
  width: 100%;
  height: 250px;        
  object-position: top;
  object-fit: cover;
  border-radius: 14px;
}

.about-gallery-item figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}
.about-gallery-item a {
  display: block;
  cursor: zoom-in;
}


@media (max-width: 576px) {
  .about-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-gallery-item img {
    height: 150px;
  }
}
