:root {
    --text-main: #0a0a0a;
    --text-sub: #4f566b;
    --brand-green: #00d97e;
    --brand-green-hover: #00bf6f;
    --footer-bg: #0f1115;
    --section-bg: #f8fafc;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
}

a, a:visited, a:active {
    color: var(--brand-green);
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
}

a:hover {
    color: var(--brand-green-hover);
}

.reverse {
    unicode-bidi: bidi-override;
    direction: rtl;
    display: inline-block;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background-color: #ffffff;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(circle at center, #ffffff 0%, #e2e8f0 100%);
}

.hero-content {
    max-width: 1000px;
    z-index: 2;
    position: relative;
    animation: fadeIn 1.8s ease-out;
    padding: 0 20px;
}

.hero-content img {
    width: 70%;
    max-width: 30rem;
    margin: 0 auto;
}

h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(255,255,255,0.9);
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--text-main);
    color: white !important;
    padding: 18px 42px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: var(--brand-green);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 217, 126, 0.3);
}

/* --- ABOUT --- */
.about { padding: 140px 20px; background: white; }
.container { max-width: 1100px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }
.eyebrow { display: inline-block; text-transform: uppercase; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.2em; color: var(--brand-green); margin-bottom: 1.5rem; border-bottom: 3px solid var(--brand-green); padding-bottom: 5px; }
.about-text h2 { font-size: 2.8rem; font-weight: 800; margin-bottom: 2rem; letter-spacing: -0.03em; }
.about-text p { font-size: 1.15rem; color: var(--text-sub); line-height: 1.8; margin-bottom: 1.5rem; }

.stat-card { padding: 35px; background: #fff; border: 1px solid #eee; border-left: 6px solid var(--text-main); border-radius: 12px; margin-bottom: 25px; transition: 0.3s; }
.stat-card:hover { transform: translateX(10px); border-left-color: var(--brand-green); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

/* --- GRAPHIC --- */
.graphic {
    width: 100vw;
    height: 100vh;
    background: url(img/graphic.png);
    background-repeat: none;
    background-size: contain;
    top: 0;
    z-index: 1;
    position: -webkit-sticky; /* Soporte para Safari */
    position: sticky;
}


/* --- SERVICES --- */
.services { position: relative; padding: 80px 0; background-color: var(--section-bg); z-index: 2; }
.services h2 { padding: 0; margin: 0; line-height: 4rem; padding-bottom: 80px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px;  }
.service-card { position: relative; overflow: hidden; background: white; padding: 50px 40px; border-radius: 20px; transition: 0.4s; border: 1px solid #eef2f6; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.06); }
.icon-box { width: 60px; height: 60px; background: #e6fff4; color: var(--brand-green); display: flex; align-items: center; justify-content: center; border-radius: 12px; margin-bottom: 25px; }
.card-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--text-sub);
    color: white;
    font-size: 0.8rem;
    padding: 0.1rem 0.5rem;
}

.assurance-cta {
    padding: 120px 20px;
    background: var(--brand-green-hover);
    text-align: center;
    position: relative;
    z-index: 2;
}

.assurance-content {
    max-width: 700px;
    margin: 0 auto;
}

.assurance-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff; /* Blanco */
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.assurance-content p {
    color: white;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* El botón con tu verde específico */
.btn-direct {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--brand-green);
    color: #000000 !important; /* Texto negro para contraste */
    padding: 16px 36px;
    border: 1px solid white;
    border-radius: 4px; /* Bordes más rectos = más serio/corporativo */
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    cursor: pointer;
}

.btn-direct:hover {
    background-color: var(--brand-green-hover);
    transform: translateY(-2px);
}

.btn-direct i {
    width: 18px;
    height: 18px;
}


/* --- PARTNERS --- */
.partners { padding: 100px 0; text-align: center; background: white; position: relative; z-index: 2; }
.partner-item { font-size: 2.5rem; font-weight: 900; color: var(--text-main); letter-spacing: -0.04em; }
.partner-role { font-size: 0.85rem; color: var(--brand-green); font-weight: 700; display: block; margin-top: 10px; text-transform: uppercase; }

/* --- DARK FOOTER --- */
footer {position: relative; z-index: 2;}
footer p { margin: 0.5rem 0; }
footer .reverse { color: var(--brand-green)}
.dark-footer { background: var(--footer-bg); color: white; padding: 100px 20px 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; margin-bottom: 80px; }
.footer-logo { font-size: 1.8rem; font-weight: 900; margin-bottom: 20px; }
.footer-logo img { width: 10rem; }
.footer-contact h4 { color: #888; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 20px; letter-spacing: 0.1em; }
.footer-bottom { border-top: 1px solid #222; padding-top: 40px; display: flex; justify-content: space-between; color: #666; font-size: 0.9rem; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) { h1 { font-size: 2.8rem; } .about-grid, .footer-grid { grid-template-columns: 1fr; } }