
/* =========================================================
   BASE
   ========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", Arial, sans-serif;
}

body {
  background-color: #99D5FF;
  background-image: radial-gradient(rgba(0, 0, 0, 0.2) 1px, transparent 1px);
  background-size: 6px 6px;
  color: #000000;
  line-height: 1.6;
  padding-bottom: 60px;
}


/* =========================================================
   CONTENEDORES PRINCIPALES
   ========================================================= */

header,
section,
footer,
contacto {
  max-width: 900px;
  margin: 40px auto;
  background: #f8fbff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(70, 110, 145, 0.25);
}


/* =========================================================
   TÍTULOS Y TEXTOS
   ========================================================= */

h1,
h2,
h3,
h4 {
  color: #000000;
  margin-bottom: 15px;
}

p {
  margin-bottom: 18px;
}

.logos img {
  max-width: 30%;
  margin: 0 10px;
}

.section-block {
  margin-top: 40px;
}


/* =========================================================
   SERVICIOS Y CARACTERÍSTICAS
   ========================================================= */

.services-grid,
.features-grid {
  #display: flex; /* hace columnas, ahora está comentado */
  flex-wrap: wrap;
  gap: 20px;
}

.service,
.feature {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  flex: 1 1 250px;
  border: 1px solid rgba(70, 110, 145, 0.25);
}


/* =========================================================
   PIE DE PÁGINA
   ========================================================= */

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #000000;
}


/* =========================================================
   ENLACES
   ========================================================= */

a {
  color: #245fa8;
  text-decoration: underline;
}
a:hover {
  color: #174578;
}


/* =========================================================
   BOTONES
   ========================================================= */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
  user-select: none;
  border: 1px solid rgba(70, 91, 145, 0.30);
  margin: 5px 10px 5px 0;
}


/* =========================================================
   BOTÓN PRINCIPAL - AZUL PASTEL
   ========================================================= */

.btn--primary {
  background: linear-gradient(145deg, #dce7ff, #b9d0fa);
  border: 1px solid rgba(70, 91, 145, 0.40);
  color: #000000;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.08);
}

.btn--primary:hover {
  background: linear-gradient(145deg, #cbdfff, #a9c4f0);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
  color: #000000;
}


/* =========================================================
   BOTÓN SECUNDARIO - AZUL MUY CLARO
   ========================================================= */

.btn--stroke {
  background: linear-gradient(145deg, #f7faff, #e1edff);
  border: 1px solid rgba(70, 91, 145, 0.40);
  color: #000000;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.06);
}

.btn--stroke:hover {
  background: linear-gradient(145deg, #e1edff, #cbdfff);
  color: #000000;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   BOTÓN A ANCHO COMPLETO
   ========================================================= */

.btn-block {
  display: block;
  width: 100%;
  margin-top: 15px;
}


/* =========================================================
   CONTENIDO DE CARACTERÍSTICAS
   ========================================================= */

.feature-content {
  display: flex;
  flex-direction: column;
}


/* =========================================================
   DISEÑO ADAPTABLE
   ========================================================= */

@media (max-width: 600px) {
  .services-grid,
  .features-grid,
  .hiper-list {
    flex-direction: column;
  }
}


/* =========================================================
   MENÚ SUPERIOR
   ========================================================= */

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(145deg, #dcefff, #c4e4fb);
  color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  border-bottom: 1px solid rgba(70, 110, 145, 0.25);
  z-index: 9999;
  font-family: "Inter", Arial, sans-serif;
}

.nav-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #000000;
  text-decoration: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  flex-wrap: wrap;
}

.nav-menu li a {
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 8px;
  transition: background-color 0.3s ease;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li a:focus {
  background-color: #b4daf5;
  outline: none;
}


/* =========================================================
   BOTÓN HAMBURGUESA
   ========================================================= */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  width: 30px;
  height: 25px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  background-color: #000000;
  height: 3px;
  border-radius: 2px;
  position: absolute;
  width: 100%;
  transition:
    transform 0.3s ease,
    top 0.3s ease,
    bottom 0.3s ease;
}

.hamburger {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger::before {
  content: "";
  top: -10px;
}

.hamburger::after {
  content: "";
  bottom: -10px;
}


/* =========================================================
   MENÚ MÓVIL
   ========================================================= */

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 60px;
    right: 0;
    background: #dcefff;
    height: calc(100% - 60px);
    width: 220px;
    flex-direction: column;
    padding-top: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -3px 0 12px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 0 12px;
    overflow-y: auto;
    border-left: 1px solid rgba(70, 110, 145, 0.25);
  }

  .nav-menu.show {
    transform: translateX(0);
  }

  .nav-menu li {
    margin: 10px 0;
  }

  .nav-toggle {
    display: block;
  }

  /* Ocultamos los botones secundarios del encabezado en móvil */
  header .header-buttons {
    display: none;
  }
}


/* =========================================================
   DESPLAZAMIENTO SUAVE
   ========================================================= */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}



/* =========================================================
   BOTONES DEL ENCABEZADO
   ========================================================= */

header .header-buttons {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px 10px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}


/* =========================================================
   BOTÓN VOLVER ARRIBA
   ========================================================= */

.btn-volver-arriba {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(145deg, #e1edff, #c4dcf7);
  color: #000000;
  font-size: 24px;
  padding: 10px 14px;
  border: 1px solid rgba(70, 91, 145, 0.35);
  border-radius: 50%;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.14);
  transition:
    opacity 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  opacity: 0.85;
}

.btn-volver-arriba:hover {
  opacity: 1;
  background: linear-gradient(145deg, #cbdfff, #b3d0f0);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   SECCIÓN DE CONTACTO
   ========================================================= */

#contacto h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

#contacto p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: #000000;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-card {
  background: #ffffff;
  border: 1px solid rgba(70, 110, 145, 0.25);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  color: #000000;
}

.contact-card h4 {
  margin-bottom: 1rem;
  color: #000000;
  font-weight: 600;
}

.contact-card img {
  height: 60px;
  filter: invert(0) brightness(0.85);
  transition:
    filter 0.3s ease,
    transform 0.2s ease;
}

.contact-card img:hover {
  filter: invert(0.7) brightness(1.1);
}


/* =========================================================
   AVISO PARA AÑADIR A FAVORITOS
   ========================================================= */

#fav-banner {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: #f8fbff;
  color: #000000;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  border: 1px solid rgba(70, 110, 145, 0.35);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
}

#fav-banner span {
  display: flex;
  align-items: center;
}

#fav-banner button {
  background: #e1edff;
  border: 1px solid rgba(70, 91, 145, 0.25);
  color: #000000;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

#fav-banner button:hover {
  background: #cbdfff;
}


