/* =================== RESET BÁSICO =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =================== TIPOGRAFÍA GENERAL =================== */
body {
  font-family: 'Open Sans', sans-serif;
  background-color: #f0fdf4;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =================== ENCABEZADO =================== */
header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 20px;
  background-color: #fff;
  color: #008000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.logo-izquierdo {
  height: 52px;
  width: auto;
  flex-shrink: 0;
  justify-self: start;
}

.logo-derecho {
  height: 68px;
  width: auto;
  flex-shrink: 0;
  justify-self: end;
}

.logo-izquierdo img,
.logo-derecho img {
  height: 100%;
  width: auto;
  display: block;
}

.titulo-principal {
  flex-grow: 1;
  text-align: center;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

.titulo-principal h1 {
  font-size: 1.5rem;
  color: #008000;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.titulo-principal h2 {
  font-size: 0.95rem;
  color: #4e3b31;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-top: 3px;
  margin-bottom: 0;
  line-height: 1.2;
}

.titulo-principal h3 {
  font-size: 0.8rem;
  color: #666;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  margin-top: 2px;
  margin-bottom: 0;
  line-height: 1.2;
}

/* =================== MENÚ =================== */
nav {
  background: #008000;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  height: auto;
  position: relative;
  overflow: visible;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 128, 0, 0.3);
  padding: 8px 0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  align-items: center;
}

nav ul li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

nav ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: background 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1.6;
  min-height: 48px;
}

nav ul li a:hover,
nav ul li a.activo {
  background: #006400;
}

/* =================== BOTÓN MENÚ HAMBURGUESA =================== */
.menu-toggle {
  display: none;
  position: relative;
  background: transparent;
  color: white;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 6px 10px;
  text-align: center;
  line-height: 1;
}

.menu-toggle:hover {
  color: #e6e6e6;
}

/* =================== SECCIONES GENERALES =================== */
.bienvenida,
.descubre-mas,
.testimonios {
  text-align: center;
  padding: 40px 20px;
}

