:root {
    /* PROFUNDIDAD OCEÁNICA */
    --bg-top: #02131f;
    --bg-mid: #06263a;
    --bg-bottom: #010b14;
    /* COLORES PRINCIPALES */
    --brand-dark: #021d30;
    --brand-blue: #0ea5e9;
    --brand-cyan: #67e8f9;
    --brand-green: #2dd4bf;
    /* TEXTOS */
    --text-main: #f1f9ff;
    --text-soft: rgba(220, 240, 255, .72);
    /* VIDRIO OSCURO */
    --glass-bg: rgba(9, 25, 38, .52);
    --glass-border: rgba(140, 220, 255, .12);
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, .35);
    --shadow-deep: 0 35px 90px rgba(0, 0, 0, .55);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x:hidden;
}
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 15%, rgba(103, 232, 249, .08), transparent 25%),
        radial-gradient(circle at 85% 10%, rgba(45, 212, 191, .06), transparent 25%),
        linear-gradient(180deg, #04131f 0%, #08253a 35%, #03111d 65%, #010b14 100%);
    color: var(--text-main);
    font-family: 'Raleway', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position:relative;
}

/* Textura tipo partículas submarinas */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px);
    background-size: 70px 70px;
    opacity: .06;
    pointer-events: none;
    z-index: 0;
}

/* Luz submarina flotante */
body::after {
    content: '';
    position: fixed;
    width: 900px;
    height: 900px;
    top: -300px;
    left: -250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(103, 232, 249, .10), transparent 70%);
    filter: blur(25px);
    pointer-events: none;
    animation: none;
    z-index: 0;
}

@keyframes waterMove {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(120px, 50px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Profundidad del océano */
.ocean-depth {
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    isolation:isolate;
}

/* Onda submarina suave — detrás de todo el contenido */
.ocean-depth::before {
    content: '';
    position: absolute;
    width: 160%;
    height: 600px;
    left: -30%;
    top: 35%;
    background: radial-gradient(ellipse at center, rgba(103, 232, 249, .07), transparent 70%);
    filter: blur(45px);
    transform: rotate(-10deg);
    opacity: .6;
    pointer-events: none;
    z-index: -1;
}

/* Capas de contenido por encima de los efectos de fondo */
section,
nav,
.max-w-4xl,
.max-w-5xl,
.max-w-6xl {
    position: relative;
    z-index: 2;
}

/* Halos de color */
.bg-blur {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(61, 227, 255, .15), transparent 70%);
    filter: blur(45px);
    z-index: 0;
    pointer-events: none;
}

/* ─── TIPOGRAFÍA ─────────────────────────────────────── */
h1, h2, h3, h4, .bold-title {
    color: #f8fcff;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(103, 232, 249, .08);
}

p {
    color: rgba(220, 240, 255, .85);
    line-height: 1.8;
}

.text-soft {
    color: var(--text-soft);
}

/* ─── GRADIENT TEXT ──────────────────────────────────── */
.gradient-text {
    background: linear-gradient(90deg, #fff 0%, #67e8f9 50%, #2dd4bf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── GLASS CARD ─────────────────────────────────────── */
.glass-card {
    background:rgba(6,22,35,.72);
    border: 1px solid rgba(120, 220, 255, .10);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all .45s ease;
    box-shadow:
        0 10px 30px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.04);
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(103, 232, 249, .28);
    box-shadow:
        0 16px 40px rgba(0,0,0,.30);
}

/* Reflejo interno superior derecho */
.glass-card::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    top: -90px;
    right: -90px;
    border-radius: 50%;
    background: radial-gradient(rgba(255, 255, 255, .12), transparent);
    opacity: .7;
    filter: blur(25px);
    pointer-events: none;
}

/* ─── VALUE CARD (ADN) ───────────────────────────────── */
/* Borde superior visible sobre fondo oscuro */
.value-card {
    border-top: 3px solid rgba(103, 232, 249, .40) !important;
}

/* ─── MÉTODO TIMELINE ────────────────────────────────── */
.method-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #f1f9ff;         /* blanco suave, legible sobre fondo oscuro */
    font-weight: 900;
    letter-spacing: -0.02em;
}

.method-item p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-soft);
    font-weight: 500;
}

/* ─── BOTONES ────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4, #2dd4bf);
    background-size: 200%;
    color: white;
    transition: all .4s ease;
    box-shadow: 0 0 30px rgba(103, 232, 249, .25);
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Raleway', sans-serif;
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    transform: translateY(-4px);
    background-position: right;
    box-shadow: 0 8px 35px rgba(103, 232, 249, .40);
}

/* ─── UTILIDADES ─────────────────────────────────────── */
.content-layer {
    position: relative;
    z-index: 2;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-20px); }
}

@media (max-width:768px){

h1 { font-size:2.6rem; }
h2 { font-size:2rem; }

.hero-animate{
animation:none;
opacity:1;
transform:none;
}

.scroll-reveal{
opacity:1;
transform:none;
transition:none;
}

body::after{
display:none;
animation:none;
}

.floating{
animation:none;
}

.stack-grid{
grid-template-columns:repeat(2,1fr);
}

}

.stack-grid{
display:grid;
grid-template-columns:repeat(5,1fr);
gap:1rem;
max-width:900px;
margin:auto;
}

@media(max-width:768px){

.stack-grid{

grid-template-columns:
repeat(2,1fr);

}
}

.bg-blur,
.glass-card,
.hero-animate,
.scroll-reveal {
    will-change:
        transform,
        opacity;

    transform:
        translateZ(0);

    backface-visibility:
        hidden;

}