/* Variables y configuración */
:root {
  /* Colores - Paleta para Ana Solís Nutricionista */
  --primario: #00818F;
  --primario-oscuro: #006A75;
  --primario-muy-oscuro: #0D454A;
  --primario-claro: #33b8c7;
  --primario-muy-claro: #b3e5ea;
  --primario-casi-blanco: #e6f7f9;
  --acento: #00a6b6;
  --acento-claro: #33b8c7;

  --primario-enlace:#00838f;

  /* Mantener colores del calendario */
  --verde: #2d7d32;
  --verde-claro: #66bb6a;

  --verde: #A6B600;
  --verde-claro: #CFE066;

  --rojo: #a10302;

  /* Escala de grises */
  --gris-1: #3d4343;
  --gris-2: #a4acaf;
  --gris-3: #a4acaf;
  --gris-4: #bdbdbd;
  --gris-5: #e0e0e0;
  --gris-6: #f5f5f5;

  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
}

/* Importar fuente sans-serif para títulos */
/*@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");*/
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

svg {
  display: inline-block;
  font-size: inherit;
  height: 1em;
  overflow: visible;
  vertical-align: -0.125em;
}

/* Barra Superior */
.top-bar {
  background-color: var(--primario-oscuro);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-link {
  color: #eee;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-link:hover {
  color: #fff;
}

.top-bar-link img,
.top-bar-social-icon img,
.top-bar-phone img {
  filter: brightness(0) invert(1) opacity(0.9);
  transition: filter 0.3s ease;
}

.top-bar-link:hover img,
.top-bar-social-icon:hover img,
.top-bar-phone a:hover img {
  filter: brightness(0) invert(1);
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

.top-bar-social-icon:hover {
  transform: translateY(-1px);
}

.top-bar-phone {
  display: flex;
  align-items: center;
}

.top-bar-phone a {
  color: #eee;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-phone a:hover {
  color: #fff;
}

.top-bar-separator {
  width: 1px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.3);
}

/* Responsive para barra superior */
@media (max-width: 768px) {
  .top-bar {
    padding: 0.375rem 0;
    font-size: 0.8rem;
  }

  .top-bar-content {
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .top-bar-separator {
    height: 16px;
  }

  .top-bar-social {
    gap: 0.375rem;
  }

  .top-bar-social-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .top-bar-content {
    gap: 0.75rem;
  }

  .top-bar-separator {
    display: none;
  }
}

/* Fuentes del sistema */

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 400;
  line-height: 1.6;
  color: var(--gris-1);
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--primario-enlace);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primario-muy-oscuro);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Aplicar la nueva tipografía sans-serif a los títulos */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--primario-oscuro);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--gris-1);
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primario);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primario-oscuro);
  color: white;
}

.btn-secondary {
  background-color: var(--primario);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--primario-oscuro);
  color: white;
}

.btn-tertiary {
  background-color: var(--primario);
  color: white;
}

.btn-tertiary:hover {
  background-color: var(--primario-oscuro);
  color: white;
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--primario);
  color: var(--primario);
}

.btn-outline:hover {
  background-color: var(--primario);
  color: white;
}

/* Header y Menú Hamburguesa */
.header {
  padding: 0;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0.5rem 0;
}
.header-content-derecha h1 {
    margin-left: auto;
}
.hero .header-content-derecha h1{
    /*text-align: right;*/
}

.logo {
  display: block;
}

.logo img {
  min-width: 118px;
}

/* Menú hamburguesa - Solo visible en móvil */
.menu-toggle {
  display: none;
}

.menu-button {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 200;
}

.menu-button span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primario);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.main-nav {
  display: flex;
}

