/* ===== ESTILOS MODERNOS PARA PÁGINA SOBRE NOSOTROS ===== */

/* About Hero Section */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e55a2b 100%);
    padding: 6rem 0 4rem;
    color: white;
    position: relative;
    overflow: hidden;
    height: 855px !important; /* Altura aumentada en 100px (755px + 100px) */
    display: flex;
    align-items: center;
}

/* Asegurar altura consistente en todas las páginas */
.about-hero {
    padding: 6rem 0 4rem !important;
    height: 855px !important;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexPattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><polygon points="10,1 18,6 18,14 10,19 2,14 2,6" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23hexPattern)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text .highlight {
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item i {
    font-size: 1.2rem;
}

/* Hexagon Visual */
.hexagon-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.hexagon {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.hexagon i {
    font-size: 1.5rem;
    color: white;
}

.main-hex {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    animation-delay: 0s;
}

.main-hex i {
    font-size: 2.5rem;
}

.hex-1 { top: 10%; left: 50%; transform: translate(-50%, -50%); animation-delay: -1s; }
.hex-2 { top: 25%; right: 15%; animation-delay: -2s; }
.hex-3 { bottom: 25%; right: 15%; animation-delay: -3s; }
.hex-4 { bottom: 10%; left: 50%; transform: translate(-50%, 50%); animation-delay: -4s; }
.hex-5 { bottom: 25%; left: 15%; animation-delay: -5s; }
.hex-6 { top: 25%; left: 15%; animation-delay: -6s; }

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
    50% { transform: translate(-50%, -50%) translateY(-20px); }
}

/* Story Section */
.story-section {
    padding: 6rem 0;
    background: var(--light-gray);
}

[data-theme="dark"] .story-section {
    background: #1a1a1a;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #e55a2b);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    line-height: 1.3;
}

[data-theme="dark"] .story-content h2 {
    color: var(--text-color);
}

.story-content .highlight {
    background: linear-gradient(135deg, var(--primary-color), #e55a2b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.story-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), #e55a2b);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--accent-color);
}

.timeline-year {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .timeline-content h4 {
    color: var(--text-color);
}

.timeline-content p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* MVV Section */
.mvv-section {
    padding: 6rem 0;
    background: var(--accent-color);
}

[data-theme="dark"] .mvv-section {
    background: #2d2d2d;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

[data-theme="dark"] .section-header h2 {
    color: var(--text-color);
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.mvv-card {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

[data-theme="dark"] .mvv-card {
    background: #1a1a1a;
    border-color: #404040;
}

.mvv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .mvv-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.mvv-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #e55a2b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.mvv-icon i {
    font-size: 2rem;
    color: white;
}

.mvv-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

[data-theme="dark"] .mvv-card h3 {
    color: var(--text-color);
}

.mvv-card p {
    color: var(--dark-gray);
    line-height: 1.7;
}

.card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), #e55a2b);
}

/* Team & HEXYN Section */
.team-hexa-section {
    padding: 6rem 0;
    background: var(--light-gray);
}

[data-theme="dark"] .team-hexa-section {
    background: #1a1a1a;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.team-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.team-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.team-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--accent-color);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

[data-theme="dark"] .team-feature {
    background: #2d2d2d;
}

.team-feature i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.team-feature h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .team-feature h4 {
    color: var(--text-color);
}

.team-feature p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin: 0;
}

/* HEXYN Visual */
.hexa-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
}

.hexa-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), #e55a2b);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);
    z-index: 10;
}

.hexa-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.hexa-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
}

