/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #56aeff 0%, #4a9eff 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(86, 174, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: clamp(60px, 8vh, 80px);
    min-height: 60px;
}

.nav-logo .logo-img {
    height: clamp(32px, 6vw, 44px);
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav-menu a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.nav-menu a:hover {
    color: #56aeff;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #56aeff 0%, #4a9eff 100%);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #56aeff 0%, #4a9eff 100%);
    color: white;
    border: none;
    padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 28px);
    border-radius: 12px;
    font-family: 'Source Sans Pro', 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 82, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #56aeff;
    border: 2px solid #56aeff;
    padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 28px);
    border-radius: 12px;
    font-family: 'Source Sans Pro', 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.cta-button {
    background: linear-gradient(135deg, #56aeff 0%, #4a9eff 100%);
    color: white;
    border: none;
    padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 28px);
    border-radius: 12px;
    font-family: 'Source Sans Pro', 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(0.85rem, 2vw, 1rem);
    box-shadow: 0 4px 15px rgba(86, 174, 255, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #4a9eff 0%, #3d8eff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(86, 174, 255, 0.4);
}

.cta-button.secondary:hover {
    background: #56aeff;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-family: 'Source Sans Pro', 'Inter', sans-serif;
}

/* Hero Section (New Sphere-based Hero) */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    overflow: visible;
    display: grid;
    place-items: center;
    z-index: 0;
    padding: 0;
    color: white;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto auto minmax(250px, 1fr) auto minmax(100px, auto);
    grid-template-areas: 
        "header"
        "subtitle"
        "sphere"
        "chains"
        "stats";
    align-items: center;
    justify-items: center;
    gap: 1rem;
    padding: clamp(80px, 10vh, 120px) 2rem 3rem 2rem;
    position: relative;
    z-index: 1;
}

.hero-header {
    grid-area: header;
    text-align: center;
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: white;
    font-family: 'Michroma', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-align: center; /* Asegurar centrado explícito */
    width: 100%; /* Ocupar todo el ancho disponible */
}

.hero-subtitle-section .gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #56aeff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    opacity: 1;
    margin: 0;
    line-height: 1.6;
    color: #ffffff;
}

.hero-subtitle-section {
    grid-area: subtitle;
    text-align: center;
    max-width: 800px;
    z-index: 2;
    margin: 0;
    width: 90%;
}

.hero-subtitle-section .hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    opacity: 1;
    margin: 0;
    line-height: 1.6;
    color: #ffffff;
}

