/* Hero */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  min-height: calc(100vh - 150px);
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.highlight1,
.highlight2 {
  background: #ffffff;
  color: #112240;
  padding: 3px 8px;
}

.hero p {
  margin-bottom: 30px;
  font-size: 1.2rem;
  font-weight: lighter;
}

/* Hero Imagen */

.hero-image-wrapper {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto 25px;
}

.hero-image {
  width: 240px;
  height: 240px;
  object-fit: cover;
  display: block;
  margin: 0 auto 25px;
  border-radius: var(--radius-lg);
  border: 6px solid var(--border);
  transition:
    transform 0.35s ease,
    border-color var(--ease);
}

/* Hero Social */

.social {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.social-icon {
  color: #ffffff;
  text-decoration: none;
  font-size: 2.5rem;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.1);
  color: var(--highlight);
}
/* About */

.about-page {
  padding: 45px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.about-content {
  max-width: 1000px;
  width: 100%;
}

.about-content h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--highlight);
  display: inline-block;
  padding-bottom: 10px;
}

.about-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  margin-top: 10px;
  align-items: center;
}

.about-content h2 {
  font-size: 1.3rem;
  line-height: 1.2;
  text-align: justify;
  font-weight: 200;
}

.about-content p {
  font-size: 1.2rem;
  font-weight: lighter;
  line-height: 1.5;
  margin-bottom: 15px;
  margin-top: 15px;
  text-align: justify;
}

/* About Imagenes */

.about-image {
  width: 100%;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  border: 6px solid var(--border);
}

/* About Modal Certificaciones */

.certs-card {
  cursor: pointer;
}
.certs-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--highlight);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
}

.cert-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.88);
  z-index: 2500;
}

.cert-modal.is-open {
  display: flex;
}

.cert-modal__panel {
  width: min(520px, 96vw);
  max-height: 85vh;
  overflow: auto;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-bottom);
  border: 2px solid rgba(204, 214, 246, 0.18);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  position: relative;
}

.cert-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--panel-2);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2000;
  transition: all 0.3s ease;
}
.cert-modal__close:hover {
  background: var(--highlight-soft);
}
.cert-modal__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.cert-item {
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.cert-item:hover {
  transform: scale(1.02);
  background: var(--panel);
  border-color: var(--highlight);
}

.cert-item__meta {
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 2px;
}

.cert-item__name {
  font-size: 13px;
  color: #9ca3af;
}

.cert-item__meta::before {
  content: "";
}

/* Projects */

.projects-page {
  padding: 45px 20px;
  display: flex;
  justify-content: center;
}

.projects-container {
  max-width: 1000px;
  width: 100%;
}

.projects-container h1 {
  font-size: 2.8rem;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--highlight);
  display: inline-block;
  padding-bottom: 10px;
}

.projects-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); /* Actual */
  gap: 30px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-soft);
}

/* Projects Imagen */

.project-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.03);
}

/* Projects Contenido */

.project-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-content h2 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.project-description {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.88;
  margin-bottom: 18px;
}

/* Projects Tecnologías */

.project-tech-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.project-tech-icons i {
  font-size: 1.8rem;
  background: var(--panel);
  padding: 10px;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.project-tech-icons i:hover {
  transform: scale(1.12);
}

/* Projects Botones */

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  background: var(--panel-2);
  color: white;
  border: 1px solid var(--border);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.project-btn:hover {
  transform: translateY(-2px);
  background: var(--border-soft);
}

.project-btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Projects Modal */

.project-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 4000;
}

.project-modal.active {
  display: flex;
}

.project-modal-content {
  position: relative;
  width: min(1200px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-bottom);
  border-radius: var(--radius-lg);
  padding: 35px;
  border: 2px solid var(--border);
}

.project-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 50%;

  background: var(--panel-2);
  backdrop-filter: blur(10px);

  color: white;
  font-size: 1.2rem;
  cursor: pointer;

  z-index: 2000;

  transition: all 0.3s ease;
}

.project-modal-close:hover {
  background: var(--highlight-soft);
}
.project-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

.project-modal-top-nav {
  display: flex;
  gap: 12px;
}

.project-modal-top-nav button {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 10px 18px;

  border: none;
  border-radius: var(--radius-sm);

  background: var(--panel-2);
  backdrop-filter: blur(10px);

  color: white;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;

  transition: all 0.3s ease;
}

.project-modal-top-nav button:hover {
  background: var(--highlight-soft);
}
.project-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: start;
}

