
:root {
  --color-bg: #fff;
  --color-text: #222;
  --color-accent: #0077ff;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  --font-main: 'Montserrat', Arial, sans-serif;
}
html, body {
    width: 100vw;
    min-width: 100vw;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}
body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
}
.header {
  background: linear-gradient(360deg, #ffffff 0%, #ffffff 50%, #e9e6e0 100%);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  width: 100vw;
  min-width: 100vw;
  left: 0;
  right: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: 'Georgia', 'Montserrat', Arial, sans-serif;
}
.logo {
  display: flex;
  align-items: start;
  justify-content: flex-start;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100vw;
  min-width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 0 16px;
  box-sizing: border-box;
}
.logo img {
  display: block;
  width: 13vw;
  height: 15vh;
}
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  padding: 0.5rem;
}
.hamburger {
  width: 32px;
  height: 3px;
  background: var(--color-text);
  display: block;
  position: relative;
  transition: var(--transition);
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--color-text);
  transition: var(--transition);
}
.hamburger::before { top: -10px; }
.hamburger::after { top: 10px; }
.nav-menu {
    display: flex;
    flex-direction: row;
    gap: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    list-style: none;
    justify-content: end;
    margin: 0;
    padding: 0 16px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
}
.nav-menu li {
    white-space: nowrap;
    flex: 0 0 auto;
    text-align: end;
    position: relative;
}
.nav-menu a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  font-size: 1rem;
  font-family: 'Georgia', 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.04em;
}
.nav-menu a:focus,
.nav-menu a:hover {
  background: var(--color-accent);
  color: #fff;
  outline: none;
}
.has-submenu > a::after {
  content: '\25BC';
  font-size: 0.7em;
  margin-left: 0.4em;
  transition: transform var(--transition);
}
.submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--color-bg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-radius: 8px;
  min-width: 230px;
  padding: 0.5rem 0;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  transform: translateY(10px);
  list-style: none; 
}
.has-submenu.open > .submenu {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.submenu li a {
  padding: 0.5rem 1rem;
  font-size: 0.95em;
}

/* Oculta logo-text en PC (pantallas grandes) */
@media (min-width: 901px) {
  .logo-text { display: none; }
}

/* SOLO MEDIA QUERIES NECESARIOS */
/* Extra pequeño: hasta 400px */
@media (max-width: 400px) {
 
  .nav-menu {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
    border-radius: 16px 16px 0 0;
    height: 70px;
    max-height: 70px;
    min-height: 70px;
    overflow: visible;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    gap: 4px;
    padding: 0;
    text-align: center;
    z-index: 1000;
    opacity: 1;
    pointer-events: auto;
    display: flex !important;
  }
  .nav-toggle { display: none !important; }
  .nav-menu li {
    margin: 0;
    width: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px 2px;
    font-size: 0.7rem;
  }
  .nav-menu a {
    width: 100%;
    text-align: center;
    color: #ecf0f1;
    font-weight: 500;
    font-size: 0.65rem;
    padding: 2px;
    border-radius: 6px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .nav-menu a:hover,
  .nav-menu a:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
  }
  /* Iconos para cada enlace del menú en móviles pequeños */
  .nav-menu a::before {
    content: '';
    font-size: 16px;
    margin-bottom: 1px;
  }
  .nav-menu li:nth-child(1) a::before { content: '🏠'; }
  .nav-menu li:nth-child(2) a::before { content: '📋'; }
  .nav-menu li:nth-child(3) a::before { content: '🍽️'; }
  .nav-menu li:nth-child(4) a::before { content: '🚚'; }
  .nav-menu li:nth-child(5) a::before { content: '📅'; }
  .nav-menu li:nth-child(6) a::before { content: '📞'; }
  .nav-menu li:nth-child(7) a::before { content: '💼'; }
  .nav-menu li:nth-child(8) a::before { content: '⚙️'; }
  .submenu {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    border-radius: 12px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    text-align: center;
    z-index: 999;
  }
  .submenu a {
    color: #ecf0f1 !important;
    padding: 10px 12px !important;
    font-size: 0.8rem !important;
  }
  .logo-text {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-weight: 300;
    letter-spacing: 1px;
    font-style: italic;
  }
  .logo { display: none; }
}

/* Tablet y móvil: hasta 768px */
@media (max-width: 768px) {
    .header{
  display: none;}
  .logo-text {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-weight: 300;
    letter-spacing: 1px;
    font-style: italic;
  }
  .logo { display: none; }
  .nav-toggle { display: none !important; }
  .header .nav .nav-menu {
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: center !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3) !important;
    border-radius: 16px 16px 0 0 !important;
    height: 80px !important;
    max-height: 80px !important;
    min-height: 80px !important;
    overflow: visible !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    gap: 8px !important;
    padding: 0 !important;
    text-align: center !important;
    z-index: 1000 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    display: flex !important;
  }
  .header .nav .nav-menu li {
    margin: 0 !important;
    width: auto !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 12px 4px !important;
    font-size: 0.75rem !important;
    position: relative !important;
  }
  .header .nav .nav-menu a {
    width: 100% !important;
    text-align: center !important;
    color: #ecf0f1 !important;
    font-weight: 500 !important;
    font-size: 0.7rem !important;
    padding: 4px !important;
    border-radius: 8px !important;
    transition: all var(--transition) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
  }
  .header .nav .nav-menu a:hover,
  .header .nav .nav-menu a:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
  }
  /* Iconos para cada enlace del menú */
  .header .nav .nav-menu a::before {
    content: '' !important;
    font-size: 18px !important;
    margin-bottom: 2px !important;
  }
  .header .nav .nav-menu li:nth-child(1) a::before { content: '🏠' !important; }
  .header .nav .nav-menu li:nth-child(2) a::before { content: '📋' !important; }
  .header .nav .nav-menu li:nth-child(3) a::before { content: '🍽️' !important; }
  .header .nav .nav-menu li:nth-child(4) a::before { content: '🚚' !important; }
  .header .nav .nav-menu li:nth-child(5) a::before { content: '📅' !important; }
  .header .nav .nav-menu li:nth-child(6) a::before { content: '📞' !important; }
  .header .nav .nav-menu li:nth-child(7) a::before { content: '💼' !important; }
  .header .nav .nav-menu li:nth-child(8) a::before { content: '⚙️' !important; }
  .submenu {
    position: fixed !important;
    bottom: 80px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%) !important;
    border-radius: 12px !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3) !important;
    min-width: 200px !important;
    text-align: center !important;
    z-index: 999 !important;
  }
  .submenu a {
    color: #ecf0f1 !important;
    padding: 12px 16px !important;
    font-size: 0.85rem !important;
  }
  .submenu a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
  }
}

