/* 
 * miportal.pro - Identidad Propia (Estilo Moderno & Tech)
 */

:root {
    --primary: #4f46e5;    /* Indigo Moderno */
    --primary-dark: #3730a3;
    --accent: #10b981;     /* Esmeralda para acciones */
    --bg-light: #f8fafc;   /* Slate light */
    --text-dark: #0f172a;  /* Slate deep */
    --text-muted: #64748b; /* Slate muted */
    --white: #ffffff;
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', 'Segoe UI', sans-serif; }

body { background-color: var(--bg-light); color: var(--text-dark); line-height: 1.5; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.top-bar { background: #0f172a; color: white; font-size: 12px; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }

/* Header con Identidad Propia */
header { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); 
    padding: 20px 0; 
    color: white;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.15);
}
header .container { display: flex; align-items: center; gap: 25px; }

.logo { font-size: 26px; font-weight: 800; color: white; text-decoration: none; letter-spacing: -1px; }
.logo span { color: #c7d2fe; font-weight: 400; }

.search-box { 
    background: white; 
    border-radius: 10px; 
    display: flex; 
    flex: 1; 
    overflow: hidden; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.search-box select { border: none; padding: 12px 15px; background: #f1f5f9; font-size: 14px; border-right: 1px solid #e2e8f0; color: #475569; outline: none; }
.search-box input { border: none; padding: 12px 15px; flex: 1; outline: none; font-size: 14px; }
.search-box button { background: #1e293b; color: white; border: none; padding: 0 25px; cursor: pointer; transition: 0.3s; }
.search-box button:hover { background: #000; }

.btn-grow { 
    background: var(--accent); 
    color: white; 
    padding: 10px 20px; 
    border-radius: 10px; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 13px; 
    text-align: center; 
    line-height: 1.2;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transition: 0.3s;
}
.btn-grow:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3); }

/* Nav Sub */
.nav-sub { background: white; border-bottom: 1px solid #e2e8f0; padding: 12px 0; }
.nav-sub ul { display: flex; list-style: none; gap: 25px; font-size: 14px; color: #64748b; font-weight: 600; }
.nav-sub li { cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px; }
.nav-sub li:hover { color: var(--primary); }
.nav-sub li.active { color: var(--primary); position: relative; }
.nav-sub li.active::after { content: ''; position: absolute; bottom: -12px; left: 0; width: 100%; height: 3px; background: var(--primary); border-radius: 10px; }

/* Cards & Grid */
.cat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 15px; margin: 40px 0; }
.cat-item { 
    background: white; 
    padding: 25px 15px; 
    text-align: center; 
    border-radius: var(--radius); 
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    transition: 0.3s;
    cursor: pointer;
}
.cat-item i { font-size: 28px; color: var(--primary); display: block; margin-bottom: 12px; }
.cat-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); }

.portals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; margin-top: 30px; }
.portal-card { background: white; border-radius: var(--radius); overflow: hidden; border: 1px solid #f1f5f9; box-shadow: var(--shadow-sm); transition: 0.3s; height: 100%; }
.portal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.portal-img { height: 180px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; }
.portal-info { padding: 20px; }
.portal-info h3 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.portal-info p { font-size: 14px; color: var(--text-muted); height: 42px; overflow: hidden; margin-bottom: 15px; }

/* Buttons */
.btn-primary { background: var(--primary); color: white; padding: 12px 25px; border-radius: 10px; text-decoration: none; font-weight: 600; display: inline-block; transition: 0.3s; }
.btn-primary:hover { background: var(--primary-dark); transform: scale(1.02); }
