


/* Responsive */
@media (max-width: 1024px) {


h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.justify {
    text-align: justify;
    text-indent: 30px;
}

.container {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 10px;
    overflow-x: hidden; /* Ensure container doesn't overflow */
}

.btn {
    display: inline;
    padding: 4px 10px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.7rem;
}

.btn:hover {
    background-color: var(--white);
    color: #003087;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: #003087;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    color: var(--primary);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

section {
    padding: 3rem 0;
    overflow-x: hidden; /* Prevent section overflow */
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #012d7d;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 8px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    max-width: 100%; /* Prevent overflow */
    overflow-x: hidden;
}

.logo img {
    margin-top: 4px;
    height: 12vw;
    max-height: 50px;
    width: auto; /* Ensure logo doesn't stretch */
}

.nav-menu {
    display: none;
}

.nav-menu.active {
    display: flex;
    position: fixed;
    top: 60px;
    right: 0;
    background-color: var(--white);
    width: 100%;
    max-width: 100vw; /* Cap width to viewport */
    height: calc(100vh - 60px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    overflow-x: hidden; /* Prevent nav overflow */
}

.nav-menu li {
    margin: 20px 0;
}

.nav-menu a {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text);
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover:after {
    width: 100%;
}

.hamburger {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--white);
}

/* Hero Section con Slideshow */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-1 {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../imgs/slides/araucaria.jpg') no-repeat center center/cover;
}

.slide-2 {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../imgs/slides/nevado.jpg') no-repeat center center/cover;
}

.slide-3 {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../imgs/slides/plaza.jpg') no-repeat center center/cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    max-width: 100%; /* Prevent content overflow */
}

.hero-text {
    max-width: 90%; /* Reduced to ensure no overflow */
    margin: 0 auto;
    animation: fadeInUp 1s ease;
    overflow-wrap: break-word; /* Break long words */
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    text-shadow: #000 2px 1px 3px;
    word-break: break-word; /* Prevent text overflow */
}

.hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-shadow: #000 2px 2px 1px;
    word-break: break-word;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 1.5rem;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--white);
    transform: scale(1.2);
}

.slogan {
    font-size: 1.1rem;
}

.vida, .libertad, .propiedad {
    display: inline;
    font-size: .7em;
    margin: 0 4px;
    padding: 2px 5px;
    border-radius: 3px;
    color: var(--text);
}

.vida { background-color: #ffc446; }
.libertad { background-color: #4276e4; }
.propiedad { background-color: #cc2e2e; }
.separador_b { display: inline-block; font-size: 1.2rem; margin: 0 8px; display :none;}

.kastMartinez, .felipemartinez {
  /*  display: none;  Hide on mobile to prevent overflow */
}

/* Banderas Section */
.banderas {
    background-color: var(--light);
}

.banderas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.bandera-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
    max-width: 100%; /* Prevent card overflow */
}

.bandera-card:hover {
    transform: translateY(-5px);
}

.bandera-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Propuestas Section */
.propuestas-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    gap: 8px;
}

.propuesta-tab {
    padding: 10px 20px;
    background-color: var(--light);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    max-width: 90%; /* Prevent tab overflow */
}

.propuesta-tab.active {
    background-color: var(--primary);
    color: var(--white);
}

.propuestas-content {
    margin-top: 20px;
}

.propuesta-category {
    display: none;
}

.propuesta-category.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.propuesta-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    max-width: 100%; /* Prevent item overflow */
}

/* Distritos Section */
.distritos {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://live.staticflickr.com/704/22576361126_e4e0f96493_k.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
}

.distritos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
}

.distrito-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    max-width: 100%; /* Prevent item overflow */
}

/* Eventos Section */
.events-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.event-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 100%; /* Prevent card overflow */
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-image {
    height: 150px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-info {
    padding: 15px;
}

.event-date {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Contacto Section */
.contact {
    background-color: var(--light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: #122b4e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    border: 3px solid #ffffff;
    outline: 3px solid #a31d1e;
}

.contact-form {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    max-width: 100%; /* Prevent form overflow */
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 30px 0 15px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 10px;
    width: auto; /* Prevent logo stretch */
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h3, .footer-newsletter h3 {
    margin-bottom: 15px;
    position: relative;
    font-size: 1.1rem;
}

.footer-links h3:after, .footer-newsletter h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

.newsletter-form {
    display: flex;
    margin-top: 15px;
    max-width: 100%; /* Prevent form overflow */
}

.newsletter-input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
}

.newsletter-btn {
    padding: 0 12px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toggle Content */
.toggle-content .text {
    max-height: 80px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.toggle-content[data-expanded="true"] .text {
    max-height: 800px;
}

.toggle-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 6px;
    font-size: 0.85rem;
}
}