/* Estilos específicos para aboutme.html */

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding-top: 80px;
}

html {
    scroll-behavior: smooth;
}

main {
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.nav {
    background-color: black;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav__container {
    width: min(90%, 1200px);
    margin: 0 auto;
    align-items: center;
    display: flex;
    align-content: center;
    justify-content: space-between;
    height: 80px;
    --icon-toggle-menu: url("./assets/menu.svg");
    --transform-menu-show: translate(-100%);
}

.nav__container:has(.nav__input:checked) {
    --icon-toggle-menu: url("./assets/close.svg");
    --transform-menu-show: translate(0);
}

.nav__figure {
    z-index: 10;
}

.nav__figure img {
    height: 50px;
}

.nav__toggle {
    width: 40px;
    height: 40px;
    background-image: var(--icon-toggle-menu);
    filter: invert(1); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: background-image .5s;
    cursor: pointer;
    z-index: 10;
    border: none;
    background-color: transparent;
}

.nav__list {
    transform: var(--transform-menu-show);
    list-style: none;
    background-color: black;
    position: fixed;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 2.5rem;
    text-align: center;
    transition: .5s transform;
    margin: 0;
    padding: 0;
    z-index: 9;
}

.nav__input {
    height: 40px;
    width: 40px;
    display: none;
}

.nav__link {
    color: aliceblue;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav__link:hover {
    color: #1a4d7a;
}

/* Desktop Navigation */
@media (width > 756px) {
    .nav__toggle {
        display: none;
    }
    
    .nav__list {
        position: static;
        transform: translate(0);
        background-color: transparent;
        display: flex;
        gap: 2rem;
        align-items: center;
        justify-content: flex-end;
    }
    
    .nav__link {
        color: #4A90E2;
        font-size: 1rem;
        transition: color 0.3s;
    }
    
    .nav__link:hover {
        color: #357ABD;
    }
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 3rem 20px 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 0.8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.section-title {
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: #4A90E2;
    font-weight: 700;
}

.btn {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: #4A90E2;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    background-color: #357ABD;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* About Main Content */
.about-main-content {
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 20px;
    min-height: 100vh;
}

/* GRID: Foto a la IZQUIERDA, Texto a la DERECHA */
.about-layout {
    max-width: 1600px;
    margin: 0 auto 4rem;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3rem;
    align-items: start;
    padding: 0 2rem;
}

/* Invertir orden para la primera sección (foto izquierda, texto derecha) */
.about-layout:first-of-type {
    grid-template-columns: 420px 1fr;
}

.about-text-content {
    color: #fff;
    width: 100%;
    position: relative;
}

.about-main-title {
    color: #fff;
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.about-text {
    font-size: clamp(1rem, 3.5vw, 1.1rem);
    line-height: 1.8;
    color: #ddd;
    width: 100%;
    position: relative;
}

.about-text p {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .about-layout {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 2rem;
    }
    .about-text-content { text-align: left; }
}

/* Estilos para el contenido de texto inferior (segunda sección) */
.bottom-text-content {
    color: #ddd;
    font-size: 1.1rem;
    line-height: 1.8;
}

.bottom-text-content p {
    margin-bottom: 1.5rem;
}

.bottom-text-content p:last-child {
    margin-bottom: 0;
}

/* Contenedor de la imagen de justicia */
.justice-image-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    position: sticky;
    top: 100px;
}

/* Imagen de justicia */
.justice-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(74, 144, 226, 0.3);
    object-fit: contain;
    object-position: center;
    background-color: rgba(26, 26, 26, 0.3);
}

/* Contenedor de la foto grande de Juan Pablo - ahora a la izquierda */
.about-image-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    position: sticky;
    top: 100px;
}

/* Foto grande de Juan Pablo */
.about-photo {
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(74, 144, 226, 0.3);
    background-color: rgba(26, 26, 26, 0.3);
}

/* GRID para Patricia: Texto a la izquierda, Foto a la derecha */
.team-layout-main {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 4rem;
    align-items: start;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.team-text-content {
    color: #fff;
    width: 100%;
}

.team-text-content h3 {
    color: #4A90E2;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.team-text-content h4 {
    color: #999;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.team-text-content p {
    color: #ddd;
    line-height: 1.8;
    font-size: 1.1rem;
}

.team-images-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

/* Foto de Patricia - mismo tamaño que la de Juan Pablo */
.team-photo-small {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(74, 144, 226, 0.3);
    background-color: rgba(26, 26, 26, 0.3);
}

.team-image-placeholder-small {
    width: 100%;
    max-width: 400px;
    height: 500px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(74, 144, 226, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .about-layout {
        grid-template-columns: 350px 1fr;
        gap: 3rem;
    }
    
    .team-layout-main {
        grid-template-columns: 1fr 350px;
        gap: 3rem;
    }
    
    .about-photo {
        max-width: 350px;
    }
    
    .team-photo-small {
        max-width: 350px;
    }
    
    .justice-image {
        width: 240px;
    }
}

@media (max-width: 968px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-image-container {
        position: static;
        justify-content: center;
        order: -1;
    }
    
    .about-photo {
        max-width: 400px;
    }
    
    .bottom-section {
        flex-direction: column;
        gap: 2rem;
    }
    
    .justice-image {
        width: 100%;
        max-width: 320px;
    }
    
    .justice-image-container {
        display: flex;
        justify-content: center;
    }
    
    .team-layout-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-photo,
    .team-photo-small {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .about-layout,
    .about-layout:first-of-type,
    .team-layout-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-container,
    .justice-image-container {
        position: relative;
        top: 0;
        order: -1;
    }

    .about-image-container,
    .justice-image-container,
    .team-images-container {
        justify-content: center;
    }

    .about-photo,
    .justice-image,
    .team-photo-small {
        max-width: 400px;
    }

    .about-main-title {
        font-size: 2rem;
    }
    
    .bottom-text-content {
        padding: 0 1rem;
    }
}
}

@media (max-width: 480px) {
    .about-main-content {
        padding: 60px 20px;
    }

    .about-main-title {
        font-size: 1.8rem;
    }

    .about-photo,
    .team-photo-small {
        max-width: 100%;
    }
    
    .about-text {
        font-size: 1rem;
    }
}