html {
  font-size: 14px;
}

@media (max-width: 768px) {
    .logo {
        height: 50px;
    }

    .logo_aveva,
    .logo_kss {
        max-height: 50px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

/*
Topbar
*/
:root {
  --topbar-height: 36px;
}

.hero-interno {
    margin-bottom: 38px;
}

.texto-centro{
    text-align: center;
}



.topbar{
  position: fixed;
  top: 0; left: 0; right:0;
  z-index: 1031;
  height: 36px;
  background: #1a1a2e;
  display: flex;
  align-items: center;
}

.topbar_container{
  width: min(94%, 1200px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: flex-end;
}

.topbar_item{
  text-decoration: none !important;
  font-size: 0.75rem;
  font-family: Arial,sans-serif;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.03em;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.logo {    
    height: 60px;
}

.navbar-brand {
    max-width: 200px;  
}

.logos-socios {
    display: flex;       
    align-items: center;
    gap: 1rem;
    width: 200px;
    justify-content: flex-end;
}

.logo_kss {
    max-height: 70px;
    width: auto;
    border-left: 1px solid black;
    padding-left: 1rem;
    padding-right: 2rem;
}

.logo_aveva{
    max-height: 70px;
    width: auto;
}

.navbar {
  margin-top: var(--topbar-height);
}

.navbar-container {
    
    width: 100%;
    max-width: 100%;
    margin-left: 10px;
    margin-right: 10px;    
}

.nav-link {
    font-size: 16px;
}

.hero {
    margin-top: 0px;
    height: 70vh;
    position: relative;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.overlay {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-content {
    width: 45%;
    background-color: rgba(0,0,0,0.5);
    color: white;
    padding: 5px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 40px;
    padding-bottom: 40px;
    padding-top: 40px;
}

.banner-soluciones {
    text-decoration: none;
    color: white;
    background-color: transparent;
    border: 2px solid white;
    padding: 10px;
    border-radius: 5px;
}

.footer{
    margin-left: 10px;
}

/* ══ Misión & Visión ══ */

.seccion-titulo{
  width: fit-content;
  margin: 0 auto;
  font-size: 2rem;  
  text-align: center;  
  padding-bottom: 0.5rem;
  display: block;
  margin-bottom: 1rem;

}

.mision-vision {
    background: #f8f9fa;
    padding-top: calc(var(--header-height) ); 
    padding-bottom: 3rem; 
}

.mv-container {
    display: flex;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.mv-card {
    flex: 1;
    background: #ffffff;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 10px 20px rgba(0,0,0,0.1);
    border-radius: 4px;    
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.1), 0 20px 40px rgba(0,0,0,0.12);
}

.mv-card h2 {
    font-size: 0.8rem;
    font-family: Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1a1a2e;                  
    margin-bottom: 1.25rem;
    display: block;
    width: fit-content;
    border-bottom: 3px solid #00a878;
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

.mv-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
}

/* ══ Valores ══ */

.valores {
    background: #f4f7f6;       
    padding: 1rem 2rem 1rem;
}

.vl-container {
    flex-wrap: wrap;            
}

.valores .mv-card {
    flex: 1 1 calc(50% - 1rem); 
    background: #ffffff;        
}

.valores .mv-card h2 {
     
    border-bottom: none;           
}

.valores .mv-card p {
    color: #444;
}

.contacto {
    background: #f8f9fa;
    padding-top: calc(var(--header-height) );
    padding-bottom: 3rem;
}

.contacto-container {
    display: flex;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: stretch;    
}

.contacto-info {
    display: flex;
    flex-direction: column;
    min-height: 650px;
    flex: 1;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07),
                0 10px 20px rgba(0,0,0,0.1);
}

.contacto-info p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1rem;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    min-height: 650px;
    flex: 2;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07),
                0 10px 20px rgba(0,0,0,0.1);
}


.contacto-form form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contacto-form label {
    font-size: 0.78rem;
    font-family: Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a1a2e;
    margin-top: 0.75rem;
}

.contacto-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 4px;
    font-size: 0.95rem;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
    outline: none;
}

.contacto-form input:focus {
    border-color: #00a878;
    box-shadow: 0 0 0 3px rgba(0,168,120,0.12);
    background: #ffffff;
}

.contacto-form button {
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: #1a1a2e;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease,
                transform 0.2s ease;
    width: fit-content;
}

.contacto-form button:hover {
    background: #00a878;
    transform: translateY(-2px);
}

.mensaje-form {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

.mensaje-exito {
    background: rgba(0, 168, 120, 0.1);
    border: 1px solid #00a878;
    color: #00a878;
}

.mensaje-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #dc3545;
}

.popup-overlay {
    display: none !important;
    position: fixed !important;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.popup-overlay.activo {
    display: flex !important;
}

.popup-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.popup-box p {
    font-size: 1rem;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.popup-box button {
    padding: 0.6rem 2rem;
    background: #1a1a2e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.popup-box button:hover {
    background: #00a878;
}


/* =========================
   HERO INTERNO
========================= */

.hero-interno{
    background: #1a1a2e;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero-interno h1{
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-interno p{
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.9;
}

/* =========================
   INTRO
========================= */

.socios-intro{
    padding: 4rem 2rem;
    background: #f8f9fa;
    text-align: center;
}

.socios-intro h2{
    margin-bottom: 1rem;
}

.socios-intro p{
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: #555;
}

/* =========================
   SOCIOS
========================= */

.socio-card{
    padding: 4rem 2rem;
    background: white;
}

.socio-card:nth-child(even){
    background: #f8f9fa;
}

.socio-content{
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.socio-logo{
    flex: 0 0 300px;
    text-align: center;
}

.socio-logo img{
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.socio-info{
    flex: 1;
}

.partner-badge{
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(0,168,120,0.12);
    color: #00a878;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1rem;
}

.socio-info h2{
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.socio-info p{
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.socio-info ul{
    padding-left: 1.2rem;
}

.socio-info li{
    margin-bottom: .6rem;
    color: #444;
}

/* =========================
   BENEFICIOS
========================= */

.beneficios{
    padding: 5rem 2rem;
    background: #f4f7f6;
}

.beneficios-grid{
    max-width: 1100px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1.5rem;
}

.beneficio-card{
    background: white;
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,.06);
    transition: .2s ease;
}

.beneficio-card:hover{
    transform: translateY(-4px);
}

.beneficio-card h3{
    color: #1a1a2e;
    margin-bottom: .75rem;
}

.beneficio-card p{
    color: #555;
    line-height: 1.6;
}

/* =========================
   CTA
========================= */

.socios-cta{
    background: #1a1a2e;
    color: white;
    text-align: center;
    padding: 5rem 2rem;
}

.socios-cta h2{
    margin-bottom: 1rem;
}

.socios-cta p{
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px){

    .socio-content{
        flex-direction: column;
        text-align: center;
    }

    .socio-logo{
        flex: unset;
    }

    .beneficios-grid{
        grid-template-columns: repeat(2,1fr);
    }

    .hero-interno h1{
        font-size: 2.3rem;
    }
}

@media (max-width: 768px){

    .beneficios-grid{
        grid-template-columns: 1fr;
    }

    .hero-interno{
        padding: 4rem 1.5rem;
    }

    .hero-interno h1{
        font-size: 2rem;
    }

    .socio-card{
        padding: 3rem 1.5rem;
    }
}

.marca-registrada{
    padding-top: 4rem;
    text-align:center;
}


.socio-info{
    text-align: justify;
}

.socio-logo {
    position: relative;
    width: 280px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trademark {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
}

.socio-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.socio-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: center;
}


.logos-slider{
    overflow:hidden;
    width:100%;
}

.logos-track{
    display:flex;
    gap:80px;
    width:max-content;
    animation:scroll 30s linear infinite;
}

.logos-track img{
    height:70px;
}

@keyframes scroll{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-50%);
    }
}