
:root {
  --primary: #397dea;
  --secondary: #eaa639;
  --text-dark: #303030;
  --text-light: #ff8821;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: "Libre Caslon Text", serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}
body {
  font-family: "Libre Caslon Text", serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

/* Logo responsivo en header y footer */
header img,
footer img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Progress Bar - Mejorado */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 9999;
  transition: width 0.3s ease-out, background 0.3s ease;
  box-shadow: 0 2px 4px var(--shadow);
}

/* Header - Más elegante y con hover */
header {
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

header nav {
  padding: 1rem 1.5rem;
}

header .flex > div:first-child {
  font-size: 1.5rem;
  color: var(--primary);
  /* font-weight: bold; */
  transition: color 0.3s ease;
}

header .flex > div:first-child:hover {
  color: var(--secondary);
}

header a {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

header a:not(:has(img)):hover,
header a:focus {
  color: #F6B128;
  background-color: rgba(235, 214, 58, 0.156);
  transform: translateY(-2px);
}

header .bg-primary {
  background-color: #f6e428 !important;
  color: #5f3b00 !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

header .bg-primary:hover {
  background-color: #d97706 !important;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(57, 125, 234, 0.3);
}

/* nav link styles */
.nav-link-active:not(:has(img)) {
  position: relative;
}
.nav-link-active:not(:has(img))::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #F6B128
}
/* Menú móvil - oculto por defecto */
.mobile-menu-hidden {
  display: none;
}

/* Transición suave al abrir */
#mobile-menu {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu:not(.mobile-menu-hidden) {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

/* Footer - Moderno y con hover */
footer {
  background-color: var(--text-dark);
  padding: 4rem 1rem;
  color: white;
}

footer .font-\[\'Pacifico\'\] {
  font-size: 1.5rem;
  color: white;
  /* font-weight: bold; */
  margin-bottom: 1rem;
}

footer p {
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

footer h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

footer ul li a {
  color: #9ca3af;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: block;
  padding: 0.25rem 0;
}

footer ul li a:hover {
  color: var(--secondary);
  padding-left: 0.5rem;
}

footer .flex.space-x-4 > a {
  width: 2.5rem;
  height: 2.5rem;
  background-color: #374151;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

footer .flex.space-x-4 > a:hover {
  background-color: var(--secondary);
  transform: scale(1.1);
}

footer .border-t {
  border-color: #374151;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

footer .border-t p {
  color: #9ca3af;
  font-size: 0.875rem;
}

footer .border-t a {
  color: var(--secondary);
  transition: color 0.3s ease;
}

footer .border-t a:hover {
  color: white;
  text-decoration: underline;
}

/* WhatsApp Flotante - Diseño premium */
.fixed.bottom-6.right-6 {
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary), #d97706);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(234, 166, 57, 0.4);
  transition: all 0.3s ease;
  z-index: 9999;
}

.fixed.bottom-6.right-6:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 16px rgba(234, 166, 57, 0.6);
}

.fixed.bottom-6.right-6 i {
  color: white;
  font-size: 1.5rem;
}

/* Responsive Design - Para pantallas pequeñas */
@media (max-width: 768px) {
  header nav {
    padding: 0.75rem 1rem;
  }

  header .flex > div:first-child {
    font-size: 1.25rem;
  }

  section.relative.h-screen .relative.z-10 h1 {
    font-size: 2rem;
  }

  section.relative.h-screen .relative.z-10 p {
    font-size: 1rem;
  }

  .grid.md\:grid-cols-2.lg\:grid-cols-4.gap-6 > div {
    padding: 1rem;
  }

  .py-20.bg-gradient-to-r.from-primary.to-blue-600 .counter {
    font-size: 2.5rem;
  }

  .py-20.bg-primary h2 {
    font-size: 2rem;
  }

  .py-20.bg-primary p {
    font-size: 1rem;
  }

  .bg-white.rounded-2xl.shadow-lg .md\:w-1\/3 {
    width: 100% !important;
    height: 500px; /* Ajusta esta altura según prefieras */
  }
  
  .bg-white.rounded-2xl.shadow-lg .md\:w-2\/3 {
    width: 100% !important;
  }

  footer {
    padding: 2rem 1rem;
  }

  footer .font-\[\'Pacifico\'\] {
    font-size: 1.25rem;
  }
}

/*Pantallas muy pequeñas (hasta 480px de ancho) */
@media (max-width: 480px) {
  /* Ajustes tipográficos más compactos */
  body {
    font-size: 0.95rem;
  }

  /* Header aún más ligero */
  header nav {
    padding: 0.6rem 0.8rem;
  }

  header .flex > div:first-child {
    font-size: 1.15rem;
  }

  /* Botón de contacto más pequeño */
  header .bg-primary {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
  }

  /* Hero section (sección principal) */
  section.relative.h-screen .relative.z-10 h1 {
    font-size: 1.4rem;
    line-height: 1.25;
  }

  section.relative.h-screen .relative.z-10 p {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  /* Títulos y párrafos en secciones destacadas */
  .py-20.bg-primary h2,
  .py-20.bg-gradient-to-r.from-primary.to-blue-600 h2 {
    font-size: 1.5rem;
  }

  .py-20.bg-primary p,
  .py-20.bg-gradient-to-r.from-primary.to-blue-600 p {
    font-size: 0.9rem;
  }

  /* Contadores o números grandes */
  .counter {
    font-size: 2rem !important;
  }

  /* Espaciado interno en cards o bloques */
  .bg-white.rounded-2xl.shadow-lg {
    padding: 1rem;
  }

  /* Footer más compacto */
  footer {
    padding: 1.25rem 0.75rem;
  }

  footer .font-\[\'Pacifico\'\] {
    font-size: 1.15rem;
  }

  footer h4 {
    font-size: 1rem;
  }

  footer ul li a {
    font-size: 0.875rem;
    padding: 0.2rem 0;
  }

  /* Íconos de redes sociales más pequeños */
  footer .flex.space-x-4 > a {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }

  /* Copyright text */
  footer .border-t p {
    font-size: 0.8rem;
  }

  /* Botón flotante de WhatsApp */
  .fixed.bottom-6.right-6 {
    width: 44px;
    height: 44px;
    bottom: 12px;
    right: 12px;
  }

  .fixed.bottom-6.right-6 i {
    font-size: 1.1rem;
  }
}

.nav-options a{
  color: #452a22;
}