/* Dark Gold Fintech Bento Style */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Playfair+Display:ital@0;1&display=swap');

:root {
  --color-gold: #c9a84c;
  --color-gold-light: #e4c97a;
  --color-black: #050505;
  --color-card-bg: rgba(20, 20, 20, 0.6);
  --color-card-border: rgba(201, 168, 76, 0.15);
  --color-ivory: #fdfaf5;
  --color-muted: rgba(253, 250, 245, 0.6);

  --font-sans: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-black);
    color: var(--color-ivory);
    font-family: var(--font-sans);
    font-weight: 300;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-black); }
::-webkit-scrollbar-thumb { background: rgba(201, 168, 76, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201, 168, 76, 0.6); }

/* Fondo Mesh Gradient Dinámico */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #08090a;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.35;
    will-change: transform;
}

.glow-1 {
    width: 70vw;
    height: 70vw;
    background: #c9a84c;
    top: -20%;
    left: -10%;
    animation: float1 25s infinite alternate ease-in-out;
}

.glow-2 {
    width: 60vw;
    height: 60vw;
    background: #2a1b38;
    bottom: -10%;
    right: -10%;
    animation: float2 30s infinite alternate ease-in-out;
}

.glow-3 {
    width: 50vw;
    height: 50vw;
    background: #112233;
    top: 40%;
    left: 30%;
    animation: float3 22s infinite alternate-reverse ease-in-out;
}

.glow-4 {
    width: 40vw;
    height: 40vw;
    background: #e4c97a;
    bottom: 20%;
    left: -10%;
    opacity: 0.2;
    animation: float4 28s infinite alternate ease-in-out;
}

@keyframes float1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10vw, 5vh) scale(1.1); }
    100% { transform: translate(-5vw, 15vh) scale(0.9); }
}

@keyframes float2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-15vw, -10vh) scale(0.9); }
    100% { transform: translate(5vw, -20vh) scale(1.1); }
}

@keyframes float3 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20vw, -15vh) scale(1.2); }
    100% { transform: translate(-10vw, 10vh) scale(0.8); }
}

@keyframes float4 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15vw, -20vh) scale(0.9); }
    100% { transform: translate(5vw, -5vh) scale(1.1); }
}

/* Typography */
h1, h2, h3 {
    font-weight: 500;
    line-height: 1.1;
}

em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-gold);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 85px;
    width: auto;
    object-fit: contain;
}

/* Bento Grid System */
.bento-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 20px;
    padding: 40px 0;
}

.bento-box {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 30px;
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.bento-box:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 0 20px rgba(201, 168, 76, 0.05);
}

/* Grid Positions */
.box-hero {
    grid-column: span 3;
    grid-row: span 2;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(20,20,20,0.8) 0%, rgba(10,10,10,0.9) 100%);
}

.box-step {
    grid-column: span 1;
    grid-row: span 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 35px;
}

.box-service {
    grid-column: span 2;
    grid-row: span 1;
}

.box-contact {
    grid-column: span 4;
    grid-row: span 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-gold);
    color: var(--color-black);
}

.box-photo {
    grid-column: span 1;
    grid-row: span 2;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--color-card-border);
}

.box-about-text {
    grid-column: span 2;
    grid-row: span 2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.box-photo:hover .profile-photo {
    transform: scale(1.05);
}

/* Bento Content */
.hero-tag {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 30px;
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--color-card-border);
    border-radius: 20px;
}

.box-hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 20px;
}

.box-hero p {
    color: var(--color-muted);
    font-size: 1.1rem;
    max-width: 80%;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--color-ivory);
    color: var(--color-black);
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s;
    width: max-content;
}

.btn-primary:hover {
    background: var(--color-gold);
    transform: scale(1.02);
}

.btn-dark {
    background: var(--color-black);
    color: var(--color-gold);
}

.btn-dark:hover {
    background: #1a1a1a;
    color: var(--color-gold-light);
    transform: scale(1.02);
}

.step-num {
    font-size: 2.5rem;
    font-family: var(--font-serif);
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 15px;
    font-style: italic;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-ivory);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.service-icon {
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-desc {
    color: var(--color-muted);
    font-size: 0.95rem;
}

/* About section */
.box-about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.box-about-text p {
    color: var(--color-muted);
    margin-bottom: 15px;
}

.about-note {
    color: var(--color-gold);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Contact section */
.box-contact h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.box-contact p {
    color: rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 20px 0 40px;
    color: var(--color-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive — Tablet */
@media (max-width: 1024px) {
    .box-hero { grid-column: span 4; grid-row: span 1; }
    .box-photo { grid-column: span 2; grid-row: span 1; height: 340px; }
    .box-step { grid-column: span 2; }
    .box-service { grid-column: span 4; }
    .box-about-text { grid-column: span 4; grid-row: span 1; }
    .box-contact { grid-column: span 4; }
}

/* Responsive — Mobile */
@media (max-width: 600px) {
    .container { padding: 0 20px; }
    .bento-container { gap: 12px; grid-template-columns: 1fr 1fr; }
    .bento-box { padding: 24px; border-radius: 20px; }
    .box-hero { grid-column: span 2; padding: 30px; }
    .box-hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    .box-hero p { max-width: 100%; font-size: 1rem; }
    .box-photo { grid-column: span 2; grid-row: span 1; height: 260px; }
    .box-step { grid-column: span 1; padding: 20px; }
    .box-service { grid-column: span 2; }
    .box-about-text { grid-column: span 2; grid-row: span 1; }
    .box-about-text h2 { font-size: 1.8rem; }
    .box-contact { grid-column: span 2; flex-direction: column; text-align: center; gap: 25px; }
    .box-contact h2 { font-size: 1.8rem; }
    .btn-primary, .btn-dark { width: 100%; justify-content: center; }
}
