
/* Estilos Generales*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    flex: 1;
}

html, body {
    height: 100%;
}
    
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #111;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/*  Header  */

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #181818;
    box-shadow:  0 2px 8px rgba(0,0,0,0.3);
}

.nav-header a {
    text-decoration: none;
    color: inherit;
}

.nav-header .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.nav-header .logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
    border-radius: 6px;
}

.nav-header .logo h2 {
    position: relative;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
}

.nav-header .logo h2::after {
    content: "";
    position: absolute;
    left: 10px;
    bottom: -4px;
    width: 0%;
    height: 3px;
    background-color: #6BBEF2;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-header .logo h2:hover::after {
    width: calc(100px + 5px);
}

.nav-header .menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    transition: opacity 0.3 ease;
    opacity: 0.7;
}

.nav-header .menu-toggle:active {
    transform: scale(0.85);
    box-shadow: 0 0 8px rgba(107, 190, 242, 0.5);
}

@media (max-width: 768px) {
    .nav-header .menu-toggle{
        display: block;
    }
}

.nav-header nav {
    display: flex;
}

@media (max-width: 768px) {
    .nav-header nav {
        display: none;
        flex-direction: column;
        align-items: flex-start; /* o center si querés centrar el texto */
        position: absolute;
        top: 80px;
        right: 2px; /* pegado al borde derecho */
        background: rgba(20, 20, 20, 0.95);
        backdrop-filter: blur(6px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        padding: 20px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
        z-index: 1000;
        transform: translateY(-15px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-header nav.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .nav-header nav a {
        margin: 12px 0;
        color: #fff;
        font-size: 1.1rem;
        text-align: left;
        transition: color 0.3s, transform 0.2s;
    }

    .nav-header nav a:hover {
        color: #6BBEF2;
        transform: scale(1.05);
    }
}

.nav-header nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
}

.nav-header nav a:hover {
    color: #6BBEF2;
}

/*  Main  */

/*  slider  */

.slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.slider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 5;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: fade 16s infinite;
}

.slide:nth-child(1) {animation-delay: 0s;}
.slide:nth-child(2) {animation-delay: 4s;}
.slide:nth-child(3) {animation-delay: 8s;}
.slide:nth-child(4) {animation-delay: 12s;}

@keyframes fade {
    0%   { opacity: 0;}
    5%   { opacity: 1;}
    25%  { opacity: 1;}
    30%  { opacity: 0;}
    100% { opacity: 0;}
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*  slider-content  */

.slider-content { 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%);
    text-align: center;
    color: #fff;
    z-index: 10;
    width: 80%;
}

.slider-content h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.slider-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #ddd;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.btn-slider {
    display: inline-block;
    padding: 10px 25px;
    background-color: #0D2C40;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-slider:hover {
    background-color: #1a5277;
    transform: scale(1.05);
}

/*  soluciones  */

.soluciones header {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.soluciones header h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 45px;
    margin-bottom: 50px;
}

.soluciones header h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.soluciones header p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.2;
    margin-bottom: 40px;
}

.soluciones .list-article {
    max-width: 1200px;
    margin: auto;
    margin-top: 20px;
    display: flex;
    gap: 30px;
    padding: 0 20px;
    flex-wrap: nowrap;
}

.soluciones .list-article p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.2;
    margin-top: 5px;
}

.soluciones .list-article article {
    background-color: #1a1a1a;
    border: 1px solid #7a7a7a;
    border-radius: 10px;
    padding: 20px;
    flex: 1;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.soluciones .list-article article:hover {
    background-color: #222;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/*parte del codigo para que en celulares se vea uno debajo del otro*/
@media (max-width: 768px) {
    .soluciones .list-article {
        flex-wrap: wrap;
        gap: 20px;
    }
    .soluciones .list-article article {
        flex: 1 1 100%;
    }
}

/*  contactanos  */

.contactanos {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contactanos h2 {
    margin-bottom: 10px;
}

.contactanos p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.2;
    margin-bottom: 30px;
}

.contactanos a {
    display: inline-block;
    padding: 10px 25px;
    margin-bottom: 40px;
    background-color: #0D2C40;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contactanos a:hover {
    background-color: #1a5277;
    transform: scale(1.05);
}

/*  Footer  */

footer {
    text-align: right;
    padding: 20px;
    margin-top: 50px;
    background: #181818;
    color: #aaa;
    font-size: 14px;
}
