/* Asegura posición y reduce la separación del submenú */
.header-nav-main .dropdown-menu {
    top: 100%;            /* Se alinea justo debajo del item principal */
    margin-top: 0px !important;
}
.header-nav-main .dropdown-menu a {
    font-size: 14px; /* Aumenta para que sea más legible */
    padding: 8px 20px !important; /* Más cómodo para el clic */
}
.header-nav-main .dropdown-menu li {
    padding: 5px 5px;
    
}
.header-nav-main .dropdown-menu,
.header-nav-main .dropdown-menu.dropdown-menu-arrow-centered-style-2 {
    top: 100% !important;
    margin-top: 0 !important;
}

/* ==================================================
KITTY HUME HEADER BASE
================================================== */
.k-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

.k-header .k-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.k-header .k-header-container > a img {
    max-width: 125px;
    height: auto;
}

/* ==================================================
NAV BASE
================================================== */
.k-nav {
    flex: 1;
}

.k-nav ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.k-nav li {
    position: relative;
    padding: 0 15px;
}

.k-nav a {
    position: relative;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 5px 0;
}

.k-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    background: #007BFF;
    width: 0;
    transition: width 0.3s;
}

.k-nav a:hover::after,
.k-nav a.active::after {
    width: 100%;
}

/* ==================================================
SUBMENÚ
================================================== */
.k-submenu {
    position: absolute;
    top: 100%; /* justo debajo */
    left: 0;
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 10px 0;
    min-width: 180px;
    list-style: none;
    z-index: 9999;
}

.k-submenu li {
    padding: 5px 15px;
}

.k-submenu li a {
    font-size: 14px;
    color: #333;
    display: block;
}

.k-dropdown:hover .k-submenu {
    display: flex;
}
/* ⚡️ FORZAR OCULTAMIENTO TOTAL DEL SUBMENÚ */
body .k-header .k-submenu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    pointer-events: none !important;
}

body .k-header .k-dropdown:hover .k-submenu {
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
body .k-header .k-nav a {
    text-decoration: none !important;
    border: none !important;
}
body .k-header .k-nav a::after {
    height: 2px !important;
}
body .k-header {
    display: flex;
    justify-content: space-around; /* O space-between, según prefieras */
    align-items: center;
    width: 100vw;
    max-width: 100vw;
    position: relative;
}
/* HERO */
.k-hero {
  background-image: url('../img/fondohero.jpg');
  background-size: cover;
  background-position: center;
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}
.k-hero-text h1 {
  font-size: 4rem;
  margin-bottom: 0.7rem;
}
.k-hero-text p {
  font-size: 1.5rem;
}

/* PRESENTACIÓN */
.k-presentacion {
  padding: 60px 20px;
  background: #fff;
}
.k-presentacion-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.k-presentacion-img {
  flex: 1 1 300px;
  text-align: center;
}
.k-presentacion-img img {
  max-width: 100%;
  border-radius: 6px;
}
.k-presentacion-img h2 {
  font-size: 2rem;
  margin-top: 20px;
}
.k-presentacion-img p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 10px;
}

.k-presentacion-texto {
  flex: 2 1 500px;
  font-size: 1.1rem;
  line-height: 1.8;
}
.k-seccion-puente-con-imagenes {
  padding: 80px 0;
}

.k-grid-obras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.k-obra {
  text-align: center;
}

.k-obra img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.k-obra img:hover {
  transform: scale(1.03);
}

.k-obra h3 {
  margin-top: 15px;
  font-weight: 500;
  font-size: 1.2rem;
}
.k-grid-obras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.k-obra {
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.k-obra:hover {
  transform: translateY(-5px);
}

.k-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1; /* Cuadrado uniforme */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  background: #fff;
}

.k-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.k-obra h3 {
  margin-top: 15px;
  font-size: 1.1rem;
  font-weight: 600;
}
.k-separator-animated {
  height: 4px;
  background-color: #3a0084;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s ease-out, opacity 0.5s;
  border-radius: 2px;
}

/* Activación con scroll */
.k-separator-animated.visible {
  opacity: 1;
  transform: scaleX(1);
}
.k-eudaimonia {
  padding: 80px 0;
  background: #f9f9f9;
}
.k-eudaimonia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}
.k-eudaimonia-item {
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s, box-shadow 0.3s;
}
.k-eudaimonia-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.k-eudaimonia-item .thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 12px;
}

.eudaimonia-terrestres { background-image: url('img/animales-terrestres.jpg'); }
.eudaimonia-flora { background-image: url('img/flora-terrestre.jpg'); }
.eudaimonia-marinos { background-image: url('img/animales-marinos.jpg'); }
.eudaimonia-acuaticas { background-image: url('img/plantas-acuaticas.jpg'); }
.eudaimonia-insectos { background-image: url('img/insectos.jpg'); }
.k-eudaimonia-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.k-eudaimonia-item {
  transition: all 0.6s ease-out;
  opacity: 0;
  transform: translateY(20px);
}
.k-eudaimonia-item.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.k-eudaimonia-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.k-eudaimonia-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.k-eudaimonia-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.k-eudaimonia-item.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Solo para la página de esculturas */
#page-esculturas .k-hero-section {
  position: relative;
}

#page-esculturas .k-hero-section h1 {
  font-size: 3rem;
  color: white;
  text-align: center;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

#page-esculturas .k-gallery img {
  transition: transform 0.3s ease;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

#page-esculturas .k-gallery img:hover {
  transform: scale(1.03);
}
.k-hero-simple {
  background-color: #111; /* o #f9f9f9 para versión clara */
  color: #fff;
}

.k-gallery img {
  transition: transform 0.3s ease;
}

.k-gallery img:hover {
  transform: scale(1.03);
}
.k-hero-light {
  background-color: #f5f5f5;
}

.hero-text {
  color: #000; /* O usa #222 para un negro más suave */
}
.k-contacto h2 {
  font-size: 2rem;
  font-weight: 600;
}
.k-contacto p {
  font-size: 1.1rem;
  color: #444;
}
.k-contacto .form-control {
  border-radius: 0.5rem;
  box-shadow: none;
}
.k-contacto button.btn {
  border-radius: 2rem;
  font-weight: 500;
}
#footer ul.list li {
  margin-bottom: 0.4rem;
}
