/* ESTILOS BASE Y VARIABLES 
*/
:root {
  --fondo-principal: #f0f4f8; 
  --texto-oscuro: #1a202c; 
  --acento-azul: #0056b3; 
  --tarjeta-fondo: #ffffff;
  --sombra: 0 10px 25px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Nunito', sans-serif;
}

body {
  background-color: var(--fondo-principal);
  color: var(--texto-oscuro);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* TIPOGRAFÍA */
h1, h2 {
  text-align: center;
  color: var(--acento-azul);
  margin-bottom: 20px;
}

h1 { font-size: 2.5rem; margin-top: 40px; }
h2 { font-size: 2rem; margin-top: 20px; }
p { font-size: 1.1rem; margin-bottom: 15px; text-align: justify; }

/* NAVEGACIÓN */
.navbar {
  background-color: var(--tarjeta-fondo);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--sombra);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--acento-azul);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--texto-oscuro);
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--acento-azul);
}

/* COMPONENTES DE INFORMACIÓN */
.grid-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 30px;
}

.cuadro {
  background-color: var(--tarjeta-fondo);
  border-radius: 15px;
  padding: 30px;
  flex: 1 1 45%;
  min-width: 300px;
  box-shadow: var(--sombra);
  transition: transform 0.3s ease;
}

.cuadro:hover {
  transform: translateY(-5px);
}

/* ANIMACIÓN DE RESPIRACIÓN */
.respiracion-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1 / 1;
  padding: 20px;
  background: white;
  border-radius: 30px;
  box-shadow: var(--sombra);
  margin: 40px auto;
} 

.circulo-guia {
  width: 60px;
  height: 60px;
  background-color: var(--acento-azul);
  border-radius: 50%;
  opacity: 0.6;
  animation: inhalarExhalar 8s infinite ease-in-out;
}

@keyframes inhalarExhalar {
  0%, 100% { transform: scale(1); opacity: 0.3;}
  50% { transform: scale(2.5); opacity: 0.8;}
}

/* SECCIONES DE COLOR */
.seccion-respiracion {
  background: linear-gradient(to bottom, #ffffff, #f3e8ff);
  padding: 80px 0;
}

.seccion-cuadrosinfo {
  background: linear-gradient(to bottom, #ffffff, #fff3e0);
  padding: 80px 0;
}

/* BOTÓN PRINCIPAL */
.btn-primario {
  background-color: var(--acento-azul);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease;
  transform: translateY(0);
}

/* HOVER */
.btn-primario:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 86, 179, 0.3);
}

/* FOCUS (MUY IMPORTANTE para puntos) */
.btn-primario:focus {
  outline: 3px solid var(--acento-azul);
  outline-offset: 3px;
}

/* ACTIVE (cuando haces click) */
.btn-primario:active {
  transform: translateY(1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.nav-links a:focus {
  outline: 2px dashed var(--acento-azul);
}

/* MOBILE FIRST (ya está implícito) */

/* Tablets */
@media (min-width: 768px) {
  .grid-layout {
    flex-direction: row;
  }

  .cuadro {
    flex: 1 1 45%;
  }
}

/* Pantallas pequeñas */
@media (max-width: 640px) {
  .cuadro {
    flex: 1 1 100%;
  }

  h1 {
    font-size: 2rem;
  }
}

/* Pantallas grandes */
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
  }
}

@font-face {
  font-family: 'Nunito';
  src: url('/fonts/Nunito-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
}

