/* CORAL RENT A CAR - Animaciones ligeras */
.cr-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
}

.cr-reveal.cr-visible {
    opacity: 1;
    transform: translateY(0);
}

.cr-reveal.cr-delay-1 { transition-delay: .10s; }
.cr-reveal.cr-delay-2 { transition-delay: .20s; }
.cr-reveal.cr-delay-3 { transition-delay: .30s; }

.coral-car-card {
    transition: transform .35s ease, box-shadow .35s ease;
}

.coral-car-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 42px rgba(18, 59, 80, .15);
}

.coral-car-card img {
    transition: transform .65s cubic-bezier(.2,.7,.2,1);
}

.coral-car-card:hover img {
    transform: scale(1.045);
}

.btn-coral,
.hero-actions a,
.google-review-actions a,
.map-directions-btn {
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.btn-coral:hover,
.hero-actions a:hover,
.google-review-actions a:hover,
.map-directions-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.04);
}

.coral-header {
    transition: box-shadow .3s ease, background-color .3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .cr-reveal,
    .coral-car-card,
    .coral-car-card img,
    .btn-coral,
    .hero-actions a,
    .google-review-actions a,
    .map-directions-btn,
    .coral-header {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        scroll-behavior: auto !important;
    }

    .cr-reveal {
        opacity: 1 !important;
    }
}

/* CORRECCION: garantizar visibilidad de los vehiculos */
.coral-car-card.cr-reveal,
.coral-car-card {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none;
}
.coral-car-card.cr-reveal img,
.coral-car-card img {
    visibility: visible !important;
}


/* RECUPERACION DE VISIBILIDAD DE SECCIONES Y FLOTA */
.coral-section.cr-reveal,
#flota.cr-reveal,
#flota .cr-reveal,
#flota .coral-car-card {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
#flota img {
    visibility: visible !important;
}

/* ==========================================
   CORAL RENT A CAR - CARIBBEAN PREMIUM MOTION
   Segunda capa de animaciones
   ========================================== */

/* Entrada cinematográfica de portada */
.hero-copy-block {
    animation: coralHeroEnter 1s ease-out both;
}

.hero-sticker {
    animation: coralStickerFloat 5s ease-in-out infinite;
}

.hero-actions {
    animation: coralHeroEnter 1.1s ease-out .25s both;
}

