* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}

@font-face {
    font-family: "DM Sans";
    src: url(../fonts/DMSans-Regular.ttf);
    font-display: swap;
}

:root {
    --primary-color: #f4fcfd; /* Azul claro */
    --secondary-color: #140f94; /* Azul más oscuro */
    --accent-color: #e4ecef; /* Azul intermedio */
    --text-primary: #ffffff; /* Blanco */
    --text-secondary: #b0bec5; /* Gris claro */
    --gradient-bg: linear-gradient(120deg, #040438 0%, #0e1011 100%); /* Gradiente de azul */
    --font-primary: "DM Sans", "Helvetica Neue", sans-serif;
    --primary-bg: #dae3f0;
    --secondary-bg: #a1a7b1;
    --btn-primary: #dae8ed; /* Azul claro para botones */
    --btn-info: #dae8ed; /* Azul intermedio */
    --btn-success: #dae8ed; /* Azul más oscuro */
    --btn-warning: #dae8ed; /* Azul profundo */
    --btn-accent: #dae8ed; /* Azul oscuro */
    --btn-opacity-normal: 0.1;
    --btn-opacity-hover: 0.15;
}

html {
    font-size: 20px; /* Define un valor base fijo */
}

body {
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.6;
    height: auto;
}

a{
    text-decoration: none;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(17, 34, 64, 0.95);
    margin-bottom: 40px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    position: relative;
}

.menu figure {
    max-width: 80px;
}

.menu figure img{
    width: 100px;   
    height: 100px; 
}

/**Menu Hamburguesa **/
.hamburger {
    cursor: pointer;
  }
  
  .hamburger input {
    display: none;
  }
  
  .hamburger svg {
    /* The size of the SVG defines the overall size */
    height: 3em;
    /* Define the transition for transforming the SVG */
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .line {
    fill: none;
    stroke: white;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    /* Define the transition for transforming the Stroke */
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
                stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .line-top-bottom {
    stroke-dasharray: 12 63;
  }
  
  .hamburger input:checked + svg {
    transform: rotate(-45deg);
  }
  
  .hamburger input:checked + svg .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
  }
  
.inactive{
    display: none;
}

  .nav-buttons-container{
    position: absolute;
    top: 100%;
    padding: 20px 10px;
    margin: 0;
    left: 0;
    width: 100%;
    background: rgb(17 34 64);
    z-index: 5;
    border: 1px solid rgba(100, 255, 218, 0.1);
  }

 .nav-group{
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
 }

 .nav-button{
    color: var(--text-primary);
    font-size:  1em;
 }

 .nav-button:hover{
    color: var(--text-secondary);
 }

 .hero-section {
    padding: 40px 20px;
    margin: 20px 0 40px;
    background: rgba(17, 34, 64, 0.95);
    border-radius: 15px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.hero-text-container {
    text-align: left;
    padding-left: 40px;
}

.hero-title {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--accent-color), #353799);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-text {
    font-size: 1.4em;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.highlight {
    color: var(--accent-color);
    font-weight: 600;
}

.hero-subtext {
    font-size: 1.1em;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 15px;
    padding-left: 20px;
    border-left: 3px solid var(--accent-color);
}

.hero-visualization {
    background: rgba(6, 41, 104, 0.3);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.challenges-card {
    background: rgba(17, 34, 64, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin: 60px auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.challenges-card:hover {
    transform: translateY(-5px);
}

.challenges-title {
    font-size: 1.8em;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 30px;
    background: linear-gradient(45deg, var(--accent-color), #4FD1C5);
    background-clip: text; /* Propiedad estándar */
    -webkit-background-clip: text; /* Prefijo para WebKit */
    -webkit-text-fill-color: transparent;
}

.challenges-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.challenge-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
}

.challenge-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
    border-color: var(--accent-color);
}

.challenge-bullet {
    background: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bullet-icon {
    font-size: 1.2em;
}

.challenge-text {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1.1em;
    line-height: 1.5;
}

.blog-title {
    font-size: 2.5em;
    color: var(--btn-primary);
    text-align: center;
    margin-bottom: 20px;
}

/*AQUI EMPIZO A MOVER*/

.services-article {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin: 0 0 40px 0;
}

.slideContainer{
    display: grid;
    grid-template-columns: repeat(8, 300px);
    grid-template-rows: repeat(1, 450px);
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin: 0 10px;
}

.btn{
    position: absolute;
    background-color: rgba(17, 34, 64, 0.95);
    top: 96%;
    transform: translateY(-50%);
    color: var(--btn-primary);
    font-size: 22px;
    border-radius: 5px;
    border: none;
    padding: 4px;
    cursor: pointer;
    z-index: 10;
}
.siguiente{
    right: 10px;
}
.anterior{
    left: 10px;
}

.service-card {
    background: rgba(17, 34, 64, 0.95);
    padding: 0 20px;
    border-radius: 15px;
    border: 1px solid rgba(100, 255, 177, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex: 0 0 320px;
}

.service-card:last-child {
    margin-right: 0;
}

.service-card p{
    text-align: justify;
    font-size: .859em;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(100, 255, 218, 0.2);
}

.service-card h3 {
    color: var(--accent-color);
    margin-top: 10px;
    text-align: center;
    font-size: .99em;
}

.service-card img {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    display: block;
}

/* Fin de los Servicios */

.dashboard-container {
    background: rgba(17, 34, 64, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-top: 40px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.metric-value {
    font-size: 2em;
    color: var(--accent-color);
    margin: 10px 0;
}

.predictive-models-widget {
    background: rgba(17, 34, 64, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-top: 40px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.refresh-button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-button:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: rotate(180deg);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.model-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.model-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.accuracy-meter {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    margin: 15px 0;
    position: relative;
}

.accuracy-bar {
    height: 100%;
    background: var(--accent-color);
    border-radius: 4px;
    transition: width 1s ease;
}

.accuracy-value {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 0.9em;
    color: var(--accent-color);
}

.model-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.stat {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.2em;
    color: var(--accent-color);
    font-weight: 600;
}

.blog-container {
    box-sizing: content-box;
    max-width: 1200px;
    margin: 100px auto 60px auto;
    padding: 0 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-title {
    font-size: 2.5em;
    color: var(--btn-primary);
    margin-bottom: 36px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
    box-sizing: content-box;
}

/* Estilos base para futuras cards */
.blog-card {
    background: rgba(17, 34, 64, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    padding: 24px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
    border-color: rgba(100, 255, 218, 0.2);
}

.blog-card h3{
    font-size: 1.3em;
    margin: 10px 0;
}

.blog-card p{
    font-size: .8em;
    margin: 10px 0;
}

.blog-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
}

/*Contacto*/
.contact-us{
    margin: 40px 0;
}

.contact-article{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1800px;
    margin: 0 auto;
  }
  
  .contact-article h3{
    margin: 10px;
    color: #ccd6f6;
    font-weight: 300;
    font-size: .8em;
  }
  
  .contact-text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 10px;
    background: rgba(17, 34, 64, 0.7);
    border-radius: 20px;
    border: 1px solid rgba(100, 255, 218, 0.1);
  }
  
  .contact-text figure{
    max-width: 300px;
  }
  
  .contact-text figure img{
    width: 100%;
  }
  
  /* From Uiverse.io by DavidTM96 */ 
  .form {
      display: flex;
      flex-direction: column;
      align-self: center;
      font-family: inherit;
      gap: 10px;
      padding-inline: 1em;
      padding-bottom: 0.4em;
      padding-top: 3em;
      border-radius: 20px;
    }
    
    input::placeholder {
      color: rgb(189, 186, 186);
    }
  
    textarea::placeholder {
      color: rgb(189, 186, 186);
    }
  
    .form-heading {
      text-align: center;
      color: white;
      font-size: 1.7em;
      background-color: transparent;
      align-self: center;
      margin-bottom: 25px;
    }
    
    .form-field {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5em;
      border-radius: 10px;
      border: none;
      outline: none;
      color: white;
      background-color: rgba(17, 34, 64, 0.95);
      box-shadow: inset 2px 5px 10px rgb(5, 5, 5);
      margin-bottom: 20px;
    }
  
    .input-field {
      background: none;
      border: none;
      outline: none;
      width: 100%;
      color: white;
      height: 40px;
      padding: 0 0.6em;
      border-radius: 10px;
    }
   
    .form-field > textarea{
      height: auto;
      padding: 0.6em;
    }
  
    .sendMessage-btn {
      cursor: pointer;
      margin-bottom: 3em;
      padding: 1em;
      border-radius: 10px;
      border: none;
      outline: none;
      background-color: transparent;
      color: white;
      font-weight: bold;
      outline: 1px solid white;
      transition: all ease-in-out 0.3s;
    }
    
    .sendMessage-btn:hover {
      transition: all ease-in-out 0.3s;
      background-color: rgba(17, 34, 64, 0.95);
      color: white;
      cursor: pointer;
      box-shadow: inset 2px 5px 10px rgb(5, 5, 5);
    }
    
    .form-card1 {
      max-width: 800px;
      border-radius: 22px;
      transition: all 0.3s;
    }
    
    .form-card1:hover {
      box-shadow: 0px 0px 30px 1px rgba(100, 255, 218, 0.3);
    }
    
    .form-card2 {
      border-radius: 0;
      transition: all 0.2s;
    }
    
    .form-card2:hover {
      transform: scale(0.996);
      border-radius: 20px;
    }
  
    .form label{
      color: aliceblue;
      padding-left: 15px;
      font-size: 1.1em;
    }

    
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.widget-preview {
    background: rgba(17, 34, 64, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(0);
    transition: all 0.3s ease;
    animation: bounce 1s infinite;
}

.preview-text {
    color: var(--text-primary);
    font-size: 0.9em;
}

.preview-close {
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2em;
    padding: 0 5px;
}

.whatsapp-button {
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.button-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-text {
    font-weight: 500;
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.4);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.footer-container {
    background: rgba(17, 34, 64, 0.95);
    padding: 20px;
    color: var(--text-primary);
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left, .footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    width: 100px;
    height: 88px;
    margin-bottom: 10px;
}

.footer-info p {
    margin: 5px 0;
    text-align: center;
}

.privacy-policy {
    color: var(--btn-primary);
    text-decoration: none;
    margin-bottom: 10px;
}

.privacy-policy:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    padding: 10px;
    gap: 10px;
}

.social-icons li{
    list-style: none;
}

.social-icons img {
    width: 40px;
    height: 38px;
}

/*  Media Queries */
@media(min-width:425px){
    .slideContainer{
        margin: 0 20px;
    }
}


@media (min-width: 680px) {
    .menu_hamburguesa{
        display: none;
    }
    .inactive{
        display: block;
    }
    .nav-buttons-container{
        position: relative;
        top: 0;
        padding: 0;
        margin: 0;
        left: 0;
        width: auto;
        background: none;
        border: none;
    }
    .nav-group{
        display: flex;
        flex-direction: row;
     }
     .contact-text h3{
        font-size: 1em;
     }
}

@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-text-container {
        padding-left: 0;
        text-align: center;
    }

    .hero-title {
        font-size: 2em;
    }

    .hero-text {
        font-size: 1.2em;
    }

    .hero-visualization {
        height: 200px;
    }

    .hero-subtext {
        font-size: 1em;
        padding-left: 15px;
    }
    .blog-title {
        font-size: 1.7em;
    }

    .blog-description {
        font-size: 1em;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .whatsapp-widget {
        bottom: 10px;
        right: 10px;
    }

    .widget-preview {
        padding: 8px 15px;
    }

    .whatsapp-button {
        padding: 10px 20px;
    }

    .button-text {
        font-size: 0.9em;
    }
}

@media (min-width: 900px) {
    .nav-buttons-container{
        margin: 0 40px;
    }
    .nav-group{
        gap: 40px;
    }
    .nav-buttons-container a{
        font-size: 20px;
    }
    .challenges-title {
        text-align: left;
    }
    
    .slideContainer{
        margin: 0 40px;
    }
    .form-heading{
        font-size: 2.5em;
    }
}

@media (min-width: 1100px){
    .menu{
        padding: 10px 40px;
    }
    .nav-buttons-container a{
        font-size: 25px;
    }
}

@media (min-width: 1850px){
    .contact-text h3{
        font-size: 1.3em;
     }
}