/* ==========================================================================
   Comportamiento base e Identidad
   ========================================================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

:root {
    --jblue-primary: #0ea5e9;
    --jblue-hover: #0284c7;
    --bg-soft: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-soft);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Evita scroll horizontal accidental en móviles */
}

/* Navbar */
.navbar {
    background-color: rgba(248, 250, 252, 0.8) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.navbar-brand { font-weight: 700; color: var(--text-main) !important; }
.nav-link { font-weight: 500; color: var(--text-muted) !important; transition: 0.2s; }
.nav-link:hover { color: var(--jblue-primary) !important; }

/* Componentes */
.btn-jblue {
    background-color: var(--text-main);
    color: white;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    border: none;
    transition: 0.3s;
}

.btn-jblue:hover {
    background-color: var(--jblue-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.3);
}

.startup-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.placeholder-img {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    width: 100%;
}

img, .placeholder-img {
    max-width: 100%;
    height: auto;
}

.section-padding { padding: 120px 0; }

/* ==========================================================================
   Media Queries (Ajustes para Tablet y Smartphone)
   ========================================================================== */

/* Tablets y Móviles (Menos de 768px) */
@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }

    .display-3 { font-size: 2.5rem; line-height: 1.2; }
    .display-5 { font-size: 2rem; }

    #inicio {
        min-height: 80vh !important;
        padding-top: 100px;
    }

    /* Mejoramos el espacio del menú móvil */
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 15px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
}

/* Smartphone pequeño (Menos de 576px - como el Galaxy A15) */
@media (max-width: 576px) {
    .display-3 { font-size: 2.1rem !important; }
    .display-5 { font-size: 1.8rem !important; }

    /* Centrado de elementos de acción */
    .d-flex.justify-content-center {
        flex-direction: column;
        gap: 15px !important;
    }

    .btn-jblue { width: 100%; text-align: center; }

    /* Ajuste de márgenes laterales para que respire el contenido */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}