.hero-stats {
    grid-area: stats;
    display: flex;
    gap: 4rem;
    z-index: 2;
    justify-content: center;
    position: relative;
    width: 100%;
    align-self: start;
    margin-top: -2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #56aeff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    /* Fallback for browsers that don't support background-clip */
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* Efecto de gradiente solo para navegadores que lo soporten completamente */
@supports (-webkit-background-clip: text) and (-webkit-text-fill-color: transparent) {
    .stat-number {
        background: linear-gradient(135deg, #ffffff 0%, #56aeff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

.hero-stats .stat-label {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    opacity: 1;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-top: 0.25rem;
    line-height: 1.2;
}

/* Supported Chains Slider */
.supported-chains {
    grid-area: chains;
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    margin: 2rem 0 0 0; /* Espacio arriba del logo, sin espacio abajo */
}

.chains-slider {
    width: 100%;
    overflow: hidden;
    mask: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

.chains-track {
    display: flex;
    gap: 3rem;
    animation: slide-infinite 30s linear infinite;
    width: fit-content;
}

.chains-track:hover {
    animation-play-state: paused;
}

.chain-logo {
    flex-shrink: 0;
    width: 50px;
    height: auto; /* Cambio para permitir altura automática */
    display: flex;
    flex-direction: column; /* Cambio para apilar logo y nombre */
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    gap: 0.5rem; /* Espacio entre logo y nombre */
}

.chain-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.chain-logo img {
    width: 50px; /* Tamaño fijo para la imagen */
    height: 50px;
    object-fit: contain;
    filter: brightness(0.8) contrast(1.1);
    transition: filter 0.3s ease;
}

.chain-logo:hover img {
    filter: brightness(1) contrast(1.2);
}

/* Estilos para los nombres de las chains */
.chain-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chain-logo:hover .chain-name {
    opacity: 1;
}

@keyframes slide-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
.inheritance-dashboard .stat-label {
    font-size: 0.875rem;
    color: #56aeff !important;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: clamp(60px, 10vw, 120px) 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
    padding: 0 clamp(16px, 4vw, 24px);
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: clamp(0.8rem, 2vw, 1.2rem);
    background: linear-gradient(135deg, #56aeff 0%, #4a9eff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Michroma', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.2;
}

.section-header p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-showcase {
    display: flex;
    flex-direction: column;
    gap: clamp(4rem, 8vw, 6rem);
    padding: 0 clamp(16px, 4vw, 24px);
}

.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 4rem);
    align-items: flex-start;
}

.feature-showcase.reverse {
    direction: rtl;
}

.feature-showcase.reverse > * {
    direction: ltr;
}

.feature-content h3 {
    font-size: clamp(1.3rem, 3.5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: clamp(1rem, 3vw, 1.8rem);
    color: #1a1a1a;
    font-family: 'Michroma', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.3;
}

.feature-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: clamp(1.5rem, 3vw, 2.2rem);
}

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

.feature-list li {
    padding: 0.5rem 0;
    color: #374151;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #56aeff;
    font-weight: bold;
}

.feature-mockup {
    background: #f8fafc;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 82, 255, 0.1);
}

.wallet-interface {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fafbfc;
}

.wallet-nav {
    display: flex;
    gap: 2rem;
}

.nav-item {
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-item.active {
    color: #56aeff;
    font-weight: 600;
}

.add-safe-btn {
    background: #56aeff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-safe-btn:hover {
    background: #4f46e5;
}

.safes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem !important;
    padding: 2rem 1rem !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

.safe-card,
.safe-card.family,
.safe-card.inheritance {
    background: linear-gradient(135deg, #56aeff 0%, #4a9eff 100%) !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 240px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 12px 34px rgba(86, 174, 255, 0.24) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    transform: none !important;
    width: 100% !important;
}

.safe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(86, 174, 255, 0.3) !important;
}

.safe-card.inheritance {
    background: linear-gradient(135deg, #56aeff 0%, #3d8eff 100%) !important;
}

.safe-header {
    display: flex-start;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem !important;
}

.safe-badge {
    background: rgba(255, 255, 255, 0.3) !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 16px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px !important;
    backdrop-filter: saturate(120%) blur(2px);
}

.safe-status {
    font-size: 0.75rem !important;
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.2) !important;
    padding: 0.4rem 0.7rem !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
}

.safe-card h4 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin: 0 0 0.8rem 0 !important;
    line-height: 1.2 !important;
}

.safe-balance {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    margin-bottom: 1rem !important;
    line-height: 1 !important;
}

.safe-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem !important;
    font-size: 0.9rem !important;
    opacity: 1 !important;
    margin-bottom: 1rem !important;
    font-weight: 500 !important;
}

.safe-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem !important;
    font-size: 0.8rem !important;
    opacity: 0.9 !important;
    margin-bottom: 0 !important;
    font-weight: 400 !important;
}

.safe-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.claim-btn, .open-btn {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.claim-btn:hover, .open-btn:hover {
    transform: translateY(-2px);
}

.claim-btn {
    background: #56aeff;
    border-color: #56aeff;
    box-shadow: 0 6px 16px rgba(86, 174, 255, 0.25);
}

.claim-btn:hover {
    background: #4a9eff;
}

.open-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.transactions-section {
    padding: 2rem;
}

.section-tabs {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.tab {
    padding: 0.5rem 0;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab.active {
    color: #56aeff;
    border-bottom-color: #56aeff;
    font-weight: 500;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.transaction-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
}

.tx-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.tx-icon.multisig {
    background: #56aeff;
    color: white;
}

.tx-icon.multisig::before {
    content: "M";
}

.tx-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tx-type {
    font-size: 0.75rem;
    font-weight: 600;
    color: #56aeff;
}

.tx-hash {
    font-size: 0.875rem;
    color: #374151;
    font-family: monospace;
}

.tx-date {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
}

.tx-amount {
    font-weight: 600;
    color: #374151;
}

.tx-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tx-status.success {
    background: #dcfce7;
    color: #166534;
}

.pending-section {
    text-align: center;
    padding: 2rem;
    background: #f0fdf4;
    border-radius: 12px;
    position: relative;
}

.pending-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pending-header span:first-child {
    font-weight: 600;
    color: #374151;
}

.pending-header span:last-child {
    font-size: 0.875rem;
    color: #6b7280;
}

.success-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
}

.inheritance-dashboard {
    padding: 2rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #56aeff !important;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #56aeff;
}

.create-safe-section {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #56aeff 0%, #4a9eff 100%);
    border-radius: 16px;
    color: white;
}

.create-safe-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 1rem;
}

.create-safe-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.create-description {
    margin: 0;
    opacity: 0.9;
    font-size: 0.875rem;
}

/* Yield Generation Section */
.yield-generation {
    padding: 100px 0;
    background: white;
}

.yield-protocols {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.protocols-header {
    text-align: center;
    margin-bottom: 2rem;
}

.protocols-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 0;
    color: #1a1a1a;
    font-family: 'Michroma', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.protocols-header p {
    color: #64748b;
    font-size: 0.9rem;
}

.protocols-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.protocol-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 233, 0.1);
    transition: all 0.3s ease;
}

.protocol-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.15);
}

