/* Estilos para Richard el Clavito - Mascota Corporativa */

/* Sección de Bienvenida con Richard en Home */
.bienvenida-richard {
    padding: 5rem 5%;
    background: linear-gradient(135deg, #005ab2 0%, #063763 58%, #d3063d 100%);
    position: relative;
    top: 16.7rem;
    overflow: hidden;
}

.bienvenida-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.bienvenida-contenido {
    flex: 1;
    padding: 2rem;
}

.bienvenida-contenido h2 {
    font-size: 3.2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.bienvenida-contenido p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.bienvenida-contenido p span {
    color: #ffcd00;
    font-weight: 600;
}

.btn-descubre {
    display: inline-block;
    background: #d3063d;
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 3rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.btn-descubre:hover {
    background: #ffffff;
    color: #d3063d;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.bienvenida-imagen {
    flex: 0 0 35%;
    text-align: center;
    position: relative;
    isolation: isolate;
    animation: richard-corre-y-frena 1.8s cubic-bezier(0.2, 0.95, 0.22, 1) both,
        richard-presenta 4.5s ease-in-out 2s infinite;
}

.bienvenida-imagen::before {
    content: "";
    position: absolute;
    top: 32%;
    right: 62%;
    width: clamp(90px, 18vw, 220px);
    height: clamp(70px, 12vw, 150px);
    background:
        linear-gradient(90deg, transparent, rgba(255, 205, 0, 0.75), transparent) 0 20% / 100% 5px no-repeat,
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent) 18px 50% / 82% 4px no-repeat,
        linear-gradient(90deg, transparent, rgba(211, 6, 61, 0.65), transparent) 4px 78% / 72% 5px no-repeat;
    transform: skewX(-16deg);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    animation: richard-lineas-velocidad 1.15s ease-out 0.1s both;
}

.bienvenida-imagen::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2%;
    width: 70%;
    height: 18px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 72%);
    transform: translateX(-50%) scaleX(1);
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
    animation: richard-sombra-carrera 1.8s ease-out both;
}

.bienvenida-imagen img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(15px 15px 20px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.bienvenida-imagen img:hover {
    transform: scale(1.08) rotate(-2deg);
}

@keyframes richard-corre-y-frena {
    0% {
        opacity: 0;
        transform: translateX(125%) translateY(28px) rotate(10deg) scale(0.92);
    }

    24% {
        opacity: 1;
        transform: translateX(55%) translateY(-12px) rotate(-8deg) scale(1.04);
    }

    48% {
        transform: translateX(-12%) translateY(8px) rotate(5deg) scale(1.03);
    }

    66% {
        transform: translateX(6%) translateY(0) rotate(-3deg) scale(1);
    }

    82% {
        transform: translateX(-2%) translateY(0) rotate(1deg) scale(1);
    }

    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(0) scale(1);
    }
}

@keyframes richard-presenta {
    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    35% {
        transform: translateY(-6px) rotate(-2deg);
    }

    55% {
        transform: translateY(0) rotate(-3deg);
    }

    72% {
        transform: translateY(-3px) rotate(-1deg);
    }
}

@keyframes richard-lineas-velocidad {
    0% {
        opacity: 0;
        transform: translateX(120px) skewX(-16deg);
    }

    20%,
    62% {
        opacity: 0.95;
    }

    100% {
        opacity: 0;
        transform: translateX(-35px) skewX(-16deg);
    }
}

@keyframes richard-sombra-carrera {
    0% {
        opacity: 0;
        transform: translateX(-15%) scaleX(0.35);
    }

    38% {
        opacity: 0.24;
        transform: translateX(-50%) scaleX(1.35);
    }

    68% {
        opacity: 0.42;
        transform: translateX(-50%) scaleX(0.82);
    }

    100% {
        opacity: 0.35;
        transform: translateX(-50%) scaleX(1);
    }
}

/* Sección Richard el Clavito en Nosotros */
.richard-clavito-container {
    padding: 5rem 5%;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.richard-clavito-container h1 {
    color: #005ab2;
    margin-bottom: 3rem;
    margin-left: 0;
    font-size: 2rem;
}

.richard-clavito-container .subtitulo {
    -webkit-text-stroke: .1rem #d3063d;
    -webkit-text-fill-color: #d3063d;
    font-size: 2rem;
    text-transform: uppercase;
}

.richard-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.richard-imagen {
    flex: 0 0 35%;
    text-align: center;
}

.richard-imagen img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(10px 10px 15px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.richard-imagen img:hover {
    transform: scale(1.05);
}

.richard-contenido {
    flex: 1;
    padding: 2rem;
}

.richard-contenido h2 {
    font-size: 2.5rem;
    color: #005ab2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.richard-contenido p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Responsive */
@media (max-width: 968px) {
    .bienvenida-richard {
        padding: 3rem 5%;
        top: 16.7rem;
    }

    .bienvenida-container {
        flex-direction: column;
        gap: 2rem;
    }

    .bienvenida-contenido {
        flex: 1;
        padding: 1rem 0;
    }

    .bienvenida-contenido h2 {
        font-size: 2.5rem;
    }

    .bienvenida-imagen {
        flex: 0 0 100%;
    }

    .bienvenida-imagen::before {
        right: 54%;
        width: clamp(80px, 32vw, 170px);
    }

    .richard-box {
        flex-direction: column;
        gap: 2rem;
    }

    .richard-imagen {
        flex: 0 0 100%;
    }

    .richard-contenido {
        flex: 1;
        padding: 1rem 0;
    }

    .richard-contenido h2 {
        font-size: 2rem;
    }

    .richard-clavito-container h1 {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bienvenida-imagen,
    .bienvenida-imagen::before,
    .bienvenida-imagen::after {
        animation: none;
    }

    .bienvenida-imagen::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .bienvenida-richard {
        padding: 2rem 5%;
        top: 16.7rem;
    }

    .bienvenida-contenido h2 {
        font-size: 2.2rem;
    }

    .btn-descubre {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .richard-clavito-container {
        padding: 3rem 5%;
    }

    .richard-contenido h2 {
        font-size: 1.8rem;
    }

    .richard-contenido p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .bienvenida-richard {
        padding: 1.5rem 3%;
        top: 16.7rem;
    }

    .bienvenida-contenido h2 {
        font-size: 1.8rem;
    }

    .bienvenida-contenido p {
        font-size: 1rem;
    }

    .btn-descubre {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .richard-clavito-container {
        padding: 2rem 3%;
    }

    .richard-clavito-container h1 {
        font-size: 1.5rem;
    }

    .richard-contenido h2 {
        font-size: 1.5rem;
    }

    .richard-contenido p {
        font-size: 0.95rem;
    }
}
