/* ======================================================
   VARIABLES GLOBALES Y RESET
====================================================== */
:root {
  --primary-blue: #0672ff;
  --light-blue: #0672ff;
  --dark-blue: #0b5ed7;
  --text-light: #ffffff;
  --text-dark: #000000;
  --font-primary: 'Arsenal', sans-serif;
  --font-secondary: 'Roboto', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
}

/* ======================================================
   ESTILOS PARA EL NUEVO HEADER FIJO
====================================================== */

/* --- Estilo base del header (transparente al inicio) --- */
.main-header {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; 
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease;
    background-color: transparent;
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background-color: var(--primary-blue);; 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-logo a {
    font-family: 'Arsenal', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4); 
}

.header-actions a {
    font-size: 0.9rem;
    color: #ffffff;
    text-decoration: none;
    margin-left: 0.75rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid #ffffff;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s, color 0.3s;
}

.header-actions a:hover {
    background-color: #ffffff;
    color: #0672ff; 
}

/* --- Ajustes para pantallas pequeñas --- */
@media (max-width: 768px) {
    .main-header {
        padding: 0.8rem 1rem;
    }
    .header-logo a {
        font-size: 1.5rem;
    }
    .header-actions a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ======================================================
   SECCIÓN 1: HERO (Landing principal)
====================================================== */
.seccion1 {
  position: relative;
  background-image: url("img/Imagen_CapData1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}


.logo {
  position: absolute;
  top: 130px;
  left: 30px;
  max-width: 200px;
  width: 40vw;
}

.hero-content {
  position: absolute;
  bottom: 60px;
  left: 80px;
  max-width: 700px;
  width: 100%;
  text-align: left;
}

.hero-text {
  flex-basis: 55%;
  text-align: left;
}

.hero-text h1 {
  font-size: 5.5rem;
  line-height: 1.2;
  font-weight: 400;
  font-family: var(--font-primary);
  color: var(--text-light);
  text-align: left;
}

.hero-text h1 strong {
  font-weight: 700;
}

.hero-bottom-right {
  position: absolute;
  bottom: 40px;
  right: 30px;
}

.btn-saber-mas {
  background-color: var(--primary-blue);
  color: var(--text-light);
  padding: 14px 30px;
  font-size: 1.1rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  font-family: 'Helvetica', 'Arial', sans-serif;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-saber-mas:hover {
  background-color: var(--dark-blue);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .logo {
    display: none;
  }

  .hero-content {
    position: static;
    padding: 20px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.3;
    text-align: center;
  }

  .hero-bottom-right {
    bottom: 30px;
    right: 20px;
  }

  .btn-saber-mas {
    font-size: 0.95rem;
    padding: 12px 25px;
  }
}

@media (max-width: 480px) {

  .hero-content {
    position: static;
    padding: 20px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.3;
    text-align: center;
  }

  .hero-bottom-right {
    position: static;
    margin-top: 30px; /* sube el botón */
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .btn-saber-mas {
    width: 80%;
    max-width: 300px;
    padding: 14px;
    font-size: 1rem;
    border-radius: 25px;
  }
} 


/* ======================================================
   SECCIÓN 2: PASOS (Steps-section)
====================================================== */
.steps-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background-image: url('img/Imagen_CapData2.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0; /* base para contener todo */
}

.steps-section h2 {
  font-family: 'Arsenal', sans-serif;
  font-size: 3.5rem;
  color: var(--primary-blue); /* Letras más claras */
  margin-bottom: 60px;
  text-align: center;
  line-height: 1.3;
  max-width: 600px;
  font-style: italic;
  display: inline-block;
  padding: 15px 25px;
  border-radius: 15px;
  font-weight: 400;
  text-shadow:
    0 1px 2px rgb(0 74 255 / 40%), 
    0 0 15px rgb(12 61 238 / 35%);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.step-card {
  background-color: rgba(6, 114, 255, 0.64);
  color: var(--text-light);
  padding: 30px 25px;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-8px);
}

.step-icon {
  height: 50px;
  margin-bottom: 20px;
}

.step-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.step-card p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.steps-grid {
  max-width: 100%;
  width: 100%;
}

/* --- CSS PARA LAS IMÁGENES DE NODOS --- */

.node-image {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  width: 200px;
}

.node-top-left {
  left: 5%;
  transform: rotate(226deg);
}

.node-bottom-middle {
  bottom: 60px;
  transform: rotate(306deg);
}

.node-bottom-right {
  right: 7%;
}

/* ======================================================
   MEDIA QUERIES (Responsive Design)
====================================================== */
@media (max-width: 1260px) {
  .node-top-left,
  .node-bottom-right {
    display: none;
  }
}

@media (max-width: 1025px) {
  .node-bottom-middle {
    display: none;
  }
}

@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 770px) {
  .steps-section {
    padding-top: 100px;
  }

  .steps-section h2 {
    font-size: 1.8rem;
    padding: 10px 15px;
    max-width: 90%;
    margin: 0 auto 30px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
    gap: 20px;
  }

  .step-card {
    padding: 15px 12px;
    max-width: 90%;
  }

  .step-icon {
    height: 35px;
    margin-bottom: 15px;
  }

  .step-card h3 {
    font-size: 0.95rem;
  }

  .step-card p {
    font-size: 0.85rem;
  }

  .node-image {
    display: none;
  }
}

@media (max-width: 600px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    padding: 0;
  }
}



/* ======================================================
   SECCIONES 3
====================================================== */

.data-section {
  position: relative;
  background-color: var(--primary-blue);
  color: var(--text-light);
  padding: 100px 0 80px;
  background-image: url('img/Imagen_CapData3.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  overflow: hidden;
}

.logo-wrapper {
  margin-bottom: 40px;
}

.logo-icon {
  width: 70px;
  height: auto;
}

.data-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 150px;
  margin-top: 120px; 
  flex-wrap: wrap;
}

.data-text {
  flex: 1;
  max-width: 500px;
  text-align: left;
}

.data-text-two {
  flex: 1;
  max-width: 75%;
  margin-top: 50px;
}	

.data-text h2 {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 20px;
  font-style: italic;
  font-weight: 400;
  font-family: 'Arsenal', sans-serif;
}

.data-text p {
  font-size: 1.9rem;
  opacity: 0.95;
  font-family: var(--font-primary);
}

.data-features {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px 30px;
  justify-items: center;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-icon {
  width: 180px;
  margin-bottom: 20px;
}

.feature-item span {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
  font-family: var(--font-primary);
}

@media (max-width: 885px) {
  .data-section {
    padding: 80px 0 60px;
    background-size: cover;
  }

  .data-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .data-text-two{
    max-width: 100%;
    text-align: center;
    margin-top: 30px;
  }

  .logo-wrapper {
    margin-bottom: 20px;
    text-align: center;
  }

  .logo-icon {
    width: 50px;
    margin-top: 30px;
  }

  .data-text h2 {
    font-size: 2.2rem;
  }

  .data-text p {
    font-size: 1.2rem;
    line-height: 1.5;
  }

  .data-features {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }

  .feature-icon {
    width: 80px;
  }

  .feature-item span {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .data-text h2 {
    font-size: 1.6rem;
  }

  .data-text p {
    font-size: 1rem;
  }

  .feature-icon {
    width: 45px;
  }

  .feature-item span {
    font-size: 0.85rem;
  }

  .data-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ======================================================
   SECCIONES 4
====================================================== */

.features-grid-section {
    padding: 80px 0;
    display: flex;
    align-items: center;
}

.features-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: transparent; 
    border-radius: 20px; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-shadow: none; 
}

.feature-card:hover {
    transform: translateY(-10px);
}

.card-image-bg {
    height: 400px; 
    background-position: center;
    display: flex;
    align-items: flex-end; 
    border-radius: 20px;
}


.card-content {
    padding: 20px;
    text-align: left;
}

.card-content h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.card-description {
    padding: 20px 5px 0 5px;
}

.card-description p {
    color: var(--dark-blue); 
    line-height: 1.6;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: left;
    font-family: var(--font-primary);;
}

@media (max-width: 1030px) {
  .features-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .card-image-bg {
    height: 280px;
    display: flex;
    align-items: flex-end;       
    justify-content: center;   
  }

  .card-content h3 {
    font-size: 1.2rem;
  }

  .card-description p {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

@media (max-width: 768px) {
  .features-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .card-image-bg {
    height: 220px;
  }

  .card-content h3 {
    font-size: 1.05rem;
  }

  .card-description {
    padding: 10px 8px 0 8px;
  }

  .card-description p {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .features-grid-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .card-image-bg {
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;       
    justify-content: center;   
    border-radius: 20px;   
  }
}

@media (max-width: 480px) {
  .features-grid-container {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .card-image-bg {
    height: 120px;
  }

  .card-content {
    padding: 10px;
  }

  .card-content h3 {
    font-size: 0.95rem;
  }

  .card-description {
    padding: 8px;
  }

  .card-description p {
    font-size: 0.85rem;
    line-height: 1.3;
  }
}

/* ======================================================
   SECCIONES 5 
====================================================== */
.cta-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 125%;
  object-fit: cover;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section .data-logo-icon {
  margin: 0 auto 25px;
}

.cta-section h2 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  font-weight: 400; 
  font-style: italic;
}

.cta-section p {
  font-size: 1rem;
  letter-spacing: 2px;
  color: #ffffff;
  font-family: var(--font-primary);
  font-weight: 500;
}

.icon-white {
    width: 70px;
    margin-bottom: 20px;
}

/* ======================================================
   FOOTER
====================================================== */
.footer {
  background-color: var(--primary-blue);
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 500;
  margin-top: 0px;
}

.footer-info {
  margin-top: 20px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.85; /* Suaviza visualmente */
}

.footer-info p {
  margin: 5px 0;
}

/* ======================================================
   ELEMENTOS GENÉRICOS Y UTILIDADES
====================================================== */
.seccion {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
  text-align: center;
  padding: 20px;
  overflow-x: hidden
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ======================================================
   Estilos para enlaces de políticas en el footer
====================================================== */
.footer-links {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Borde sutil para fondo oscuro */
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    background-color: var(--dark-blue);
}
.footer-links a {
    color: #bac8ff; /* Un color que destaca pero no es demasiado brillante */
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    text-decoration: underline;
    color: #ffffff; 
}




/* ======================================================
   ESTILOS PARA EL BANNER DE COOKIES
====================================================== */

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2d3748; /* Un color oscuro y sobrio */
    color: #edf2f7;
    padding: 15px 25px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000; /* Asegura que esté por encima de todo */
    
    /* Importante para que el banner se muestre cuando JS lo active */
    display: none; 
    
    /* Alineación del contenido */
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.9rem;
}

#cookie-consent-banner p {
    margin: 0;
    line-height: 1.5;
    flex-grow: 1; /* Permite que el texto ocupe el espacio disponible */
}

#cookie-consent-banner a {
    color: #63b3ed; /* Un azul claro para el enlace */
    text-decoration: underline;
    font-weight: 500;
}

#cookie-consent-banner a:hover {
    color: #90cdf4;
}

#cookie-consent-accept-btn {
    /* Usamos la variable de color de CapData que ya definiste */
    background-color: var(--primary-blue, #0672ff);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap; /* Evita que el texto del botón se parta */
    transition: background-color 0.2s ease;
}

#cookie-consent-accept-btn:hover {
    background-color: var(--dark-blue, #0b5ed7);
}

body.cookie-banner-active {
    padding-bottom: 75px !important; 
    transition: padding-bottom 0.3s ease;
}

@media (max-width: 768px) {
    body.cookie-banner-active {
        padding-bottom: 150px !important; 
    }
}

/* --- Ajustes para pantallas pequeñas --- */
@media (max-width: 768px) {
    #cookie-consent-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    #cookie-consent-banner p {
        margin-bottom: 15px;
    }
    #cookie-consent-accept-btn {
        width: 100%;
    }
}


