/* Variables de color de CapiaMX */
:root {
    --teal-primary: #298284;
    --teal-light: #e0f2f1;
    --teal-hover: #1e6365;
    --bg-light: #f2f7f7; 
    --text-dark: #111827; 
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navbar con efecto cristal */
.blur-nav {
    background: rgba(242, 247, 247, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(41, 130, 132, 0.1);
}

.text-teal { color: var(--teal-primary) !important; }
.nav-link { font-weight: 600; color: #555; transition: color 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--teal-primary); }

/* Botones vibrantes */
.btn-teal {
    background-color: var(--teal-primary) !important;
    color: white !important;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(41, 130, 132, 0.25);
}
.btn-teal:hover {
    background-color: var(--teal-hover) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(41, 130, 132, 0.35);
}

/* Tarjeta principal (Hero) */
.hero-card {
    background: #ffffff;
    border-radius: 40px; 
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(41, 130, 132, 0.08); 
    min-height: 500px;
}

/* --- TIPOGRAFÍA GIGANTE ESTILO KLAR --- */
.klar-text {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--text-dark);
}

/* --- CARTAS CON IMAGEN Y HOVER --- */
.image-card {
    position: relative;
    height: 480px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Degradado oscuro inferior */
.image-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 65%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.image-card-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 30px;
    z-index: 2;
    color: white;
    transition: transform 0.3s ease;
}

.image-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 45px rgba(0,0,0,0.2);
}

.image-card:hover .image-card-content {
    transform: translateY(-5px);
}

.card-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}
.image-card:hover .card-link {
    color: #ffffff;
}

/* --- FOOTER LEGAL (TONOS DE LA MARCA OSCUROS) --- */
.footer-capiamx {
    background-color: #0d1717; 
    color: #8e9e9e; 
    padding: 60px 0 40px 0;
    font-size: 0.85rem;
    border-top: 4px solid var(--teal-primary);
}

.footer-capiamx p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-links a {
    color: #b0c4c4;
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s;
    display: inline-block;
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: #ffffff;
}

/* --- ANIMACIONES DE APARICIÓN AL HACER SCROLL --- */
.reveal-bottom {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.9s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 0.9s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.9s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Esta clase se activa con JavaScript cuando el elemento entra en pantalla */
.reveal-bottom.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- PANEL DE CRECIMIENTO (BREAK VISUAL) --- */
.growth-panel {
    background: linear-gradient(135deg, var(--teal-primary) 0%, #175253 100%);
    border-radius: 40px;
    padding: 70px 40px;
    box-shadow: 0 20px 40px rgba(41, 130, 132, 0.25);
    position: relative;
    overflow: hidden;
}

/* Efecto de luz sutil dentro del panel para que no se vea plano */
.growth-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
}