.protocol-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: white;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.protocol-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.protocol-logo.aave {
    background: white;
}

.protocol-logo.morpho {
    background: white;
}

.protocol-logo.kamino {
    background: white;
}

.protocol-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: #1e3a8a;
}

.protocol-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Chains Section */
.chains {
    padding: clamp(60px, 10vw, 120px) 0;
    background: #ffffff;
}

/* Chains Slider Container */
.chains-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
}

.chains-slider-track {
    display: flex;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    animation: slide-chains-infinite 60s linear infinite;
    width: fit-content;
}

.chains-slider-track:hover {
    animation-play-state: paused;
}

@keyframes slide-chains-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.chain-card {
    background: white;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 82, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 82, 255, 0.1);
    flex-shrink: 0;
    width: clamp(280px, 25vw, 320px);
}

.chain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 82, 255, 0.15);
}

.chain-icon {
    width: clamp(48px, 8vw, 64px);
    height: clamp(48px, 8vw, 64px);
    margin: 0 auto clamp(1rem, 3vw, 1.5rem);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.chain-icon.solana {
    background: linear-gradient(135deg, #9945ff 0%, #14f195 100%);
}

.chain-icon.arbitrum {
    background: linear-gradient(135deg, #2d374b 0%, #1e293b 100%);
}

.chain-icon.avalanche {
    background: linear-gradient(135deg, #e84142 0%, #ff6b6b 100%);
}

.chain-icon.base {
    background: linear-gradient(135deg, #0052ff 0%, #0066ff 100%);
}

.chain-icon.celo {
    background: linear-gradient(135deg, #35d07f 0%, #5ce1a0 100%);
}

.chain-icon.gnosis {
    background: linear-gradient(135deg, #133629 0%, #1e5631 100%);
}

.chain-icon.optimism {
    background: linear-gradient(135deg, #ff0420 0%, #ff4444 100%);
}

.chain-icon.polygon {
    background: linear-gradient(135deg, #8247e5 0%, #a855f7 100%);
}

.chain-icon.scroll {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

.chain-icon.zksync {
    background: linear-gradient(135deg, #4e44ce 0%, #6c5ce7 100%);
}

.chain-icon.ethereum {
    background: linear-gradient(135deg, #627eea 0%, #8a92b2 100%);
}

.chain-icon.bnb {
    background: linear-gradient(135deg, #f3ba2f 0%, #f0b90b 100%);
}

.chain-icon.polygon-main {
    background: linear-gradient(135deg, #8247e5 0%, #a855f7 100%);
}

.chain-icon.aurora {
    background: linear-gradient(135deg, #70d44b 0%, #8fdd69 100%);
}

.chain-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.chain-card h3 {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 600;
    margin-bottom: clamp(0.4rem, 1vw, 0.6rem);
    color: #1a1a1a;
    line-height: 1.3;
}

.chain-card p {
    color: #6b7280;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 1.5;
}

/* CTA Section */
.cta {
    padding: clamp(60px, 10vw, 120px) 0;
    background: linear-gradient(135deg, #56aeff 0%, #4a9eff 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 6vw, 2.8rem);
    font-weight: 700;
    margin-bottom: clamp(0.8rem, 2vw, 1.2rem);
    font-family: 'Michroma', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.2;
}

.cta-content p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    opacity: 0.9;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    padding: 0 clamp(16px, 4vw, 24px);
}

/* Special styling for buttons in CTA section */
.cta .btn-primary {
    background: #ffffff;
    color: #1a1a1a;
    border: 2px solid #ffffff;
    font-family: 'Source Sans Pro', 'Inter', sans-serif;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta .btn-primary:hover {
    background: #f8f9fa;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    background: #ffffff;
    color: #1a1a1a;
    padding: clamp(40px, 8vw, 80px) 0 clamp(20px, 4vw, 30px);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    filter: none; /* Remove the white filter to show original logo colors */
}

.footer-brand p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 50%;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #56aeff;
    color: white;
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #56aeff;
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
    text-align: center;
    color: #6b7280;
}

/* Responsive Design */

/* Tablet and small desktop (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-container {
        gap: clamp(1rem, 3vw, 1.5rem);
        padding: clamp(70px, 8vh, 100px) 1.5rem 1.5rem 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(2.4rem, 5vw, 3.2rem);
        line-height: 1.2;
    }
    
    .hero-subtitle-section {
        width: 85%;
    }
    
    .sphere-layer {
        height: clamp(300px, 35vw, 350px);
        width: clamp(300px, 35vw, 350px);
    }
    
    .hero-stats {
        gap: clamp(2.5rem, 4vw, 3.5rem);
        margin-top: -1.5rem;
    }
    
    .stat-number {
        font-size: clamp(1.6rem, 3vw, 2.2rem);
    }
    
    .stat-label {
        font-size: clamp(0.9rem, 2vw, 1.1rem) !important;
        opacity: 1 !important;
        color: #ffffff !important;
        display: block !important;
        visibility: visible !important;
    }

    /* Features section tablet styles */
    .features {
        padding: clamp(60px, 8vw, 100px) 0;
    }
    
    .features-showcase {
        gap: clamp(3rem, 6vw, 5rem);
    }
    
    .feature-showcase {
        gap: clamp(2rem, 4vw, 3rem);
    }
    
    .feature-content h3 {
        font-size: clamp(1.5rem, 3vw, 1.9rem);
        line-height: 1.3;
    }
    
    .feature-content p {
        font-size: clamp(0.95rem, 2vw, 1.1rem);
        line-height: 1.6;
    }
    
    .chains {
        padding: clamp(60px, 8vw, 100px) 0;
    }
    
    /* Chains slider responsive styles for tablet */
    .supported-chains {
        margin: 1.5rem 0 0 0; /* Espacio arriba del logo en tablet */
    }
    
    .chains-track {
        gap: 2.5rem;
    }
    
    .chain-logo {
        width: 45px;
        height: auto; /* Altura automática para tablet */
    }
    
    .chain-logo img {
        width: 45px;
        height: 45px;
    }
    
    .chain-name {
        font-size: 0.7rem; /* Texto ligeramente más pequeño en tablet */
    }
    
    .chains-grid {
        gap: clamp(1.5rem, 3vw, 2rem);
    }
    
    .chains-slider-track {
        gap: clamp(1rem, 3vw, 1.5rem);
        animation-duration: 45s; /* Más lento en tablet */
    }
    
    .chain-card {
        padding: clamp(1.5rem, 3vw, 2rem);
        width: clamp(250px, 30vw, 280px);
    }
    
    .safes-grid {
        gap: clamp(1rem, 2vw, 1.5rem);
        padding: clamp(1.2rem, 2.5vw, 1.8rem);
    }
    
    .safe-card {
        padding: clamp(1rem, 2vw, 1.5rem);
    }
    
    .safe-balance {
        font-size: clamp(1.5rem, 3vw, 1.9rem);
    }
    
    .dashboard-stats {
        gap: clamp(0.6rem, 1.5vw, 1rem);
    }
    
    .stat-card {
        padding: clamp(1rem, 2vw, 1.5rem);
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
}

/* Mobile and tablet (768px and below) */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    
    
    .hero-container {
        gap: clamp(0.8rem, 2vw, 1.2rem);
        padding: clamp(100px, 12vh, 120px) 1rem 3rem 1rem; /* Aumentado padding-bottom */
        min-height: 100vh;
        display:inline;
    }
    
    .hero-title {
        font-size: clamp(2rem, 7vw, 3rem);
        line-height: 1.2;
    }
    
    .hero-subtitle-section {
        width: 95%;
    }
    
    .sphere-layer {
        height: clamp(250px, 40vw, 300px);
        width: clamp(250px, 40vw, 300px);
    }
    
    /* Chains slider mobile styles */
    .supported-chains {
        margin: 1.2rem 0 0 0; /* Espacio arriba del logo en móvil */
        max-width: 100%;
    }
    
    .chains-track {
        gap: 2rem;
        animation-duration: 25s; /* Más rápido en móvil */
    }
    
    .chain-logo {
        width: 40px;
        height: auto; /* Altura automática para móvil */
    }
    
    .chain-logo img {
        width: 40px;
        height: 40px;
    }
    
    .chain-name {
        font-size: 0.65rem; /* Texto más pequeño en móvil */
    }
    
    .hero-stats {
        justify-content: center;
        gap: clamp(1rem, 3vw, 1.5rem);
        flex-direction: row; /* Cambio a fila para mostrar en línea */
        flex-wrap: nowrap; /* No permitir wrap para mantener en una línea */
        margin-bottom: 2rem;
        margin-top: -1rem;
        padding-bottom: env(safe-area-inset-bottom, 1rem);
        overflow-x: auto; /* Permitir scroll horizontal si es necesario */
    }
    
    .stat-item {
        flex-shrink: 0; /* Evitar que se compriman */
        min-width: auto; /* Permitir tamaño natural */
    }
    
    .stat-number {
        font-size: clamp(1.2rem, 4vw, 1.6rem); /* Reducir tamaño para que quepa */
    }
    
    .stat-label {
        font-size: clamp(0.7rem, 1.8vw, 0.9rem); /* Reducir tamaño de etiquetas */
    }
    
    .safe-card {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .features-grid,
    .chains-grid {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 4vw, 2rem);
    }
    
    /* Chains section mobile styles */
    .chains-slider-track {
        gap: clamp(0.8rem, 2vw, 1.2rem);
        animation-duration: 35s; /* Más rápido en móvil */
    }
    
    .chain-card {
        padding: clamp(1.2rem, 3vw, 1.8rem);
        width: clamp(220px, 35vw, 260px);
    }
    
    .chain-icon {
        width: clamp(40px, 6vw, 48px);
        height: clamp(40px, 6vw, 48px);
    }
    
    .chain-logo-img {
        width: 24px;
        height: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: clamp(1.5rem, 4vw, 2rem);
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .cta-content h2 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }
    
    /* Features section mobile styles */
    .features {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-header p {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .features-showcase {
        gap: 3rem;
    }
    
    /* Yield Generation section mobile styles */
    .yield-generation {
        padding: 60px 0;
    }
    
    .feature-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .feature-content {
        order: 1;
    }
    
    .feature-mockup {
        order: 2;
        padding: 1rem;
    }
    
    .feature-content h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .feature-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .wallet-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .wallet-nav {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .nav-item {
        font-size: 0.875rem;
    }
    
    .add-safe-btn {
        align-self: center;
        padding: 0.75rem 1.5rem;
    }
    
    .safes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .safe-card {
        padding: 1rem;
    }
    
    .safe-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        margin-bottom: 0.75rem;
    }
    
    .safe-badge {
        align-self: flex-start;
    }
    
    .safe-status {
        align-self: flex-end;
    }
    
    .safe-balance {
        font-size: 1.5rem;
    }
    
    .safe-details {
        font-size: 0.8rem;
    }
    
    .safe-info {
        font-size: 0.7rem;
    }
    
    .safe-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .claim-btn, .open-btn {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .transactions-section {
        padding: 1rem;
    }
    
    .section-tabs {
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .tab {
        font-size: 0.875rem;
    }
    
    .transaction-item {
        grid-template-columns: auto 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .tx-amount {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 0.5rem;
        font-size: 0.875rem;
    }
    
    .tx-status {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 0.25rem;
    }
    
    .tx-details {
        gap: 0.125rem;
    }
    
    .tx-type {
        font-size: 0.7rem;
    }
    
    .tx-hash {
        font-size: 0.8rem;
        word-break: break-all;
    }
    
    .tx-date {
        font-size: 0.7rem;
    }
    
    .pending-section {
        padding: 1.5rem 1rem;
    }
    
    .inheritance-dashboard {
        padding: 1rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .create-safe-section {
        padding: 1.5rem 1rem;
    }
    
    .create-safe-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: clamp(90px, 15vh, 110px) clamp(12px, 3vw, 20px) 3rem clamp(12px, 3vw, 20px); /* Aumentado padding-bottom */
        gap: clamp(1rem, 3vw, 1.8rem);
        min-height: 100vh;
        display: inline;
    }
    
    .hero-title {
        font-size: clamp(1.6rem, 8vw, 2.4rem);
        margin-bottom: clamp(0.6rem, 2vw, 1rem);
        line-height: 1.1;
    }
    
    .hero-subtitle-section {
        margin: clamp(1rem, 3vw, 2rem) auto 0 auto;
        padding-top: clamp(0.5rem, 1.5vw, 1rem);
        max-width: 98%;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        line-height: 1.5;
    }
    
    /* Chains slider styles for very small screens */
    .supported-chains {
        margin: 1rem 0 0 0; /* Espacio arriba del logo en pantallas muy pequeñas */
    }
    
    .chains-track {
        gap: 1.5rem;
        animation-duration: 20s; /* Aún más rápido en pantallas muy pequeñas */
    }
    
    .chain-logo {
        width: 35px;
        height: auto; /* Altura automática para pantallas muy pequeñas */
    }
    
    .chain-logo img {
        width: 35px;
        height: 35px;
    }
    
    .chain-name {
        font-size: 0.6rem; /* Texto aún más pequeño en pantallas muy pequeñas */
    }
    
    /* Chains section very small screens styles */
    .chains-slider-track {
        gap: clamp(0.6rem, 1.5vw, 1rem);
        animation-duration: 30s; /* Más rápido en pantallas muy pequeñas */
    }
    
    .chain-card {
        padding: clamp(1rem, 2.5vw, 1.5rem);
        width: clamp(200px, 40vw, 240px);
    }
    
    .chain-icon {
        width: clamp(36px, 5vw, 44px);
        height: clamp(36px, 5vw, 44px);
    }
    
    .chain-logo-img {
        width: 20px;
        height: 20px;
    }
    
    .chain-card h3 {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }
    
    .chain-card p {
        font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    }
    
    .hero-stats {
        gap: clamp(0.8rem, 2.5vw, 1.2rem);
        flex-direction: row; /* Cambio a fila para mostrar en línea */
        flex-wrap: nowrap; /* No permitir wrap */
        justify-content: center;
        align-items: center;
        margin-top: -0.5rem;
        margin-bottom: 2rem;
        padding-bottom: env(safe-area-inset-bottom, 1rem);
        overflow-x: auto; /* Scroll horizontal si es necesario */
    }
    
    .stat-item {
        flex-shrink: 0; /* No comprimir */
        min-width: auto;
        text-align: center;
    }
    
    .stat-number {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
    }
    
    .stat-label {
        font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    }

    /* Features section extra small mobile styles */
    .features {
        padding: clamp(30px, 8vw, 60px) 0;
    }
    
    .section-header {
        margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
        padding: 0 clamp(12px, 3vw, 20px);
    }
    
    .section-header h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: clamp(0.6rem, 2vw, 1rem);
        line-height: 1.2;
    }
    
    .section-header p {
        font-size: clamp(0.85rem, 3vw, 1rem);
        line-height: 1.5;
    }
    
    .features-showcase {
        gap: clamp(2rem, 6vw, 3rem);
        padding: 0 clamp(12px, 3vw, 20px);
    }
    
    /* Yield Generation section extra small mobile styles */
    .yield-generation {
        padding: clamp(30px, 8vw, 60px) 0;
    }
    
    .yield-protocols {
        padding: clamp(0.8rem, 2.5vw, 1.2rem);
        margin: 0 clamp(6px, 2vw, 12px);
        margin-top: clamp(2rem, 5vw, 3rem);
    }

    .feature-showcase {
        gap: clamp(1.2rem, 4vw, 2rem);
    }
    
    .feature-content h3 {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
        margin-bottom: clamp(0.6rem, 2vw, 1rem);
        line-height: 1.3;
    }
    
    .feature-content p {
        font-size: clamp(0.8rem, 3vw, 0.95rem);
        margin-bottom: clamp(0.8rem, 2vw, 1.2rem);
        line-height: 1.5;
    }
    
    .feature-mockup {
        padding: clamp(0.6rem, 2vw, 1rem);
        border-radius: 12px;
    }
    
    .wallet-header {
        padding: clamp(0.6rem, 2vw, 1rem) clamp(0.8rem, 2.5vw, 1.2rem);
        gap: clamp(0.6rem, 2vw, 1rem);
    }
    
    .wallet-nav {
        gap: clamp(0.8rem, 2.5vw, 1.2rem);
        font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    }
    
    .nav-item {
        font-size: clamp(0.75rem, 2.5vw, 0.85rem);
        padding: clamp(0.3rem, 1vw, 0.5rem) clamp(0.6rem, 2vw, 0.8rem);
    }
    
    .add-safe-btn {
        padding: clamp(0.4rem, 1.5vw, 0.6rem) clamp(0.8rem, 2.5vw, 1.2rem);
        font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    }
    
    .safes-grid {
        padding: clamp(0.6rem, 2vw, 1rem);
        gap: clamp(0.6rem, 2vw, 1rem);
    }
    
    .safe-card {
        padding: clamp(0.6rem, 2vw, 1rem);
        max-width: 100%;
        margin: 0;
    }
    
    .safe-header {
        gap: clamp(0.2rem, 1vw, 0.4rem);
        margin-bottom: clamp(0.4rem, 1.5vw, 0.6rem);    
    }
    
    .safe-badge {
        font-size: clamp(0.65rem, 2vw, 0.75rem);
        padding: clamp(0.15rem, 0.5vw, 0.25rem) clamp(0.4rem, 1.5vw, 0.6rem);
    }
    
    .safe-status {
        font-size: clamp(0.65rem, 2vw, 0.75rem);
        padding: clamp(0.15rem, 0.5vw, 0.25rem) clamp(0.3rem, 1vw, 0.5rem);
    }
    
    .safe-card h4 {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: clamp(0.2rem, 1vw, 0.4rem);
    }
    
    .safe-balance {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
        margin-bottom: clamp(0.2rem, 1vw, 0.4rem);
    }
    
    .safe-details {
        font-size: clamp(0.7rem, 2.5vw, 0.8rem);
        margin-bottom: clamp(0.6rem, 2vw, 0.8rem);
    }
    
    .safe-info {
        font-size: clamp(0.6rem, 2vw, 0.7rem);
    }
    
    .safe-actions {
        gap: clamp(0.4rem, 1.5vw, 0.6rem);
    }
    
    .claim-btn, .open-btn {
        padding: clamp(0.4rem, 1.5vw, 0.6rem);
        font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    }
    
    .transactions-section {
        padding: clamp(0.6rem, 2vw, 1rem);
    }
    
    .section-tabs {
        gap: clamp(0.6rem, 2vw, 1rem);
        margin-bottom: clamp(1.2rem, 3vw, 1.8rem);
    }
    
    .tab {
        font-size: clamp(0.75rem, 2.5vw, 0.85rem);
        padding: clamp(0.3rem, 1vw, 0.5rem) 0;
    }
    
    .transaction-item {
        grid-template-columns: 1fr;
        gap: clamp(0.4rem, 1.5vw, 0.6rem);
        padding: clamp(0.4rem, 1.5vw, 0.6rem);
        text-align: center;
    }
    
    .tx-icon {
        width: clamp(24px, 6vw, 32px);
        height: clamp(24px, 6vw, 32px);
        margin: 0 auto;
    }
    
    .tx-details {
        text-align: center;
    }
    
    .tx-type {
        font-size: clamp(0.6rem, 2vw, 0.7rem);
    }
    
    .tx-hash {
        font-size: clamp(0.65rem, 2vw, 0.75rem);
    }
    
    .tx-date {
        font-size: clamp(0.6rem, 2vw, 0.7rem);
    }
    
    .tx-amount {
        font-size: clamp(0.75rem, 2.5vw, 0.85rem);
        margin-top: clamp(0.2rem, 1vw, 0.3rem);
    }
    
    .tx-status {
        margin-top: clamp(0.2rem, 1vw, 0.3rem);
        font-size: clamp(0.65rem, 2vw, 0.75rem);
    }
    
    .pending-section {
        padding: clamp(0.8rem, 2.5vw, 1.2rem) clamp(0.6rem, 2vw, 1rem);
    }
    
    .inheritance-dashboard {
        padding: 0.75rem;
    }
    
    .dashboard-stats {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .inheritance-dashboard .stat-label {
        font-size: 0.8rem;
        color: #56aeff !important;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .create-safe-section {
        padding: 1rem 0.75rem;
    }
    
    .create-safe-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .create-description {
        font-size: 0.8rem;
    }
}

/* Additional responsive styles */
@media (max-width: 1280px) {
    .stat-number {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .btn-large {
        width: 100%;
        max-width: 280px;
    }
    
    .safes-grid {
        padding: 2.5rem 1.5rem;
        gap: 1.5rem;
    }
    
    .safe-card {
        padding: 2rem;
        min-height: 260px;
    }
    
    .safe-balance {
        font-size: 2.2rem;
    }
}

/* Tablet responsive styles */
@media (max-width: 1024px) {
    .safes-grid {
        max-width: 900px;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
    
    .safe-card {
        padding: 2rem;
        min-height: 240px;
    }
    
    .safe-card h4 {
        font-size: 1.3rem;
    }
    
    .safe-balance {
        font-size: 2rem;
    }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .safes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1rem;
        max-width: 500px;
    }

    .safe-card {
        padding: 2rem 1.5rem;
        min-height: 220px;
        /* permitir crecer si el contenido lo requiere */
        height: auto;
    }
    
    .safe-header {
        margin-bottom: 1rem;
    }
    
    .safe-badge {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .safe-status {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .safe-card h4 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .safe-balance {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .safe-details {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .safe-info {
        font-size: 0.75rem;
    }
}

/* Small mobile responsive styles */
@media (max-width: 480px) {
    .safes-grid {
        padding: 1.5rem 0.75rem;
        gap: 1rem;
    }
    
    .safe-card {
        padding: 1.5rem;
        min-height: 200px;
        height: auto;
    }
    
    .safe-balance {
        font-size: 1.6rem;
    }
    
    .safe-card h4 {
        font-size: 1.1rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optimizaciones móviles para mejor rendimiento */
@media (max-width: 768px) {
    /* Reducir complejidad de animaciones en móvil */
    .feature-card, .chain-card, .safe-card {
        animation-duration: 0.4s !important;
        will-change: transform, opacity;
    }
    
    /* Simplificar efectos de hover en móvil */
    .feature-card:hover, .chain-card:hover, .safe-card:hover {
        transform: none !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Optimizar canvas de la esfera */
    #sphere-canvas {
        will-change: auto;
        transform: translateZ(0);
    }
    
    /* Reducir blur y efectos complejos */
    .sphere-section::before {
        backdrop-filter: blur(5px) !important;
    }
    
    /* Simplificar gradientes */
    .hero-section {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    }
    
    /* Optimizar transiciones */
    * {
        transition-duration: 0.2s !important;
    }
    
    /* Desactivar animaciones complejas en dispositivos de baja potencia */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Optimizaciones generales de rendimiento */
.feature-card, .chain-card, .safe-card, .protocol-card {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Sphere Section Styles */
.sphere-section {
    position: relative;
    overflow: hidden;
    z-index: 0;
    height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sphere-layer {
    grid-area: sphere;
    position: relative;
    z-index: 1;
    height: 400px;
    width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sphere-centered-container {
    max-width: 1680px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--grid-margin-size, 2rem);
    width: 100%;
}

/* Specific styles for canvas container */
.sphere-centered-container:first-child {
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    text-align: center;
    max-width: none;
    display: flex;
    gap: 20rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 0;
    padding: 0;
}

.sphere-content {
    position: relative;
    text-align: center;
    max-width: calc(100% - 4rem);
    margin: 0 auto;
    display: flex;
    gap: 24px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0, 1.02, 0.27, 0.97);
    z-index: 2;
}

.sphere-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.sphere-title {
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 120%;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #56aeff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    letter-spacing: -0.02em;
}

.sphere-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 2.5vw, 20px);
    line-height: 160%;
    margin: 0;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.sphere-split-line {
    display: block;
    overflow: hidden;
    margin-bottom: 1rem;
}

.sphere-split-line > span {
    display: inline-block;
    margin-right: 0.5rem;
    opacity: 0;
    animation: fadeInWord 0.8s ease-out forwards;
}

.sphere-split-line span:nth-child(1) { animation-delay: 0.1s; }
.sphere-split-line span:nth-child(2) { animation-delay: 0.2s; }
.sphere-split-line span:nth-child(3) { animation-delay: 0.3s; }
.sphere-split-line span:nth-child(4) { animation-delay: 0.4s; }
.sphere-split-line span:nth-child(5) { animation-delay: 0.5s; }
.sphere-split-line span:nth-child(6) { animation-delay: 0.6s; }
.sphere-split-line span:nth-child(7) { animation-delay: 0.7s; }
.sphere-split-line span:nth-child(8) { animation-delay: 0.8s; }
.sphere-split-line span:nth-child(9) { animation-delay: 0.9s; }

.sphere-canvas {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    background: transparent;
    /* Optimizaciones de rendering para máxima fluidez */
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    -webkit-perspective: 1000px;
    perspective: 1000px;
    /* Antialiasing mejorado */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    -ms-interpolation-mode: nearest-neighbor;
    /* Aceleración por hardware */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sphere-values-centered-container {
    position: relative;
    width: 100%;
    max-width: 1680px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--grid-margin-size, 2rem) 32px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0, 1.02, 0.27, 0.97);
    transform: translateY(20px);
    z-index: 2;
}

.sphere-values-centered-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.sphere-values {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0 60px;
    flex-wrap: wrap;
}

.sphere-value {
    gap: 4px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 120px;
}

.sphere-value-title {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: clamp(14px, 2vw, 16px);
    line-height: 160%;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sphere-value-number {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 160%;
    color: #fff;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #56aeff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive adjustments */
@media (max-width: 1280px) {
    .sphere-values {
        gap: 0 44px;
    }
}

@media (max-width: 767px) {
    .sphere-values-centered-container {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        padding-bottom: 24px;
    }
    
    .sphere-values {
        gap: 12px 24px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sphere-value {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
    }
}

.sphere-scroll-button {
    background: linear-gradient(135deg, #56aeff 0%, #4a9eff 100%);
    border: none;
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-top: 24px;
}

.sphere-scroll-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 82, 255, 0.3);
}

@keyframes fadeInWord {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sphere Logo in center */
.sphere-logo {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
}

.sphere-logo .sphere-logo-img {
    width: clamp(60px, 8vw, 120px);
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Responsive Design for Sphere */
@media (max-width: 1024px) and (min-width: 769px) {
    .sphere-logo .sphere-logo-img {
        width: clamp(100px, 12vw, 160px);
    }
}

@media (max-width: 768px) {
    .sphere-title {
        font-size: 2.5rem;
    }
    
    .sphere-subtitle {
        font-size: 1.2rem;
    }
    
    .sphere-values {
        flex-direction: column;
        gap: 2rem;
    }
    
    .sphere-centered-container {
        padding: 1rem;
    }
    
    .sphere-logo .sphere-logo-img {
        width: clamp(90px, 15vw, 150px);
    }
}

.feature-card,
.chain-card,
.safe-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Reveal animation for scroll effects */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Missing closing brace fix */
.btn-secondary {
    background: transparent;
    color: #56aeff;
    border: 2px solid #56aeff;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Source Sans Pro', 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: #56aeff;
    color: white;
    transform: translateY(-2px);
}

/* Heir-specific badges */
.safe-badge.heir-status {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    font-weight: 600;
}

.safe-badge.heir-status.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    animation: pulse 2s infinite;
}

/* Heir card specific styles */
.heir-card .safe-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status colors for heir cards */
.heir-card .safe-status:contains("PENDING") {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

.heir-card .safe-status:contains("CLAIMABLE") {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    animation: pulse 2s infinite;
}

.heir-card .safe-status:contains("WAITING") {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

/* Transaction pending styles */
.transaction-item.pending {
    border-left: 3px solid #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.tx-icon.pending {
    background: #f59e0b;
    color: white;
}

.tx-status.pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.transaction-content {
    display: block;
}

.transaction-content[style*="display: none"] {
    display: none !important;
}