@keyframes coralHeroEnter {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes coralStickerFloat {
    0%, 100% { transform: translateY(0) rotate(8deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Formulario de reservaciones */
.booking-card {
    animation: coralBookingEnter .85s ease-out .15s both;
}

@keyframes coralBookingEnter {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Vehículos: elevación y profundidad */
.coral-car-card {
    transition: box-shadow .4s ease, border-color .4s ease;
}

.coral-car-card:hover {
    box-shadow: 0 22px 48px rgba(18, 59, 80, .18);
}

.coral-car-card img {
    transition: transform .7s cubic-bezier(.2,.7,.2,1);
}

.coral-car-card:hover img {
    transform: scale(1.06);
}

/* Testimonios */
.testimonial-grid article {
    animation: coralCardEnter .7s ease-out both;
}

.testimonial-grid article:nth-child(2) {
    animation-delay: .12s;
}

.testimonial-grid article:nth-child(3) {
    animation-delay: .24s;
}

@keyframes coralCardEnter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Preguntas frecuentes */
.faq-list details {
    transition: background-color .3s ease, box-shadow .3s ease;
}

.faq-list details:hover {
    box-shadow: 0 8px 24px rgba(18, 59, 80, .08);
}

/* Botones */
.btn-coral,
.google-review-primary,
.google-review-secondary,
.map-directions-btn {
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.btn-coral:hover,
.google-review-primary:hover,
.google-review-secondary:hover,
.map-directions-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(232, 93, 80, .2);
}

/* Contacto */
.contact-card {
    transition: transform .35s ease, box-shadow .35s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .13);
}

/* Botón flotante de WhatsApp */
.floating-whatsapp {
    animation: coralWhatsAppPulse 3s ease-in-out infinite;
}

@keyframes coralWhatsAppPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(32, 191, 193, .25); }
    50% { box-shadow: 0 0 0 11px rgba(32, 191, 193, 0); }
}

/* Accesibilidad: respetar movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .hero-copy-block,
    .hero-sticker,
    .hero-actions,
    .booking-card,
    .testimonial-grid article,
    .floating-whatsapp {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .coral-car-card,
    .coral-car-card img,
    .faq-list details,
    .contact-card,
    .btn-coral {
        transition: none !important;
    }
}

/* ======================================
   CARIBBEAN PREMIUM - SERVICIOS CORAL
   ====================================== */

.coral-services-premium {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 5% 10%, rgba(32,191,193,.09), transparent 38%),
        radial-gradient(ellipse at 95% 85%, rgba(232,93,80,.09), transparent 35%),
        #f7fbfa;
}

.coral-services-premium .section-heading {
    position: relative;
    z-index: 1;
    margin-bottom: 38px;
}

.coral-services-premium .section-heading h2 {
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -1.5px;
}

.coral-services-premium .service-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.service-card-premium {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 285px;
    padding: 25px 23px 22px;
    border: 1px solid rgba(32,191,193,.16);
    border-radius: 17px;
    background: linear-gradient(145deg, #fff 0%, #f1f9f8 100%);
    box-shadow: 0 9px 26px rgba(18,59,80,.055);
    transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}

.service-card-premium:hover {
    transform: translateY(-10px);
    border-color: rgba(32,191,193,.55);
    box-shadow: 0 22px 42px rgba(18,59,80,.13);
}

.service-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.service-icon-premium {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 17px;
    color: white;
    font-size: 27px;
    background: linear-gradient(135deg, #20bfc1, #087f91);
    box-shadow: 0 9px 20px rgba(32,191,193,.23);
    transition: transform .4s ease;
}

.service-card-premium:hover .service-icon-premium {
    transform: rotate(-9deg) scale(1.1);
}

.service-number {
    font: 800 31px Manrope, sans-serif;
    color: rgba(18,59,80,.12);
}

.service-kicker {
    color: #159c9e;
    font: 800 9px Manrope, sans-serif;
    letter-spacing: 1.5px;
}

.service-card-premium h3 {
    margin: 9px 0 10px;
    color: #123b50;
    font: 800 17px Manrope, sans-serif;
}

.service-card-premium p {
    color: #71858a;
    font-size: 12px;
    line-height: 1.85;
    margin: 0 0 20px;
}

.service-card-link {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(18,59,80,.09);
    color: #087f91;
    text-decoration: none;
    font: 800 11px Manrope, sans-serif;
    transition: color .25s ease;
}

.service-card-link span {
    font-size: 19px;
    transition: transform .25s ease;
}

.service-card-link:hover {
    color: #e85d50;
}

.service-card-link:hover span {
    transform: translate(4px,-3px);
}

.service-card-decoration {
    position: absolute;
    z-index: -1;
    width: 130px;
    height: 130px;
    right: -65px;
    top: 105px;
    border: 1px solid rgba(32,191,193,.12);
    border-radius: 50%;
    transition: transform .6s ease;
}

.service-card-premium:hover .service-card-decoration {
    transform: scale(1.7);
}

.services-bottom-note {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    padding: 19px 23px;
    border-radius: 13px;
    color: white;
    background: linear-gradient(110deg, #123b50, #087f91);
}

.services-bottom-note>span {
    color: #ffb6a8;
    font-size: 25px;
}

.services-bottom-note p {
    flex: 1;
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
}

.services-bottom-note a {
    color: white;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.services-bottom-note a:hover {
    color: #ffb6a8;
}

@media(max-width:1050px) {
    .coral-services-premium .service-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media(max-width:760px) {
    .coral-services-premium .service-grid {
        gap: 13px;
    }

    .service-card-premium {
        min-height: 260px;
        padding: 19px 16px;
        border-radius: 14px;
    }

    .service-card-top {
        margin-bottom: 20px;
    }

    .service-icon-premium {
        width: 48px;
        height: 48px;
        font-size: 23px;
    }

    .service-card-premium h3 {
        font-size: 14px;
    }

    .service-card-premium p {
        font-size: 11px;
    }

    .services-bottom-note {
        flex-wrap: wrap;
        padding: 17px;
    }

    .services-bottom-note p {
        flex-basis: calc(100% - 45px);
    }

    .services-bottom-note a {
        margin-left: 39px;
    }
}

@media(max-width:420px) {
    .coral-services-premium .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card-premium {
        min-height: 235px;
    }
}

@media(prefers-reduced-motion: reduce) {
    .service-card-premium,
    .service-icon-premium,
    .service-card-decoration,
    .service-card-link span {
        transition: none !important;
    }
}

/* ==========================================
   CORAL RENT A CAR - EXPERIENCIA OCEANICA
   ========================================== */

.coral-about-ocean{
    position:relative;
    overflow:hidden;
    background:linear-gradient(125deg,#fff5e9,#f9e9dc 55%,#fce0d5);
}

.about-photo-ocean{
    overflow:hidden;
    isolation:isolate;
    background-position:center;
}

.about-photo-ocean:after{
    content:"";
    position:absolute;
    inset:0;
    z-index:0;
    background:linear-gradient(135deg,rgba(8,45,61,.08),rgba(7,44,60,.28));
    animation:oceanLight 8s ease-in-out infinite alternate;
    pointer-events:none;
}

.about-photo-overlay{
    position:absolute;
    inset:0;
    z-index:0;
    background:radial-gradient(ellipse at 70% 65%,rgba(255,255,255,.18),transparent 55%);
    pointer-events:none;
}

.coral-art{
    position:absolute;
    z-index:2;
    width:clamp(170px,22vw,290px);
    right:5%;
    bottom:-12px;
    transform-origin:bottom center;
    animation:coralSway 5s ease-in-out infinite;
    filter:drop-shadow(0 12px 18px rgba(5,35,48,.24));
    pointer-events:none;
}

.coral-art svg{
    display:block;
    width:100%;
    height:auto;
}

.coral-photo-caption{
    position:absolute;
    z-index:3;
    left:30px;
    bottom:82px;
    color:white;
    font-size:9px;
    font-weight:800;
    letter-spacing:2px;
    text-shadow:0 2px 12px rgba(0,0,0,.4);
    animation:coralCaptionIn 1.2s .4s both;
}

.coral-photo-caption span{
    color:#ff9a85;
    margin-right:8px;
}

.ocean-floating-bubble{
    position:absolute;
    z-index:1;
    bottom:-25px;
    width:12px;
    height:12px;
    border:1px solid rgba(255,255,255,.8);
    border-radius:50%;
    background:rgba(255,255,255,.12);
    box-shadow:inset 0 0 5px rgba(255,255,255,.7);
    animation:bubbleRise 7s linear infinite;
    pointer-events:none;
}

.bubble-one{left:20%;animation-delay:0s}
.bubble-two{left:48%;width:8px;height:8px;animation-delay:2s}
.bubble-three{left:75%;width:16px;height:16px;animation-delay:3.5s}

.about-content-ocean{
    position:relative;
    z-index:1;
    padding:85px 10%;
    overflow:hidden;
}

.about-content-ocean .eyebrow{
    position:relative;
    z-index:2;
    color:#f15b3b;
    font-weight:900;
    letter-spacing:3px;
    animation:coralCaptionIn .8s both;
}

.about-title-decoration{
    margin:24px 0 10px;
    color:#d37b61;
    font-size:9px;
    font-weight:900;
    letter-spacing:3px;
    animation:coralCaptionIn .9s .15s both;
}

.about-content-ocean h2{
    position:relative;
    z-index:2;
    max-width:650px;
    animation:aboutTitleIn 1s .2s both;
}

.about-content-ocean>p:not(.eyebrow){
    position:relative;
    z-index:2;
    max-width:570px;
    animation:coralCaptionIn 1s .4s both;
}

.about-coral-divider{
    display:flex;
    align-items:center;
    gap:12px;
    width:150px;
    margin:22px 0;
    color:#f15b3b;
}

.about-coral-divider span{
    height:2px;
    flex:1;
    background:linear-gradient(90deg,#f15b3b,rgba(241,91,59,.1));
}

.about-coral-divider i{
    font-style:normal;
    animation:coralSpark 2.5s ease-in-out infinite;
}

.about-ocean-button{
    position:relative;
    z-index:3;
    display:inline-flex;
    align-items:center;
    gap:12px;
    padding:15px 20px;
    border-radius:5px;
    background:#f15b3b;
    color:white!important;
    box-shadow:0 9px 22px rgba(241,91,59,.22);
    transition:transform .3s ease,box-shadow .3s ease;
}

.about-ocean-button:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 30px rgba(241,91,59,.35);
}

.about-ocean-button span{
    font-size:17px;
}

.about-trust-line{
    position:relative;
    z-index:2;
    margin-top:28px;
    color:#a16e60;
    font-size:9px;
    font-weight:900;
    letter-spacing:1.7px;
}

.about-trust-line span{margin-right:7px}

.about-ocean-orbit{
    position:absolute;
    right:9%;
    top:12%;
    color:rgba(241,91,59,.09);
    font-size:190px;
    line-height:1;
    animation:coralOrbit 22s linear infinite;
    pointer-events:none;
}

@keyframes coralSway{
    0%,100%{transform:rotate(-2deg) translateY(0)}
    50%{transform:rotate(2deg) translateY(-9px)}
}

@keyframes bubbleRise{
    0%{transform:translateY(0) scale(.6);opacity:0}
    15%{opacity:.8}
    85%{opacity:.6}
    100%{transform:translateY(-480px) scale(1.3);opacity:0}
}

@keyframes oceanLight{
    from{opacity:.55}
    to{opacity:1}
}

@keyframes coralCaptionIn{
    from{opacity:0;transform:translateY(20px)}
    to{opacity:1;transform:translateY(0)}
}

@keyframes aboutTitleIn{
    from{opacity:0;transform:translateY(28px);filter:blur(5px)}
    to{opacity:1;transform:translateY(0);filter:blur(0)}
}

@keyframes coralSpark{
    0%,100%{transform:scale(1);opacity:.7}
    50%{transform:scale(1.5);opacity:1}
}

@keyframes coralOrbit{
    to{transform:rotate(360deg)}
}

@media(max-width:760px){
    .coral-about-ocean{grid-template-columns:1fr}
    .about-photo-ocean{min-height:340px}
    .coral-art{width:190px;right:3%;bottom:-8px}
    .coral-photo-caption{left:20px;bottom:75px;font-size:8px}
    .about-content-ocean{padding:55px 7%}
    .about-content-ocean h2{font-size:36px}
    .about-ocean-orbit{font-size:120px;right:2%;top:8%}
}

@media(prefers-reduced-motion:reduce){
    .coral-about-ocean *,
    .coral-about-ocean *:before,
    .coral-about-ocean *:after{
        animation:none!important;
        transition:none!important;
    }
}

/* Animación de filtrado de vehículos */
.filter-chip{
    cursor:pointer;
    transition:background .25s ease,color .25s ease,
               border-color .25s ease,transform .25s ease;
}

.filter-chip:hover{
    transform:translateY(-2px);
}

.filter-chip:focus-visible{
    outline:3px solid rgba(241,91,59,.45);
    outline-offset:3px;
}

.coral-car-card[hidden]{
    display:none!important;
}

.coral-car-card.filter-card-in{
    animation:coralFilterIn .38s ease both;
}

@keyframes coralFilterIn{
    from{opacity:0;transform:translateY(16px) scale(.98)}
    to{opacity:1;transform:translateY(0) scale(1)}
}
