/* =====================================================
   VARIABLES DE COLOR Y FUENTES
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&family=Montserrat:wght@400;600;700&display=swap');

:root {
    --naranja: #FF5000;
    --azul: #001489;
    --blanco: #ffffff;
    --gris-fondo: #f8f9fa;
    --gris-texto: #666;
    --sombra: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transicion: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =====================================================
   HEADER Y NAVEGACIÓN
   ===================================================== */
header {
    background: var(--blanco);
    border-bottom: 3px solid var(--naranja);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 800;
    z-index: 1001;
    transition: var(--transicion);
}

.logo.menu-active .blue-text {
    color: var(--blanco);
}

.logo-icon {
    height: 65px;
    width: auto;
}

.orange-text {
    color: var(--naranja);
}

.blue-text {
    color: var(--azul);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--azul);
    transition: var(--transicion);
    border-radius: 2px;
}

.menu-toggle.active span {
    background: var(--blanco);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--azul);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transicion);
}

.nav-menu a:hover {
    color: var(--naranja);
}

.btn-main {
    background: var(--azul);
    color: white !important;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transicion);
    white-space: nowrap;
}

.btn-main:hover {
    background: var(--naranja);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 20, 137, 0.3);
}

/* =====================================================
   SECCIÓN DE BIOGRAFÍA
   ===================================================== */
.bio-hero {
    padding: 80px 40px;
    background: linear-gradient(135deg, #ffffff 50%, #f0f4f8 100%);
    min-height: 100vh;
}

.bio-container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-section {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.profile-image-container {
    width: 300px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 5px solid var(--naranja);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-content h1 {
    font-size: 3.5rem;
    color: var(--azul);
    text-align: center;
    margin-bottom: 15px;
    font-weight: 800;
}

.bio-subtitle {
    font-size: 1.4rem;
    color: var(--gris-texto);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 400;
}

.bio-section {
    background: white;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: var(--sombra);
}

.bio-section h2 {
    color: var(--naranja);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--naranja);
    display: inline-block;
    padding-bottom: 10px;
}

.bio-section p {
    color: var(--azul);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.bio-section p:last-child {
    margin-bottom: 0;
}

.quote {
    font-style: italic;
    background: linear-gradient(135deg, #e8f0ff 0%, #f0f4f8 100%);
    padding: 25px 30px;
    border-left: 5px solid var(--naranja);
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--azul);
    margin: 30px 0;
}

.quote-author {
    text-align: right;
    font-weight: 700;
    color: var(--naranja);
    font-style: normal;
    margin-top: -10px;
}

/* =====================================================
   GALERÍA DE FOTOS - CARRUSEL
   ===================================================== */
.gallery-section {
    padding: 80px 20px;
    background: var(--blanco);
    text-align: center;
}

.gallery-section h2 {
    color: var(--azul);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 50px;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 30px;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--sombra);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: var(--transicion);
}

.carousel-slide img:hover {
    opacity: 0.9;
}

.slide-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 20, 137, 0.95), transparent);
    color: white;
    padding: 30px 20px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transicion);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: var(--naranja);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-btn i {
    font-size: 1.2rem;
    color: var(--azul);
}

.carousel-btn:hover i {
    color: white;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: var(--transicion);
}

.indicator.active {
    background: var(--naranja);
    transform: scale(1.3);
}

.indicator:hover {
    background: var(--azul);
}

/* =====================================================
   LIGHTBOX MODAL
   ===================================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--naranja);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transicion);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    box-shadow: 0 5px 15px rgba(255, 80, 0, 0.4);
}

.lightbox-close:hover {
    background: var(--azul);
    transform: rotate(90deg) scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--azul);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transicion);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--naranja);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-description {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    color: var(--azul);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    max-width: 80%;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
    background: var(--azul);
    color: white;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.footer-slogan {
    font-style: italic;
    color: #ddd;
    font-size: 1.1rem;
}

.footer-col h4 {
    border-bottom: 3px solid var(--naranja);
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transicion);
}

.footer-col a:hover {
    color: var(--naranja);
    padding-left: 5px;
}

.footer-col p {
    color: #ddd;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col i {
    color: var(--naranja);
    font-size: 1.1rem;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* =====================================================
   WHATSAPP FLOTANTE
   ===================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transicion);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #1faa52;
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.8);
    }
}

/* =====================================================
   RESPONSIVE - TABLET
   ===================================================== */
@media (max-width: 968px) {
    .bio-hero {
        padding: 60px 30px;
    }

    .bio-content h1 {
        font-size: 3rem;
    }

    .profile-image-container {
        width: 250px;
        height: 250px;
    }

    .bio-section {
        padding: 30px;
    }

    .bio-section h2 {
        font-size: 1.8rem;
    }

    .carousel-slide img {
        height: 400px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   RESPONSIVE - MÓVIL
   ===================================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--azul);
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 30px 30px;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-bottom: 30px;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a {
        color: white;
        display: block;
        padding: 18px;
        font-size: 1.1rem;
    }

    .nav-menu a:hover {
        background: rgba(255, 80, 0, 0.2);
        color: white;
    }

    .btn-main {
        width: 100%;
        text-align: center;
        padding: 15px;
        background: var(--naranja);
        color: white !important;
    }

    .btn-main:hover {
        background: var(--naranja);
        color: white !important;
    }

    body.menu-open {
        overflow: visible;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        pointer-events: all;
    }

    .bio-hero {
        padding: 40px 20px;
    }

    .bio-content h1 {
        font-size: 2.5rem;
    }

    .bio-subtitle {
        font-size: 1.1rem;
    }

    .profile-image-container {
        width: 200px;
        height: 200px;
    }

    .bio-section {
        padding: 25px 20px;
    }

    .bio-section h2 {
        font-size: 1.5rem;
    }

    .bio-section p {
        font-size: 1.1rem;
        text-align: left;
    }

    .quote {
        padding: 20px;
        font-size: 1.05rem;
    }

    .gallery-section {
        padding: 50px 15px;
    }

    .gallery-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .carousel-slide img {
        height: 300px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .carousel-btn i {
        font-size: 1rem;
    }

    .slide-description {
        font-size: 0.95rem;
        padding: 20px 15px 15px;
    }

    .lightbox-close {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
        font-size: 1.3rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-description {
        font-size: 0.95rem;
        padding: 12px 20px;
        max-width: 90%;
    }

    footer {
        padding: 40px 15px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        font-size: 1.8rem;
    }

    .footer-col h4 {
        font-size: 1.1rem;
    }

    .footer-col p {
        justify-content: center;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 1.8rem;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }

    .logo-icon {
        height: 50px;
    }

    .bio-content h1 {
        font-size: 2rem;
    }

    .bio-subtitle {
        font-size: 1rem;
    }

    .profile-image-container {
        width: 180px;
        height: 180px;
    }

    .bio-section h2 {
        font-size: 1.3rem;
    }

    .gallery-section h2 {
        font-size: 1.7rem;
    }

    .carousel-slide img {
        height: 250px;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-description {
        font-size: 0.85rem;
        padding: 10px 15px;
        max-width: 90%;
    }
}
