/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base */
body {
  padding-top: 80px; /* Ajusta según la altura real del header */
  font-family: 'Inter', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #0d0d0d;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  z-index: 1000; /* Asegura que esté encima de todo */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.logo {
  height: 50px;       /* Tamaño fijo y moderado */
  max-width: 120px;   /* Para que no crezca mucho en ancho */
  object-fit: contain; /* Mantiene proporción */
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  user-select: none;
}

/* Navegación */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  color: white;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #00d4ff;
}

/* Hero */
.hero {
  background-image: url("assets/rs3.webp");
  background-size: cover;
  background-position: center;
  height: 100vh;
  position: relative;
}



.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* oscurece un poco la imagen */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  background-color: rgba(0,0,0,0.6);
  padding: 2rem;
  border-radius: 12px;
  max-width: 90%;
  animation: fadeInUp 1s ease-out forwards;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn-primary {
  background-color: #00d4ff;
  color: #0d0d0d;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #009fbb;
}

/* Secciones */
.section {
  padding: 4rem 2rem;
  text-align: center;
}

.dark {
  background-color: #222;
  color: white;
}

/* Tarjetas */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  overflow-x: visible;
}

.card {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  min-width: 280px;
  max-width: 320px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.icon {
  font-size: 2rem;
  color: #00d4ff;
  margin-bottom: 1rem;
}

/* Nosotros */
.nosotros-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.nosotros-text {
  flex: 1 1 400px;
  color: white;
}

.nosotros-img {
  flex: 1 1 400px;
}

.nosotros-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  object-fit: cover;
  max-height: 300px;
}

/* Formularios */
form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 2rem auto;
  gap: 1rem;
}

form input, form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: all 0.3s ease;
}

form button {
  background-color: #0d0d0d;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #333;
}

/* Validación formularios */
input, textarea {
  border: 2px solid #ccc;
  background-color: white;
  transition: all 0.3s ease;
}

input.error, textarea.error {
  border-color: #d9534f;
  background-color: #fff5f5;
}

input.error:valid, textarea.error:valid {
  border-color: #5cb85c;
  background-color: #f5fff5;
}

/* Consejos digitales */
.consejos-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 2rem auto;
}

.consejos-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 8px;
}

.consejos-list i {
  font-size: 1.8rem;
  color: #00d4ff;
  flex-shrink: 0;
}

.consejos-list h4 {
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
  color: #fff;
}

.consejos-list p {
  margin: 0;
  color: #ccc;
}

/* FAQ */
.faq-container {
  max-width: 700px;
  margin: 2rem auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-container details {
  background-color: #111;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-container details:hover {
  background-color: #1c1c1c;
}

.faq-container summary {
  font-weight: bold;
  font-size: 1.1rem;
  color: #00d4ff;
  outline: none;
}

.faq-container p {
  margin-top: 0.5rem;
  color: #ccc;
  line-height: 1.5;
}

/* Impacto digital */
#impacto {
  background-color: #111;
  color: #f0f0f0;
  padding: 4rem 2rem;
  text-align: center;
}

.stats-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-box {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 12px;
  min-width: 180px;
  max-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #00d4ff;
  display: block;
  margin-bottom: 0.5rem;
}

/* Portafolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.portfolio-item {
  background-color: white;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.portfolio-item img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: #0d0d0d;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

/* Recuadro fijo de redes sociales */
.social-fixed-box {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: row;
  gap: 16px;
  z-index: 10000;
  align-items: center;
}

.social-fixed-box a {
  font-size: 24px;
  color: inherit;
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-fixed-box a.facebook {
  color: #1877F2;
}
.social-fixed-box a.instagram {
  color: #E4405F;
}
.social-fixed-box a.tiktok {
  color: #000000;
}
.social-fixed-box a.twitter {
  color: #1DA1F2;
}
.social-fixed-box a.whatsapp {
  color: #25D366;
}

.social-fixed-box a:hover {
  transform: scale(1.3);
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.15));
}

/* Animaciones */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInZoom {
  0% {
    opacity: 0;
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Menú hamburguesa y responsive */
.hamburger {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  nav {
    width: 100%;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #0d0d0d;
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    z-index: 999;
  }

  #menu-toggle:checked ~ nav .nav-links {
    display: flex;
  }

  nav ul li {
    margin: 1rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .cards {
    flex-direction: row;
    overflow-x: auto;
    padding: 1rem;
  }
}

/* Mensajes de formulario */
.form-message {
  margin-top: 1rem;
  font-size: 1.1rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  color: #00d4ff;
}

.form-message.show {
  opacity: 1;
}

.form-message.error {
  color: #e74c3c;
}

/* Checkmark animado */
#checkmark {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw 1s ease forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: rgba(13, 13, 13, 0.95);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  z-index: 11000; /* Más alto que el fixed social box */
  opacity: 0;
  transition: opacity 0.5s ease;
}

.cookie-banner.show {
  opacity: 1;
}

.cookie-banner a {
  color: #00d4ff;
  text-decoration: underline;
}

.cookie-banner button {
  background-color: #00d4ff;
  border: none;
  color: #0d0d0d;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cookie-banner button:hover {
  background-color: #009fbb;
}
