* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: white;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Navbar transparente en scroll */
.header.transparent {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(30px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.logo-img {
    height: 60px;
    margin-right: 10px;
    border-radius: 20%;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #000;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

/* al pasar el mouse solo cambia un poco el color (sin línea naranja) */
.nav-link:hover {
    color: #555;
}

/* solo el activo es naranja */
.nav-link.active {
    color: #ff6b35;
}

/* línea base (por defecto oculta) */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b35;
    transition: width 0.3s ease;
}

/* solo el link activo se subraya */
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* animación del ícono hamburguesa cuando está activo */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section (carrusel) */
.hero {
    position: relative;
    height: 80vh;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 100px;
    overflow: hidden;
}

/* carrusel fondo */
.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

/* overlay oscuro */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 300;
}

/* Objetivos Section */
.objetivos {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* título responsive con degradado */
.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3vw + 0.5rem, 3rem);
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #e9ecef, #f7931e);

    /* soporte Chrome / Safari */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* estándar */
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.objetivos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.objetivo-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #ff6b35;
}

.objetivo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.objetivo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

.objetivo-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.objetivo-card p {
    color: #666;
    line-height: 1.7;
}

/* Estadísticas Section */
.estadisticas {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    width: 100%;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* Sistema de estrellas */
.star-rating {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 1rem 0;
}

.star {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.3);
    transition: color 0.3s ease;
}

.star.filled {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.star.animate {
    animation: starGlow 0.6s ease forwards;
}

@keyframes starGlow {
    0% {
        transform: scale(1);
        color: rgba(255,255,255,0.3);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        color: #ffd700;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
}

/* Contact Section */
.contacto {
    padding: 5rem 0;
    background: #f8f9fa;
}

/* Animaciones generales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive: tablets */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

/* Responsive: móviles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 50px;
    }

    .logo-text {
        font-size: 18px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .hero {
        margin-top: 70px;
        height: 70vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .section-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .objetivos {
        padding: 3rem 0;
    }

    .objetivos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .objetivo-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .estadisticas {
        padding: 3rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .stat-description {
        font-size: 0.8rem;
    }

    .star {
        font-size: 1rem;
    }

    .contacto {
        padding: 3rem 0;
    }
}

/* Responsive: móviles pequeños */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
    }

    .logo-img {
        height: 45px;
    }

    .logo-text {
        font-size: 16px;
    }

    .hero {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .objetivo-card {
        padding: 1.2rem;
        margin: 0 0.25rem;
    }

    .objetivo-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .objetivo-card h3 {
        font-size: 1.3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem 0.75rem;
    }

    .container {
        padding: 0 0.75rem;
    }
}

@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .objetivo-card {
        margin: 0;
    }

    .container {
        padding: 0 0.5rem;
    }
}
