@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #30a9b8;
    --primary-light: #61c4d0;
    --primary-dark: #1d8997;
    --secondary: #ffecb3;
    --secondary-dark: #ffe082;
    --dark: #333;
    --light: #fff;
    --gray-light: #f5f5f5;
    --gray: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: bold;
    font-size: 18px;
}

.logo-text {
    font-weight: 600;
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 400;
}

.nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav ul li {
    margin-left: 25px;
    /* margin-top: 5px; */
}

.nav ul li a {
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav ul li a:before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav ul li a:hover {
    color: var(--primary);
}

.nav ul li a:hover:before {
    width: 100%;
}

.btn-cita {
    background-color: var(--primary);
    /* background-color: var(--secondary); */
    color: var(--light);
    /* color: var(--dark); */
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    display: inline-block;
}

.btn-donate {
    background-color: var(--secondary);
    /* background-color: var(--primary); */
    color: var(--dark);
    /* color: var(--light); */
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    display: inline-block;
}

.btn-cita:hover {
    background-color: var(--primary-dark);
    /* background-color: var(--secondary-dark); */
}

.btn-donate:hover {
    background-color: var(--secondary-dark);
    /* background-color: var(--primary-dark); */
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 2px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding-top: 100px;
    background: linear-gradient(135deg, rgba(255, 236, 179, 0.3), rgba(48, 169, 184, 0.2));
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    padding-right: 40px;
}

.hero-text h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--dark);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
}

.hero-image {
    flex: 1;
    max-width: 500px;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
}

/* About Section */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 40%;
    border-radius: 10px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
}

/* Estilos del carrusel */
.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: 500px;
    margin-bottom: 30px;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.carousel-track img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Indicadores de puntos */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.dot.active {
    background-color: #e74c3c;
    transform: scale(1.2);
}

.dot:hover {
    background-color: #3498db;
}

/* Botones de navegación */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.652);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}



.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
}

.mission-vision {
    margin-top: 50px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.mission,
.vision {
    flex: 1;
    min-width: 300px;
    background-color: var(--gray-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.mission h3,
.vision h3 {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.mission h3 i,
.vision h3 i {
    margin-right: 10px;
    background-color: var(--primary);
    color: var(--light);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Values Section */
.values {
    background-color: var(--gray-light);
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.value-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background-color: var(--light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    width: 70px;
    height: 70px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 1.8rem;
}

.value-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Services Section */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.service-card {
    flex: 1;
    min-width: 300px;
    background-color: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-header {
    background-color: var(--primary);
    padding: 20px;
    text-align: center;
    color: var(--light);
}

.service-header i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.service-header h3 {
    font-size: 1.3rem;
}

.service-body {
    padding: 25px;
}

.service-body ul {
    list-style-type: none;
    margin-bottom: 25px;
}

.service-body ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.service-body ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
}

/* Programs Section */
.programs {
    background-color: var(--gray-light);
}

.programs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.program-card {
    flex: 1;
    min-width: 300px;
    background-color: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-img {
    height: 200px;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 3rem;
}

.program-content {
    padding: 25px;
}

.program-content h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Team Section */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.team-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background-color: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img img {
    transform: scale(1.1);
}

.team-content {
    padding: 20px;
    text-align: center;
}

.team-content h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.team-position {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background-color: var(--primary);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.social-icons a:hover {
    background-color: var(--primary-dark);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--light);
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: var(--secondary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-map {
    flex: 1;
    min-width: 300px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background-color: #333;
    color: #ddd;
    padding: 70px 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ddd;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    background-color: #222;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 99;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn.whatsapp {
    background-color: #25d366;
}

.floating-btn.donate {
    background-color: var(--primary);
}

.floating-btn.top {
    background-color: var(--secondary);
    color: var(--dark);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-image {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--light);
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
    }

    .nav ul li {
        margin: 15px 0;
    }

    /* Transformed menu icon */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-content {
        flex-direction: column;
    }
}