/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue1: #264f7b;
    --primary-blue: #00808C;
    --primary-yellow: #d0ad30;
    --dark-blue: #0f2c4a;
    --light-blue: #55b3ca;
    --gray: #9ea6ab;
    --light-gray: #f9f9fa;
    --white: #ffffff;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    background: var(--light-gray);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector {
    display: flex;
    gap: 10px;
}

.language-selector img {
    width: 24px;
    height: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.language-selector img:hover {
    transform: scale(1.1);
}

.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-yellow);
    color: var(--dark-blue);
}

.btn-primary:hover {
    background: #c09c1f;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 8px 20px;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.search-icon {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-blue);
}

/* Navigation */
.main-nav {
    background: var(--light-blue);
}

    /* justify-content: space-around; */
.nav-list {
    display: flex;
    list-style: none;
    justify-content: right;
    padding: 0;
    margin: 0;
    
}

.nav-list li a {
    display: block;
    padding: 15px 20px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    font-size: 16px;
    
}

.nav-list li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section overflow-x: scroll;scroll-snap-type: x mandatory;*/
.hero {
    position: relative;
    height: 500px;
    background-image: url('fondocorporativa.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    
    
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 44, 74, 0.85) 0%, rgba(38, 79, 123, 0.75) 100%);
}

.hero-contentABC {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

/* Cabecera de Lista */
.carousel-slides {
  display: flex;
  align-items: flex-start;
  gap: 20%;
  width:  1200px;
  overflow: visible;
  transform: translateX(calc((var(--index) * -23%) - (var(--index) * 100%)));
  transition: all 250ms ease-in-out;
}

/* Item de Lista*/
.hero-content {  
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 100%;
    padding: 0 20px;
    flex: 0 0 100%; /* Each slide takes full width */
}

.hero-content h1 {
    font-size: 60px;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    margin-left: 30px;
    line-height: 1.6;
}

/*Controles de Objeto transform: translateX(-50%);*/
.carousel-controls {
    position: absolute;
    bottom: 40px;
    left: 45%;
    display: flex;
    gap: 15px;
    z-index: 3;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid var(--white);
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.Previous {
  left: 100%;
}

.Next {
  right: 100%;
}

.carousel-btn:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* Find a Member */
.find-member {
    background: var(--light-gray);
    padding: 60px 0;
}

.search-box {
    text-align: center;
}

.search-box h2 {
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 30px;
    font-weight: 600;
}

.search-input-group {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    gap: 10px;
}

.search-input-group input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Work Sans', sans-serif;
}

.search-input-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Intro Text */
.intro-text {
    padding: 80px 0;
    background: var(--white);
}

.intro-text h2 {
    font-size: 36px;
    color: var(--primary-blue);
    text-align: center;
    line-height: 1.5;
    font-weight: 600;
}

/* Feature Cards */
.feature-cards {
    padding: 60px 0;
    background: var(--light-gray);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.card-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Tagline */
.tagline {
    background: var(--primary-blue);
    padding: 80px 0;
    text-align: center;
}

.tagline h2 {
    font-size: 48px;
    color: var(--white);
    font-weight: 300;
    letter-spacing: 2px;
}

/* Statistics */
.statistics {
    position: relative;
    padding: 100px 0;
    background-image: url('https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b?w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 44, 74, 0.9) 0%, rgba(38, 79, 123, 0.85) 100%);
}

.stats-grid {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-label {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-desc {
    font-size: 16px;
    font-weight: 400;
}

.stat-divider {
    width: 2px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
}

/* Video Section */
.video-section {
    padding: 80px 0;
    background: var(--white);
}

.video-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.video-player {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.video-player img {
    width: 100%;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-blue);
    transition: all 0.3s;
}

.play-button:hover {
    background: var(--primary-yellow);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-text h2 {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.video-text h3 {
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 500;
}

.video-text p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Articles */
.articles {
    padding: 80px 0;
    background: var(--light-gray);
}

.articles h2{
    text-align: center;
    font-size: 32px;
    color: var(--primary-blue);
    font-weight: 600;
    font: bold;
    letter-spacing: 2px;
}

/* .articles-container {
    background: var(--primary-blue);
    padding: 40px 0;
}  

.articles-container h2 {
    text-align: center;
    font-size: 32px;
    color: var(--white);
    font-weight: 300;
    letter-spacing: 2px;
} */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}


.article {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.article:hover {
    transform: translateY(-5px);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    font-size: 22px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.article-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* World Map */
.world-map {
    padding: 100px 0;
    background: var(--white);
    text-align: center;
}

.world-map h2 {
    font-size: 42px;
    color: var(--primary-blue);
    margin-bottom: 60px;
    font-weight: 600;
}

.map-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.map-container > img {
    width: 100%;
    height: auto;
    display: block;
}

.map-stats {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-stat {
    position: absolute;
    text-align: center;
}

.map-stat .stat-number {
    font-size: 36px;
    color: var(--primary-blue);
    font-weight: 700;
}

.map-stat .stat-label {
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 600;
}

.map-stat .stat-region {
    font-size: 12px;
    color: var(--gray);
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 120px 0;
    background-image: url('https://ext.same-assets.com/1538692854/2579414137.png');
    background-size: cover;
    background-position: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(38, 79, 123, 0.85) 0%, rgba(15, 44, 74, 0.9) 100%);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 48px;
    margin-bottom: 25px;
    font-weight: 300;
}

.cta-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Footer */
.footer {
    background: #b8b8b8;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
/*     justify-content: space-between; */
    align-items: center;
    margin-bottom: 40px;

    gap: 30px;
}

.footer-logo img {
    height: 50px;
}

.footer-partners {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-partners ul {
    font-size: 12px;
    margin-left: 20%;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-partners p {
    font-size: 10px;
    margin-left: 10%;
}

.footer-partners img {
    height: 40px;
    opacity: 0.8;
    transition: opacity 0.3s;
    
}

.footer-partners img:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer-links span {
    color: rgba(255, 255, 255, 0.5);
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-content {
        grid-template-columns: 1fr;
    }

    .stat-divider {
        display: none;
    }

    .hero-content h1 {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .header-right {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
    }

    .hero {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .intro-text h2 {
        font-size: 28px;
    }

    .tagline h2 {
        font-size: 32px;
    }

    .stat-number {
        font-size: 48px;
    }

    .cards-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .footer-content,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .map-stat .stat-number {
        font-size: 24px;
    }

    .map-stat .stat-label {
        font-size: 11px;
    }
}
