/* historia.css - Estilos completos actualizados para Nosotros PARTYSMAX */

:root {
  --primary: #e91e63;
  --primary-light: #f8bbd9;
  --primary-dark: #c2185b;
  --secondary: #9c27b0;
  --secondary-light: #e1bee7;
  --accent: #ff4081;
  --success: #4caf50;
  --warning: #ff9800;
  --dark: #2d3748;
  --light: #f8f9fa;
  --gray-light: #f5f5f5;
  --border: #e0e0e0;
  --gradient: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
  --gradient-light: linear-gradient(135deg, #f8bbd9 0%, #e1bee7 100%);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Estilos para la página Nosotros */
.nosotros-hero {
    height: 70vh;
    position: relative;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Misión y Visión */
.mision-vision {
    padding: 5rem 0;
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.mv-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.mv-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.mv-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.mv-card h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.mv-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark);
    opacity: 0.8;
}

.mv-decoration {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    top: -20px;
    right: -20px;
    opacity: 0.1;
}

.mision {
    border-left: 5px solid var(--primary);
}

.vision {
    border-left: 5px solid var(--secondary);
}

/* Valores Section */
.valores-section {
    padding: 5rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 3rem;
    font-weight: 700;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.valor-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.valor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.valor-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.valor-card:hover .valor-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.valor-card h4 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.valor-card p {
    color: var(--dark);
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Historia Section */
.historia-section {
    padding: 5rem 0;
    background: var(--gradient);
    color: white;
}

.historia-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.historia-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.historia-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.historia-highlights {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.highlight {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.highlight-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.highlight-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

.historia-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.visual-element {
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.visual-element:nth-child(1) {
    height: 100px;
    background: linear-gradient(45deg, rgba(233,30,99,0.3), rgba(156,39,176,0.3));
}

.visual-element:nth-child(2) {
    height: 70px;
    background: linear-gradient(45deg, rgba(248,187,217,0.3), rgba(225,190,231,0.3));
}

.visual-element:nth-child(3) {
    height: 90px;
    background: linear-gradient(45deg, rgba(156,39,176,0.3), rgba(233,30,99,0.3));
}

/* Equipo Section - ACTUALIZADO CON ICONOS COMO VENTAJAS PARTYSMAX */
.equipo-section {
    padding: 5rem 0;
    background: var(--light);
}

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.equipo-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.equipo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.equipo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* Iconos con estilo idéntico a Ventajas PARTYSMAX */
.equipo-icon {
    width: 90px;
    height: 90px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.equipo-card:hover .equipo-icon {
    transform: translateY(-12px) scale(1.1);
    background: var(--gradient);
    box-shadow: 0 15px 30px rgba(233, 30, 99, 0.3);
}

/* Efecto de brillo al hacer hover */
.equipo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
}

.equipo-card:hover .equipo-icon::before {
    left: 100%;
}

.equipo-card h4 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.equipo-card:hover h4 {
    color: var(--primary);
}

.equipo-card p {
    color: var(--dark);
    line-height: 1.6;
    opacity: 0.8;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-5px); 
    }
}

@keyframes pulse-glow {
    0% { 
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.4); 
    }
    70% { 
        box-shadow: 0 0 0 10px rgba(233, 30, 99, 0); 
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0); 
    }
}

/* Aplicar animaciones a las tarjetas */
.mv-card, .valor-card, .equipo-card {
    animation: fadeInUp 0.6s ease-out;
}

.mv-card:nth-child(1) { animation: slideInLeft 0.6s ease-out; }
.mv-card:nth-child(2) { animation: slideInRight 0.6s ease-out; }

.valor-card:nth-child(1) { animation-delay: 0.1s; }
.valor-card:nth-child(2) { animation-delay: 0.2s; }
.valor-card:nth-child(3) { animation-delay: 0.3s; }
.valor-card:nth-child(4) { animation-delay: 0.4s; }
.valor-card:nth-child(5) { animation-delay: 0.5s; }

.equipo-card:nth-child(1) { animation: slideInLeft 0.6s ease-out; }
.equipo-card:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.2s both; }
.equipo-card:nth-child(3) { animation: slideInRight 0.6s ease-out; }

/* Efectos de hover mejorados para iconos */
.mv-card:hover .mv-icon,
.valor-card:hover .valor-icon-wrapper {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Animaciones para iconos de equipo al hover */
.equipo-card:hover .equipo-icon {
    animation: 
        float 2s ease-in-out infinite,
        pulse-glow 2s ease-in-out infinite;
}

/* Estados de carga */
.loading {
    opacity: 0;
    transform: translateY(20px);
}

.loaded {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .nosotros-hero {
        height: 60vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mv-card {
        padding: 2rem;
    }
    
    .historia-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .historia-highlights {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Animaciones móviles más simples */
    .mv-card, .valor-card, .equipo-card {
        animation: fadeInUp 0.6s ease-out;
    }
    
    .equipo-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .mv-card {
        padding: 1.5rem;
    }
    
    .valor-card {
        padding: 1.5rem;
    }
    
    .equipo-card {
        padding: 2rem 1.5rem;
    }
    
    .historia-text h2 {
        font-size: 2rem;
    }
    
    .valor-icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
    
    .hero-stats {
        animation: fadeInUp 0.8s ease-out 0.4s both;
    }
    
    .equipo-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .mv-card, .valor-card, .equipo-card,
    .hero-title, .hero-subtitle, .hero-stats,
    .equipo-icon, .valor-icon-wrapper {
        animation: none !important;
        transition: none !important;
    }
    
    .equipo-card:hover .equipo-icon {
        transform: none;
    }
}

/* Modo oscuro opcional */
@media (prefers-color-scheme: dark) {
    .mision-vision,
    .equipo-section {
        background: var(--dark);
    }
    
    .mv-card,
    .valor-card,
    .equipo-card {
        background: #2d3748;
        color: white;
        border-color: #4a5568;
    }
    
    .mv-card h3,
    .valor-card h4,
    .equipo-card h4,
    .mv-card p,
    .valor-card p,
    .equipo-card p {
        color: white;
    }
    
    .valor-icon-wrapper {
        background: var(--primary-dark);
    }
    
    .equipo-icon {
        background: var(--primary-dark);
    }
}