/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #046bd2;
    --secondary-color: #045cb4;
    --dark-color: #1e293b;
    --text-color: #334155;
    --white: #ffffff;
    --light-bg: #F0F5FA;
    --border-color: #D1D5DB;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.65;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-full {
    width: 100%;
    max-width: 100%;
}

/* Header Sticky */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 0.8rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.menu-desktop {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

/* Ocultar menu desktop en móvil - regla base */
@media (max-width: 968px) {
    .menu-desktop {
        display: none !important;
    }
}

.menu-desktop li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    /*padding: 0.5rem 0;*/
}

.menu-desktop li a:hover,
.menu-desktop li a.active {
    color: var(--secondary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 1rem 0;
}

.mobile-menu ul li {
    padding: 0;
}

.mobile-menu ul li a {
    display: block;
    padding: 1rem 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu ul li a:hover {
    background: var(--light-bg);
    color: var(--secondary-color);
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 1.5rem 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn-login-mobile {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    max-width: 250px;
}

.btn-login-mobile:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 107, 210, 0.3);
}

.mobile-social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.mobile-social-icon {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-social-icon:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* Button Login Desktop */
.btn-login {
    display: inline-block;
    padding: 0.6rem 2.5rem;
    background: var(--primary-color);
    color: var(--white) !important;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 107, 210, 0.3);
}

/* Social Media Bar */
.social-bar {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    background: var(--white);
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
}

.hero-content {
    text-align: center;
    color: var(--dark-color);
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo img {
    max-width: 300px;
    height: auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero-divider {
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    margin: 1.5rem auto;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-color);
}

.hero-image {
    animation: fadeInRight 1s ease-out 0.3s;
    animation-fill-mode: both;
    max-width: 600px;
    margin: 0 auto;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 15px;
}

/* Carousel Section */
.carousel-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.carousel-swiper {
    width: 100%;
    max-width: 1400px;
    height: 600px;
    margin: 0 auto;
    border-radius: 0;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}

.swiper-slide img,
.swiper-slide picture {
    width: 100%;
    height: 100%;
}

.swiper-slide picture img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 600px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 600px;
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--primary-color);
    background: transparent;
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--border-color);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Mission Section */
.mission-section {
    padding: 100px 0;
    background: var(--white);
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.mission-image img,
.vision-image img {
    width: 100%;
    height: auto;
    max-width: 600px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.mission-text h2,
.vision-text h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.mission-text p,
.vision-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Vision Section */
.vision-section {
    padding: 100px 0;
    background: var(--white);
}

.vision-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.vision-text {
    order: 1;
}

.vision-image {
    order: 2;
}

/* Strategic Section */
.strategic-section {
    padding: 100px 0;
    background: var(--white);
    text-align: center;
}

.strategic-header {
    max-width: 800px;
    margin: 0 auto;
}

.strategic-header h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.strategic-header p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-text {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1400px) {
    .hero .container,
    .mission-content,
    .vision-content {
        max-width: 1200px;
    }

    .carousel-swiper {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .hero .container,
    .mission-content,
    .vision-content {
        max-width: 100%;
        padding: 0 40px;
    }

    .carousel-swiper {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .mission-text h2,
    .vision-text h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 968px) {
    /* Ocultar menú desktop completamente */
    .menu-desktop {
        display: none !important;
    }

    /* Mostrar toggle de hamburguesa */
    .menu-toggle {
        display: flex !important;
    }

    /* Permitir que el menú móvil se muestre */
    .mobile-menu {
        display: none;
    }

    .mobile-menu.active {
        display: block !important;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-logo img {
        max-width: 250px;
    }

    .hero-image {
        max-width: 100%;
    }

    .mission-content,
    .vision-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .vision-text,
    .vision-image {
        order: 0;
    }

    .mission-image img,
    .vision-image img {
        max-width: 100%;
    }

    .carousel-swiper {
        height: 450px;
    }

    .swiper-slide img {
        max-height: 450px;
    }

    .social-bar {
        right: 20px;
        gap: 10px;
    }

    .social-icon {
        width: 35px;
        height: 35px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 16px;
    }

    .mission-text h2,
    .vision-text h2 {
        font-size: 2rem;
    }

    .strategic-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 50px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-logo img {
        max-width: 200px;
    }

    .mission-section,
    .vision-section,
    .strategic-section {
        padding: 70px 0;
    }

    .carousel-section {
        padding: 50px 0;
    }

    .carousel-swiper {
        height: 350px;
    }

    .swiper-slide img {
        max-height: 350px;
    }

    .mission-text h2,
    .vision-text h2 {
        font-size: 1.8rem;
    }

    .mission-text p,
    .vision-text p {
        font-size: 1.1rem;
    }

    .strategic-header h2 {
        font-size: 1.8rem;
    }

    .strategic-header p {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-logo img {
        max-width: 180px;
    }

    .mission-text h2,
    .vision-text h2 {
        font-size: 1.6rem;
    }

    .mission-text p,
    .vision-text p {
        font-size: 1rem;
    }

    .strategic-header h2 {
        font-size: 1.6rem;
    }

    .strategic-header p {
        font-size: 1rem;
    }

    .carousel-swiper {
        height: 300px;
    }

    .swiper-slide img {
        max-height: 300px;
    }

    .carousel-section {
        padding: 40px 0;
    }

    .mission-section,
    .vision-section,
    .strategic-section {
        padding: 60px 0;
    }

    .social-bar {
        display: none;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 35px;
        height: 35px;
    }

    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    .mission-content,
    .vision-content {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-logo img {
        max-width: 150px;
    }

    .mission-text h2,
    .vision-text h2 {
        font-size: 1.4rem;
    }

    .mission-text p,
    .vision-text p {
        font-size: 0.95rem;
    }

    .strategic-header h2 {
        font-size: 1.4rem;
    }

    .strategic-header p {
        font-size: 0.95rem;
    }

    .carousel-swiper {
        height: 250px;
    }

    .swiper-slide img {
        max-height: 250px;
    }

    .logo img {
        height: 40px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 30px;
        height: 30px;
    }

    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 12px;
    }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 997;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.scroll-top.show {
    display: flex;
}
