/* General */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Poppins', sans-serif;
  background: #fcfcfc;
  color: #000;
  font-size: 18px;
  line-height: 1.6;
   
}
 
h1 { font-family: 'Azonix', sans-serif; color: #980000; font-size: 3rem; }
h2 {
  font-family: 'Botanist', serif;
  font-size: 52px;
  font-weight: 500;
  text-align: center;
  color: #980000;
  margin: 100px 0; /* más espacio arriba y abajo */
}
h2 span {
  color: #010203; /* "Trabajo" en rojo */
}

.logo img {
    height: 80px; /* Ajusta la altura del logo según sea necesario */
}

/* ======== HEADER ======== */
.header {
  display: flex;
  font-family: azonix, sans-serif;
  font-size: 18px;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 5rem;
  background: #000;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ======== LOGO ======== */
.logo img {
  height: 90px;
  width: auto;
  display: block;
}

/* ======== NAV (ESCRITORIO) ======== */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  padding: 0 1rem;
  transition: color 0.3s;
}

/* Línea vertical separadora */
.nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
}

.nav a:hover {
  color: #c94c00;
}

/* ======== BOTÓN HAMBURGUESA ======== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* ======== OVERLAY ======== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 900;
}

/* ======== ANIMACIÓN ENTRADA LINKS ======== */
@keyframes slideInLink {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======== RESPONSIVE ======== */
@media (max-width: 992px) {
  .header {
    padding: 0.8rem 2rem;
  }

  /* Menú oculto inicialmente */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: #000;
    background: linear-gradient(180deg, rgba(10,10,10,1) 0%, rgba(152,0,0,0.9) 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s ease;
    z-index: 1050;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
  }

  .nav a {
    font-size: 1.4rem;
    opacity: 0; /* Ocultos antes de animar */
    color: #fff;
  }

  /* Menú activo */
  .nav.active {
    right: 0;
  }

  /* Animar entrada de cada enlace */
  .nav.active a {
    animation: slideInLink 0.5s ease forwards;
    opacity: 1;
    color: #fff;
  }

  /* Retraso progresivo */
  .nav.active a:nth-child(1) { animation-delay: 0.1s; }
  .nav.active a:nth-child(2) { animation-delay: 0.2s; }
  .nav.active a:nth-child(3) { animation-delay: 0.3s; }
  .nav.active a:nth-child(4) { animation-delay: 0.4s; }
  .nav.active a:nth-child(5) { animation-delay: 0.5s; }

  /* Mostrar hamburguesa */
  .menu-toggle {
    display: flex;
  }

  /* Overlay visible */
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Animación del ícono hamburguesa */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Ocultar separadores en móvil */
  .nav a::after {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video de fondo */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Contenido */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  background: rgba(0,0,0,0.6);
  padding: 2rem;
  border-radius: 10px;
}

/* Botones */
.btn {
  display: inline-block;
  margin: 1rem 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-primary { background: #980000; color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn:hover { opacity: 0.85; }

/* =====================
   SECCIÓN PROBLEMA / SOLUCIÓN / MISIÓN / VISIÓN CON CARRUSEL
   ===================== */
.problem-solution-section {
  padding: 80px 80px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 60%, #fdf0f0 100%);
  overflow: hidden;
  position: relative;
}

.problem-solution-section .section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 60px;
  font-family: 'Azonix', sans-serif;
  color: #000;
}

.problem-solution-section .section-title span {
  color: #980000;
}

/* --- Layout principal --- */
.problem-solution-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}




/* --- Tarjetas de texto --- */
.problem-solution-content { flex: 1 1 500px; }

.problem-solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.card {
  background-color: #fff;
  border-left: 6px solid #980000;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.card h3 {
  color: #980000;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

/* --- Misión / Visión --- */
.mission-vision {
  display: flex;
  gap: 30px;
  
  flex-wrap: wrap;
  margin-top: 120px;
}

.mission, .vision {
  flex: 1 1 280px;
  background-color: #000;
  color: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.4s ease;
}

.mission:hover, .vision:hover {
  background-color: #980000;
  transform: translateY(-5px);
}

.mission h3, .vision h3 {
  font-family: 'Azonix', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.mission ul, .vision ul { list-style: none; padding: 0; }
.mission li, .vision li {
  margin-bottom: 10px;
  text-align: left;  
  padding-left: 20px;
  position: relative;
}
.mission li::before, .vision li::before {
  content: '✓';
  color: #c94c00;
  position: absolute;
  left: 0;
}

/* --- Animación scroll-in --- */
.problem-solution-section {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.9s ease-out;
}

.problem-solution-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .problem-solution-layout {
    flex-direction: column;
    text-align: center;
  }


}
/* ========= SECCIÓN TRABAJO ========= */
    .trabajo {
      max-width: 1200px;
      margin: auto;
      padding: 100px 20px;
      text-align: center;
      opacity: 0;
      transform: translateY(80px);
      transition: all 1s ease;
    }

    .trabajo.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .trabajo-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 25px;
    }

    .item-trabajo {
      background-color: #0f0f10;
      padding: 40px 25px;
      border-radius: 12px;
      text-align: left;
      box-shadow: 0 4px 12px rgba(0,0,0,0.4);
      transition: all 0.4s ease;
      transform: scale(1);
    }

    .item-trabajo:hover {
      transform: scale(1.05);
    }

    .item-trabajo i {
      font-size: 2.2em;
      margin-bottom: 15px;
      display: block;
    }

    .item-trabajo h3 {
      font-family: 'Botanist', sans-serif;
      font-size: 1.3em;
      color: #fff;
      margin-bottom: 10px;
      transition: color 0.3s ease;
    }

    .item-trabajo p {
      font-size: 0.95em;
      color: #ccc;
      line-height: 1.5;
    }

    /* ====== COLORES DE ICONOS ====== */
    .rojo i { color: #980000; }
    .cyan i { color: #00ffff; }
    .verde i { color: #9eff00; }
    .violeta i { color: #b26aff; }
    .naranja i { color: #ff9800; }
    .azul i { color: #009dff; }

    /* ====== EFECTO HOVER (color título según icono) ====== */
    .rojo:hover h3 { color: #980000; }
    .cyan:hover h3 { color: #00ffff; }
    .verde:hover h3 { color: #9eff00; }
    .violeta:hover h3 { color: #b26aff; }
    .naranja:hover h3 { color: #ff9800; }
    .azul:hover h3 { color: #009dff; }

    /* ====== RESPONSIVE ====== */
    @media (max-width: 768px) {
      h1 {
        font-size: 2.3rem;
      }

      .item-trabajo {
        text-align: center;
      }
    }

    @media (max-width: 480px) {
      .item-trabajo {
        padding: 30px 20px;
      }

      .item-trabajo h3 {
        font-size: 1.1em;
      }
    }


/* Servicios */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
  margin: 10px ;
}
.servicio img {
  width: 100%;
  border-radius: 5px;
}
.servicio h3 { color: #980000; margin-top: 0.8rem; }

/* Portafolio */
.portafolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}
.proyecto { position: relative; overflow: hidden; border-radius: 5px; }
.proyecto img { width: 100%; transition: 0.3s ease; }
.proyecto:hover img { transform: scale(1.05); }
.overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(152,0,0,0.8);
  color: #fff;
  text-align: center;
  padding: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.proyecto:hover .overlay { opacity: 1; }

.ia-section {
    min-height: auto;
    line-height: 1.8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 40px;
    background-color: #ffffff;
     opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.ia-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1200px;
    margin: 10px auto;
    text-align: center;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: #000;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    color: #666;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #980000;
}

.description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.content-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}

.icon-box {
    flex-shrink: 0;
}

.icon-circle {
    width: 100px;
    height: 100px;
    background-color: #000;
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 300;
}

.text-content {
    flex: 1;
}

.text-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.3rem;
    }
    
    .content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .icon-circle {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
}
/* ====== SECCIÓN FONDO ====== */
    .fondo {
      background: linear-gradient(135deg, #8B0000 100%, #f17223 10%);
      padding: 8rem 2rem;
      margin-top: 100px;
      text-align: center;
      position: relative;
      overflow: hidden;
      opacity: 0;
      transform: translateY(50px);
      transition: all 1s ease-out;
    }

    .fondo.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .fondo::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0,0,0,0.1) 0%, transparent 50%);
      pointer-events: none;
    }

    .fondo-content {
      max-width: 1200px;
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }

    .fondo-title {
      font-size: 4rem;
      color: #fff;
      font-weight: bold;
      letter-spacing: 3px;
      text-transform: uppercase;
      line-height: 1.2;
      margin-bottom: 2rem;
      text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

    .fondo-button {
      display: inline-block;
      background: transparent;
      color: #fff;
      padding: 1rem 3rem;
      border: 3px solid #fff;
      border-radius: 50px;
      font-size: 1.2rem;
      font-weight: bold;
      text-decoration: none;
      transition: all 0.4s;
      cursor: pointer;
      text-transform: uppercase;
      letter-spacing: 2px;
      margin-top: 2rem;
    }

    .fondo-button:hover {
      background: #fff;
      color: #8B0000;
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

    /* ====== RESPONSIVE ====== */
    @media (max-width: 992px) {
      .fondo-title {
        font-size: 2.5rem;
      }
    }

    @media (max-width: 576px) {
      .fondo {
        padding: 5rem 1.5rem;
      }

      .fondo-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
      }

      .fondo-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
      }
    }
    /* ===== SECCIÓN PUBLICIDAD CON IA ===== */
.ia-publicidad {
  padding: 100px 20px;
  background: linear-gradient(135deg, #fff 60%, #f6f6f6 100%);
  text-align: center;
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.9s ease-out;
}

.ia-publicidad.visible {
  opacity: 1;
  transform: translateY(0);
}

.ia-publicidad h2 {
  font-family: 'Azonix', sans-serif;
  color: #980000;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.ia-publicidad h2 span {
  color: #000;
}

.ia-publicidad .descripcion {
  font-size: 1.15rem;
  color: #444;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.lista-servicios {
  list-style: none;
  max-width: 700px;
  margin: 0 auto 50px;
  text-align: left;
  padding-left: 0;
}

.lista-servicios li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 25px;
}

.lista-servicios li::before {
  content: "✓";
  color: #980000;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ===== CARRUSEL ===== */
.carrusel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.carrusel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.carrusel-track img {
  width: 100%;
  height: 400px;
  object-fit: contain;       /* 🔹 muestra toda la imagen completa */
  background-color: #ffffff;    /* 🔹 rellena el fondo donde no llega la imagen */
  flex-shrink: 0;
  border-radius: 12px;
}


/* Flechas */
.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(245, 244, 244, 0.3);
  color: #000000;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.3rem 0.8rem;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}

.carrusel-btn:hover {
  background: rgba(152,0,0,0.8);
}

.carrusel-btn.prev { left: 15px; }
.carrusel-btn.next { right: 15px; }

@media (max-width: 768px) {
  .ia-publicidad h2 { 
    font-size: 2rem; 
  }

  .lista-servicios { 
    text-align: center; 
  }

  .lista-servicios li { 
    padding-left: 0; 
  }

  .lista-servicios li::before { 
    display: none; 
  }

  /* 🔹 Ajuste del carrusel en móvil */
  .carrusel-track img {
    height: 250px;
    object-fit: contain;     /* asegura que la imagen se vea completa */
    background-color: #000;  /* fondo elegante para el espacio vacío */
  }
}

/* Formulario */
.formulario {
  background: #f8f8f8;
  padding: 3rem 1rem;
  text-align: center;
}
form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
input, select, textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Contacto */
.contacto { padding: 3rem 1rem; text-align: center; }
.contacto a { color: #980000; text-decoration: none; }

/* FAQ */
.faq { background: #fff; padding: 3rem 1rem; }
.faq-item {
  max-width: 600px;
  margin: 1rem auto;
  background: #f4f4f4;
  border-radius: 5px;
  padding: 1rem;
  cursor: pointer;
}
.faq-item h3 { color: #980000; }
.faq-item p { display: none; padding-top: 0.5rem; }

/* Footer */
.footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}
.footer-links a {
  color: #c94c00;
  text-decoration: none;
  margin: 0 0.5rem;
}
.footer-links a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {

  .hero-content { padding: 1.5rem; }
  h1 { font-size: 2rem; }
}

/* =====================
  COMPONENTES EXTRA
  ===================== */
/* =====================
   BOTÓN SCROLL TO TOP
   ===================== */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #980000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.3s ease, visibility 0.4s ease;
  z-index: 999;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#scrollTopBtn:hover {
  background-color: #010203;
  transform: scale(1.1);
}


/* ////// */
/* ====== PÁGINAS LEGALES ====== */
.legal-section {
  max-width: 900px;
  margin: 100px auto;
  padding: 40px 20px;
  background: #fff;
  color: #000;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  line-height: 1.8;
}

.legal-section h1 {
  text-align: center;
  color: #980000;
  margin-bottom: 30px;
}

.legal-section h2 {
  color: #c94c00;
  margin-top: 30px;
}

.legal-section ul {
  margin-left: 20px;
  list-style: disc;
}

.legal-section a {
  color: #980000;
  text-decoration: underline;
}

/* ====== AVISO DE COOKIES ====== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.95);
  color: #fff;
  padding: 1.2rem 1.5rem;
  display: none;
  z-index: 2000;
  font-size: 0.95rem;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.3);
}

.cookie-banner.show {
  display: block;
  animation: slideUp 0.6s ease forwards;
}

.cookie-content {
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 0.6rem;
}

.cookie-buttons button {
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

#acceptCookies {
  background-color: #980000;
  color: #fff;
}

#rejectCookies {
  background-color: #444;
  color: #fff;
}

.cookie-buttons button:hover {
  opacity: 0.85;
}

.cookie-content a {
  color: #c94c00;
  text-decoration: underline;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}