/* =========================================================
   MODO OSCURO
   ========================================================= */

body.dark-mode {
  background-color: #121212;
  color: #e5e5e5;
}

body.dark-mode header,
body.dark-mode section,
body.dark-mode footer,
body.dark-mode contacto {
  background: #1e1e1e;
  border: 1px solid #333;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
  color: #ffffff;
}

body.dark-mode p {
  color: #d0d0d0;
}
body.dark-mode #contacto p {
  color: #d0d0d0;
}

body.dark-mode .service,
body.dark-mode .feature,
body.dark-mode .contact-card {
  background: #0A0A0A;
  color: #e5e5e5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode a {
  color: #20D6B3;
  
}

body.dark-mode footer {
  color: #aaa;
}


/* =========================================================
   MODO OSCURO - MENÚ
   ========================================================= */

body.dark-mode .main-nav {
  background: #0A0A0A;
  color: #ffffff;
}

body.dark-mode .nav-menu {
  background: #0A0A0A;
}

body.dark-mode .nav-menu li a {
  color: #ffffff;
}

body.dark-mode .nav-menu li a:hover {
  background-color: #20D6B3;
  color: #0A0A0A;
}

body.dark-mode .hamburger,
body.dark-mode .hamburger::before,
body.dark-mode .hamburger::after {
  background-color: #ffffff;
}


/* =========================================================
   MODO OSCURO - BOTONES
   ========================================================= */

body.dark-mode .btn--primary {
  background-color: #20D6B3;
  color: #0A0A0A;
}

body.dark-mode .btn--stroke {
  background-color: transparent;
  border-color: #20D6B3;
  color: #20D6B3;
}

body.dark-mode .btn--stroke:hover {
  background-color: #20D6B3;
  color: #0A0A0A;
}


/* =========================================================
   MODO OSCURO - AVISO DE FAVORITOS
   ========================================================= */

body.dark-mode #fav-banner {
  background: #1e1e1e;
  color: #e5e5e5;
  border: 1px solid #333;
}

body.dark-mode #fav-banner button {
  background: #333;
  color: #ccc;
}


/* =========================================================
   MODO OSCURO - BOTÓN VOLVER ARRIBA
   ========================================================= */

body.dark-mode .btn-volver-arriba {
  background-color: #333;
  color: #ffffff;
}


/* =========================================================
   ICONO DEL TEMA
   ========================================================= */

.theme-icon {
  width: 40px;
  height: 40px;
  filter: brightness(0);
  transition:
    filter 0.3s ease,
    transform 0.2s ease;
}

.nav-theme-btn:hover .theme-icon {
  transform: scale(1.1);
}


/* En modo oscuro invertimos el icono */

body.dark-mode .theme-icon {
  filter: brightness(0) invert(1);
}


