
/* 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; 
        position: absolute;
        top: 80px;
        right: 2px; 
        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  */

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

.nosotros h2 {
    margin-top: 42px;
    margin-bottom: 10px;
}

.nosotros p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.2;
    margin-top: 4px;
    margin-bottom: 27px;
    padding: 10px 16px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: color 0.35s ease, background 0.35s ease, border-left-color 0.35s ease;
    border-left: 2px solid transparent;
}

.nosotros p::before {
    content: '';
    position: absolute;
    top: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(107, 190, 242, 0.07) 40%,
        rgba(107, 190, 242, 0.18) 50%,
        rgba(107, 190, 242, 0.07) 60%,
        transparent 100%
    );
    transform: skewX(-12deg);
    pointer-events: none;
}

/* escalera: posición en reposo del shimmer por párrafo */
.nosotros p:nth-of-type(1)::before { left: -18%; }
.nosotros p:nth-of-type(2)::before { left:  2%; }
.nosotros p:nth-of-type(3)::before { left:  30%; }
.nosotros p:nth-of-type(4)::before { left:  60%; }

.nosotros p.from-top {
    color: #e0e0e0;
    background: rgba(107, 190, 242, 0.04);
    border-left-color: rgba(107, 190, 242, 0.35);
}
.nosotros p.from-top::before {
    animation: shimmer-from-top 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.nosotros p:nth-of-type(1).from-top::before { animation-name: shimmer-top-1; }
.nosotros p:nth-of-type(2).from-top::before { animation-name: shimmer-top-2; }
.nosotros p:nth-of-type(3).from-top::before { animation-name: shimmer-top-3; }
.nosotros p:nth-of-type(4).from-top::before { animation-name: shimmer-top-4; }

.nosotros p.from-bottom {
    color: #e0e0e0;
    background: rgba(107, 190, 242, 0.04);
    border-left-color: rgba(107, 190, 242, 0.35);
}
.nosotros p.from-bottom::before {
    animation: shimmer-from-bottom 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.nosotros p.leaving {
    color: #ccc;
    background: transparent;
    border-left-color: transparent;
    transition: color 0.5s ease, background 0.5s ease, border-left-color 0.5s ease;
}
.nosotros p.leaving::before {
    animation: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

@keyframes shimmer-top-1 {
    0%   { left: -60%; top: -30%; opacity: 0; }
    15%  { opacity: 1; }
    100% { left: 115%; top: 0%; opacity: 0.6; }
}
@keyframes shimmer-top-2 {
    0%   { left: -35%; top: -30%; opacity: 0; }
    15%  { opacity: 1; }
    100% { left: 115%; top: 0%; opacity: 0.6; }
}
@keyframes shimmer-top-3 {
    0%   { left: -10%; top: -30%; opacity: 0; }
    15%  { opacity: 1; }
    100% { left: 115%; top: 0%; opacity: 0.6; }
}
@keyframes shimmer-top-4 {
    0%   { left: 15%; top: -30%; opacity: 0; }
    15%  { opacity: 1; }
    100% { left: 115%; top: 0%; opacity: 0.6; }
}

@keyframes shimmer-from-bottom {
    0%   { right: -60%; left: auto; top: 30%; opacity: 0; }
    15%  { opacity: 1; }
    100% { right: 115%; left: auto; top: 0%; opacity: 0.6; }
}

/*  Footer  */

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