*{box-sizing:border-box;margin:0;padding:0;font-family:Segoe UI, Roboto, Arial, sans-serif}
html,body{height:100%}
body{display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#f5f7fb,#eef3ff);padding:24px}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  border: 20px solid #44b7d4;
  pointer-events: none;
  z-index: 9999;
}

.container {
  width: 100%;
  max-width: 1000px;
  height: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(20,30,60,0.08);
  display: flex;
  flex-direction: column; /* 👈 CLAVE */
  overflow: hidden;
}

.left,
.right {
  width: 100%;
}


/* Header title centered */
.header-title{width:100%;text-align:center;margin-bottom:12px}
.header-title h1{font-size:1.6rem;color:#0b3b66}
/* Avatar and logo row */
.row {
  display: flex;
  width: 100%;
  align-items: justify;-content: center;
  justify-content: space-around; /* clave */
  margin-top: 12px;
}

.col {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between; /* clave */
  padding: 0 12px; /* separación del borde */
}

/* Avatar */
.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #e6eefb;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f6ff;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Logo */
.logo {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #f0f4fb;
}

.logo img {
  max-width: 90%;
  max-height: 90%;
}

/* Name, role, link row */
.info {
  width: 100%;
  margin-top: 16px;
  padding: 0 24px;          /* 👈 CLAVE */
  text-align: left;       /* opcional pero recomendado */
}

.info .name{font-size:1.25rem;font-weight:700;color:#102a43}
.info .role{font-size:0.95rem;color:#475569;margin-top:6px}
.info .site{margin-top:8px}
.info .site a {
  display: inline-block;
  max-width: 100%;
  word-break: break-word;   /* 👈 evita desbordes */
}

/* Social buttons */
.socials {
  display: flex;
  padding: 0 24px; 
  gap: 12px;
  margin-top: 14px;
}

.socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #06509D;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s;
}

.socials i {
  font-size: 20px;
}

/* Hover */
.socials a:hover {
  transform: scale(1.1);
}

/* Separator */
.sep{width:100%;height:1px;background:#757482;margin-top:18px;border-radius:1px}

/* Right: 2x3 grid of buttons */
.grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
}

.grid button {
  padding: 20px 10px;
  border-radius: 12px;
  border: none;               /* sin borde */
  background: #fff;
  cursor: pointer;

  display: flex;
  flex-direction: column;     /* icono arriba, texto abajo */
  align-items: center;
  justify-content: center;
  gap: 8px;

  box-shadow: 0 4px 14px rgba(14,30,60,0.04);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.grid button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(14,30,60,0.12);
  background: #f0f4fb;
}

.grid button i {
  font-size: 40px;
  color: #44b7d4; /* azul */
}
.grid button span {
  display: -webkit-box;
  -webkit-line-clamp: 2;   /* máximo 2 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;

  height: 2.6em;
  text-align: center;
}

@media (max-width: 820px) {
  body {
    padding: 0;
  }

  body::before {
    border-width: 12px; /* borde más fino */
  }

  .container {
    max-width: 100%;
    border-radius: 0;
  }

  .header-title h1 {
    font-size: 1.4rem;
  }

  .info {
    padding: 0 20px;
    text-align: center;
  }

  .socials {
    padding: 0 20px;
    justify-content: center;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr); /* 🔑 tablet */
  }

  .grid button i {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  body::before {
    border-width: 8px;
  }

  .container {
    min-height: 100vh;
    border-radius: 0;
  }

  /* Avatar + logo */
  .row {
    justify-content: space-between;
  }

  .avatar,
  .logo {
    width: 90%;
    height: 90%;
  }

  /* Texto */
  .info {
    padding: 0 16px;
    text-align: center;
  }

  .info .name {
    font-size: 1.1rem;
  }

  .info .role {
    font-size: 0.9rem;
  }

  .info .site a {
    font-size: 0.9rem;
  }

  /* Redes */
  .socials {
    justify-content: center;
  }

  /* Grid */
  .grid {
    grid-template-columns: repeat(2, 1fr); /* 🔑 móvil */
    gap: 10px;
  }

  .grid button {
    padding: 16px 8px;
  }

  .grid button i {
    font-size: 32px;
  }

  .grid button span {
    font-size: 0.85rem;
  }
}


