/* =============================================================
   GAREZMA — CSS HOME (Neon Luminary)
   ============================================================= */

/* ---- Base ---- */
.hm-container  { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.hm-section    { padding: 96px 0; }
.hm-bg-surface { background: #0d0e13; }
.hm-bg-low     { background: #121319; }
.hm-center     { text-align: center; }
.hm-flex-between { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.hm-accent-line  { width: 64px; height: 4px; background: #84adff; border-radius: 99px; margin-top: 16px; }
.hm-section-head { margin-bottom: 52px; }

/* ---- Typography ---- */
.hm-h1 {
    font-family: var(--font-headline,'Plus Jakarta Sans',sans-serif);
    font-size: 55px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.06;
    color: #f7f5fd;
    margin: 0 0 10px;
}
.hm-h2 {
    font-family: var(--font-headline,'Plus Jakarta Sans',sans-serif);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #f7f5fd;
    margin: 0 0 8px;
    line-height: 1.12;
}
.hm-h3 {
    font-family: var(--font-headline,'Plus Jakarta Sans',sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: #f7f5fd;
    margin: 0 0 10px;
}
.hm-h4 {
    font-family: var(--font-headline,'Plus Jakarta Sans',sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: #f7f5fd;
    margin: 0 0 8px;
}
.hm-gradient-text {
    background: linear-gradient(90deg, #84adff 0%, #00f1fe 50%, #84adff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hm-flow 5s linear infinite;
    /*display: inline-block;*/
}
@keyframes hm-flow { 0%{background-position:0%} 100%{background-position:200%} }

.hm-kicker {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 999px;
    background: rgba(132,173,255,.1);
    border: 1px solid rgba(132,173,255,.2);
    color: #84adff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hm-kicker-sm {
    display: block;
    color: #00f1fe;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.hm-body-muted { color: #abaab1; font-size: 1rem; line-height: 1.75; margin: 0; }
.hm-body-sm    { color: #abaab1; font-size: .88rem; line-height: 1.65; margin: 0; }

.hm-link-underline {
    color: #f7f5fd !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: .88rem;
    border-bottom: 2px solid rgba(132,173,255,.5);
    padding-bottom: 2px;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
}
.hm-link-underline:hover { color: #84adff !important; border-color: #84adff; }

/* ---- Buttons ---- */
.hm-btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #84adff, #0070ea);
    color: #fff !important;
    font-family: var(--font-headline,'Plus Jakarta Sans',sans-serif);
    font-weight: 800; font-size: .95rem;
    border-radius: 12px; text-decoration: none !important;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(132,173,255,.3);
}
.hm-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(132,173,255,.45); color: #000 !important; }

.hm-btn-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    background: #181920; color: #f7f5fd !important;
    font-family: var(--font-headline,'Plus Jakarta Sans',sans-serif);
    font-weight: 700; font-size: .95rem;
    border-radius: 12px; border: 1px solid rgba(71,71,78,.3);
    text-decoration: none !important; transition: background .2s;
}
.hm-btn-ghost:hover { background: #2a2c34; color: #f7f5fd !important; }

/* ---- HERO ---- */
.hm-hero {
    position: relative;
    background: #0d0e13;
    overflow: hidden;
    padding: 0px;
}
.hm-hero-glow {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 65% 40%, rgba(132,173,255,.07) 0%, transparent 55%);
    pointer-events: none;
}
.hm-hero-grid {
    max-width: 1200px; margin: 0 auto; padding: 0 32px;
    display: grid;
    grid-template-columns: 60% 40%;
    align-items: center;
    gap: 40px;
}
.hm-hero-desc {
    font-size: 1.05rem; color: #abaab1; line-height: 1.75;
     margin: 0 0 32px;
}
.hm-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Hero image */
.hm-hero-img-wrap {
    position: relative;
    max-width: 460px;
    margin: 0 auto;
}
.hm-hero-img-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(132,173,255,.15) 0%, transparent 65%);
    pointer-events: none;
    filter: blur(20px);
}
.hm-hero-img {
    width: 100%; height: auto; display: block;
    animation: hm-rise 1s ease-out forwards;
    mask-image: linear-gradient(to bottom, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 88%, transparent 100%);
    position: relative; z-index: 2;
}
@keyframes hm-rise { from{opacity:0;transform:translateY(40px)} to{opacity:1;transform:translateY(0)} }

/* Badges glassmorphism */
.hm-badge {
    position: absolute;
    z-index: 10;
    display: flex; align-items: center; gap: 14px;
    padding: 12px 18px;
    background: rgba(13,14,19,.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(71,71,78,.2);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.6);
    min-width: 170px;
}
.hm-badge--top    { top: 4%; right: -8%; animation: hm-badge-l .8s ease-out forwards; border-top-color: rgba(132,173,255,.4); }
.hm-badge--bottom { bottom: 30%; left: -10%; animation: hm-badge-r .8s ease-out .2s both; border-top-color: rgba(0,241,254,.4); }
@keyframes hm-badge-l { from{opacity:0;transform:translateX(30px)} to{opacity:1;transform:translateX(0)} }
@keyframes hm-badge-r { from{opacity:0;transform:translateX(-30px)} to{opacity:1;transform:translateX(0)} }

.hm-badge-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hm-badge-icon--blue  { background: rgba(132,173,255,.15); color: #84adff; }
.hm-badge-icon--cyan  { background: rgba(0,241,254,.15);   color: #00f1fe; }
.hm-badge-text { display: flex; flex-direction: column; line-height: 1.3; }
.hm-badge-title{ font-weight: 800; font-size: .88rem; color: #f7f5fd; }
.hm-badge-sub  { font-size: .72rem; color: #abaab1; }

/* ---- NOSOTROS ---- */
.hm-nosotros-card {
    background: #181920;
    border: 1px solid rgba(71,71,78,.15);
    border-radius: 24px;
    padding: 52px 56px;
    position: relative;
    overflow: hidden;
}
.hm-nosotros-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #84adff, #00f1fe, transparent);
}
.hm-nosotros-top  { margin-bottom: 28px; }
.hm-nosotros-cols {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
    width: 100%;
}
.hm-nosotros-cols p {
    width: 100%;
    max-width: 100%;
}
.hm-nosotros-footer { display: flex; }

/* ---- PROMESA ---- */
.hm-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.hm-benefit-card {
    background: #121319;
    border: 1px solid rgba(71,71,78,.12);
    border-radius: 18px;
    padding: 28px 24px;
    transition: border-color .25s, transform .25s;
}
.hm-benefit-card:hover { border-color: rgba(132,173,255,.25); transform: translateY(-3px); }
.hm-benefit-num {
    font-family: var(--font-headline,'Plus Jakarta Sans',sans-serif);
    font-size: 2rem; font-weight: 900; line-height: 1;
    margin-bottom: 14px; display: block;
}

/* ---- SERVICIOS ---- */
.hm-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    grid-auto-flow: dense;
}
/* Primer servicio más ancho */
.hm-services-grid .hm-service-card:first-child {
    grid-column: span 2;
}
.hm-service-card {
    background: #181920;
    border: 1px solid rgba(71,71,78,.1);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: border-color .25s, transform .25s, box-shadow .25s;
    position: relative;
    overflow: hidden;
}
.hm-service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(132,173,255,.3), transparent);
    opacity: 0;
    transition: opacity .25s;
}
.hm-service-card:hover {
    border-color: rgba(132,173,255,.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.hm-service-card:hover::before { opacity: 1; }
.hm-service-icon {
    font-size: 1.8rem;
    color: #84adff;
    margin-bottom: 20px;
    display: block;
    transition: transform .25s;
}
.hm-service-card:hover .hm-service-icon { transform: scale(1.1); }
.hm-service-card .hm-body-sm { flex-grow: 1; margin-bottom: 22px; }
.hm-service-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: #84adff !important;
    font-size: .82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    text-decoration: none !important;
    margin-top: auto;
    transition: gap .2s;
}
.hm-service-link:hover { gap: 12px; }

/* ---- PORTAFOLIO (reutiliza clases de home.css original) ---- */
.hm-portfolio-section .hm-container { margin-bottom: 32px; }

.portfolio-wrapper-outer { position: relative; width: 100%; padding: 20px 0; }
.portfolio-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(13,14,19,.85); border: 1px solid rgba(71,71,78,.25);
    color: #f7f5fd; font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 20;
    backdrop-filter: blur(8px); transition: .25s; padding: 0;
}
.portfolio-nav-btn:hover { background: #84adff; border-color: #84adff; color: #000; }
.nav-prev { left: 12px; } .nav-next { right: 12px; }

.portfolio-marquee-wrapper {
    overflow-x: auto; overflow-y: hidden; white-space: nowrap;
    -ms-overflow-style: none; scrollbar-width: none; scroll-behavior: auto;
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.portfolio-marquee-wrapper::-webkit-scrollbar { display: none; }
.portfolio-track { display: inline-flex; gap: 24px; padding: 8px 56px; }
.portfolio-item  { width: 360px; flex-shrink: 0; }

.portfolio-item-card {
    position: relative; overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(71,71,78,.15);
    background: #121319;
    display: flex; flex-direction: column;
    transition: border-color .25s;
}
.portfolio-item-card:hover { border-color: rgba(132,173,255,.25); }
.portfolio-thumb-wrap { position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden; }
.portfolio-thumb-wrap img { width:100%; height:100%; object-fit:cover; transition:transform .5s; display:block; }
.portfolio-item-card:hover .portfolio-thumb-wrap img { transform: scale(1.06); }

.portfolio-overlay-hover {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s; text-decoration: none;
}
.portfolio-item-card:hover .portfolio-overlay-hover { opacity: 1; }
.btn-visit {
    padding: 10px 22px;
    border: 1px solid #f7f5fd; color: #f7f5fd;
    font-family: var(--font-headline,'Plus Jakarta Sans',sans-serif);
    font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
    border-radius: 8px; transition: .25s;
    transform: translateY(14px); transition: transform .25s, background .25s;
}
.portfolio-item-card:hover .btn-visit { transform: translateY(0); background: #f7f5fd; color: #000; }
.portfolio-caption {
    padding: 14px 16px;
    font-family: var(--font-headline,'Plus Jakarta Sans',sans-serif);
    font-weight: 700; font-size: .88rem;
    color: #f7f5fd; background: #0d0e13;
    border-top: 1px solid rgba(71,71,78,.15);
    display: block; white-space: normal;
}

/* ---- TESTIMONIOS ---- */
.garezma-slider-container { position: relative; overflow: hidden; padding: 10px 48px 20px; }
.garezma-slider-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.garezma-slide { min-width: 100%; box-sizing: border-box; padding: 10px; }

.hm-testimonial-card {
    background: #121319;
    border: 1px solid rgba(71,71,78,.12);
    border-radius: 20px;
    padding: 40px 44px;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    transition: transform .3s;
}
.garezma-slide:hover .hm-testimonial-card { transform: scale(1.01); }
.hm-testimonial-card::before {
    content: ''; position: absolute; top:0;left:0;right:0;height:2px;
    background: linear-gradient(90deg, #84adff, #00f1fe, transparent);
    border-radius: 20px 20px 0 0;
}
.hm-quote-icon { color: #84adff; opacity: .5; margin-bottom: 18px; }
.hm-quote-text {
    color: #cbd5e1; font-size: .95rem; font-style: italic;
    line-height: 1.75; margin: 0 0 20px;
}
.hm-quote-stars { display: flex; gap: 3px; margin-bottom: 24px; }
.hm-quote-author { display: flex; align-items: center; gap: 14px; }
.hm-quote-author img { width:48px; height:48px; border-radius:50%; object-fit:cover; border:2px solid rgba(71,71,78,.3); }
.hm-quote-name    { font-weight: 700; color: #f7f5fd; font-size: .95rem; }
.hm-quote-company { color: #abaab1; font-size: .8rem; margin-top: 2px; }

.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgb(61 64 81 / 90%); color: #f7f5fd;
    border: 1.5px solid rgba(247,245,253,.35);
    width: auto; height: 44px; border-radius: 50%;
    cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: .25s; backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.slider-arrow:hover { background: #84adff; border-color: #84adff; color: #000; transform: translateY(-50%) scale(1.08); }
.prev-arrow { left: 4px; } .next-arrow { right: 4px; }

/* ---- FAQ ---- */
.hm-faq-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 64px;
    align-items: start;
}
.hm-faq-left { position: sticky; top: 110px; }

/* FAQ accordion — usa las clases de global.css, solo overrides de layout */
.hm-faq-right { display: flex; flex-direction: column; gap: 0; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .hm-benefits-grid   { grid-template-columns: repeat(2,1fr); }
    .hm-services-grid .hm-service-card:first-child { grid-column: auto; }
}
@media (max-width: 960px) {
    .hm-hero-grid       { grid-template-columns: 1fr; padding: 0 24px; }
    .hm-hero            { padding: 60px 0 50px; }
    .hm-hero-right      { display: none; } /* ocultar imagen en mobile para limpiar */
    .hm-nosotros-card   { padding: 36px 28px; }
    .hm-nosotros-cols   { flex-direction: column; gap: 14px; }
    .hm-faq-grid        { grid-template-columns: 1fr; gap: 36px; }
    .hm-faq-left        { position: static; }
}
@media (max-width: 640px) {
	.hm-h1, .hm-h2 {font-size: 35px;}
    .hm-hero            { padding: 60px 0 40px; }
	.hm-nosotros-card {text-align: center;}
    .hm-benefits-grid   { grid-template-columns: 1fr 1fr; gap: 14px; }
    .hm-services-grid   { grid-template-columns: 1fr; }
    .hm-hero-btns       { flex-direction: column; }
    .hm-btn-primary, .hm-btn-ghost { width: 100%; justify-content: center; }
    .hm-container       { padding: 0 20px; }
    .hm-section         { padding: 64px 0; }
    .hm-testimonial-card{ padding: 28px 22px; }
    .garezma-slider-container { padding: 10px 0 20px; }
    .slider-arrow       { display: none; }
}
