/* ============================================================
   REYES IT - SOBRE NOSOTROS
   ============================================================ */

/* ============================================================
   HERO CON WAVE - CURVA MÁS ABAJO
   ============================================================ */
.page-hero-with-wave {
    position: relative;
    padding: 160px 0 120px;
    text-align: center;
    background: rgba(248, 250, 255, 0.6);
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.page-hero-with-wave::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(31, 94, 187, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(73, 167, 232, 0.04) 0%, transparent 60%);
    z-index: 0;
    animation: gradientMove 15s ease-in-out infinite alternate;
}

.page-hero-with-wave .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-hero-with-wave .page-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.page-hero-with-wave .page-hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.page-hero-with-wave .page-hero-content h1 .highlight {
    background: linear-gradient(135deg, #1f5ebb, #49a7e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero-with-wave .page-hero-content p {
    color: #4a4a6a;
    font-size: 1.2rem;
}

.page-hero-with-wave .hero-btn-wrapper {
    margin-top: 24px;
}

.page-hero-with-wave .hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.page-hero-with-wave .hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: -2px;
}

@keyframes gradientMove {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* ============================================================
   LEITBILD - GRID DE VALORES
   ============================================================ */
.leitbild-section {
    padding: 80px 0;
    background: #ffffff;
}

.leitbild-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.leitbild-card {
    background: #ffffff;
    border: 1px solid #e8ecf0;
    border-radius: 20px;
    padding: 32px 24px 28px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    text-align: center;
}

.leitbild-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1f5ebb, #49a7e8, #7fd8f7);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.leitbild-card:hover::before {
    transform: scaleX(1);
}

.leitbild-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(31, 94, 187, 0.08);
    border-color: rgba(31, 94, 187, 0.12);
}

.leitbild-card .leitbild-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    margin: 0 auto 12px;
    transition: transform 0.3s ease;
}

.leitbild-card:hover .leitbild-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.leitbild-card .leitbild-card-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    color: rgba(31, 94, 187, 0.04);
    position: absolute;
    top: 8px;
    right: 16px;
    line-height: 1;
}

.leitbild-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.leitbild-card p {
    color: #4a4a6a;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

.leitbild-card .leitbild-card-line {
    width: 40px;
    height: 3px;
    border-radius: 3px;
    margin: 12px auto 0;
    transition: width 0.3s ease;
}

.leitbild-card:hover .leitbild-card-line {
    width: 60px;
}

.leitbild-quote-large {
    margin-top: 40px;
    padding: 32px 40px;
    background: #f8faff;
    border-radius: 16px;
    border-left: 4px solid #1f5ebb;
    text-align: center;
}

.leitbild-quote-large i {
    color: #1f5ebb;
    font-size: 1.4rem;
    margin-right: 12px;
    opacity: 0.6;
}

.leitbild-quote-large p {
    font-style: italic;
    font-size: 1.2rem;
    color: #1a1a2e;
    font-weight: 500;
    display: inline;
}

/* ============================================================
   MISIÓN, VISIÓN, VALORES
   ============================================================ */
.mission-section {
    padding: 80px 0;
    background: #f8faff;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mission-card {
    background: #ffffff;
    border: 1px solid #e8ecf0;
    border-radius: 20px;
    padding: 35px 28px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(31, 94, 187, 0.08);
    border-color: rgba(31, 94, 187, 0.12);
}

.mission-card .mission-card-icon {
    font-size: 2.8rem;
    color: #1f5ebb;
    margin-bottom: 12px;
    display: inline-block;
}

.mission-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.mission-card p {
    color: #4a4a6a;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   HISTORIA
   ============================================================ */
.history-section {
    padding: 80px 0;
    background: #ffffff;
}

.history-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.history-visual {
    display: flex;
    justify-content: center;
}

.history-founder-card {
    background: #ffffff;
    border: 1px solid #e8ecf0;
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.history-founder-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(31, 94, 187, 0.08);
}

.history-founder-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f5ebb, #49a7e8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    margin: 0 auto 16px;
    box-shadow: 0 8px 30px rgba(31, 94, 187, 0.2);
}

.history-founder-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.history-founder-card > span {
    color: #4a4a6a;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 12px;
}

.history-founder-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.history-founder-tags span {
    background: #f8faff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.history-founder-tags span i {
    color: #1f5ebb;
    font-size: 0.75rem;
}

.history-content p {
    color: #4a4a6a;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.history-content strong {
    color: #1a1a2e;
}

.history-quote {
    padding: 16px 20px;
    background: rgba(31, 94, 187, 0.05);
    border-radius: 12px;
    border-left: 4px solid #1f5ebb;
    margin: 16px 0;
}

.history-quote i {
    color: #1f5ebb;
    font-size: 1.2rem;
    margin-right: 8px;
}

.history-quote p {
    font-style: italic;
    color: #1a1a2e;
    font-size: 1.05rem;
    margin: 0;
    display: inline;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #f0f4ff;
}

.history-stat {
    text-align: center;
}

.history-stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1f5ebb, #49a7e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.history-stat-label {
    font-size: 0.75rem;
    color: #4a4a6a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   EQUIPO
   ============================================================ */
.team-section {
    background: #f8faff;
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    background: #ffffff;
    border: 1px solid #e8ecf0;
    border-radius: 20px;
    padding: 30px 20px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(31, 94, 187, 0.08);
    border-color: rgba(31, 94, 187, 0.12);
}

.team-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 12px;
    box-shadow: 0 4px 20px rgba(31, 94, 187, 0.15);
}

