/* ===== VARIABLES ===== */
:root {
  --gold: #d4af37;
  --dark: #1f242d;  /* más sobrio */
  --light: #e3e0d6;
  --font: 'Poppins', sans-serif;
}
@font-face {
    font-family: 'ELEGANTE';
    src: url('fonts/Poppins/Poppins-Regular.ttf') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
} 

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BODY ===== */
body {
   font-family: 'ELEGANTE';
  background: var(--light);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  color: var(--light);
  padding: 0;  /* quité el padding para que la tarjeta toque los bordes */
}

/* ===== CARD PRINCIPAL ===== */
.card {
  width: 100%;
  height: 100dvh;         /* ahora ocupa todo el alto de la pantalla */
  max-width: 420px;       /* mantiene el diseño en pantallas grandes */
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 140px 20px 40px;
  text-align: center;
  position: relative;
  border-radius: 0;       /* quité el redondeo en pantallas completas */
  box-shadow: none;       /* sin sombra para ocupar todo el fondo */
  overflow: hidden;
}


/* ===== FONDO SUPERIOR CURVO ===== */
.card::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 50%;
  transform: translateX(-50%);
  width: 130%;               /* un poco más ancho */
  height: 260px;             /* más alto para cubrir la mitad de la foto */
  background: var(--light);
  clip-path: ellipse(100% 100% at 50% 0%);
  z-index: 1;
}

/* ===== FOTO DE PERFIL ===== */
.profile-img {
  width: 190px;              /* agrandada */
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  position: absolute;
  top: 90px;                 /* ajustado para que quede en medio del fondo curvo */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  background: var(--light);
}

/* ===== TEXTO ===== */
h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 220px;         /* más espacio porque la foto creció */
  margin-bottom: 8px;
  color: var(--light);
  text-transform: uppercase;
  line-height: 1.3;
}

.profesion {
  font-size: 14px;
  font-weight: 300;
  color: #bdbdbd;
  margin-bottom: 30px;
  font-style: italic;
}

/* ===== BOTONES ===== */
.btn {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 10px 0;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ===== ICONOS ===== */
.icons {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: auto;
  margin-bottom: 20px;
}

.icons img {
  height: 26px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.icons a:hover img {
  transform: scale(1.15);
  filter: brightness(1) sepia(1) hue-rotate(10deg) saturate(4);
}

/* ===== LEYENDA ===== */
.icon-legend {
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 8px;
  position: relative;
}

.icon-legend::before,
.icon-legend::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.icon-legend::before { left: -38px; }
.icon-legend::after { right: -38px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  h2 { font-size: 18px; }
  .profesion { font-size: 13px; }
  .profile-img { width: 140px; height: 140px; }
  .btn { font-size: 14px; padding: 10px; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .profile-img {
    width: 170px;
    height: 170px;
    top: 80px;
  }
  .card::before {
    height: 240px;
  }
  h2 {
    margin-top: 200px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
    .profile-img {
        width: 180px;
        height: 180px;
        top: 70px;
    }
    .card::before {
        height: 180px;
    }
  
    h2 {
        margin-top: 140px;
        font-size: 18px;
    }
    .icons img {
    height: 38px;
    }
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.logo-preload {
  width: 140px;
  animation: pulse 1.5s infinite ease-in-out;
}

/* Animación del logo */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