.main-nav ul {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

/* Cambiar el color de los enlaces del menú principal */
.main-nav a {
  font-weight: 500;
  color: var(--primario-oscuro);
}

.main-nav a:hover {
  color: var(--primario);
}

/* Dropdown menu styles */
.haspopup {
  position: relative;
}

.midropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border: 1px solid var(--gris-5);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.midropdown ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.midropdown li {
  margin: 0;
  width: 100%;
}

.midropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--primario-oscuro);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  width: 100%;
  text-align: left;
  line-height: 1.4;
}

.midropdown a:hover {
  background-color: var(--primario-casi-blanco);
  color: var(--primario);
}

/* Show dropdown on hover and focus */
.haspopup:hover .midropdown,
.haspopup:focus-within .midropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile styles for dropdown */
@media (max-width: 768px) {
  .midropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: var(--gris-6);
    margin-top: 0.5rem;
    border-radius: 4px;
  }

  .midropdown ul {
    display: flex;
    flex-direction: column;
  }

  .midropdown a {
    padding: 0.5rem 1rem !important;
    font-size: 1rem;
    text-align: left;
  }
}

/* Botón de Reservas en el menú */
.nav-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--primario);
  border-radius: 4px;
  transition: all 0.3s ease;
  color: #eee;
  font-weight: 600;
}

.nav-button img {
  filter: none;
  transition: filter 0.3s ease;
  width: 16px;
  height: 16px;
}

.nav-button:hover {
  background-color: #eee;
  color: var(--primario-oscuro);
}

.nav-button:hover img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(23%) saturate(1909%) hue-rotate(182deg) brightness(94%)
    contrast(88%);
}

/* Hero Section */
.hero {
  background-color:#a8988;/*cls*/


  background-image: url("../img/Ana-Solis-Nutricion-110.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: var(--spacing-xl) 0;
  position: relative;
  /*min-height: 345px;
  max-height: calc(98vh - 160px);*//*cls*/
  display: flex;
  align-items: center;
  aspect-ratio: 1600 / 845;
  width: 100%;

  height: min(calc(98vh - 160px), 845px);/*cls*/

}
    .hero.object-position-top {
        background-position:top;
    }

@media (max-width: 575px) {
  .hero {
    aspect-ratio: 896 / 1809;
    align-items: flex-start;
    padding-top: var(--spacing-lg);
    max-height: calc(98vh - 130px);


    padding-bottom:0;
  }
    .hero {
        /*background-position: bottom!important;
        background-size:50%;*/
        background-repeat:no-repeat;
        background-color:var(--primario);
    }
    .hero-content {

    }
    .hero .container {
        align-self:center;
    }
       
}

.hero-content {
  position: relative;
  z-index: 1;
  /*max-width: 600px;*/
}



.hero h1 {
    
    /*max-width: 60%;*/
    color: white;
     text-shadow: 0 2px 4px rgb(0 0 0 / 80%), 0 -2px 4px rgb(0 0 0 / 80%);
  }

@media (max-width: 575px) {
  .hero-content {
    max-width: 100%;
  }
  

   .hero h1 {
       font-size: 1.75rem;
            text-align: center;
           line-height: 1.4;
            padding:0;
           
        }
}


@media (min-width: 575px) {
    .hero h1 {
        max-width:60%;
        max-width:50%;
       
    }
}


@media (min-width: 992px) {
    .hero h1 {
        
        max-width:45%;
        
    }
}
@media (min-width: 576px) and (max-width:767px) {
    .hero h1 {
        font-size: 2rem;
        
    }
}

/* Título con background en cada línea */
/*@media(min-width:576px) {
    .hero h1 {
        margin-bottom: var(--spacing-md);
        background-color: var(--primario);
        
        padding: 0.2rem 0.8rem;
        display: inline;
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
        line-height: 1.6;
        box-shadow: 0.5rem 0 0 var(--primario), -0.5rem 0 0 var(--primario);
    }
}*/

/* Flecha de scroll */
.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.scroll-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-50%) translateY(-5px);
}