.bienvenida h2,
.descubre-mas h2,
.testimonios h2 {
  font-size: 2rem;
  color: #008000;
  margin-bottom: 15px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.bienvenida p,
.testimonios p {
  font-size: 1.1rem;
  color: #444;
}

/* =================== CARRUSEL =================== */
.carrusel {
  display: flex;
  justify-content: center;
  margin: 30px auto;
  max-width: 1000px;
  width: 90%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  background-color: #fff;
}

.carrusel img {
  width: 100%;
  height: auto;
  object-fit: cover;
}



/* =================== TESTIMONIOS =================== */
.testimonios-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tarjeta-testimonio {
  width: 280px;
  padding: 20px;
  border-radius: 15px;
  background: white;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  font-style: italic;
}

.tarjeta-testimonio span {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #555;
}

/* =================== MASCOTA =================== */
.mascota-container {
  position: fixed;
  bottom: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
  overflow: hidden;
  width: 120px;
  height: auto;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mascota-container img,
.mascota {
  width: 120px;
  cursor: pointer;
  transition: transform 0.3s ease;
  animation: aparecer 1s ease;
  border: none !important;
  outline: none !important;
  display: block;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  box-shadow: none;
  clip-path: inset(0 0 0 8px);
  -webkit-clip-path: inset(0 0 0 8px);
  object-fit: cover;
  object-position: right center;
  margin-left: -8px;
  max-width: 100%;
  height: auto;
}

.mascota:focus,
.mascota:active,
.mascota-container img:focus,
.mascota-container img:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.mascota-container.inactiva {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.mascota.hablando {
  animation: balanceo 0.6s ease-in-out infinite;
}

.globo-texto {
  display: none;
  background: #f1faee;
  border: 2px solid #008000;
  border-radius: 15px;
  padding: 10px 15px;
  font-size: 14px;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 10px;
  text-align: center;
  max-width: 220px;
  position: relative;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.globo-texto::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: #008000 transparent transparent transparent;
}

.globo-texto.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* =================== FOOTER =================== */
footer {
  text-align: center;
  padding: 20px;
  background-color: #008000;
  color: white;
  margin-top: auto;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.social-links {
  margin-top: 10px;
}

.social-links a {
  display: inline-block;
  margin: 0 10px;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #e6e6e6;
}

.social-links a i {
  margin-right: 5px;
  transition: transform 0.5s ease-in-out, color 0.3s ease;
  font-size: 1.5rem;
}

.social-links a:hover i {
  transform: scale(1.2) rotate(5deg);
}

.social-links a:nth-child(1) i {
  color: #FF0000; /* YouTube red */
}

.social-links a:nth-child(2) i {
  color: #333; /* Email gray */
}

.social-links a:nth-child(3) i {
  color: #1877F2; /* Facebook blue */
}

/* =================== ANIMACIONES =================== */
@keyframes balanceo {
  0%, 50%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(-3deg); }
  75% { transform: translateY(-5px) rotate(3deg); }
}

@keyframes aparecer {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* =================== RESPONSIVE =================== */
/* Tablets */
@media (max-width: 992px) {
  header {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 8px 15px;
  }

  .logo-izquierdo { height: 48px; }
  .logo-derecho { height: 62px; }
  .titulo-principal h1 { font-size: 1.3rem; }
  .titulo-principal h2 { font-size: 0.9rem; }
  .titulo-principal h3 { font-size: 0.75rem; }

  nav {
    overflow: hidden;
    width: 100%;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }

  nav ul li a {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .mascota-container {
    width: 100px;
  }
  
  .mascota { 
    width: 100px;
    clip-path: inset(0 0 0 8px);
    -webkit-clip-path: inset(0 0 0 8px);
    margin-left: -8px;
  }
}

/* Celulares */
@media (max-width: 600px) {
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 10px;
  }

  .logo-izquierdo { height: 44px; }
  .logo-derecho { height: 58px; }
  .titulo-principal h1 { font-size: 1.1rem; }
  .titulo-principal h2 { font-size: 0.8rem; }
  .titulo-principal h3 { font-size: 0.7rem; }
  .titulo-principal {
    padding: 0 10px;
  }

  .carrusel { width: 95%; }

  .icono { width: 90%; max-width: 260px; }

  .mascota-container { 
    bottom: 10px; 
    right: 10px;
    width: 80px;
  }
  .mascota { 
    width: 80px;
    clip-path: inset(0 0 0 8px);
    -webkit-clip-path: inset(0 0 0 8px);
    margin-left: -8px;
  }

  /* ======= MENÚ MÓVIL ======= */
  .menu-toggle {
    display: block;
    margin: 10px auto;
    background: #008000;
    color: white;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    width: auto;
    transition: background 0.3s ease;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }

  .menu-toggle:hover {
    background: #006400;
  }

  nav {
    flex-direction: column;
    align-items: center;
    height: auto;
    min-height: 70px;
    padding: 0;
    overflow: hidden;
    width: 100%;
  }

  nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #008000;
    width: 100%;
    margin: 0;
    padding: 0;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
  }

  nav ul.active {
    display: flex;
    max-height: 1000px;
    opacity: 1;
  }

  nav ul li {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  nav ul li:first-child a {
    border-top: none;
  }

  nav ul li a {
    padding: 18px 20px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
    transition: background 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
  }

  nav ul li a:hover,
  nav ul li a.activo {
    background: #006400;
  }
}
/* ================= ICONOS COMO BOTONES (SIN MODIFICAR HTML) ================= */

.iconos-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.icono-link {
    text-decoration: none;
    color: inherit;
}

.icono {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 18px;
    width: 190px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.icono:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 22px rgba(0,0,0,0.18);
}

.icono-img {
    width: 70px;
    margin-bottom: 12px;
}

.icono p {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

/* Animación sutil */
.icono:hover .icono-img {
    transform: scale(1.1);
    transition: 0.3s;
}
@import "mobile.css";
