* {
  margin: 0;
}

body {
  font-family: "Albert Sans", sans-serif;
  ;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  background-color: #4979a8;
}

header.scrolled {
  background-color: #ffffff;
  /* el color que aparece al bajar */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
  width: 300px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .logo {
    width: 200px;
  }
}

.menu-sup {
  display: flex;
  justify-content: right;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

/* --- Enlaces del menú --- */
.menu-btn-sup {
  color: rgb(255, 255, 255);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1.1rem;
  cursor: pointer;
}

/* --- Color de enlaces cuando se aplica el scroll --- */
header.scrolled .menu-btn-sup {
  color: #000000;
}

.menu-btn-sup:hover {
  color: #ffcc00;
}

/* --- Dropdown --- */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  min-width: 160px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.dropdown-content a {
  color: #e0e0e0;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  transition: background 0.3s, color 0.3s;
}

.dropdown-content a:hover {
  background: rgba(255, 204, 0, 0.2);
  color: #ffcc00;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/*Botón de cambiar idioma*/
.lang-switch {
  display: flex;
  gap: 6px;
  margin-left: 20px;
}

.lang-btn {
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 4px 8px;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

header.scrolled .lang-btn {
  border-color: #000;
  color: #000;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
  background: #ffcc00;
  color: #000;
  border-color: #ffcc00;
}

/* --- MENÚ HAMBURGUESA PARA MÓVILES --- */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 2rem;
  color: white;
}

header.scrolled .hamburger {
  color: black;
}

@media (max-width: 900px) {

  .menu-sup {
    position: fixed;
    top: 70px;
    right: 0;
    background: #4979a8;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    padding: 20px 0;
    display: none;
    text-align: center;
  }

  header.scrolled .menu-sup {
    background: #ffffff;
  }

  .hamburger {
    display: block;
  }

  /* Cuando está activo */
  .menu-sup.active {
    display: flex;
  }

  .menu-sup.active {
    display: flex;
  }

  /* Dropdown dentro del menú móvil */
  .dropdown-content {
    position: static;
    transform: none;
    width: 100%;
    margin: 0 auto;
    background: #d4d4d4;
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  .dropdown-content a {
    color: #222 !important;
    padding: 12px;
    font-weight: 500;
  }

  .menu-btn-sup {
    color: white;
  }

  header.scrolled .menu-btn-sup {
    color: black;
  }
}

section.animado {
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Hero principal */
.hero-contabilidad {
  background-image: url('../static/img/balanCounting/large-vecteezy_calculator-on-chart-and-graph-spreadsheet-paper-finance_8288289_large.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 20px;
  text-align: center;
}

.hero-contenedor {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2em;
  border-radius: 10px;
  text-align: center;
  text-shadow: 1px 1px 5px black;
}

.hero-contabilidad h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero-contabilidad p {
  font-size: 1.3rem;
}

/* Sección Información */
.contenedor.contabilidad-info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: #f8f9fa;
  padding: 40px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  align-items: center;
}

.info-texto {
  flex: 1 1 400px;
}

.info-texto h2 {
  color: #1a1a1a;
  margin-bottom: 15px;
  text-align: center;
}

.info-texto p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.info-texto ul {
  list-style: none;
  padding: 0;
}

.info-texto li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.info-texto i {
  color: #4CAF50;
  margin-right: 8px;
}

.info-imagen {
  flex: 1 1 300px;
  text-align: center;
}

.info-imagen img {
  max-width: 80%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Sección Beneficios */
.beneficios {
  padding: 30px;
  background-color: #f9f9f9;
}

.beneficios h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.beneficio-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.beneficio-grid .item {
  flex: 1 1 250px;
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  cursor: default;
}

.beneficio-grid .item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 5px 15px rgb(255, 217, 0);
}

.beneficio-grid img {
  height: 90px;
  margin-bottom: 15px;
}

.beneficio-grid h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.beneficio-grid p {
  font-size: 1rem;
  color: #555;
}

/* Botón Contacto */
.boton-flotante {
  position: fixed;
  bottom: 25px;
  right: 20px;
  background-color: #4979a8;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 30px;
  z-index: 1000;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.boton-flotante:hover {
  background-color: #00264d;
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .boton-flotante {
    bottom: 17px;
    right: 45px;
    font-size: 30px;
    padding: 10px 16px;
  }
}

/* Footer */
.footer-mejorado {
  background-color: #1d1d1d;
  color: #fff;
  padding: 60px 20px 20px;
  font-size: 0.95rem;
  text-align: left;
}

.footer-contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  flex: 1 1 220px;
}

.footer-col h3,
.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #f4f4f4;
}

.footer-col p,
.footer-col a {
  color: #ccc;
  text-decoration: none;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a:hover,
.footer-col a:hover {
  color: #0095a8;
}

.iconos-redes a {
  font-size: 1.3rem;
  margin-right: 10px;
  color: #ccc;
  transition: color 0.3s ease;
}

.iconos-redes a:hover {
  color: #00bcd4;
}

.footer-copy {
  text-align: center;
  margin-top: 30px;
  font-size: 0.85rem;
  color: #888;
}