.team-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.team-card > span {
    color: #4a4a6a;
    font-size: 0.85rem;
    display: block;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .leitbild-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mission-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .history-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .history-visual {
        order: -1;
    }
    .history-founder-card {
        max-width: 280px;
        margin: 0 auto;
    }
    .history-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-hero-with-wave {
        padding: 140px 0 100px;
        min-height: 40vh;
    }
    .page-hero-with-wave .page-hero-content h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .leitbild-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .leitbild-card {
        padding: 24px 20px 20px;
    }
    .leitbild-card .leitbild-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    .leitbild-card h4 {
        font-size: 1rem;
    }
    .leitbild-card p {
        font-size: 0.85rem;
    }
    .leitbild-quote-large {
        padding: 24px 20px;
    }
    .leitbild-quote-large p {
        font-size: 1rem;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .mission-card {
        padding: 28px 20px 24px;
    }
    .mission-card .mission-card-icon {
        font-size: 2.2rem;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .team-card {
        padding: 24px 16px 20px;
    }
    .team-card-avatar {
        width: 64px;
        height: 64px;
        font-size: 1.4rem;
    }

    .history-content p {
        font-size: 0.95rem;
    }
    .history-quote p {
        font-size: 0.95rem;
    }
    .history-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .history-stat-number {
        font-size: 1.3rem;
    }
    .history-stat-label {
        font-size: 0.7rem;
    }
    .history-founder-card {
        padding: 30px 20px;
    }
    .history-founder-avatar {
        width: 90px;
        height: 90px;
        font-size: 2.5rem;
    }
    .page-hero-with-wave {
        padding: 120px 0 80px;
        min-height: 35vh;
    }
    .page-hero-with-wave .page-hero-content h1 {
        font-size: 2rem;
    }
    .page-hero-with-wave .page-hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .leitbild-card {
        padding: 20px 16px 16px;
    }
    .leitbild-card .leitbild-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .leitbild-card .leitbild-card-number {
        font-size: 1.8rem;
        top: 4px;
        right: 12px;
    }
    .leitbild-card h4 {
        font-size: 0.95rem;
    }
    .leitbild-card p {
        font-size: 0.8rem;
    }
    .leitbild-quote-large {
        padding: 20px 16px;
    }
    .leitbild-quote-large p {
        font-size: 0.9rem;
    }

    .mission-card {
        padding: 24px 16px 20px;
    }
    .mission-card .mission-card-icon {
        font-size: 1.8rem;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .team-card {
        padding: 20px 12px 16px;
    }
    .team-card-avatar {
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
    }
    .team-card h4 {
        font-size: 0.9rem;
    }
    .team-card > span {
        font-size: 0.75rem;
    }

    .history-stat-number {
        font-size: 1.1rem;
    }
    .history-stat-label {
        font-size: 0.65rem;
    }
    .history-founder-card {
        padding: 24px 16px;
    }
    .history-founder-avatar {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    .history-founder-card h4 {
        font-size: 1.1rem;
    }
    .history-founder-tags span {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
    .page-hero-with-wave {
        padding: 100px 0 60px;
        min-height: 30vh;
    }
    .page-hero-with-wave .page-hero-content h1 {
        font-size: 1.8rem;
    }
}