@import url('https://fonts.googleapis.com/css2?family=Source+Serif+Pro:wght@400;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  scroll-behavior: smooth;
  font-family: 'Source Serif Pro', serif;
  background: #FAFAFA;
  color: #333333;
  min-height: 100vh;
}

section {
  width: 100%;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/****** NAVBAR ******/
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #FAFAFA;
  padding: 10px 30px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: 30px solid #FAFAFA;
  border-right: 30px solid #FAFAFA;
}

.navbar-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
}

#nav-logo {
  margin-bottom: 0;
}

.nav-logo-image {
  height: 36px;
  width: auto;
  opacity: 0.9;
}

.nav-menu {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.nav-menu > * {
  display: flex;
  align-items: center;
  height: 22px;
}

.nav-link {
  position: relative;
  color: #333;
  font-size: 1em;
  font-weight: 500;
  transition: color 0.3s ease;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 1.5px;
  background-color: #356680;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: #356680;
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/****** DROPDOWN ******/
.nav-dropdown {
  position: relative;
  display: inline-block;
  text-align: center;
}

.dropdown-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 1em;
  font-weight: 500;
  color: #333;
}

.dropdown-toggle::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 1.5px;
  background-color: #356680;
  transition: transform 0.3s ease;
}

.dropdown-toggle:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  opacity: 0;
  pointer-events: none;
  background-color: #FAFAFA;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 6px;
  z-index: 9999;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: transform 0.35s ease 0.3s, opacity 0.35s ease 0.3s;
  text-align: center;
}

.nav-dropdown:hover .dropdown-content {
  transform: translateX(-50%) scaleY(1);
  opacity: 1;
  pointer-events: auto;
}

.dropdown-content a {
  position: relative;
  color: #333333;
  padding: 5px 20px 4px;
  display: block;
  font-weight: 400;
  font-size: 1em;
  transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  text-align: center;
}

.dropdown-content a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: 1.5px;
  background-color: #356680;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.dropdown-content a:hover {
  color: #356680;
}

.dropdown-content a:hover::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.nav-dropdown:hover .dropdown-content a:nth-child(1),
.nav-dropdown:hover .dropdown-content a:nth-child(2),
.nav-dropdown:hover .dropdown-content a:nth-child(3) {
  pointer-events: auto;
}

.nav-dropdown:hover .dropdown-content a:nth-child(1) {
  transition-delay: 0.35s;
  opacity: 1;
  transform: translateY(0);
}
.nav-dropdown:hover .dropdown-content a:nth-child(2) {
  transition-delay: 0.45s;
  opacity: 1;
  transform: translateY(0);
}
.nav-dropdown:hover .dropdown-content a:nth-child(3) {
  transition-delay: 0.55s;
  opacity: 1;
  transform: translateY(0);
}

/****** HERO ******/
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 61px);
  margin-top: 61px;
  border-left: 0px solid #FAFAFA;
  border-right: 0px solid #FAFAFA;
  border-bottom: 0px solid #FAFAFA;
  overflow: hidden;
  box-sizing: border-box;
}

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

/****** SECCIONES HORIZONTALES ******/
.category-row {
  display: flex;
  gap: 4px;
  padding: 0 0px;
  margin: 0px 0;
  justify-content: center;
}

.category-section {
  flex: 1 1 calc((100%) / 3);
  max-width: calc((100%) / 3);
  transition: opacity 0.8s ease, transform 0.8s ease;
  opacity: 0;
  transform: translateY(60px);
}

.category-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.category-section.hiding {
  opacity: 0;
  transform: translateY(60px);
}

.category-item {
  position: relative;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.category-image {
  position: relative;
  overflow: hidden;
  flex-grow: 1;
  height: 100%;
}

.category-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.category-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  color: white;
  font-size: 1.4em;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
  pointer-events: none;
  padding-bottom: 4px;
}

.category-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 2px;
  background-color: white;
  transition: transform 0.4s ease;
  opacity: 0.8;
}

.category-item:hover img {
  transform: scale(1.05);
}

.category-item:hover .category-overlay {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.category-item:hover .category-overlay::after {
  transform: translateX(-50%) scaleX(1);
}

/****** FOOTER ******/
.footer {
  background-color: #FAFAFA;
  color: #333333;
  padding: 30px 20px;
  font-size: 0.9em;
  border-left: 30px solid #FAFAFA;
  border-right: 30px solid #FAFAFA;
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 24px rgba(53, 102, 128, 0.18), 0 1.5px 0 rgba(53, 102, 128, 0.12), inset 0 -2px 0 rgba(53, 102, 128, 0.18);
  text-align: left;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-branding,
.footer-contact,
.footer-links,
.footer-social {
  flex: 1 1 220px;
  min-width: 180px;
}

.footer-logo {
  font-size: 1.6em;
  font-weight: bold;
  color: #333333;
  text-decoration: none;
}

.footer-branding p {
  margin-top: 8px;
  opacity: 0.7;
}

.footer-contact h4,
.footer-links h4,
.footer-social h4 {
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 1.1em;
}

.footer-contact a,
.footer-links a,
.footer-social a {
  margin: 5px 0;
  display: block;
  color: #333333;
  transition: color 0.3s ease;
}

.footer-contact a:hover,
.footer-links a:hover,
.footer-social a:hover {
  color: #356680;
}

/****** NAVBAR ANIMADA ******/
.navbar-hidden {
  transform: translateY(-100%);
  transition: transform 0.5s ease-in-out;
}

.navbar-hover {
  transform: translateY(0) !important;
}

/****** HAMBURGUESA Y RESPONSIVO ******/
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
}

.hamburger {
  width: 24px;
  height: 2px;
  background-color: #333;
  position: relative;
  display: block;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: #333;
  transition: all 0.3s ease;
}

.hamburger::before {
  transform: translateY(-8px);
}

.hamburger::after {
  transform: translateY(8px);
}

.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
}

/* Ocultar elementos móviles en pantallas grandes */
.nav-mobile {
  display: none;
}
.footer-icons {
  display: none;
}

/*GRACIAS*/
/* ===== Hero Agradecimiento ===== */
.hero-gracias {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #ffffff; /* Fondo blanco, no gris */
  width: 100%;
  height: calc(100vh - 61.33px); /* Ajuste para el alto de la navbar */
}

.hero-gracias-content {
  max-width: 800px;
  padding: 40px 20px;
}

.hero-gracias-content h2 {
  font-size: 2.5rem;
  color: #356680;
  margin-bottom: 20px;
}

.hero-gracias-content p {
  font-size: 1.2rem;
  color: #333333;
  margin-bottom: 30px;
}

.btn-gracias-wrapper {
  margin-top: 30px;
}

.btn-cta {
  padding: 12px 28px;
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
  background: #FAFAFA;
  border: 2px solid #333;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  transition: all .3s ease;
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-cta:hover {
  background: #356680;
  border-color: #356680;
  color: #fff;
  box-shadow: 0 6px 16px rgba(53,102,128,.5);
  transform: translateY(-3px);
}

/* Estructura base del carrusel */
.carousel {
  position: relative;
  width: 100%;
  height: calc(100vh - 61.330px);
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.hero-image {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  height: 100%;
}

/* Flechas */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.3s;
}

.carousel-arrow:hover {
  background-color: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.left {
  left: 25px;
}

.carousel-arrow.right {
  right: 25px;
}


.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-dots .dot.active {
  background-color: white;
}
