/* ═══════════════════════════════════════════
   RimBomBang · home.css
   Homepage-specific styles
═══════════════════════════════════════════ */

/* ════ HERO ════ */
#hero {
    min-height: 100vh;
    padding-top: var(--nav-h);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    max-width: var(--max-w);
    margin: 0 auto;
    padding-left: var(--px);
    padding-right: var(--px);
    position: relative;
    overflow: hidden;
}

/* Decorative elements */
.hero-deco-arc {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 171, 223, 0.08);
    top: -100px;
    right: -150px;
    pointer-events: none;
}

.hero-deco-arc-2 {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(8, 145, 178, 0.06);
    bottom: 50px;
    left: -100px;
    pointer-events: none;
}

.hero-deco-dots {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 15%;
    right: 5%;
    background-image: radial-gradient(var(--brand-cyan) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.04;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand-lighter);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-pill);
    padding: 0.4rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-teal);
    margin-bottom: 1.75rem;
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-cyan);
    animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.8);
    }
}

.hero-title {
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.25rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ── Hero visual — floating cards ── */
.hero-visual {
    position: relative;
    height: 420px;
    z-index: 1;
}

.creative-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 0.9rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
    min-width: 150px;
    transition: all 0.3s;
}

.creative-card:hover {
    transform: scale(1.06) !important;
    box-shadow: var(--shadow-lg);
    border-color: var(--border-medium);
}

.cc-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.cc-icon svg {
    width: 20px;
    height: 20px;
}

.cc-icon-cyan {
    background: var(--brand-lighter);
    color: var(--brand-cyan);
}

.cc-icon-teal {
    background: rgba(8, 145, 178, 0.1);
    color: var(--brand-teal);
}

.creative-card span {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
}

/* Card positions */
.card-branding {
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
    animation: float-centered 7s ease-in-out 0.8s infinite;
    border-top: 3px solid var(--brand-cyan);
}

.card-love {
    top: 15%;
    right: 5%;
    animation: float 8s ease-in-out 0.5s infinite;
    border-top: 3px solid var(--brand-teal);
}

.card-web {
    bottom: 8%;
    right: 12%;
    top: auto;
    animation: float 7s ease-in-out 1s infinite;
    border-top: 3px solid var(--brand-cyan);
}

.card-crm {
    bottom: 8%;
    left: 12%;
    top: auto;
    animation: float 6.5s ease-in-out 0.3s infinite;
    border-top: 3px solid var(--brand-teal);
}

.card-video {
    top: 15%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
    border-top: 3px solid var(--brand-cyan);
}

.creative-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 1px dashed var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin-slow 25s linear infinite;
    z-index: -1;
}

.creative-circle span {
    font-family: var(--font-head);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    animation: spin-slow-reverse 25s linear infinite;
}

@keyframes spin-slow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spin-slow-reverse {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes float-centered {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-12px);
    }
}

/* ════ LOGOS BAND ════ */
.logos-band {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 2.5rem 0;
    overflow: hidden;
    max-width: none;
}

.logos-label {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
}

.logos-track {
    overflow: hidden;
}

.logos-inner {
    display: flex;
    gap: 1.5rem;
    animation: scroll-left 22s linear infinite;
    width: max-content;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.logo-chip {
    white-space: nowrap;
    padding: 0.5rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: var(--shadow-xs);
}

/* ════ SERVICIOS ════ */
#servicios {
    padding-top: 5rem;
    max-width: none;
    background: var(--bg-dark);
    position: relative;
}

#servicios .section-tag {
    background: rgba(0, 171, 223, 0.1);
    border-color: rgba(0, 171, 223, 0.25);
}

#servicios .section-title,
#servicios .section-header h2 {
    color: #ffffff;
}

#servicios .section-sub,
#servicios .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

#servicios .services-grid {
    max-width: var(--max-w);
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.service-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 2rem;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: var(--brand-lighter);
    color: var(--brand-cyan);
}

.service-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--brand-cyan);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-icon-alt {
    background: rgba(8, 145, 178, 0.08);
}

.service-icon-alt svg {
    stroke: var(--brand-teal);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.service-card>p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    margin-bottom: 0.5rem;
}

.service-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient-brand);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-card--featured {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-cyan);
}

/* ════ PROCESO ════ */
#proceso {
    max-width: none;
    background: var(--bg-secondary);
    position: relative;
}

.process-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    max-width: var(--max-w);
    margin: 0 auto;
    position: relative;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
}

.process-step::before {
    content: attr(data-step);
    display: block;
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.2;
    margin-bottom: 0.5rem;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-sm);
    color: var(--brand-cyan);
}

.step-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--brand-cyan);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.process-step h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.process-connector {
    width: 60px;
    height: 2px;
    background: var(--gradient-brand);
    margin-top: 5.5rem;
    flex-shrink: 0;
    opacity: 0.3;
    border-radius: 2px;
}

/* ════ RESULTADOS ════ */
#resultados {
    max-width: none;
    background: var(--bg-dark);
    color: var(--text-on-dark);
    position: relative;
    overflow: hidden;
}

#resultados .section-tag {
    background: rgba(0, 171, 223, 0.1);
    border-color: rgba(0, 171, 223, 0.25);
}

#resultados .section-title,
#resultados h2 {
    color: var(--text-on-dark);
}

#resultados .section-sub,
#resultados p {
    color: var(--text-on-dark-2);
}

.results-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.differentiators {
    margin-top: 2rem;
}

.diff-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.diff-item:last-child {
    border-bottom: none;
}

.diff-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 171, 223, 0.15);
    color: var(--brand-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.diff-item strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-on-dark);
    margin-bottom: 0.3rem;
}

.diff-item p {
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ════ TESTIMONIOS ════ */
#testimonios {
    max-width: none;
    background: var(--bg-primary);
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: var(--max-w);
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    transition: all 0.3s;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-medium);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.2;
    line-height: 1;
}

.stars {
    color: var(--brand-cyan);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-card>p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
}

.av-t1 {
    background: var(--gradient-brand);
}

.av-t2 {
    background: var(--gradient-brand-r);
}

.av-t3 {
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-cyan));
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ════ NOSOTROS (preview) ════ */
#nosotros {
    position: relative;
}

.about-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.about-content .section-title {
    text-align: left;
}

.about-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--brand-lighter);
    color: var(--brand-teal);
    border: 1px solid var(--border-light);
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
}

.about-pulse {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #22c55e;
    margin: 0 auto 1rem;
    animation: pulse-green 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.about-status {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ════ CTA FINAL ════ */
#contacto {
    max-width: none;
    background: var(--gradient-brand);
    text-align: center;
    position: relative;
    overflow: hidden;
}

#contacto::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

#contacto::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.07);
    bottom: -150px;
    left: -50px;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-title .gradient-text {
    background: linear-gradient(120deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

#contacto .btn-primary {
    background: #fff;
    color: var(--brand-dark);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

#contacto .btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cta-note {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1.25rem;
}

/* ════ RESPONSIVE ════ */
@media (max-width: 900px) {
    #hero {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
        padding-top: calc(var(--nav-h) + 3rem);
        padding-bottom: 3rem;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .results-inner {
        grid-template-columns: 1fr;
    }

    .about-inner {
        grid-template-columns: 1fr;
    }

    .about-content {
        text-align: center;
    }

    .about-content .section-title {
        text-align: center;
    }

    .team-tags {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        gap: 0;
    }

    .process-connector {
        width: 2px;
        height: 40px;
        margin: 0 auto;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}