/* ══════════════════════════════════════════════════════
   index.css — Palles Consultores (Rediseño Profesional)
   Estilos exclusivos de index.html (Inicio)
   Requiere global.css cargado antes en el HTML.
══════════════════════════════════════════════════════ */

/* ──────────────────────────────
   UTILIDADES COMPARTIDAS
────────────────────────────── */
.section-header-wrap {
    margin-bottom: 56px;
}

.section-title-line {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 18px auto 0;
    border-radius: 2px;
}

.section-title-line.align-left {
    margin-left: 0;
    margin-right: auto;
}

.section-light  { background: var(--off-white); padding: 100px 0; }
.section-white  { background: #ffffff;          padding: 100px 0; }
.section-dark   { background: #0D0D0D;           padding: 100px 0; }
.section-gold-bg {
    background: linear-gradient(135deg, #fdf8ee 0%, #f5edd6 100%);
    padding: 100px 0;
}

/* Scroll reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ──────────────────────────────
   HERO
────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: center;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0,0,0,0.55) 0%,
        rgba(5,3,1,0.62) 50%,
        rgba(10,5,0,0.72) 100%
    );
    z-index: 0;
}

/* Subtle geometric texture overlay */
.hero-overlay-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(201,168,76,0.03) 0px,
            rgba(201,168,76,0.03) 1px,
            transparent 1px,
            transparent 40px
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 140px;
}

/* Hero eyebrow */
.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(18px);
}

.hero-eyebrow-line {
    display: inline-block;
    width: 56px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.hero-eyebrow-line:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

/* Hero title */
.hero-title {
    font-family: 'Cormorant Garamond', serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    margin-bottom: 0;
    gap: 4px;
    opacity: 0;
    transform: translateY(24px);
}

.hero-title-thin {
    font-size: clamp(3rem, 7.5vw, 6.2rem);
    font-weight: 300;
    letter-spacing: 0.5em;
    color: rgba(255,255,255,0.97);
    font-style: italic;
}

.hero-title-bold {
    font-size: clamp(3.2rem, 8vw, 6.8rem);
    font-weight: 700;
    letter-spacing: 0.22em;
    background: linear-gradient(135deg, #fff 0%, var(--gold-pale) 50%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero divider */
.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 28px auto 24px;
    width: 300px;
    opacity: 0;
}

.hero-divider::before,
.hero-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.8));
}

.hero-divider::after {
    background: linear-gradient(90deg, rgba(201,168,76,0.8), transparent);
}

.hero-divider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 14px rgba(201,168,76,0.9), 0 0 28px rgba(201,168,76,0.4);
    margin: 0 14px;
    flex-shrink: 0;
}

/* Hero slogan */
.hero-slogan {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    font-style: italic;
    color: var(--gold-light);
    letter-spacing: 0.06em;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(14px);
}

/* Hero description */
.hero-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,248,230,0.93);
    line-height: 1.9;
    letter-spacing: 0.02em;
    max-width: 580px;
    margin: 0 auto 36px;
    opacity: 0;
    transform: translateY(14px);
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

#anim-cta,
#anim-trust {
    opacity: 0;
    transform: translateY(14px);
}

/* Trust items */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.hero-trust-item {
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.35);
    border-radius: 30px;
    padding: 8px 20px;
    color: rgba(255,248,230,0.92);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    backdrop-filter: blur(4px);
}

