/* ==========================================================
   HERO INDEX RASO SEGUROS
   Vídeo visible + formulario derecho
   ========================================================== */

.hero-rs{
    position: relative;
    min-height: 700px;
    overflow: hidden;
    background: #06265b;
    color: #fff;
}

.hero-rs-video{
    isolation: isolate;
}

.hero-rs__video{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: .88;
    filter: saturate(1.05) contrast(1.03);
}

.hero-rs__overlay{
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(2,15,42,.90) 0%, rgba(5,35,85,.78) 42%, rgba(6,46,103,.48) 72%, rgba(3,27,70,.62) 100%),
        radial-gradient(circle at 74% 42%, rgba(13,92,168,.22) 0%, rgba(6,38,91,.10) 40%, rgba(2,15,42,.62) 100%);
}

.hero-rs__inner{
    position: relative;
    z-index: 2;
    min-height: 700px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    align-items: center;
    gap: 44px;
    padding-top: 74px;
    padding-bottom: 74px;
}

.hero-rs__copy{
    max-width: 720px;
}

.hero-rs__eyebrow{
    margin: 0;
    color: #9dd3ff;
    font-family: "Poppins", "Inter", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
}

.hero-rs__entrada{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:0 0 18px}

.hero-rs h1{
    margin: 0;
    color: #fff;
    font-family: "Poppins", "Inter", sans-serif;
    font-size: clamp(38px, 3.7vw, 58px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.045em;
    max-width: 760px;
    text-wrap: balance;
    text-shadow: 0 8px 22px rgba(0,0,0,.28);
}

.hero-rs__texto{
    margin: 25px 0 0;
    max-width: 705px;
    color: rgba(255,255,255,.94);
    font-size: 19px;
    line-height: 1.65;
    font-weight: 400;
    text-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.hero-rs__fachada-movil{display:none}

.hero-rs__rating{
    display: flex;
    align-items: center;
    gap:14px;
    padding:3px 0;
}

.hero-rs__stars{
    position:relative;
    display:inline-flex;
    gap:3px;
    color:rgba(255,255,255,.28);
    font-size:27px;
    line-height:1;
    white-space:nowrap;
}

.hero-rs__stars span{position:relative;display:inline-block;animation:heroStarKey .42s cubic-bezier(.2,1.55,.45,1) both}
.hero-rs__stars span:nth-child(1){animation-delay:3.65s}.hero-rs__stars span:nth-child(2){animation-delay:3.82s}.hero-rs__stars span:nth-child(3){animation-delay:3.99s}.hero-rs__stars span:nth-child(4){animation-delay:4.16s}.hero-rs__stars span:nth-child(5){animation-delay:4.33s}
.hero-rs__stars::after{content:"★★★★★";position:absolute;left:0;top:0;width:70%;overflow:hidden;color:#fbbc04;letter-spacing:3px;text-shadow:0 3px 10px rgba(251,188,4,.22);animation:heroStarsFill 3s cubic-bezier(.25,.7,.25,1) .65s forwards}
@keyframes heroStarsFill{from{width:70%}to{width:100%}}
@keyframes heroStarKey{0%,100%{transform:scale(1);color:rgba(255,255,255,.28)}50%{transform:scale(1.32) translateY(-2px);color:#fbbc04}}

.hero-rs__rating-texto{display:flex;flex-direction:column;gap:3px;line-height:1.12}
.hero-rs__rating-texto strong{color:#fff;font-size:16px;font-weight:800}
.hero-rs__rating-texto small{color:rgba(255,255,255,.76);font-size:12px;font-weight:650;white-space:nowrap}
.hero-rs__review-count{display:inline-block;min-width:24px;color:#fbbc04;font-size:13px}

@media (prefers-reduced-motion:reduce){.hero-rs__stars span,.hero-rs__stars::after{animation:none}.hero-rs__stars::after{width:100%}}

.hero-rs__texto strong{position:relative;display:inline;color:#fff;font-weight:800;padding:0 .08em;box-decoration-break:clone;-webkit-box-decoration-break:clone;text-shadow:0 1px 2px rgba(3,20,48,.8)}
.hero-rs__texto strong::before,.hero-rs__texto strong::after{content:"";position:absolute;left:-.03em;bottom:-.08em;width:0;height:.68em;z-index:2;pointer-events:none;transform:rotate(-.45deg);transform-origin:left center;clip-path:polygon(0 18%,97% 3%,100% 78%,2% 100%)}
.hero-rs__texto strong::before{background:rgba(255,211,45,.34);animation:heroMarkerFirst 1.35s cubic-bezier(.2,.65,.3,1) 5s forwards}
.hero-rs__texto strong::after{bottom:-.01em;height:.42em;background:rgba(242,177,12,.24);clip-path:polygon(0 30%,99% 0,100% 74%,1% 100%);animation:heroMarkerSecond 1.2s cubic-bezier(.2,.7,.3,1) 6.35s forwards}
@keyframes heroMarkerFirst{from{width:0}to{width:104%}}
@keyframes heroMarkerSecond{from{width:0}to{width:101%}}
.hero-rs__texto strong span{position:relative}.hero-rs__trazo-manual{position:absolute;z-index:3;pointer-events:none;left:-.38em;top:-.48em;width:calc(100% + .82em);height:2.65em;overflow:visible;transform:rotate(-.7deg)}.hero-rs__trazo-manual path{fill:none;stroke:rgba(255,213,57,.72);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;stroke-dasharray:780;stroke-dashoffset:780;animation:heroMarkerCircle 1.35s cubic-bezier(.35,.05,.45,1) 7.65s forwards}
@keyframes heroMarkerCircle{to{stroke-dashoffset:0}}
@media(prefers-reduced-motion:reduce){.hero-rs__texto strong::before,.hero-rs__texto strong::after{width:102%;animation:none}.hero-rs__trazo-manual path{stroke-dashoffset:0;animation:none}}

.hero-rs__contacto{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    max-width: 760px;
    margin-top: 22px;
    padding: 7px;
    border-radius: 16px;
    background: rgba(5,27,66,.32);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 16px 38px rgba(0,0,0,.14);
    backdrop-filter: blur(8px);
}

.hero-rs__contacto a{
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-height: 68px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    border-right: 1px solid rgba(255,255,255,.18);
    transition: background .2s ease, border-color .2s ease;
}

.hero-rs__contacto a:nth-child(2n){border-right:0}
.hero-rs__contacto a:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.18)}

.hero-rs__contacto a:hover{
    background: rgba(255,255,255,.11);
}

.hero-rs__contacto-texto{
    display:block;
    min-width:0;
}

.hero-rs__contacto .hero-rs__contacto-texto > span{
    display: block;
    margin-bottom: 4px;
    color: #8ddbe0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.hero-rs__contacto .hero-rs__contacto-texto > strong{
    display: block;
    color: #fff;
    font-size: 13px;
    line-height: 1.32;
    font-weight: 600;
}

.hero-rs__contacto--telefono .hero-rs__contacto-texto > strong,
.hero-rs__contacto--whatsapp .hero-rs__contacto-texto > strong{
    font-size:15px;
    letter-spacing:.015em;
}

.hero-rs__contacto-icono{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:rgba(141,219,224,.12);
    color:#8ddbe0;
}

.hero-rs__contacto-icono svg{
    width:20px;
    height:20px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.hero-rs__contacto--telefono .hero-rs__contacto-icono{
    color:#9dccff;
    background:rgba(78,156,238,.16);
}

.hero-rs__contacto--whatsapp .hero-rs__contacto-icono{
    color:#82e6b0;
    background:rgba(37,211,102,.14);
}

.hero-rs__contacto--urgencias .hero-rs__contacto-icono{color:#ff9e9e;background:rgba(255,86,86,.14)}

.hero-rs__contacto--oficina .hero-rs__contacto-icono{
    color:#ffd48a;
    background:rgba(245,185,46,.14);
}

.hero-rs__contacto--telefono .hero-rs__contacto-texto > span{color:#9dccff}
.hero-rs__contacto--whatsapp .hero-rs__contacto-texto > span{color:#82e6b0}
.hero-rs__contacto--urgencias .hero-rs__contacto-texto > span{color:#ff9e9e}
.hero-rs__contacto--oficina .hero-rs__contacto-texto > span{color:#ffd48a}

/* Checks */

.hero-rs__checks{
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 13px;
}

.hero-rs__checks li{
    position: relative;
    padding-left: 38px;
    color: #fff;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 500;
    text-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.hero-rs__checks li::before{
    content: "✓";
    position: absolute;
    left: 0;
    top: -2px;
    width: 25px;
    height: 25px;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

/* Botones */

.hero-rs__acciones{
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.btn-hero{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: max-content;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 12px;
    font-family: "Poppins", "Inter", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}

.btn-hero:hover{
    transform: translateY(-2px);
}

.btn-hero--whatsapp{
    background: #18bf5b;
    color: #fff;
    box-shadow: 0 16px 30px rgba(24,191,91,.24);
}

.btn-hero--whatsapp:hover{
    background: #12a94f;
    color: #fff;
}

.btn-hero--secundario{
    background: #fff;
    color: #06265b;
    box-shadow: 0 14px 26px rgba(0,0,0,.16);
}

.btn-hero--secundario:hover{
    color: #06265b;
}

/* Indicador vídeo */

.hero-rs__video-info{
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255,255,255,.9);
    font-size: 13px;
    font-weight: 500;
}

.hero-rs__play{
    width: 35px;
    height: 35px;
    border: 2px solid rgba(255,255,255,.86);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    padding-left: 2px;
}

.hero-rs__linea{
    width: 118px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg,#6cc7ff 0%,#6cc7ff 45%,rgba(255,255,255,.36) 45%,rgba(255,255,255,.36) 100%);
}

/* Formulario derecho */

.hero-rs__formbox{
    width: 100%;
}

.hero-form{
    background: rgba(255,255,255,.96);
    color: #081b3a;
    border-radius: 24px;
    padding: 34px 34px 30px;
    box-shadow:
        0 28px 70px rgba(0,0,0,.24),
        0 0 0 1px rgba(255,255,255,.42);
    backdrop-filter: blur(10px);
}

.hero-form h2{
    margin: 0;
    color: #061f4d;
    font-family: "Poppins", "Inter", sans-serif;
    font-size: 29px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.035em;
}

.hero-form__intro{
    margin: 14px 0 22px;
    color: #3b4a62;
    font-size: 14px;
    line-height: 1.45;
}

.hero-form__campo{
    margin-bottom: 15px;
}

.hero-form__campo label{
    display: block;
    margin-bottom: 7px;
    color: #061f4d;
    font-size: 14px;
    font-weight: 600;
}

.hero-form__campo input,
.hero-form__campo select{
    width: 100%;
    height: 46px;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    background: #fff;
    color: #081b3a;
    font-family: "Poppins", "Inter", sans-serif;
    font-size: 14px;
    padding: 0 14px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.hero-form__campo input:focus,
.hero-form__campo select:focus{
    border-color: #1263e6;
    box-shadow: 0 0 0 4px rgba(18,99,230,.12);
}

.hero-form__legal{
    margin: 14px 0 18px;
    color: #28364d;
    font-size: 13px;
    line-height: 1.35;
}

.hero-form__legal label{
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.hero-form__legal input{
    margin-top: 2px;
}

.hero-form__btn{
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg,#18bf5b,#13a94f);
    color: #fff;
    font-family: "Poppins", "Inter", sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(24,191,91,.25);
    transition: transform .2s ease, box-shadow .2s ease;
}

.hero-form__btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(24,191,91,.32);
}

.hero-form__nota{
    margin: 16px 0 0;
    color: #0a4d9d;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
}

/* Responsive */

@media (max-width: 1200px){

    .hero-rs__inner{
        grid-template-columns: minmax(0, 1fr) 390px;
        gap: 46px;
    }

    .hero-rs h1{
        font-size: clamp(36px, 4vw, 52px);
    }
}

@media (max-width: 991px){

    .hero-rs,
    .hero-rs__inner{
        min-height: auto;
    }

    .hero-rs__inner{
        grid-template-columns: 1fr;
        gap: 36px;
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .hero-rs__copy{
        max-width: 100%;
    }

    .hero-rs h1{
        font-size: clamp(34px, 8vw, 48px);
    }

    .hero-rs__texto{
        font-size: 17px;
    }

    .hero-rs__contacto{
        grid-template-columns: repeat(2,minmax(0,1fr));
        max-width: 520px;
        gap: 0;
    }

    .hero-rs__formbox{
        max-width: 520px;
    }
}

@media (max-width: 575px){

    .hero-rs__inner{
        padding-top: 42px;
        padding-bottom: 44px;
    }

    .hero-rs__acciones{
        align-items: stretch;
        gap: 12px;
    }

    .btn-hero{
        width: 100%;
        max-width: none;
        min-height: 52px;
    }

    .hero-rs__entrada{gap:10px}
    .hero-rs__rating{gap:9px;padding:6px 9px}
    .hero-rs__stars{gap:2px;font-size:23px}
    .hero-rs__rating-texto{gap:2px}
    .hero-rs__rating-texto strong{font-size:15px}
    .hero-rs__rating-texto small{font-size:10.5px}
    .hero-rs__review-count{min-width:20px;font-size:11px}

    .hero-rs__texto{display:none}
    .hero-rs__fachada-movil{display:block;margin:22px 0 0;overflow:hidden;border:1px solid rgba(255,255,255,.3);border-radius:16px;box-shadow:0 18px 42px rgba(0,0,0,.24)}
    .hero-rs__fachada-movil img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;object-position:center 58%}

    .hero-rs__texto strong::before,
    .hero-rs__texto strong::after,
    .hero-rs__trazo-manual{
        display:none;
    }

    .hero-rs__texto strong span{
        padding:0 .04em .08em;
        background:linear-gradient(transparent 72%,rgba(255,213,57,.72) 72%,rgba(255,213,57,.72) 91%,transparent 91%);
        box-decoration-break:clone;
        -webkit-box-decoration-break:clone;
    }

    .hero-rs__contacto{
        grid-template-columns:1fr;
        margin-top: 18px;
    }

    .hero-rs__contacto a{
        min-height: 64px;
        border-right:0;
        border-bottom:1px solid rgba(255,255,255,.18);
    }
    .hero-rs__contacto a:nth-child(3){border-bottom:1px solid rgba(255,255,255,.18)}
    .hero-rs__contacto a:last-child{border-bottom:0}

    .hero-form{
        border-radius: 20px;
        padding: 26px 22px 24px;
    }

    .hero-form h2{
        font-size: 25px;
    }

    .hero-rs__video-info{
        margin-top: 24px;
    }
}
