:root{
    --verde: #a9f52b;
    --azul: #003fb7;
    --amarillo: #ffec00;
    --blanco: #ffffff;
}


.hero{
    width: 100%;
    height: 550px;
    
    z-index: 99998;
    background-image: url(https://storageproyectosmercadeo.blob.core.windows.net/landingpage/peguesumarchamo/backgroundhero.png);
    background-size: cover;
}

.titulo-content{
    padding: 5px;
    margin: 5px ;
    max-width: 420px;
    margin-left: 4%;
}

.titulo-content img{
    width: 100px;
    height: 50px;
    margin-left: -20px;
    margin-top: -10px;
   
}

.titulo-content h1{
    font-family: 'Brunson Rough', sans-serif !important;
    letter-spacing: 3.5px;
    color: #ffffff;
    font-size: 62px;
    font-weight: 500;

    span{
        font-size: 88px;
        color: var(--amarillo);
    }
}

.text-content-parrafo{
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.parrafo-texto-first{
 
    font-size: 24px;
}

.parrafo-texto {
    display: inline-block;
    font-weight: 600;
    white-space: nowrap;
    font-size: 24px;
}

.icono-hero {
    display: inline-block;
    width: 48px;
    height: 48px;
    margin: -10px;
    vertical-align: middle;
    background-image: url('https://storageproyectosmercadeo.blob.core.windows.net/landingpage/peguesumarchamo/iconohero.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.titulo-content a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 250px;
    height: 60px;
    border-radius: 40px;
    border: none;
    background-color: var(--verde);
    color: var(--azul);
    font-size: 25px;
    font-weight: 600;

}
.titulo-content a:hover{
    
    background-color: var(--azul);
    color: var(--blanco);
    
    .parrafo-texto{
        
        font-weight: 900;
        margin-top: 10px;
    }

}

/* Parrafo ilustrativo */
.text-ilustrativa{
    position: relative;
    font-size: 10px;
    bottom: -50px;
}


/* Cards de Premios */
.hero-cards {
    position: absolute;
    right: 350px;
    top: 105px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 78px 156px 78px;
    gap: 30px 18px;
    width: 360px;
    z-index: 99998;
}

.hero-card {
    position: relative;
    display: flex;
    gap: 12px;
    min-width: 0;
    padding: 14px 14px 14px 18px;
    border: 2px solid #ffec00;
    border-radius: 10px;
    background: rgba(0, 68, 136, 0.28);
    color: #fff;
}

.hero-card-lg {
    grid-column: 1 / -1;
    align-items: center;
}
.hero-card-second-row{
    align-items: flex-start;
    grid-row: 2;
}

.text-span-height {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hero-arrow {
    position: absolute;
    left: -28px;
    top: 9px;
    width: 30px;
    height: 32px;
}

.hero-card-lg:first-child .hero-arrow {
    top: 22px;
}

.hero-arrow::before,
.hero-arrow::after {
    content: "";
    position: absolute;
    top: 5px;
    width: 17px;
    height: 17px;
    border-top: 5px solid #ffec00;
    border-right: 5px solid #ffec00;
    border-radius: 2px;
    transform: rotate(45deg);
}

.hero-arrow::after {
    left: 12px;
}

.hero-number {
    font-family: 'Brunson Rough', sans-serif;
    font-size: 36px;
    line-height: 1;
    color: #fff;
    flex-shrink: 0;
}

.hero-card-text {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
    color: #fff;
}

.hero-card-lg:first-child .hero-card-text {
    font-size: 24px;
    line-height: 1.1;
}

.hero-card-seguros {
    padding-right: 135px;
}

/* Contenedores transparentes para las imágenes de los premios. */
.hero-card-image {
    position: absolute;
    pointer-events: none;
}

.hero-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.hero-card-image-moto {
    width: 185px;
    height: 130px;
    left: -28px;
    top: 55px;
}

.hero-card-image-premios {
    width: 175px;
    height: 162px;
    left: -43px;
    top: 12px;
}

.hero-card-image-seguros {
    width: 180px;
    height: 160px;
    right: -10px;
    bottom: -15px;
   
}

/* Automovil img */

.automovil{
    position: absolute;
    bottom: 2% !important;
    right: 35% !important;
    width: 430px;
    height: 660px;
    z-index: 99997;
    /* js/hero-scroll.js lo desplaza con translate; no debe bloquear clics al pasar sobre otra sección. */
    pointer-events: none;
}

/* Botón de sonido: el audio está apagado hasta que la persona lo activa. */
.hero-sonido {
    position: absolute;
    right: 4%;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 16px 0 12px;
    border: 2px solid #ffec00;
    border-radius: 22px;
    background: rgba(0, 68, 136, 0.6);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    z-index: 99998;
}

.hero-sonido:hover {
    background: var(--azul);
}

.hero-sonido:focus-visible {
    outline: 3px solid #ffec00;
    outline-offset: 3px;
}

.hero-sonido svg {
    flex-shrink: 0;
}

.hero-sonido-parlante {
    fill: currentColor;
}

.hero-sonido-ondas,
.hero-sonido-silencio {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.hero-sonido-ondas,
.hero-sonido[aria-pressed="true"] .hero-sonido-silencio {
    display: none;
}

.hero-sonido[aria-pressed="true"] .hero-sonido-ondas {
    display: inline;
}

/* Entrada secuencial al cargar, sin alterar las posiciones del diseño. */
.hero {
    overflow-x: clip;
}

.hero > .titulo-content {
    animation: hero-entrada-izquierda 1400ms cubic-bezier(0.45, 0, 0.2, 1) 0s backwards;
}

.hero .automovil {
    animation: hero-entrada-arriba 1600ms cubic-bezier(0.45, 0, 0.2, 1) 1400ms backwards;
}

.hero > .hero-cards,
.hero > .hero-sonido {
    animation: hero-entrada-derecha 1400ms cubic-bezier(0.45, 0, 0.2, 1) 3000ms backwards;
}

/* La entrada espera la respuesta del aviso para que la bocina coincida con la llegada del auto. */
.hero.hero-en-espera > .titulo-content,
.hero.hero-en-espera .automovil,
.hero.hero-en-espera > .hero-cards,
.hero.hero-en-espera > .hero-sonido {
    animation-play-state: paused;
}

/* Aviso de sonido al ingresar */
html:has(.aviso-sonido[open]) {
    overflow: hidden;
}

.aviso-sonido {
    width: min(440px, calc(100% - 32px));
    margin: auto;
    padding: 28px;
    border: 3px solid var(--amarillo);
    border-radius: 16px;
    background: var(--azul);
    color: var(--blanco);
}

.aviso-sonido::backdrop {
    background: rgba(0, 20, 60, 0.6);
}

.aviso-sonido h2 {
    margin-bottom: 10px;
    font-size: 26px;
}

.aviso-sonido p {
    margin-bottom: 22px;
    font-size: 17px;
    line-height: 1.4;
}

.aviso-sonido-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.aviso-sonido-acciones a {
    flex: 1 1 160px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 24px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.aviso-sonido-acciones a:focus-visible {
    outline: 3px solid var(--amarillo);
    outline-offset: 3px;
}

.aviso-sonido-si {
    border: 2px solid var(--verde);
    background: var(--verde);
    color: var(--azul);
}

.aviso-sonido-no {
    border: 2px solid var(--blanco);
    background: transparent;
    color: var(--blanco);
}

@keyframes hero-entrada-izquierda {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes hero-entrada-arriba {
    from { opacity: 0; transform: translateY(-120px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-entrada-derecha {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero > .titulo-content,
    .hero .automovil,
    .hero > .hero-cards,
    .hero > .hero-sonido {
        animation: none;
    }
}
