:root {
    --blue: #0b63ce;
    --blue-dark: #092b58;
    --red: #ee2824;
    --ink: #172033;
    --muted: #667085;
    --line: #e6eaf0;
    --light: #f6f8fb;
    --white: #fff;
    --shadow: 0 18px 45px rgba(17, 24, 39, .16);
    --radius: 24px;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: #fff; line-height: 1.6 }
img { max-width: 100%; display: block }
a { color: inherit; text-decoration: none }
.container { width: min(1160px, 92%); margin-inline: auto }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(230, 234, 240, .85) }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 82px }
.brand img { height: 68px; width: auto; object-fit: contain }
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-weight: 700; font-size: .95rem }
.main-nav a { position: relative; color: #253048 }
.main-nav a.active, .main-nav a:hover { color: var(--blue) }
.header-cta, .btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 13px 22px; font-weight: 800; border: 0; cursor: pointer; transition: .2s ease; gap: 8px }
.header-cta, .btn.primary { background: var(--red); color: #fff; box-shadow: 0 12px 28px rgba(238, 40, 36, .28) }
.header-cta:hover, .btn.primary:hover { transform: translateY(-2px); filter: brightness(.96) }
.btn.secondary { background: rgba(255, 255, 255, .15); color: #fff; border: 1px solid rgba(255, 255, 255, .55) }
.btn.outline { background: #fff; color: var(--blue); border: 1px solid var(--line) }
.btn.full { width: 100% }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 0; width: 42px; height: 42px }
.nav-toggle span { display: block; height: 3px; background: var(--ink); margin: 7px; border-radius: 3px }
.hero, .page-hero { position: relative; min-height: 760px; background-image: var(--hero-image); background-size: cover; background-position: center; display: flex; align-items: center; color: #fff; overflow: hidden }
.page-hero { min-height: 430px }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(4, 17, 38, .92), rgba(9, 43, 88, .68), rgba(9, 43, 88, .25)) }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: center; padding: 90px 0 }
.hero-copy h1, .page-hero h1 { font-size: clamp(3rem, 8vw, 6.8rem); line-height: .9; margin: 10px 0 24px; letter-spacing: -.06em }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 5rem) }
.hero-copy h1 span { display: block; color: #fff; -webkit-text-stroke: 1px rgba(255, 255, 255, .4) }
.hero-copy p, .page-hero p { font-size: 1.2rem; max-width: 650px; color: #d8dbe1 }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 900; color: #d8dbe1 }
.eyebrow.red { color: var(--red) }
.hero-actions, .section-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px }
.hero-phones { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; align-items: center; color: #e7edf7 }
.hero-phones span { padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(255, 255, 255, .08) }
.quote-card, .contact-panel { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px }
.quote-card h2 { font-size: 2rem; margin: 0 0 8px }
.quote-card p { color: var(--muted); margin-top: 0 }
.alert { padding: 12px 14px; border-radius: 14px; margin: 16px 0; font-weight: 700 }
.alert.success { background: #eaf8ee; color: #176b32 }
.alert.error { background: #fff0f0; color: #b42318 }
.contact-form { display: grid; gap: 14px }
.contact-form label { display: grid; gap: 7px; font-weight: 800; font-size: .9rem }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; font: inherit; background: #fff; color: var(--ink) }
.contact-form textarea { min-height: 115px; resize: vertical }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 3px solid rgba(11, 99, 206, .15); border-color: var(--blue) }
.hidden-field { position: absolute!important; left: -9999px!important; opacity: 0!important }
.trust-strip { background: #fff; border-bottom: 1px solid var(--line) }
.trust-inner { display: flex; align-items: center; justify-content: center; gap: 36px; padding: 18px 0 }
.trust-inner img { max-height: 64px; width: auto }
.trust-inner p { font-weight: 800; margin: 0; color: #344054 }
.section { padding: 96px 0 }
.cards { display: grid; gap: 22px }
.cards.four { grid-template-columns: repeat(4, 1fr) }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: 0 8px 30px rgba(17, 24, 39, .06) }
.card span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: #eaf2ff; color: var(--blue); font-weight: 900 }
.card h3 { margin: 18px 0 8px; font-size: 1.12rem }
.card p { margin: 0; color: var(--muted) }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center }
.split.reverse { grid-template-columns: .9fr 1.1fr }
.section-copy h2, .center h2, .cta-content h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.02; letter-spacing: -.04em; margin: 12px 0 20px }
.section-copy p, .center p { color: var(--muted); font-size: 1.05rem }
.about-images { display: grid; gap: 18px }
.about-images img, .image-panel img { border-radius: 24px; box-shadow: var(--shadow); object-fit: cover; width: 100% }
.dark { background: linear-gradient(135deg, var(--blue-dark), #06182f); color: #fff }
.dark p { color: #d8dbe1 }

/* ==========================================================================
   NUEVA SECCIÓN DE SERVICIOS (Grid moderno con imágenes)
   ========================================================================== */
.services-header {
    margin-bottom: 52px;
}
.services-header p {
    max-width: 680px;
    margin: 16px auto 0;
    color: #d8dbe1;
    font-size: 1.05rem;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
.service-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(230, 234, 240, 0.12);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background-color .28s ease;
}
.service-item:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    border-color: rgba(11, 99, 206, 0.4);
}
.service-image {
    width: 100%;
    height: 210px;
    overflow: hidden;
    position: relative;
    background: var(--blue-dark);
}
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-item:hover .service-image img {
    transform: scale(1.06);
}
.service-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.service-body h3 {
    font-size: 1.25rem;
    margin: 0 0 12px 0;
    color: var(--white);
    font-weight: 800;
    line-height: 1.3;
}
.service-body p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.6;
    color: #c9ced6;
}
.services-actions {
    margin-top: 24px;
}

@media (max-width: 980px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .services-header { margin-bottom: 40px; }
}
@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; gap: 18px; }
    .service-image { height: 190px; }
    .service-body { padding: 22px; }
}

.center { text-align: center }
.center>p { max-width: 740px; margin-inline: auto }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px }
.gallery-grid.catalog { grid-template-columns: repeat(3, 1fr) }
.gallery-item { appearance: none; border: 0; background: #fff; border-radius: 22px; padding: 0; overflow: hidden; box-shadow: 0 8px 30px rgba(17, 24, 39, .08); cursor: pointer }
.gallery-item img { width: 100%; height: 285px; object-fit: cover; transition: transform .28s ease }
.gallery-item:hover img { transform: scale(1.04) }
.cta-band { position: relative; background-image: linear-gradient(90deg, rgba(4, 17, 38, .9), rgba(4, 17, 38, .5)), var(--cta-image); background-size: cover; background-position: center; color: #fff; padding: 92px 0 }
.cta-content { max-width: 720px }
.cta-content p { color: #d8dbe1; font-size: 1.1rem }
.logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 32px }
.logo-card { height: 150px; border: 1px solid var(--line); border-radius: 18px; display: grid; place-items: center; background: #fff; padding: 20px }
.logo-card img { max-height: 108px; max-width: 100%; object-fit: contain }
.contact-list { display: grid; gap: 8px; margin-top: 24px }
.contact-list p { margin: 0 }
.contact-panel { background: rgba(255, 255, 255, .98) }
.site-footer { background: #071222; color: #d8dbe1 }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr .9fr; gap: 34px; padding: 52px 0 }
.footer-logo { height: 56px; width: auto; background: #fff; border-radius: 12px; padding: 6px; margin-bottom: 14px }
.site-footer h3 { color: #fff; margin-top: 0 }
.footer-link { color: #fff; font-weight: 800; text-decoration: underline }
.payment-badges { display: flex; flex-wrap: wrap; gap: 8px }
.pay-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff;
    color: #0b1626;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .02em;
    box-shadow: 0 4px 10px rgba(0,0,0,.2);
}
.pay-mastercard { background: linear-gradient(90deg,#fff 50%,#fff 50%); color: #eb001b }
.pay-visa { color: #1a1f71 }
.pay-amex { background: #016fd0; color: #fff }
.pay-ripley { background: #e10600; color: #fff }
.pay-diners { background: #0079be; color: #fff }
.pay-oh { background: #ec1c4b; color: #fff }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; color: #aab4c4 }
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 1001; background: #25d366; color: #fff; font-weight: 900; border-radius: 999px; padding: 14px 18px; box-shadow: 0 18px 40px rgba(37, 211, 102, .35) }
.lightbox { position: fixed; inset: 0; background: rgba(3, 7, 18, .9); display: none; place-items: center; z-index: 2000; padding: 30px }
.lightbox.open { display: grid }
.lightbox img { max-width: min(100%, 1100px); max-height: 86vh; border-radius: 18px; box-shadow: var(--shadow) }
.lightbox-close { position: absolute; right: 24px; top: 20px; width: 46px; height: 46px; border-radius: 999px; border: 0; background: #fff; color: #111; font-size: 2rem; cursor: pointer }
.page-hero-content { position: relative; padding-top: 60px }
.thanks { min-height: 520px; display: flex; align-items: center }
.narrow { max-width: 760px }

@media (max-width: 980px) {
    .header-inner { min-height: 74px }
    .nav-toggle { display: block }
    .main-nav { position: absolute; top: 74px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; flex-direction: column; padding: 20px }
    .main-nav.open { display: flex }
    .header-cta { display: none }
    .hero-grid, .split, .split.reverse { grid-template-columns: 1fr }
    .hero { min-height: auto }
    .hero-grid { padding: 70px 0 }
    .quote-card { max-width: 620px }
    .cards.four { grid-template-columns: repeat(2, 1fr) }
    .gallery-grid, .gallery-grid.catalog { grid-template-columns: repeat(2, 1fr) }
    .logo-grid { grid-template-columns: repeat(3, 1fr) }
    .trust-inner { flex-direction: column; text-align: center; gap: 10px }
    .footer-grid { grid-template-columns: 1fr 1fr }
}
@media (max-width: 640px) {
    .container { width: min(100% - 32px, 1160px) }
    .hero-copy h1 { font-size: 3.4rem }
    .hero-actions, .section-actions { flex-direction: column }
    .btn { width: 100% }
    .cards.four, .gallery-grid, .gallery-grid.catalog, .logo-grid, .footer-grid { grid-template-columns: 1fr }
    .gallery-item img { height: 245px }
    .section { padding: 68px 0 }
    .quote-card, .contact-panel { padding: 22px }
    .whatsapp-float { right: 14px; bottom: 14px; padding: 12px 14px }
    .trust-inner img { max-height: 54px }
}

/* ===== Mejoras visuales Rafa Tours: chispitas, scroll y microinteracciones ===== */
.site-header { transition: min-height .25s ease, box-shadow .25s ease, background .25s ease }
.site-header.scrolled { background: rgba(255, 255, 255, .98); box-shadow: 0 12px 30px rgba(17, 24, 39, .10) }
.site-header.scrolled .header-inner { min-height: 66px }
.site-header.scrolled .brand img { height: 58px }

.hero-grid, .page-hero-content, .cta-content { z-index: 2 }
.has-sparkles { isolation: isolate }
.sparkle-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1 }
.sparkle-layer span { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 999px; background: radial-gradient(circle, #fff 0 28%, rgba(255, 255, 255, .82) 42%, rgba(255, 255, 255, 0) 72%); box-shadow: 0 0 12px rgba(255, 255, 255, .95), 0 0 26px rgba(11, 99, 206, .55); opacity: .72; animation: sparkleFloat var(--d) ease-in-out infinite; animation-delay: var(--delay); transform: translate3d(0, 0, 0) }
.sparkle-layer span:nth-child(3n) { background: radial-gradient(circle, #fff 0 25%, rgba(255, 220, 160, .9) 42%, rgba(255, 255, 255, 0) 72%); box-shadow: 0 0 14px rgba(255, 255, 255, .9), 0 0 24px rgba(238, 40, 36, .38) }
@keyframes sparkleFloat { 0%, 100% { transform: translateY(0) scale(.75); opacity: .24 } 35% { opacity: .95 } 50% { transform: translateY(-22px) scale(1.15); opacity: 1 } 75% { opacity: .55 } }

.btn, .header-cta, .whatsapp-float { position: relative; overflow: hidden; will-change: transform }
.btn.primary::after, .header-cta::after { content: ""; position: absolute; inset: -80% auto -80% -60%; width: 48%; transform: rotate(25deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .48), transparent); transition: left .55s ease; pointer-events: none }
.btn.primary:hover::after, .header-cta:hover::after { left: 115%}
.whatsapp-float { animation: whatsappPulse 2.6s ease-in-out infinite }
.whatsapp-float::before { content: ""; position: absolute; inset: -7px; border-radius: 999px; border: 2px solid rgba(37, 211, 102, .45); animation: whatsappRing 2.2s ease-out infinite; pointer-events: none }
@keyframes whatsappPulse { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-4px) } }
@keyframes whatsappRing { 0% { transform: scale(.75); opacity: .9 } 100% { transform: scale(1.45); opacity: 0 } }

.card, .gallery-item, .logo-card, .service-item, .contact-panel, .about-images img, .image-panel img { transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease }
.card:hover, .logo-card:hover, .service-item:hover, .contact-panel:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgba(17, 24, 39, .13); border-color: rgba(11, 99, 206, .28) }
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(17, 24, 39, .16) }
.about-images img:hover, .image-panel img:hover { transform: scale(1.018) }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease }
.reveal.visible { opacity: 1; transform: translateY(0) }
.reveal.delay-1 { transition-delay: .08s }.reveal.delay-2 { transition-delay: .16s }.reveal.delay-3 { transition-delay: .24s }.reveal.delay-4 { transition-delay: .32s }

.contact-form input, .contact-form textarea, .contact-form select { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { box-shadow: 0 10px 24px rgba(11, 99, 206, .10); transform: translateY(-1px) }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto }.sparkle-layer, .sparkle-layer span, .whatsapp-float, .whatsapp-float::before, .reveal, .card, .gallery-item, .logo-card, .service-item, .contact-panel, .about-images img, .image-panel img, .btn.primary::after, .header-cta::after { animation: none!important; transition: none!important }.reveal { opacity: 1; transform: none } }
.footer-admin { color: inherit; opacity: .75; margin-left: 8px; text-decoration: underline; text-underline-offset: 3px }.footer-admin:hover { opacity: 1 }

/* ===== AGREGADOS ===== */
.service-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    gap: 8px;
}
.service-list li {
    position: relative;
    padding-left: 20px;
    font-size: .9rem;
    color: #c9ced6;
    line-height: 1.5;
}
.service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
}
.service-body h3 { margin-bottom: 10px; }
.service-body p { margin-bottom: 14px; }

/* ===== SEGUNDO AGREGADOS ===== */
.service-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}
.service-gallery-item {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 0;
    outline: 0;
    background: transparent;
    background-color: transparent;
    padding: 0;
    margin: 0;
    display: block;
    width: 100%;
    line-height: 0;
    font-size: 0;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,.25);
    cursor: pointer;
    overflow: hidden;
    transition: transform .25s ease;
}
.service-gallery-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}
.service-gallery-item:hover {
    transform: scale(1.04);
}
@media (max-width: 640px) {
    .service-gallery { grid-template-columns: repeat(2, 1fr); }
}