/* Variables globales */
:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #fb923c;
    --dark: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Georgia', serif;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: var(--font-main);
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.text-center {
    text-align: center;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #ea580c;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(251, 146, 60, 0.3);
}

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

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

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logohead {
    font-size: 10px;
    width: 13rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.nav-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
}

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

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

/* Hero Section - Full Screen */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(29, 78, 216, 0.8), rgba(30, 41, 59, 0.9)), url('../img/cena-fin-deaño.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeIn 1.5s ease forwards;
}

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

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    display: block;
    font-size: 4.2rem;
    color: var(--secondary);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--white);
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* About Section */
.about {
    background-color: var(--white);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
}

.section-title.centered {
    display: block;
    text-align: center;
}

.section-title.centered::after {
    left: 50%;
    transform: translateX(-50%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.about-card {
    background-color: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-card-icon {
    height: 120px;
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--white);
}

.about-card:nth-child(2) .about-card-icon {
    background-color: var(--secondary);
}

.about-card:nth-child(3) .about-card-icon {
    background-color: #10b981;
}

.about-card-content {
    padding: 2rem;
    text-align: center;
}

.about-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Mission & Vision Section */
.mission-vision {
    background-color: #f1f5f9;
    position: relative;
}

.mission-vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.mission-vision-flex {
    display: flex;
    gap: 3rem;
}

.mission, .vision {
    flex: 1;
    background-color: var(--white);
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.mission.active, .vision.active {
    transform: translateY(0);
    opacity: 1;
}

.mission::before, .vision::before {
    content: '';
    position: absolute;
    height: 5px;
    top: 0;
    left: 0;
    width: 100%;
}

.mission::before {
    background-color: var(--primary);
}

.vision::before {
    background-color: var(--secondary);
}

.mission-vision-icon {
    background-color: rgba(59, 130, 246, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--primary);
}

.vision .mission-vision-icon {
    background-color: rgba(251, 146, 60, 0.1);
    color: var(--secondary);
}

.mission h3, .vision h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Gallery Section */
.gallery {
    background-color: var(--white);
    text-align: center;
}

.gallery-slider {
    position: relative;
    margin-top: 3rem;
    overflow: hidden;
}

.gallery-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-item {
    min-width: calc(33.333% - 1.5rem);
    margin: 0 0.75rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 300px;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(29, 78, 216, 0.2), rgba(30, 41, 59, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-title {
    transform: translateY(0);
}

.gallery-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 80%;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

.gallery-item:hover .gallery-desc {
    transform: translateY(0);
}

.gallery-nav {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.gallery-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}


/* Testimonial Section /*
/* Corrección de estilos para la sección de Testimonios */

/* Estilos base */
.testimonials {
    background-color: #f1f5f9;
    text-align: center;
    position: relative;
}

.testimonial-slider {
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
    overflow: hidden;
}

.testimonial-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

/* Corrección: quitar opacity:0 inicial y ajustar transition */
.testimonial {
    min-width: 100%;
    padding: 0 1rem;
    transition: all 0.5s ease;
}

.testimonial-content {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    margin-bottom: 2rem;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ffffff;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 0;
    color: #4b5563;
    line-height: 1.7;
}

.testimonial-content i {
    color: #3b82f6;
    font-size: 1.5rem;
    display: block;
    margin-bottom: 1rem;
}

.testimonial-person {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #ffffff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.testimonial-position {
    font-size: 0.9rem;
    opacity: 0.7;
    color: #64748b;
}

/* Navegación */
.testimonial-nav {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.testimonial-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-button:hover {
    background-color: #1d4ed8;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background-color: #3b82f6;
    transform: scale(1.2);
}

/* Media Queries */
@media (max-width: 768px) {
    .testimonial-content {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 0.95rem;
    }
}

/* CTA Section */
.cta {
    background: linear-gradient(rgba(29, 78, 216, 0.9), rgba(30, 41, 59, 0.95)), url('../img/hopeargentina-meseta.jpg') center/cover no-repeat fixed;
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
}

.cta-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.cta-text {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    position: relative;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    border: none;
    outline: none;
    font-size: 1rem;
    padding-right: 150px;
}

.newsletter-button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 25px;
    padding: 0 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-button:hover {
    background-color: var(--primary-dark);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    max-width: 500px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
}

.footer-text {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

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

.footer-copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Animation clases */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mission-vision-flex {
        flex-direction: column;
        gap: 2rem;
    }

    .gallery-item {
        min-width: calc(50% - 1.5rem);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--dark);
        flex-direction: column;
        justify-content: center;
        z-index: 1000;
        transition: right 0.4s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title span {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        min-width: calc(100% - 1.5rem);
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        display: block;
        width: 100%;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        padding-right: 1.5rem;
        margin-bottom: 1rem;
    }

    .newsletter-button {
        position: static;
        width: 100%;
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-title span {
        font-size: 2.5rem;
    }

    .section {
        padding: 3rem 0;
    }
}