.hexa-orbits {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit {
    position: absolute;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.orbit-1 {
    width: 180px;
    height: 180px;
    top: -90px;
    left: -90px;
}

.orbit-2 {
    width: 260px;
    height: 260px;
    top: -130px;
    left: -130px;
    animation-duration: 30s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 340px;
    height: 340px;
    top: -170px;
    left: -170px;
    animation-duration: 40s;
}

.orbit-4 {
    width: 420px;
    height: 420px;
    top: -210px;
    left: -210px;
    animation-duration: 50s;
    animation-direction: reverse;
}

.orbit-item {
    position: absolute;
    width: 40px;
    height: 40px;
    background: black;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.orbit-item i {
    color: white !important;
}

[data-theme="dark"] .orbit {
    border: 2px solid rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .orbit-item {
    background: white;
}

[data-theme="dark"] .orbit-item i {
    color: var(--primary-color) !important;
}

.orbit-1 .orbit-item {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-2 .orbit-item:nth-child(1) {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-2 .orbit-item:nth-child(2) {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-3 .orbit-item:nth-child(1) {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-3 .orbit-item:nth-child(2) {
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
}

.orbit-3 .orbit-item:nth-child(3) {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-4 .orbit-item:nth-child(1) {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-4 .orbit-item:nth-child(2) {
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
}

.orbit-4 .orbit-item:nth-child(3) {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-4 .orbit-item:nth-child(4) {
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Expertise Section */
.expertise-section {
    padding: 6rem 0;
    background: var(--accent-color);
}

[data-theme="dark"] .expertise-section {
    background: #2d2d2d;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.expertise-category {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

[data-theme="dark"] .expertise-category {
    background: #1a1a1a;
}

.expertise-category h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

[data-theme="dark"] .expertise-category h3 {
    color: var(--text-color);
}

.expertise-category h3 i {
    color: var(--primary-color);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: var(--transition);
}

[data-theme="dark"] .tech-tag {
    background: #2d2d2d;
    color: var(--text-color);
    border-color: #404040;
}

.tech-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Why Choose Section */
.why-choose-section {
    padding: 6rem 0;
    background: var(--light-gray);
}

[data-theme="dark"] .why-choose-section {
    background: #1a1a1a;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.advantage-card {
    background: var(--accent-color);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

[data-theme="dark"] .advantage-card {
    background: #2d2d2d;
    border-color: #404040;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .advantage-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.advantage-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), #e55a2b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.advantage-icon i {
    font-size: 2rem;
    color: var(--primary-color) !important;
}

.advantage-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

[data-theme="dark"] .advantage-card h3 {
    color: var(--text-color);
}

.advantage-card p {
    color: var(--dark-gray);
    line-height: 1.7;
}

/* CTA Title con colores dinámicos según tema */
.cta-title-dynamic {
    color: black !important; /* Tema claro: negro */
}

[data-theme="dark"] .cta-title-dynamic {
    color: white !important; /* Tema oscuro: blanco */
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2c3e50 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dotPattern" x="0" y="0" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dotPattern)"/></svg>') repeat;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.cta-content .highlight {
    background: linear-gradient(45deg, white, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

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

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.cta-buttons .btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-buttons .btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.cta-buttons .btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.cta-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.cta-feature i {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content,
    .story-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hexagon-container,
    .hexa-container {
        width: 300px;
        height: 300px;
    }
    
    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Altura consistente en tablets */
    .about-hero {
        padding: 5rem 0 3rem !important;
        height: 750px !important; /* 650px + 100px */
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .story-content h2,
    .section-header h2,
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .mvv-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .story-stats {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .cta-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 4rem 0 3rem !important;
        height: 650px !important; /* 550px + 100px */
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    .hexagon-container,
    .hexa-container {
        width: 250px;
        height: 250px;
    }
    
    .mvv-card,
    .advantage-card {
        padding: 2rem 1.5rem;
    }
    
    .team-feature {
        padding: 1rem;
    }
    
    .expertise-category {
        padding: 1.5rem;
    }
    
    .story-content h2,
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

/* Forzar visibilidad de iconos en advantage cards - MEJORADO */
.why-choose-section .advantage-icon {
    background: white !important;
    border: 3px solid var(--primary-color) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.2) !important;
    position: relative !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1.5rem !important;
}

.why-choose-section .advantage-icon i {
    color: var(--primary-color) !important;
    font-size: 2rem !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10 !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* Asegurar que los iconos del hero sean blancos - MEJORADO */
.about-hero .unified-feature-item i,
.about-hero .feature-item i {
    color: white !important;
    font-size: 1.2rem !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.about-hero .unified-feature-item span,
.about-hero .feature-item span {
    color: white !important;
}