/* cards.css */

/* Utilidades adicionales */
.bg-azul {
  background-color: var(--Azul, #2563EB);
}
.text-blanco {
  color: var(--Blanco, #FFF);
}
.text-center {
  text-align: center;
}

/* Layout de la página currículum */
.page-curriculum {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center; 
  width: 100%;
  min-height: 100dvh;
}

.curriculum-content {
  display: flex;
  width: 1440px;
  max-width: 100%;
  padding: 128px 48px 48px 48px;
  align-items: center;
  justify-content: center;
  gap: 48px;
  box-sizing: border-box;
}

/* --- Componente Card CV --- */
.cv-card {
  display: flex;
  width: 400px;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  border-radius: 48px 0;
  border: 2px solid var(--Azul, #2563EB);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  overflow: hidden; /* Corta el fondo del header para que respete el border-radius de la card */
  transition: box-shadow 0.3s ease;
}

.cv-card:hover {
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.15);
}

/* Variación especifica para la segunda tarjeta basandonos en la simetría visual de la imagen */
.cv-card-ats {
  border-radius: 0 48px;
}

.cv-card-header {
  display: flex;
  padding: 16px 24px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  border-bottom: 2px solid var(--Azul, #2563EB);
}

.cv-card-body {
  display: flex;
  padding: 32px 24px;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  align-self: stretch;
  flex: 1;
}

.cv-card-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  align-self: stretch;
  margin-top: auto; 
}

/* --- Botón Outline --- */
.btn-outline {
  display: flex;
  padding: 16px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  border-radius: 24px 0;
  border: 1px solid var(--Negro, #1A1A1A);
  background: transparent;
  color: var(--Negro, #1A1A1A);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

/* Mantener la asimetría en los botones de la tarjeta ATS */
.cv-card-ats .btn-outline {
  border-radius: 0 24px;
}

.btn-outline:hover {
  background: var(--Negro, #1A1A1A);
  color: var(--Blanco, #FFF);
}

/* --- Responsive Cards --- */
@media (max-width: 999px) {
  .curriculum-content {
    flex-direction: column;
    height: auto;
    padding-top: 120px;
  }

  .cv-card {
    width: 100%;
    max-width: 400px;
  }
}

/* ==========================================================================
   CARDS PROYECTOS
   ========================================================================== */
.card-destacada {
  display: flex;
  width: 500px;
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 24px;
  background: var(--Blanco, #FFF);
  overflow: hidden;
}

.card-destacada-header {
  display: flex;
  height: 250px;
  padding: 24px;
  justify-content: space-between;
  align-items: flex-start;
  align-self: stretch;
  border-bottom: 1px solid var(--Negro, #1A1A1A);
  position: relative;
  box-sizing: border-box;
}

.card-badges {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.card-badge {
  display: flex;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  background: var(--Blanco, #FFF);
}

.card-badge h4 {
  margin: 0;
}

.card-logo-destacada {
  width: 192px;
  height: 192px;
  position: absolute;
  left: 154px;
  bottom: -67px;
  border-radius: 8px;
  border: 2px solid var(--Blanco, #FFF);
  object-fit: cover;
  box-sizing: border-box;
}

.card-destacada-body {
  display: flex;
  padding: 96px 24px 24px 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
  align-self: stretch;
  box-sizing: border-box;
}

.card-link {
  display: flex;
  padding-bottom: 4px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  border-bottom: 1px solid var(--Negro, #1A1A1A);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.card-link:hover {
  opacity: 0.8;
}

.card-normal {
  display: flex;
  width: 360px;
  height: 480px;
  padding: 24px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  border-radius: 24px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.card-normal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  z-index: 2;
}

.card-normal-logo {
  width: 256px;
  height: 256px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
  z-index: 2;
}

.card-normal-link {
  display: flex;
  padding: 8px 16px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  border-radius: 16px;
  background: var(--Blanco, #FFF);
  text-decoration: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.card-normal-link:hover {
  opacity: 0.8;
}

/* Responsive Cards Proyectos */
@media (max-width: 768px) {
  .card-normal {
    width: 300px;
    height: 400px;
  }
  .card-normal-logo {
    width: 200px;
    height: 200px;
  }
}
