/* ==========================================================================
   PORTAL DEL COLABORADOR / INTRANET - ESTILOS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --ruby-900: #5f0617;
  --ruby-800: #7a081d;
  --ruby-700: #9b112e;
  --gold-500: #d4af37;
  --gold-400: #e4b936;
  --slate-950: #090d16;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-200: #e2e8f0;
  --white: #ffffff;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--white);
  min-height: 100vh;
  background: 
    linear-gradient(13deg, rgba(23, 27, 37, 0.14) 0%, rgba(31, 28, 28, 0.88) 100%),
    url('../../assets/images/fondo2.png') center/cover no-repeat fixed;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.ip-header {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 0;
}

.ip-header-inner {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ip-brand img {
  height: 48px;
  width: auto;
}

.ip-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.ip-nav-back:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--gold-400);
}

/* Main */
.ip-main {
  flex-grow: 1;
  padding: 56px 0 80px;
  display: flex;
  align-items: center;
}

.ip-container {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}

.ip-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.ip-intro h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.ip-intro h1 span {
  color: var(--gold-400);
}

.ip-intro p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

/* Cards */
.ip-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ip-card {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.ip-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 211, 207, 0.5);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.5);
}

.ip-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  font-size: 30px;
  color: var(--gold-400);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease, background 0.2s ease;
}



.ip-card h2 {
  font-family: 'Inter';
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 12px;
  margin-top: 16px;
}

.ip-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
  flex-grow: 1;
}

.ip-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--slate-200);
  color: var(--slate-950);
  transition: all 0.2s ease;
}

.ip-card-btn:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

@media (max-width: 940px) {
  .ip-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ip-cards {
    grid-template-columns: 1fr;
  }
}