/* Icono de la flecha */
.scroll-arrow::after {
  content: "↓";
  font-size: 24px;
  color: white;
  font-weight: bold;
}

/* Animación de latido */
.scroll-arrow {
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0% {
    transform: translateX(-50%) scale(1);
  }
  14% {
    transform: translateX(-50%) scale(1.1);
  }
  28% {
    transform: translateX(-50%) scale(1);
  }
  42% {
    transform: translateX(-50%) scale(1.1);
  }
  70% {
    transform: translateX(-50%) scale(1);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

@media (max-width: 575px) {
  .scroll-arrow {
    bottom: 3rem;
    display:none;
  }
}

/* Smooth scroll para toda la página */
html {
  scroll-behavior: smooth;
}

/* Añadir scroll-margin a las secciones principales para compensar header sticky */
main,
.free-courses,
section:not(.hero) {
  scroll-margin-top: 160px;
}

/* Servicios - Con cards clickeables */
.channels {
  padding: var(--spacing-xl) 0;
}

.channel-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.channel-card {
  border-radius: 8px;
  border: 2px solid var(--primario);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.channel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.channel-card:hover .card-image img {
  transform: scale(1.05);
}

.channel-card .btn {
  margin: var(--spacing-md);
  align-self: center;
  position: relative;
  z-index: 2;
}

/* Pseudoelemento para hacer toda la card clickeable */
.channel-btn {
  position: relative;
}

.channel-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
  top: calc(-100% - 250px);
  height: calc(200% + 250px);
  width: 100%;
}

/* Feature Sections */
.feature-section {
  padding: var(--spacing-xl) 0;
  background-color: white;
}

.feature-section-alt {
  background-color: var(--primario-casi-blanco);
}

.feature-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.feature-text {
  padding: var(--spacing-md) 0;
}

.feature-text h2 {
  margin-bottom: var(--spacing-md);
  color: var(--primario);
}

.feature-section .parrafada a {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* Nuevo div para agrupar párrafos */
.parrafada {
  margin-bottom: var(--spacing-md);
}

.parrafada p {
  margin-bottom: var(--spacing-xs);
}

.parrafada p:last-child {
  margin-bottom: 0;
}

.parrafada :is(ul, ol) {
  margin-bottom: var(--spacing-xs);
  padding-left: 1.5rem;
  list-style: disc;
}
.parrafada ul {  
  list-style: disc;
}
.parrafada ol {  
  list-style: decimal;
}

.parrafada :is(ul, ol) li + li {
  margin-top: var(--spacing-xs);
}

.feature-text .btn {
  background-color: var(--primario);
  color: white;
  margin-top: var(--spacing-sm);
}

.feature-text .btn:hover {
  background-color: var(--primario-oscuro);
}

.feature-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4 / 3;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.feature-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Servicios Especializados - Rediseño de cards con fondo oscuro */
.free-courses {
  padding: var(--spacing-xl) 0;
  background-color: var(--primario);
  color: white;
  position: relative;
}

/* SVG curvo en la parte superior */
.curve-top {
  position: absolute;
  top: -49px;
  left: 0;
  width: 100%;
  height: 50px;
  fill: var(--primario);
  color: var(--primario);
  display: block;
  background: transparent;
  margin-top: -1px;
}

.free-courses h2,
.free-courses p {
  color: white;
}

/* Estilo para el texto introductorio con ancho limitado */
.free-courses > .container > p {
  max-width: 600px;
  margin: 0 auto var(--spacing-lg) 0;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.6;
}

.course-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  transition: transform 0.3s ease;
  border: 2px solid white;
  border-radius: 12px;
  padding: var(--spacing-sm);
  justify-content: space-between;
}

.category:hover {
  transform: translateY(-5px);
}

.paw-icon {
  filter: brightness(0) invert(1);
  width: 64px;
  height: 64px;
  transition: transform 0.3s ease;
}

.category:hover .paw-icon {
  transform: scale(1.1);
}

.category-card {
  width: 100%;
  height: 160px;
  height: auto;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  gap: var(--spacing-sm);
  position: relative;
  overflow: hidden;
  box-shadow: none;
  transition: all 0.3s ease;
  border: none;
  background-color: transparent;
}

.category:hover .category-card {
  box-shadow: none;
}

.category-card.alojamiento,
.category-card.cuidados,
.category-card.actividades,
.category-card.especiales {
  background-color: transparent;
}

.category-icon {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-xs);
}

.category-icon img {
  height: 90px;
  width: 90px;
  object-fit: contain;
}

.category-icon svg {
  font-size: 3rem;
}

.category h3 {
  color: white;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.category .btn-outline {
  border: 2px solid white;
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  color: white;
  background-color: transparent;
}

.category.alojamiento .btn-outline,
.category.cuidados .btn-outline,
.category.actividades .btn-outline,
.category.especiales .btn-outline {
  border-color: white;
  color: white;
}

.category .btn-outline:hover {
  background-color: white !important;
  color: var(--primario);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: white;
}

/* Noticias y Novedades - Con cards clickeables */
.news {
  padding: var(--spacing-xl) 0;
}

.news h2 {
  color: var(--primario);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.news-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-card:hover .news-title-link {
  color: var(--primario-oscuro);
}

.news-image {
  height: 180px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: var(--spacing-md);
  position: relative;
  z-index: 2;
}

.news-date {
  color: var(--primario-claro);
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
}

.news-title-link {
  color: var(--primario);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-title-link:hover {
  color: var(--primario-oscuro);
}

.news-title-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

.news-content p {
  color: var(--gris-1);
}

/* Eventos y Actividades - Fondo oscuro */
.events-social {
  padding: var(--spacing-xl) 0;
  background-color: var(--primario);
  color: white;
}

.events-social h2 {
  color: white;
  margin-bottom: var(--spacing-lg);
}

.calendar-events-container {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.calendar-section {
  display: flex;
  justify-content: flex-start;
}

.events-section {
  display: flex;
  flex-direction: column;
}

.calendar-container {
  margin-top: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ESTILOS DEL CALENDARIO PERSONALIZADO - ACTUALIZADOS */
.calendar-widget {
  background-color: white;
  border-radius: 8px;
  padding: var(--spacing-xs);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 350px;
  margin-bottom: 0;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xs);
}

.calendar-header h3 {
  color: var(--primario);
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.calendar-nav {
  background: var(--verde);
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
  font-size: 0.9rem;
}

.calendar-nav:hover {
  background: var(--verde-claro);
}

.calendar-controls {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
}

.btn-today {
  background: var(--primario-claro);
  color: white;
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.8rem;
  transition: background-color 0.3s ease;
}

.btn-today:hover {
  background: var(--primario);
}

.calendar-grid {
  color: var(--primario);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 8px;
}

.calendar-weekdays div {
  text-align: center;
  font-weight: 600;
  padding: 6px;
  background-color: var(--gris-4);
  border-radius: 4px;
  font-size: 0.8rem;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.8rem;
  background-color: white;
  min-height: 32px;
}

.calendar-day:hover {
  background-color: var(--gris-5);
}

.calendar-day.other-month {
  color: var(--gris-3);
  background-color: var(--gris-6);
}

.calendar-day.today {
  background-color: var(--primario);
  color: white;
  font-weight: 600;
}

.calendar-day.has-event {
  background-color: var(--verde);
  color: white;
  font-weight: 600;
}

.calendar-day.has-event:hover {
  background-color: var(--verde-claro);
}

.calendar-day.has-event::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: white;
  border-radius: 50%;
}

.events-list {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: var(--spacing-md);
  height: fit-content;
  max-height: 400px;
  overflow-y: auto;
}

.events-list h4 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: 1.2rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: var(--spacing-xs);
}

.event-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: var(--spacing-xs);
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.event-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--verde);
  color: white;
  padding: 6px;
  border-radius: 6px;
  min-width: 50px;
  font-weight: 700;
  flex-shrink: 0;
}

.event-date-badge .day {
  font-size: 1.2rem;
  line-height: 1;
}

.event-date-badge .month {
  font-size: 0.7rem;
  text-transform: uppercase;
}

.event-info h5 {
  color: white;
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.event-info p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.8rem;
}

.event-description-truncated {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: 2.8em;
}

@supports not (-webkit-line-clamp: 2) {
  .event-description-truncated {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
}

.social-section {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-section h3 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
}

.social-section h3,
.social-section p {
  color: #eee;
}

.social-icons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-top: var(--spacing-md);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon img {
  width: 24px;
  height: 24px;
}

.social-icon:hover {
  background-color: var(--verde);
  transform: translateY(-3px);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: var(--spacing-md);
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: slideIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: var(--gris-3);
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--primario);
}

.modal-event-title {
  color: var(--primario);
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
  padding-right: 30px;
}

.modal-event-date {
  color: var(--primario-claro);
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  font-size: 1rem;
}

.modal-event-description {
  background-color: var(--gris-6);
  padding: var(--spacing-sm);
  border-radius: 8px;
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.modal-event-actions {
  display: flex;
  gap: var(--spacing-xs);
  justify-content: flex-end;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#agenda {
  scroll-margin-top: 150px;
}

.program-description {
  background-color: var(--gris-6);
  padding: var(--spacing-xl) 0;
  color: var(--gris-1);
}

.program-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  text-align: left;
  color: var(--gris-1);
}

@media (max-width: 768px) {
  .program-description {
    padding: var(--spacing-lg) 0;
  }

  .program-description p {
    font-size: 1rem;
  }
}

.offscreen {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.project-sponsors-wrapper {
  background-color: white;
  padding: var(--spacing-xl) 0;
  color: var(--primario);
}

.project-info {
  margin-bottom: var(--spacing-lg);
  text-align:center;
}

.sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
}

.sponsor-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.sponsor-logo:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

/* Footer Principal */
.main-footer {
  background-color: var(--primario-oscuro);
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

@media (min-width: 1100px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section .titulo {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: 1.2rem;
  border-bottom: 2px solid var(--primario-claro);
  padding-bottom: var(--spacing-xs);
}

.footer-logo {
  margin-bottom: var(--spacing-md);
}

@media (max-width: 1099px) {
  .footer-logo img {
    margin-inline: auto;
  }
  .footer-logo + p {
    max-width: 40ch;
    margin-inline: auto;
  }
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-item {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.contact-item strong {
  color: white;
}

.contact-item a {
  color: var(--primario-muy-claro);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: white;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-social-link:hover {
  color: white;
}

.footer-social-link img {
  filter: brightness(0) invert(1) opacity(0.8);
  transition: filter 0.3s ease;
}

.footer-social-link:hover img {
  filter: brightness(0) invert(1);
}

@media (max-width: 1099px) {
  .footer-content {
    gap: var(--spacing-md);
  }

  .footer-section {
    text-align: center;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs);
  }

  .contact-info {
    align-items: center;
  }

  .footer-social {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}

.nav-button svg {
  width: 16px;
  height: 16px;
  transition: all 0.3s ease;
}

.nav-button:hover svg {
  color: var(--primario-oscuro);
}

@media (max-width: 768px) {
  .nav-button svg {
    color: var(--primario);
  }

  .nav-button:hover svg {
    color: white;
  }
}

.footer {
  padding: var(--spacing-md) 0;
  background-color: var(--primario-muy-oscuro);
  color: white;
}

.legal-links {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

.legal-links a {
  color: #ddd;
}

.legal-links a:hover {
  color: #fff;
}

/* Media Queries */
@media (max-width: 992px) {
  .feature-content {
    grid-template-columns: 1fr;
  }

  .feature-image {
    height: 300px;
    order: 1;
    aspect-ratio: auto;
    aspect-ratio: 4 / 3;
    height: auto;
    width: 100%;
  }

  .feature-text {
    order: 2;
  }

  .calendar-events-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .calendar-section {
    justify-content: center;
  }

  .calendar-widget {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .menu-button {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 100;
    padding: 80px 20px 20px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  .main-nav a {
    display: block;
    padding: 10px 0;
    font-size: 1.2rem;
    color: var(--primario);
  }

  .main-nav a:hover {
    color: var(--primario-oscuro);
  }

  .nav-button {
    margin-top: 10px;
    justify-content: center;
    border-color: var(--primario);
    color: var(--primario);
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem !important;
  }

  .nav-button img {
    filter: brightness(0) saturate(100%) invert(18%) sepia(23%) saturate(1909%) hue-rotate(182deg) brightness(94%)
      contrast(88%);
  }

  .nav-button:hover {
    background-color: var(--primario);
    color: white;
  }

  .nav-button:hover img {
    filter: brightness(0) invert(1);
  }

  .menu-toggle:checked ~ .main-nav {
    right: 0;
  }

  .menu-toggle:checked ~ .menu-button span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle:checked ~ .menu-button span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .menu-button span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .legal-links {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }

  .sponsor-logos {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .sponsor-logo {
    height: 80px;
  }

  .calendar-events-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
  }

  .calendar-widget {
    max-width: 100%;
  }

  .calendar-header {
    margin-bottom: var(--spacing-sm);
  }

  .calendar-weekdays div {
    padding: 4px;
    font-size: 0.7rem;
  }

  .calendar-day {
    font-size: 0.7rem;
    min-height: 28px;
  }

  .event-item {
    flex-direction: row;
    text-align: left;
  }

  .event-info {
    text-align: left;
  }

  .events-list {
    margin-top: var(--spacing-sm);
    max-height: none;
    overflow-y: visible;
  }

  .social-section {
    padding-top: var(--spacing-md);
  }

  .social-icons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .modal-content {
    margin: 10% auto;
    width: 95%;
    padding: var(--spacing-sm);
  }

  .modal-event-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .sponsor-logo {
    height: 40px;
  }

  .calendar-weekdays div {
    padding: 2px;
    font-size: 0.6rem;
  }

  .calendar-day {
    font-size: 0.6rem;
    min-height: 24px;
  }

  .event-date-badge {
    min-width: 40px;
    padding: 4px;
  }

  .event-date-badge .day {
    font-size: 1rem;
  }

  .event-date-badge .month {
    font-size: 0.6rem;
  }
}

.section-intro {
  max-width: 600px;
  margin: 0 auto var(--spacing-lg) 0;
  text-align: left;
}

.section-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.feature-section + .free-courses {
  margin-top: -50px;
}

.free-courses::before {
  content: "";
  display: block;
  height: 50px;
  margin-top: -50px;
}


a.a-wa {
    display: block;
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    z-index: 999999;
    padding: 0.75rem;
    background: #fff;
    background: rgba(255,255,255,.5);
    background: rgba(50,50,50,.5);
    background:none;
    border-radius: 50%;
}


a.a-wa:first-of-type {
    color: #fff;
    border-radius: 0;
    right: 4.5em;
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    background: rgba(50,50,50,.5);
    bottom: 2.6rem;
    padding-block: 0.5rem;
}



.category-icon img {
     height: auto; 
    width: 300px;
    object-fit: contain;
}








/*aactualizaciones del index*/


        /* Contact Info Section */
.contact-info-section {
    padding: var(--spacing-xl) 0;
    background: white;
    padding-bottom:0;
}

.contact-info-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primario);
    margin-bottom: var(--spacing-xl);
    font-weight: 700;
}

.contact-info-grid {
    max-width: 1000px;
    margin: 0 auto;
}

/* Primera fila: Email y Teléfono */
.contact-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

/* Segunda fila: Horarios (ocupa todo el ancho) */
.contact-info-full {
    display: grid;
    grid-template-columns: 1fr;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--gris-claro);
    border-radius: 8px;
}

    .contact-info-item ul {
        list-style: disc;
        padding-left: 2rem;
    }

.contact-info-icon {
    background: var(--primario-oscuro);
    color: white;
    padding: var(--spacing-sm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.contact-info-content h3 {
    margin: 0 0 var(--spacing-xs) 0;
    font-size: 1.2rem;
    color: var(--primario);
    font-weight: 600;
}

.contact-info-content p {
    margin: 0;
    color: var(--secundario);
    line-height: 1.6;
}

.contact-info-content a {
    color: var(--primario-muy-oscuro);
    text-decoration: none;

    text-underline-offset: 0.25em;
}

.contact-info-content a:hover {
    text-decoration: underline;
}

/* Responsive para contact-info */
@media (max-width: 768px) {
    .contact-info-section h2 {
        font-size: 2rem;
    }
    
    /* En móvil: todos los elementos de contacto en columna */
    .contact-info-row,
    .contact-info-full {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-info-row {
        margin-bottom: var(--spacing-md);
    }
    
    .contact-info-item {
        padding: var(--spacing-md);
    }
}

@media (max-width: 767px) {
    .contact-info-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-info-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .contact-info-section h2 {
        font-size: 1.75rem;
    }
}
    









        
/* Hero Section a pantalla completa */
.page-hero {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media(min-width:768px) {
    .page-hero.mantener-proporciones {
        height:calc(95vh - 156px);
    }
}

.page-hero.object-position-top .hero-image img {
    object-position: top;
}

.hero-content {
    max-width:60ch;
}

.page-hero-tc {
    align-items: flex-start;
    justify-content: center;
}

.page-hero-tr {
    align-items: flex-start;
    justify-content: flex-end;
}

.page-hero-cr {
    align-items: center;
    justify-content: flex-end;
}

.page-hero-br {
    align-items: flex-end;
    justify-content: flex-end;
}

.page-hero-bc {
    align-items: flex-end;
    justify-content: center;
}

.page-hero-bl {
    align-items: flex-end;
    justify-content: flex-start;
}

.page-hero-cl {
    align-items: center;
    justify-content: flex-start;
}

.page-hero-tl {
    align-items: flex-start;
    justify-content: flex-start;
}

.page-hero-offscreen .hero-content {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

:is( .page-hero-tl, .page-hero-cl, .page-hero-bl ) .hero-title {
    text-align:left;
}

:is( .page-hero-tr, .page-hero-cr, .page-hero-br ) .hero-title {
    text-align:right;
}

/* Versión móvil con aspect-ratio 3:4 */
@media (max-width: 575px) {
  .page-hero {
    height: auto;
    aspect-ratio: 3 / 4;
  }
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  
}

        .mantener-proporciones .hero-image img {
            height: calc(95vh - 156px);
        }

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--spacing-lg) 0;
}

.hero-title {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 -2px 4px rgba(0, 0, 0, 0.8);
  line-height:1.3;
}


.header-content-derecha h1 {
    margin-left: auto;
}
.page-hero .header-content-derecha h1 {
    /* text-align: right; */
}
.page-hero h1 {
    /* max-width: 60%; */
    color: white;
    text-shadow: 0 2px 4px rgb(0 0 0 / 80%), 0 -2px 4px rgb(0 0 0 / 80%);
}
        @media (min-width: 575px) {
            .page-hero h1 {
                max-width: 60%;
                max-width: 50%;
            }
        }

        @media (min-width: 992px) {
            .page-hero h1 {
                max-width: 45%;
            }
        }


.hero-content {
    max-width: none; 
}

   