/*
Theme Name: Umbrella Astra Child
Template: astra
*/

/* ====== BASE STYLES ====== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* ====== TOP INFO BAR ====== */
.umbrella-top-bar {
  background-color: #ffffff;
  color: #c62828;
  font-size: 14px;
  border-bottom: 1px solid #e0e0e0;
}

.umbrella-top-bar .top-bar-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 16px;
  gap: 20px;
}

.umbrella-top-bar .top-bar-item {
  color: #c62828;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.umbrella-top-bar .top-bar-item:hover {
  color: #000000;
}

.umbrella-top-bar .dashicons {
  font-size: 16px;
}

@media (max-width: 768px) {
  .umbrella-top-bar .top-bar-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ====== HEADER DE ESCRITORIO ====== */
.desktop-header {
  background: #c62828;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.desktop-header .logo a img {
  max-height: 60px;
  height: auto;
  width: auto; /* AÑADIDO: Asegura que el ancho se ajuste a la proporción natural */
  max-width: 100%; /* AÑADIDO: Previene que la imagen sea más ancha que su contenedor */
}

.desktop-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.desktop-nav a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.desktop-nav a:hover {
  text-decoration: underline;
}

/* ✅ CONSULTA GRATIS BUTTON - MÁS REDONDEADO */
.desktop-cta .cta-button {
  background: #fff;
  color: #c62828;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 999px; /* MÁS REDONDEADO */
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
}

.desktop-cta .cta-button:hover {
  background: #e0e0e0;
  color: #b71c1c;
}

/* ====== HEADER MÓVIL ====== */
.mobile-header {
  background: #c62828;
  padding: 1rem 1.5rem;
  display: none;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.mobile-header .logo img {
  max-height: 70px !important; /* Forzar altura máxima */
  height: auto !important;     /* Forzar auto-altura */
  width: auto !important;      /* Forzar auto-ancho */
  max-width: 100% !important;  /* Forzar que no sea más ancho que su contenedor */
}

/* HAMBURGER MENU */
.hamburger-menu {
  width: 30px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger-menu .bar {
  width: 100%;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ====== MENÚ MÓVIL COMPLETO ====== */
.mobile-full-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(100%);
  z-index: 10000;
}

.mobile-full-menu-overlay.active {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.mobile-full-menu-overlay ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.mobile-full-menu-overlay li {
  margin-bottom: 1.5rem;
}

.mobile-full-menu-overlay a {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
}

.close-menu {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* ====== MENÚ APP (BARRA INFERIOR MÓVIL) ====== */
.mobile-app-menu {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #c62828;
  justify-content: space-around;
  padding: 0.7rem 0;
  z-index: 9999;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

.mobile-app-menu a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.mobile-app-menu a i {
  font-size: 1.2rem;
}

/* ====== FOOTER ====== */
.custom-footer {
  background: #000;
  color: #fff;
  padding: 3rem 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #fff;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* ====== RESPONSIVE BREAKPOINTS ====== */
@media (max-width: 768px) {
  .desktop-header {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .mobile-app-menu {
    display: flex;
  }

  .custom-footer {
    padding-bottom: 6rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col ul {
    text-align: center;
  }

  .footer-col:last-child {
    margin-bottom: 1rem;
  }
}

/* ====== BARRA DE AYUDA INFERIOR (MÓVIL) ====== */
.umbrella-help-bar-mobile {
  display: none;
}

@media (max-width: 768px) {
  .umbrella-help-bar-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 0.6rem 0.5rem;
    z-index: 9999;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
    border-top: 2px solid #c62828;
  }

  .umbrella-help-bar-mobile .help-bar-item {
    color: #c62828;
    font-size: 0.8rem;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-weight: 600;
  }

  .umbrella-help-bar-mobile .help-bar-item .dashicons {
    font-size: 1.4rem;
    color: #c62828;
  }
}
