

/* Variables de color */
:root {
    --primary: #18048d;
    --secondary: #0c025a;
    --accent: #4CAF50;
    --light-bg: #f8f9fa;
    --container-padding: 20px;
}

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Contenedores */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    box-sizing: border-box;
}

/* Hero Section - Texto Horizontal Normal */
.about-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: url('../img/carusel2.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 90%;
    padding: 20px;
    margin: 0 auto;
    transform: none;
    writing-mode: horizontal-tb;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Nuestra Historia - Diseño Mejorado */
.our-story {
    padding: 5rem 0;
    background: white;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.story-content {
    padding: 1rem;
}

.story-content h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.story-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
}

.story-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 300px;
}

.story-image {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

/* Nuestro Equipo */
.our-team {
    padding: 5rem 0;
    background: #f9f9f9;
    text-align: center;
}

.our-team h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.team-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.team-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 15px;
}

.team-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

/* Resto de estilos (platform-how, our-mission, footer) se mantienen igual que en tu CSS original */

/* Responsive */
@media (max-width: 1024px) {
    .story-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-image-wrapper {
        min-height: 250px;
        order: -1;
    }
    
    .story-content {
        text-align: center;
    }
    
    .about-hero {
        height: 70vh;
    }
}

@media (min-width: 1600px) {
    :root {
        --container-padding: 40px;
    }
    
    .container {
        max-width: 1400px;
    }
}

/* Nuestro Equipo */
.our-team {
    padding: 5rem 0;
    background: #f9f9f9;
    text-align: center;
}
.story-image{
    width: 100%;
}

.our-team h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.team-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.team-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-10px);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 5px solid #f0f0f0;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.position {
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 1rem;
}

.bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: var(--primary);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

/* Cómo funciona la plataforma */
.platform-how {
    padding: 5rem 0;
    background: white;
    text-align: center;
}

.platform-how h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.platform-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.platform-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: #f9f9f900;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    position: relative;
}

.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
}

.step h3 {
    color: var(--primary);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.step p {
    color: #666;
    line-height: 1.6;
}

.platform-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.cta-button.primary {
    background: var(--primary);
    color: white;
}

.cta-button.secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cta-button.primary:hover {
    background: var(--secondary);
}

.cta-button.secondary:hover {
    background: #f0f0f0;
}

/* Nuestra Misión */
.our-mission {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.mission-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mission-card h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.mission-card p {
    line-height: 1.8;
    margin-bottom: 2rem;
}

.mission-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .story-grid {
        flex-direction: column;
    }
    
    .about-hero {
        height: 50vh;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .platform-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .about-hero {
        height: 60vh;
    }
    
    .platform-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

/* Nuestra Historia - Diseño Mejorado */
.our-story {
    padding: 5rem 0;
    background: white;
    overflow: hidden; /* Previene desbordamientos */
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.story-content {
    padding: 1rem;
}

.story-content h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.story-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
}

.story-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 300px; /* Altura mínima */
}

.story-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.story-image:hover img {
    transform: scale(1.03);
}

/* Responsive para tablets */
@media (max-width: 1024px) {
    .story-grid {
        gap: 2rem;
    }
    
    .story-content h2 {
        font-size: 2rem;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-image-wrapper {
        min-height: 250px;
        order: -1; /* Mueve la imagen arriba en móviles */
    }
    
    .story-content {
        padding: 0;
        text-align: center;
    }
}

/* Ajustes para pantallas grandes */
@media (min-width: 1600px) {
    .story-content {
        padding-right: 3rem;
    }
    
    .story-content h2 {
        font-size: 2.5rem;
    }
    
    .story-content p {
        font-size: 1.1rem;
        line-height: 1.9;
    }
}

/* Ajustes para pantallas muy grandes (evitar que crezca demasiado) */
@media (min-width: 2000px) {
    .story-grid {
        max-width: 1800px;
        margin: 0 auto;
    }
}