/* ===== ESTILOS GENERALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    padding-top: 70px; /* Espacio para el header fijo */
}

/* ===== HEADER ===== */
.header {
    background-color: #1a5f1a; /* Verde oscuro */
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ===== LOGO ===== */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 80px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.organization-name {
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0;
    color: white;
}

.organization-slogan {
    font-size: 0.85rem;
    font-style: italic;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== MENÚ HAMBURGUESA ===== */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    position: absolute;
    left: 5px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 10px;
}

.hamburger span:nth-child(2) {
    top: 18px;
}

.hamburger span:nth-child(3) {
    top: 26px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 18px;
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 18px;
}

/* ===== NAVBAR ===== */
.navbar {
    transition: all 0.3s ease;
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    position: relative;
    margin-left: 1.5rem;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.menu a:hover {
    background-color: #2e8b2e;
    border-radius: 4px;
}

.menu a i {
    margin-left: 5px;
    font-size: 0.8rem;
}

.active {
    background-color: #2e8b2e;
    border-radius: 4px;
    font-weight: bold;
}

/* ===== SUBMENÚ ===== */
.dropdown:hover .submenu {
    display: block;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2e8b2e;
    min-width: 200px;
    list-style: none;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    z-index: 1000;
}

.submenu li {
    margin: 0;
}

.submenu a {
    display: block;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #1a5f1a;
}

.submenu a:hover {
    background-color: #1a5f1a;
}

/* ===== SLIDER ===== */
.slider-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    padding-top: 0px;     /* Espacio interno superior */
    padding-bottom: 5px;  /* Espacio interno inferior */
    margin-top: 5px;      /* Espacio exterior superior */
    margin-bottom: 5px;   /* Espacio exterior inferior */
}

.slider {
    display: flex;
    width: 500%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 20%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text {
    position: absolute;
    bottom: 25%;
    left: 10%;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
	width: 500px; /* Ancho fijo */
	height: 150px;      /* Altura fija */
    max-width: 500px;
    border-radius: 4px;
}

.slide-text h3 {
    font-size: .8rem;
    margin-bottom: .5rem;
}

.slide.active {
    opacity: 1;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slider-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: .5rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* ===== CONTENIDO ===== */
.content {
    padding: 2rem .1rem .5rem .1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.two-columns {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.column {
    flex: 1;
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.column h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

/* ===== MAPA ===== */
.map-container {
    margin: 3rem 0;
}

.map-container h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.map-placeholder {
    height: 400px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ===== FOOTER ===== */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section {
    flex: 1;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #2ecc71;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.1rem;
}

.footer-menu a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding: 1rem;
    background-color: #1a252f;
    font-size: 0.9rem;
}

/*IMAGENE GALERIA*/
.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 2rem;
}

.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
	height: 200px;
object-fit: cover;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .organization-name {
        font-size: 1rem;
    }
    .organization-slogan {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .navbar {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 60px);
        background-color: #1a5f1a;
        padding: 20px;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    .navbar.active {
        right: 0;
    }
    
    .menu {
        flex-direction: column;
    }
    
    .menu li {
        margin: 0.5rem 0;
    }
    
    .dropdown:hover .submenu {
        display: none;
    }
    
    .dropdown.active .submenu {
        display: block;
        position: static;
        margin-top: 0.5rem;
        background-color: rgba(0, 0, 0, 0.1);
    }
    
    .two-columns {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        margin-bottom: 2rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .logo-img {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }
    
    .slide-text {
        left: 8%;
        bottom: 30%;
        padding: .5rem;
    }
    
    .slide-text h3 {
        font-size: 1rem;
    }
	.cargo {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
  }
}
@media (max-width: 600px) {
    .slide-text {
        width: 90%;
        left: 5%;
        font-size: 0.9rem;
        padding: 1rem;
    }
}
@media (max-width: 1024px) {
    .image-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .image-gallery {
        grid-template-columns: 1fr;
    }
}