/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    touch-action: manipulation;
}

body, html {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    
}

/* Fondo gradiente terroso-dorado + particulas detrás */
#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg,
        #09212b,
        #1b1f24,
        #221b12,
        #3d2e1a,
        #030525
    );
    background-attachment: fixed;
    background-size: cover;
}

/* Navegación */
header {
    background: transparent;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
}

.navbar {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.logo {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 2px;
    background: linear-gradient(270deg, #f2d16b, #b2874a, #f9f4e7, #a67843, #f2d16b);
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShine 30s ease-in-out infinite;
    filter: drop-shadow(0 0 3px #f9f4e723) drop-shadow(0 0 6px #eeb76b);
}

@keyframes goldShine {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #f0e6c8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f9f4e7;
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    background-color: #f2d16b;
    height: 3px;
    width: 25px;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.menu-toggle.open .hamburger {
    background-color: transparent;
}

.menu-toggle.open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.open .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/*---------------
---- Hero--------
---------------- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    background: linear-gradient(135deg, #5a5021, #a076a5);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
  max-width: 100%;
  text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    display: inline-block;
    text-align: center;
    color: #e0c340;
}

/* Evita romper palabras en el h1 */
.word {
    display: inline-block;
    white-space: nowrap;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: #474936;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #141411;
}

.btn-enviar {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1.1px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

/* Secciones */
section {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 2rem 1rem;
    background: rgba(51, 23, 59, 0.267);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgb(0 0 0 / 0.1);
    color: #ccb17f;
}

h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #e0c340;
}


.service-carousel {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
  padding: 2rem 0;
}

.service-list-wrapper {
  overflow: visible; /* Ya no es scroll horizontal */
  scroll-snap-type: none; /* Sin snap horizontal */
  -webkit-overflow-scrolling: auto;
}

.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.service-item {
  background: rgba(255, 255, 255, 0.048);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
}


@media (max-width: 768px) {
  .service-list {
    grid-template-columns: 1fr;
  }
}


/*--------------------*/
.circuit {
      stroke: #d4c460;
      animation: glowAdvance 1.8s ease-in-out infinite;
      filter: drop-shadow(0 0 4px #fff2a1);
    }

    @keyframes glowAdvance {
      0%, 100% {
        stroke: #d4c460;
        filter: drop-shadow(0 0 4px #fff2a1);
      }
      50% {
        stroke: #fff9c4;
        filter: drop-shadow(0 0 12px #fff9c4);
      }
    }

/*--------------------*/


/*--------------------*/
.sinergia-digital {
  display: block;
  margin: 1rem auto;
  width: 220px;
  height: auto;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 1s ease forwards;
}

/* Núcleo con pulso */
.sinergia-digital circle:first-of-type {
  animation: pulse 5s ease-in-out infinite;
  transform-origin: center;
}

/* Grupo giratorio */
.sinergia-digital .orbit {
  transform-origin: 100px 100px;
  animation: rotate 30s linear infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.85;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .sinergia-digital {
    width: 210px;
  }

  .services-text {
  text-align: center;
  font-size: 0.95rem;
  max-width: 100ch;
  }
}

@media (max-width: 480px) {
  .sinergia-digital {
    width: 190px;
  }

  .services-text {
  text-align: center;
  font-size: 0.90rem;
  max-width: 100ch;
  }
}


/*--------------------*/

/* Oculta la barra de scroll horizontal en escritorio */
@media (min-width: 768px) {
  .service-list-wrapper {
    scrollbar-width: none;
  }

  .service-list-wrapper::-webkit-scrollbar {
    display: none;
  }
}

/*-----------------
----ABOUT section--
--------------------*/
.about-text {
  padding: 0.95rem;
  text-align: justify;
  color: #e6e3d6;
}

/*---------------
 ----Contacto------
 ------------ */
form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-weight: 600;
}

input[type="text"],
input[type="email"],
textarea {
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #a67843;
}

@media (max-width: 768px) {
  form {
    padding: 1rem;
  }
}


/* Footer */
footer {
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: #0f062421;
    color: white;
    font-size: 0.9rem;
    box-shadow: inset 0 3px 8px rgb(0 0 0 / 0.1);
}

footer .footer-links {
  margin-top: 0.8rem;
}

footer .footer-links a {
  color: white;
  margin: 0 0.8rem;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

footer .footer-links a:hover {
  color: #d9b382;
}

footer .footer-social {
  margin-top: 1rem;
}

footer .footer-social a {
  display: inline-block;
  margin: 0 0.5rem;
  color: white;
  transition: transform 0.3s ease, color 0.3s ease;
}

footer .footer-social a:hover {
  color: #d9b382;
  transform: scale(1.1);
}

footer .footer-social svg {
  width: 24px;
  height: 24px;
}

/* Responsive: en mobile centrado vertical */
@media (max-width: 600px) {
  footer .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  footer .footer-social a {
    margin: 0 0.4rem;
  }
}



/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 64px;
        right: -100%;
        height: calc(100vh - 64px);
        width: 200px;
        background-color: #151518;
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        gap: 2rem;
        transition: right 0.3s ease;
        border-radius: 0 0 0 10px;
        z-index: 90;
    }
    .nav-links.open {
        right: 0;
    }
    .menu-toggle {
        display: block;
    }
}


/* Animaciones */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(30px);
    }
    60% {
        opacity: 1;
        transform: scale(1.1) translateY(-10px);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(60px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive: ocultar burbuja en pantallas pequeñas */
@media (max-width: 480px) {
    .whatsapp-bubble {
        display: none;
    }
}


/*CREDLY estilos*/
/* Credly certificación dentro de Servicio */
/* === Bloque Credly dentro de Service Item === */

.service-item h3 {
  margin-bottom: 1rem;
  color: #e7e2dc;
}

/* Logo Credly minimalista */
.credly-badge img {
  width: 230px; /* Ajusta tamaño */
  height: auto;
  display: block;
  margin: 1rem auto;
  transition: transform 0.3s ease;
}

.credly-badge img:hover {
  transform: scale(1.05);
}


/* Descripción principal */
.service-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #f0e6c8;
  margin: 0.5rem 0;
}

/* Texto bajo el badge */
.services-text {
  font-size: 0.95rem;
  color: #d9d3c1;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: inset 0 0 8px rgba(178, 135, 74, 0.1);
}

/* Responsive para iframe Credly */
@media (max-width: 768px) {
  .service-item [data-iframe-width] {
    margin: 0.5rem 0;
  }

  .credly-text {
    font-size: 0.9rem;
  }
}


/* === -----------------------
Estilos para la sección de políticas
-------------------------- === */
.body-content {
  background-color: #000000c0;
}

.policy-content {
  max-width: 720px;
  margin: 3rem auto 6rem;
  padding: 0 1rem;
  color: #f5f5f5;
  font-family: 'Montserrat', sans-serif;
  background: rgba(10, 59, 71, 0.678);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  line-height: 1.7;
}

.policy-content h1 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1.8rem;
  text-align: center;
  color: #d9b382;
  letter-spacing: 0.03em;
}

.policy-content h2 {
  font-weight: 600;
  font-size: 1.4rem;
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  border-left: 4px solid #d9b382;
  padding-left: 0.8rem;
  color: #f5f5f5;
}

.policy-content p {
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 1.3rem;
  color: #e3e3e3;
}

.policy-content ul {
  margin-left: 1.6rem;
  margin-bottom: 1.6rem;
  color: #e3e3e3;
  font-size: 1rem;
}

.policy-content ul li {
  margin-bottom: 0.6rem;
  padding-left: 0.2rem;
  position: relative;
}

.policy-content ul li::before {
  content: '•';
  color: #d9b382;
  position: absolute;
  left: -1rem;
  font-size: 1.2rem;
  line-height: 1;
}

.policy-content a {
  color: #d9b382;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.policy-content a:hover {
  color: #f5f5f5;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .policy-content {
    margin: 2rem 1rem 4rem;
    padding: 1rem 1rem 2rem;
  }

  .policy-content h1 {
    font-size: 2rem;
  }

  .policy-content h2 {
    font-size: 1.2rem;
    margin-top: 1.8rem;
  }

  .policy-content p,
  .policy-content ul,
  .policy-content ul li {
    font-size: 0.95rem;
  }
}


/*------------- 
------BANNER -----
------------------*/
/* Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: #222;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  font-size: 0.95rem;
}
.cookie-banner-content p {
  margin: 0;
}
.cookie-banner-content a {
  color: #f5c349;
  text-decoration: underline;
}
.cookie-buttons button {
  margin-left: 10px;
  padding: 0.5rem 1rem;
  border: none;
  background: #f5c349;
  color: #222;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
}
.cookie-buttons button:hover {
  background: #d9b13d;
}

/* Modal */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
.cookie-modal-content {
  background: #fff;
  color: #333;
  padding: 2rem;
  border-radius: 6px;
  max-width: 400px;
  width: 90%;
}
.cookie-modal-content h3 {
  margin-top: 0;
}
.cookie-modal-content label {
  display: block;
  margin: 10px 0;
  font-size: 0.9rem;
}
.cookie-modal-buttons {
  text-align: right;
}
.cookie-modal-buttons button {
  background: #222;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
}
.cookie-modal-buttons button:hover {
  background: #333;
}