/* Projects Modal Imagen */

.project-modal-image {
  width: 100%;
  height: 370px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 3px solid rgba(204, 214, 246, 0.18);
}

.project-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Projects Modal Info */

.project-modal-info h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}

.project-modal-info p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 22px;
}

/* Projects Modal Tecnologías */

.project-modal-tech {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.project-modal-tech i {
  font-size: 2rem;
}

/* Projects Modal Galería */

.project-modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.project-modal-gallery img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.project-modal-gallery img:hover {
  transform: scale(1.04);
  border-color: var(--border-soft);
}

.project-modal-gallery img.active-thumb {
  border-color: var(--border);
}

/* Projects Modal Botones */

.project-modal-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Projects Modal Flechas */

/* Skills */

.skills-page {
  padding: 45px 20px;
  display: flex;
  justify-content: center;
}

.skills-container {
  max-width: 1000px;
  width: 100%;
}

.skills-container h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--highlight);
  display: inline-block;
  padding-bottom: 10px;
}

.skills-intro {
  font-size: 1.2rem;
  font-weight: lighter;
  line-height: 1.6;
  margin-bottom: 10px;
  text-align: justify;
}

.skills-subtitle {
  margin: 15px 0 25px;
  font-size: 1.6rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
  padding-bottom: 6px;
}

/* Skills Grid */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.skills-main {
  margin-bottom: 10px;
}

.skills-creative {
  max-width: 100%;
}

/* Skills Card */

.skill-card {
  background: var(--panel-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  backdrop-filter: blur(6px);
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.skill-card:hover {
  background: var(--border-soft);
}

/* Skills Texto */

.skill-card h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.skill-desc {
  font-size: 0.95rem;
  font-weight: lighter;
  opacity: 0.85;
  margin-bottom: 14px;
}

.price {
  font-weight: bold;
  font-size: 0.95rem;
}

/* Skills Icono Principal */

.skill-card > i {
  color: var(--bg-bottom);
  font-size: 2.1rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  background: #ffffff;
  border: 2px solid rgba(204, 214, 246, 0.06);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition:
    transform var(--ease),
    background var(--ease),
    border-color var(--ease),
    color var(--ease);
}

.skill-card > i:hover {
  background: rgba(17, 34, 64, 0.75);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

/* Skills Tecnologías */

.tech-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.tech-icons i {
  font-size: 2.3rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(255, 255, 255);
  border: 2px solid rgba(240, 246, 204, 0.18);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition:
    transform var(--ease),
    background var(--ease),
    border-color var(--ease),
    color var(--ease);
}

.tech-icons i:hover {
  background: rgba(17, 34, 64, 0.75);
  border-color: rgba(255, 255, 255, 0.61);
}

/* Skills GitHub */

.devicon-github-original {
  color: #0f0f0f;
  transition: color var(--ease);
}

.devicon-github-original:hover {
  color: var(--text);
}

/* Skills CTA */

.skills-cta {
  margin-top: 50px;
  text-align: center;
}

/* Botón Ver */

.btn-ver {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  background: var(--bg-bottom);
  color: var(--text);
  padding: 14px 22px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  border: 1px solid rgba(204, 214, 246, 0.18);
  transition: all var(--ease);
  margin-top: 10px;
}

.btn-ver:hover {
  background: var(--border-soft);
  transform: translateY(-3px);
}

/* Contact */

.contact-page {
  padding: 45px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 150px);
}

.contact-container {
  max-width: 1000px;
  width: 100%;
}

.contact-container h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--highlight);
  display: inline-block;
  padding-bottom: 10px;
}

.contact-container p {
  font-size: 1.2rem;
  font-weight: lighter;
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: justify;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Contact Cards */

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(6px);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.contact-item:hover {
  transform: translateX(8px);
  background: var(--border-soft);
  border-color: var(--highlight);
}

.contact-item i {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.2);
}

.contact-item a,
.contact-item span {
  font-size: 1.2rem;
  color: white;
  text-decoration: none;
}

.contact-item a:hover {
  border-bottom: 2px solid #ccd6f6;
  color: white;
}

.contact-item:hover i {
  color: white;
}

/* PDF Modal */

.pdf-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  z-index: 3000;
  align-items: center;
  justify-content: center;
}

.pdf-modal.active {
  display: flex;
}

.pdf-content {
  width: 95%;
  height: 95%;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

#pdfFrame {
  width: 100%;
  height: 100%;
  border: none;
}

#closePdf {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}
