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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .logo {
    max-width: 15%;
    max-height: 15%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Navigation */
nav {
    background-color: #2a5298;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav a:hover {
    background-color: rgba(255,255,255,0.1);
    opacity: 0.9;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%231e3c72" width="1200" height="400"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #1e3c72;
}

.bg-light {
    background-color: white;
}

.section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    text-align: left;
}

/* Mission Box */
.mission-box {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
    margin: 3rem auto;
    max-width: 900px;
    text-align: center;
}

.mission-box h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.mission-box p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: left;
}

.mission-highlight {
    font-size: 1.3rem !important;
    font-weight: 600;
    text-align: center !important;
    font-style: italic;
    margin-top: 1.5rem !important;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.info-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card p {
    color: #666;
    text-align: left;
    line-height: 1.6;
}

.info-card strong {
    color: #1e3c72;
    font-weight: 600;
}

/* Upload Section */
.upload-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.upload-section h3 {
    margin-bottom: 1.5rem;
    color: #1e3c72;
    text-align: center;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upload-form input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #2a5298;
    border-radius: 5px;
    background-color: #f8f9fa;
    cursor: pointer;
}

.upload-form button {
    background-color: #2a5298;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upload-form button:hover {
    background-color: #1e3c72;
}

.message {
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Carousel */
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 2rem auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.carousel {
    position: relative;
    width: 100%;
    height: 500px;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.5s;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(30, 60, 114, 0.8);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: rgba(30, 60, 114, 1);
}

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

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

.carousel-dots {
    text-align: center;
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.9);
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}

.dot:hover,
.dot.active {
    background-color: #1e3c72;
}

.no-images {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-style: italic;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.instagram-note {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    color: #666;
    font-size: 0.95rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.instagram-note a {
    color: #E4405F;
    text-decoration: none;
}

.instagram-note a:hover {
    text-decoration: underline;
}

/* Contact Info */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 2rem auto;
}

.contact-info p {
    margin-bottom: 1rem;
    text-align: left;
    font-size: 1.1rem;
}

.contact-info strong {
    color: #1e3c72;
}

.contact-info a {
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    text-decoration: underline;
}

.location-link {
    color: #1e3c72;
}

.location-link:hover {
    color: #2a5298;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.whatsapp-link::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('../imagenes/whatsapp.avif');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.instagram-link {
    color: #E4405F;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.instagram-link:hover {
    color: #C13584;
}

.instagram-link::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('../imagenes/instagram.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

/* Footer */
footer {
    background-color: #1e3c72;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    header .logo {
        max-width: 25%;
        max-height: 25%;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-box {
        padding: 2rem 1.5rem;
        margin: 2rem auto;
    }
    
    .mission-box h3 {
        font-size: 1.5rem;
    }
    
    .mission-box p {
        font-size: 1rem;
    }
    
    .mission-highlight {
        font-size: 1.1rem !important;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .carousel {
        height: 300px;
    }
    
    .carousel-btn {
        padding: 0.75rem 1rem;
        font-size: 1.5rem;
    }
}