/* Desktop reducido: desde 769px en adelante */
@media (min-width: 769px) {
  .nav-menu {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: static;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-radius: 0;
    max-height: none;
    width: 100%;
    gap: 24px;
    padding: 0 16px;
    text-align: right;
  }
  .nav-menu li {
    width: auto;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    justify-content: end;
  }
  .logo { display: flex; }
  .logo-text { display: none; }
}

/* Animaciones suaves */
.nav-menu,
.submenu {
  will-change: opacity, transform, max-height;
}
.card-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Esto empuja el botón al fondo */
    padding: 18px 16px 16px 16px;
}
.card-content .btn {
    margin-top: 10px;
    align-self: center;
    width: 80%;
    min-width: 120px;
    text-align: center;
}

@media (max-width: 1250px) {
    .header{
  display: none;}
  /* .header {
    height: 56px; 
    min-height: 56px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  } */
  .nav {
    height: 56px;
    min-height: 56px;
    padding: 0;
    justify-content: center;
  }
  .nav-toggle {
    display: none !important;
  }
  .logo,
  .logo img {
    display: none !important;
  }
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
    border-radius: 16px 16px 0 0;
    height: 80px;
    max-height: 80px;
    min-height: 80px;
    overflow: visible;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    gap: 8px;
    padding: 0;
    text-align: center;
    z-index: 1000;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu li {
    margin: 0;
    width: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px 4px;
    font-size: 0.75rem;
  }
  .nav-menu a {
    width: 100%;
    text-align: center;
    color: #ecf0f1;
    font-weight: 500;
    font-size: 0.7rem;
    padding: 4px;
    border-radius: 8px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .nav-menu a:hover,
  .nav-menu a:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
  }
  /* Iconos para cada enlace del menú */
  .nav-menu a::before {
    content: '';
    font-size: 18px;
    margin-bottom: 2px;
  }
  .nav-menu li:nth-child(1) a::before { content: '🏠'; }
  .nav-menu li:nth-child(2) a::before { content: '📋'; }
  .nav-menu li:nth-child(3) a::before { content: '🍽️'; }
  .nav-menu li:nth-child(4) a::before { content: '🚚'; }
  .nav-menu li:nth-child(5) a::before { content: '📅'; }
  .nav-menu li:nth-child(6) a::before { content: '📞'; }
  .nav-menu li:nth-child(7) a::before { content: '💼'; }
  .nav-menu li:nth-child(8) a::before { content: '⚙️'; }
}

/* Media query para pantallas grandes */
@media (min-width: 1409px) {
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    position: static;
    background: none;
    box-shadow: none;
  }
  .nav-toggle {
    display: none !important;
  }
}

/* REGLAS ESPECÍFICAS PARA FORZAR EL MENÚ FOOTER EN MÓVILES */
@media screen and (max-width: 768px) {
  body .header .nav .nav-menu {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: auto !important;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%) !important;
    border-radius: 16px 16px 0 0 !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3) !important;
    z-index: 9999 !important;
    opacity: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
  }
  
  body .header .nav .nav-menu.open {
    opacity: 1 !important;
    max-height: 80px !important;
    pointer-events: auto !important;
  }
  
  body .header .nav .nav-menu li {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 2px !important;
    margin: 0 !important;
  }
  
  body .header .nav .nav-menu li a {
    color: #ecf0f1 !important;
    font-size: 0.7rem !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
    padding: 4px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
  }
  
  body .header .nav .nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px) !important;
  }
  
  body .header .nav .nav-menu li:nth-child(1) a::before { content: '🏠' !important; font-size: 16px !important; }
  body .header .nav .nav-menu li:nth-child(2) a::before { content: '📋' !important; font-size: 16px !important; }
  body .header .nav .nav-menu li:nth-child(3) a::before { content: '🍽️' !important; font-size: 16px !important; }
  body .header .nav .nav-menu li:nth-child(4) a::before { content: '🚚' !important; font-size: 16px !important; }
  body .header .nav .nav-menu li:nth-child(5) a::before { content: '📅' !important; font-size: 16px !important; }
  body .header .nav .nav-menu li:nth-child(6) a::before { content: '📞' !important; font-size: 16px !important; }
  body .header .nav .nav-menu li:nth-child(7) a::before { content: '💼' !important; font-size: 16px !important; }
  body .header .nav .nav-menu li:nth-child(8) a::before { content: '⚙️' !important; font-size: 16px !important; }
}