/* Hero buttons */
.btn-hero-primary {
    background: linear-gradient(135deg, #FFD966, #C9A84C, #9A7530);
    color: #fff;
    font-weight: 800;
    letter-spacing: 1.5px;
    font-size: 0.88rem;
    text-transform: uppercase;
    border-radius: 3px;
    box-shadow: 0 4px 24px rgba(201,168,76,0.55), 0 2px 8px rgba(0,0,0,0.3);
    border: 2px solid #FFD700;
    padding: 15px 40px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

.btn-hero-primary:hover {
    box-shadow: 0 8px 36px rgba(201,168,76,0.75);
    transform: translateY(-2px);
    color: #fff;
    background: linear-gradient(135deg, #FFE580, #D4A843, #7A5C1E);
}

.btn-hero-outline {
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 0.88rem;
    text-transform: uppercase;
    border-radius: 3px;
    border: 2px solid rgba(255,255,255,0.6);
    padding: 15px 40px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(4px);
}

.btn-hero-outline:hover {
    border-color: #FFD700;
    color: #FFD700;
    background: rgba(201,168,76,0.12);
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(201,168,76,0.7);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeIn 1s ease 2.2s both;
}

.hero-scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 1.5px solid rgba(201,168,76,0.7);
    border-bottom: 1.5px solid rgba(201,168,76,0.7);
    transform: rotate(45deg);
    animation: bounceDown 1.6s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50%       { transform: rotate(45deg) translateY(5px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── ANIMACIONES HERO ── */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes expandWidth {
    to { opacity: 1; }
}

.hero-animate       { animation: fadeUp 0.75s cubic-bezier(0.22,1,0.36,1) forwards; }
.hero-animate-line  { animation: expandWidth 0.9s ease forwards; }

/* ──────────────────────────────
   STATS BAR
────────────────────────────── */
.stats-bar {
    background: #0a0a0a;
    border-top: 1px solid rgba(201,168,76,0.15);
    border-bottom: 1px solid rgba(201,168,76,0.15);
    padding: 36px 0;
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 48px;
    gap: 4px;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.stat-divider {
    width: 1px;
    height: 44px;
    background: rgba(201,168,76,0.2);
}

/* ──────────────────────────────
   SECCIÓN PROBLEMA
────────────────────────────── */
.problem-card {
    background: #141414;
    border: 1px solid rgba(201,168,76,0.18);
    border-radius: 10px;
    padding: 36px 28px;
    height: 100%;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.problem-card:hover {
    border-color: rgba(201,168,76,0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.problem-card:hover::before {
    opacity: 1;
}

.problem-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.3rem;
    color: var(--gold);
    transition: background 0.3s ease;
}

.problem-card:hover .problem-icon {
    background: rgba(201,168,76,0.2);
}

.problem-card p {
    color: #d4c4a0;
    margin: 0;
    line-height: 1.7;
    font-size: 0.93rem;
}

.problem-quote-wrap {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid rgba(201,168,76,0.15);
}

.problem-quote-inner {
    position: relative;
    display: inline-block;
    max-width: 680px;
}

.problem-quote-mark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    line-height: 0.5;
    color: var(--gold);
    opacity: 0.5;
    display: block;
    margin-bottom: 12px;
}

.problem-quote-mark.closing {
    margin-top: 8px;
    margin-bottom: 0;
}

.problem-quote-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-style: italic;
    color: var(--gold-light);
    line-height: 1.5;
    margin: 0;
}

/* ──────────────────────────────
   SOLUCIÓN
────────────────────────────── */
.solution-image-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.solution-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform 0.5s ease;
    box-shadow: 0 24px 80px rgba(0,0,0,0.18);
}

.solution-image-wrap:hover .solution-img {
    transform: scale(1.02);
}

.solution-img-badge {
    position: absolute;
    bottom: 24px;
    right: -16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 8px;
    padding: 16px 22px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.badge-text {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.4;
}

.solution-text-block {
    background: #fff;
    border-left: 4px solid var(--gold);
    padding: 32px 30px;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 4px 28px rgba(0,0,0,0.07);
    margin-bottom: 32px;
}

.solution-highlight {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
}
.solution-highlight:last-child { margin-bottom: 0; }

.benefits-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(201,168,76,0.12);
    font-size: 0.92rem;
    color: var(--text-dark);
    transition: padding-left 0.2s ease;
}

.benefits-list li:last-child { border-bottom: none; }
.benefits-list li:hover { padding-left: 4px; }

.benefit-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.72rem;
    color: #fff;
    box-shadow: 0 2px 10px rgba(201,168,76,0.35);
}

/* ──────────────────────────────
   PROCESO
────────────────────────────── */
.process-track {
    position: relative;
    padding-top: 20px;
}

.process-line {
    position: absolute;
    top: 52px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.35), transparent);
    z-index: 0;
}

.process-step {
    text-align: center;
    padding: 32px 16px;
    position: relative;
    z-index: 1;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.process-num {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #FFD966, #C9A84C, #9A7530);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 6px 24px rgba(201,168,76,0.45);
    border: 3px solid rgba(255,255,255,0.9);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover .process-num {
    transform: scale(1.08);
    box-shadow: 0 10px 36px rgba(201,168,76,0.6);
}

.process-content h5 {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.process-content p {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.7;
    margin: 0;
}

.process-footnote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 24px;
}

/* ──────────────────────────────
   SERVICIOS (Personas / PYMES)
────────────────────────────── */
.service-image-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.service-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 1px solid rgba(201,168,76,0.2);
    pointer-events: none;
}

.service-image-frame.dark::after {
    border-color: rgba(201,168,76,0.3);
}

.service-img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    box-shadow: 0 24px 80px rgba(0,0,0,0.14);
    transition: transform 0.5s ease;
}

.service-image-frame:hover .service-img {
    transform: scale(1.02);
}

.service-feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.service-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(201,168,76,0.12);
    color: var(--text-dark);
}

.service-feature-list.dark li {
    color: rgba(255,248,230,0.85);
    border-bottom-color: rgba(201,168,76,0.12);
}

.service-feature-list li:last-child { border-bottom: none; }

.service-feature-list li i {
    color: var(--gold);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ──────────────────────────────
   TESTIMONIOS
────────────────────────────── */
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 36px 30px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.07);
    border: 1px solid rgba(201,168,76,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card.featured::before { opacity: 1; }

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 56px rgba(0,0,0,0.12);
}

.testimonial-card:hover::before { opacity: 1; }

.testimonial-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(201,168,76,0.3);
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-stars {
    color: var(--gold);
    font-size: 0.82rem;
    letter-spacing: 2px;
}

.testimonial-quote-icon {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.35;
    line-height: 0.6;
    margin-bottom: 16px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.75;
    font-size: 0.92rem;
    flex: 1;
    margin: 0 0 20px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 16px;
    border-top: 1px solid rgba(201,168,76,0.15);
}

.testimonial-author strong {
    font-size: 0.88rem;
    color: var(--text-dark);
}

.testimonial-author span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ──────────────────────────────
   CTA FINAL
────────────────────────────── */
.cta-final {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-final-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.35);
}

.cta-final-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,13,13,0.6), rgba(154,117,48,0.25));
}

/* ──────────────────────────────
   RESPONSIVE
────────────────────────────── */
@media (max-width: 992px) {
    .hero { padding-top: 140px; }
    .process-line { display: none; }
    .solution-img-badge { right: 16px; }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 80px;
    }

    .hero-eyebrow {
        font-size: 0.6rem;
        letter-spacing: 2px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .hero-eyebrow-line { display: none; }

    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        text-align: center;
    }

    .section-light,
    .section-white,
    .section-dark,
    .section-gold-bg { padding: 70px 0; }

    .stats-grid { gap: 16px; }
    .stat-item { padding: 8px 24px; }
    .stat-divider { display: none; }

    .solution-img,
    .service-img { height: 300px; }
    .solution-img-badge { right: 8px; bottom: 12px; }

    .cta-final { padding: 80px 0; }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        padding: 4px 10px 4px 6px;
    }
    .whatsapp-icon { width: 38px; height: 38px; }
    .hero-trust-item { font-size: 0.74rem; }
}

@media (min-width: 1400px) {
    .container { max-width: 1240px; }
}
