@charset "UTF-8";
/*******
Configuración base del HTML para que no se 
altere la vista en otros navegadores
*******/
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  font-family: "Montserrat", system-ui, sans-serif;
  color: #e8edf4;
  background: radial-gradient(ellipse 40% 50% at 100% 60%, rgba(200, 150, 70, 0.22), transparent 70%), radial-gradient(ellipse 45% 55% at 0% 25%, rgba(40, 80, 130, 0.35), transparent 70%), #0a1220;
  background-attachment: fixed;
  overflow-x: clip;
}

h1 {
  font-size: 0 !important;
}

/* ===== Page ===== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem 7rem;
}

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type=checkbox],
[type=radio] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type=search] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

/* ===== About Me ===== */
.profile__photo {
  width: 190px;
  height: 190px;
  margin-bottom: 1rem;
  border: 4px solid #c8a15a;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  background: #2a3f5c;
  box-shadow: 0 0 0 4px rgba(200, 161, 90, 0.2);
}

.profile__name {
  font-family: "Poiret One", sans-serif;
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1.2;
}

.profile__role {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #b4bfcd;
}

/* ===== About ===== */
.about__title {
  font-family: "Poiret One", sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.about__text {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.8rem;
}

.about__text strong {
  font-weight: 700;
  color: #fff;
}

/* ===== Skills ===== */
.skills {
  margin-bottom: 1.5rem;
}

.skills:last-child {
  margin-bottom: 0;
}

.skills__title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.skills__item {
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
  color: #b4bfcd;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

/* ===== Brand ===== */
.brand {
  position: sticky;
  top: 0;
  z-index: 20;
  width: calc(100% + 2rem);
  margin: 0 -1rem 1.5rem;
  padding: 1rem 1rem 0.75rem;
  text-align: center;
  background: rgba(10, 18, 32, 0.35);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand__title {
  line-height: 0;
}

.brand__logo {
  display: inline-block;
  height: 64px;
  width: auto;
  max-width: 80%;
}

/* ===== Main (evita que el contenido ancho desborde la página) ===== */
.main {
  width: 100%;
  max-width: 1152px;
  min-width: 0;
}

.panel {
  min-width: 0;
}

/* ===== Card ===== */
.card {
  width: 100%;
  max-width: 1152px;
  display: grid;
  grid-template-columns: 40% 60%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2.2rem;
  background: #14233a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.card__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: linear-gradient(160deg, #1f3048 0%, #243a56 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.card__main {
  padding: 2.75rem 2.75rem 2.5rem;
}

/* ===== Contact ===== */
.contact__title {
  font-family: "Poiret One", sans-serif;
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1.2;
}

.contact__text {
  max-width: 26ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #b4bfcd;
}

/* ===== Direct contact ===== */
.direct {
  margin-bottom: 2.2rem;
}

.direct__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.direct__btn {
  flex: 1 1 190px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #e8edf4;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  transition: border-color 0.2s, filter 0.2s;
}

.direct__btn:hover {
  border-color: #c8a15a;
}

.direct__btn:focus-visible {
  outline: 2px solid #c8a15a;
  outline-offset: 2px;
}

.direct__btn--primary {
  color: #0a1220;
  background: #c8a15a;
  border-color: #c8a15a;
}

.direct__btn--primary:hover {
  filter: brightness(1.1);
}

.direct__icon {
  flex: none;
  font-size: 1.2rem;
  line-height: 1;
}

/* ===== Socials ===== */
.socials__title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.socials__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.socials__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
  color: #b4bfcd;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s;
}

.socials__icon {
  font-size: 1.05rem;
  line-height: 1;
}

.socials__link:hover {
  color: #fff;
  border-color: #c8a15a;
}

.socials__link:focus-visible {
  outline: 2px solid #c8a15a;
  outline-offset: 2px;
}

/* ===== Projects ===== */
.projects {
  width: 100%;
  max-width: 1152px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.75rem;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2.2rem;
  background: #14233a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.showcase {
  min-width: 0;
}

.showcase__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.showcase__title {
  font-family: "Poiret One", sans-serif;
  font-weight: 500;
  font-size: 1.7rem;
}

.showcase__controls {
  display: flex;
  gap: 0.5rem;
}

.showcase__arrow {
  width: 40px;
  height: 40px;
  color: #b4bfcd;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, opacity 0.2s;
}

.showcase__arrow:hover:not(:disabled) {
  color: #fff;
  border-color: #c8a15a;
}

.showcase__arrow:focus-visible {
  outline: 2px solid #c8a15a;
  outline-offset: 2px;
}

.showcase__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.showcase__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.showcase__track::-webkit-scrollbar {
  display: none;
}

.showcase__track:focus-visible {
  outline: 2px solid #c8a15a;
  outline-offset: 4px;
  border-radius: 1rem;
}

.project {
  flex: 0 0 calc((100% - 2rem) / 3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.4rem;
}

.project__media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #243a56, #14233a);
}

.project__img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.project__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.2rem 1.3rem;
}

.project__name {
  font-family: "Poiret One", sans-serif;
  font-weight: 500;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.project__text {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #b4bfcd;
}

.project__divider {
  margin: 1rem 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.project__tag {
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  color: #b4bfcd;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.project__btn {
  align-self: flex-start;
  margin-top: 1.1rem;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0a1220;
  text-decoration: none;
  background: #c8a15a;
  border-radius: 999px;
  transition: filter 0.2s;
}

.project__btn:hover {
  filter: brightness(1.1);
}

.project__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Proyecto en curso (skeleton) */
.project--skeleton {
  border-style: dashed;
}

.project__media--skeleton {
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: #b4bfcd;
}

.project__media--skeleton,
.project__tag--skeleton,
.project__btn--skeleton {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.13) 50%, rgba(255, 255, 255, 0.04) 70%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

.project__tag--skeleton {
  width: 4.4rem;
  height: 1.55rem;
  border-color: transparent;
}

.project__btn--skeleton {
  display: block;
  width: 8.5rem;
  height: 2.35rem;
  padding: 0;
}

@keyframes skeleton-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
/* Botón deshabilitado ("Trabajando en demo") */
.project__btn--disabled {
  color: #b4bfcd;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: not-allowed;
}

.project__btn--disabled:hover {
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .project__media--skeleton,
  .project__tag--skeleton,
  .project__btn--skeleton {
    animation: none;
  }
}
@media (max-width: 1023px) {
  .project {
    flex-basis: calc((100% - 1rem) / 2);
  }
}
@media (max-width: 767px) {
  .projects {
    gap: 2.25rem;
    padding: 1.5rem 1.1rem;
    border-radius: 1.6rem;
  }
  .showcase__title {
    font-size: 1.4rem;
  }
  .showcase__controls {
    display: none;
  }
  .project {
    flex-basis: 85%;
  }
}
/* ===== Blog ===== */
.blog {
  width: 100%;
  max-width: 1152px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2.2rem;
  background: #14233a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.blog__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2.25rem 2.5rem;
  text-align: center;
  background: linear-gradient(160deg, #1f3048 0%, #243a56 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.blog__title {
  font-family: "Poiret One", sans-serif;
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1.2;
}

.blog__text {
  max-width: 46ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #b4bfcd;
}

.blog__search {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-top: 0.8rem;
}

.blog__search-icon {
  position: absolute;
  top: 50%;
  left: 1.1rem;
  transform: translateY(-50%);
  color: #b4bfcd;
  pointer-events: none;
}

.blog__input {
  width: 100%;
  padding: 0.85rem 1.2rem 0.85rem 2.9rem;
  font: inherit;
  color: #e8edf4;
  background: rgba(10, 18, 32, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s;
}

.blog__input::-moz-placeholder {
  color: rgba(180, 191, 205, 0.6);
}

.blog__input::placeholder {
  color: rgba(180, 191, 205, 0.6);
}

.blog__input:focus {
  outline: none;
  border-color: #c8a15a;
  background: rgba(10, 18, 32, 0.65);
}

.blog__count {
  min-height: 1.3em;
  font-size: 0.85rem;
  color: #b4bfcd;
}

.blog__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 2rem 2.5rem 2.5rem;
}

.blog__empty {
  padding: 2rem 0;
  text-align: center;
  color: #b4bfcd;
}

.post {
  display: block;
  padding: 1.3rem 1.6rem 1.4rem;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.4rem;
  transition: border-color 0.2s;
}

.post {
  cursor: pointer;
}

.post:hover {
  border-color: #c8a15a;
}

.post:focus-visible {
  outline: 2px solid #c8a15a;
  outline-offset: 2px;
}

.post__title {
  font-family: "Poiret One", sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.post__text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #b4bfcd;
}

.post__divider {
  margin: 1rem 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.post__tag {
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  color: #b4bfcd;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

@media (max-width: 767px) {
  .blog {
    border-radius: 1.6rem;
  }
  .blog__head {
    padding: 1.75rem 1.25rem;
  }
  .blog__title {
    font-size: 1.8rem;
  }
  .blog__list {
    padding: 1.25rem 1rem 1.5rem;
  }
  .post {
    padding: 1.1rem 1.1rem 1.2rem;
  }
}
/* ===== Modal del artículo (70% de la pantalla en desktop, 95% en móvil) ===== */
body:has(.modal[open]) {
  overflow: hidden;
}

.modal {
  width: 70vw;
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: #e8edf4;
  background: #14233a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.8rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.modal[open] {
  animation: modal-in 0.25s ease-out;
}

.modal::backdrop {
  background: rgba(5, 10, 20, 0.7);
  backdrop-filter: blur(6px);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.modal__panel {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  max-height: 90dvh;
}

.modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 1;
  width: 40px;
  height: 40px;
  color: #b4bfcd;
  background: rgba(10, 18, 32, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.modal__close:hover {
  color: #fff;
  border-color: #c8a15a;
}

.modal__close:focus-visible {
  outline: 2px solid #c8a15a;
  outline-offset: 2px;
}

/* Contenido del artículo */
.article__head {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  background: linear-gradient(160deg, #1f3048 0%, #243a56 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.article__title {
  padding: 0 2.4rem;
  font-family: "Poiret One", sans-serif;
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.25;
}

.article__date {
  margin-top: -0.4rem;
  font-size: 0.85rem;
  color: #b4bfcd;
}

.article__tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.article__tabs[hidden] {
  display: none;
}

.article__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.5rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: #e8edf4;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.article__tab:hover {
  border-color: #c8a15a;
}

.article__tab:focus-visible {
  outline: 2px solid #c8a15a;
  outline-offset: 2px;
}

.article__tab--active {
  color: #0a1220;
  background: #c8a15a;
  border-color: #c8a15a;
}

.article__tab[hidden] {
  display: none;
}

.article__body {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.6rem 1.25rem 2.25rem;
}

.article__text {
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
  line-height: 1.85;
  color: #d5dde8;
}

.article__text code {
  padding: 0.1rem 0.4rem;
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.4rem;
}

.article__subtitle {
  margin: 1.9rem 0 0.7rem;
  font-family: "Poiret One", sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
}

.article__figure {
  margin: 1.4rem 0;
}

.article__img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.2rem;
}

.article__ph {
  display: grid;
  place-items: center;
  aspect-ratio: 16/9;
  font-size: 2rem;
  color: #b4bfcd;
  background: linear-gradient(135deg, #243a56, #14233a);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 1.2rem;
}

.article__video {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.2rem;
}

.article__video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 768px) {
  .article__head {
    padding: 1.9rem 2.5rem 1.6rem;
  }
  .article__title {
    padding: 0 3.5rem;
    font-size: 2rem;
  }
  .article__body {
    padding: 2.1rem 2.5rem 3rem;
  }
  .modal__close {
    top: 1.2rem;
    right: 1.2rem;
  }
}
@media (max-width: 767px) {
  .modal {
    width: 95vw;
    border-radius: 1.4rem;
  }
  .modal__panel {
    max-height: 92vh;
    max-height: 92dvh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .modal[open] {
    animation: none;
  }
}
.post[hidden] {
  display: none;
}

/* ===== Panels (secciones del menú) ===== */
.panel[hidden] {
  display: none;
}

.panel--empty {
  max-width: 1152px;
  width: 100%;
  padding: 4rem 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2.2rem;
  background: #14233a;
}

.panel__title {
  font-family: "Poiret One", sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.panel__text {
  color: #b4bfcd;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: rgba(14, 26, 44, 0.4);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.nav__btn {
  text-decoration: none;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: var(--color-muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.nav__btn:hover {
  color: #fff;
}

.nav__btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.nav__btn--active {
  color: #fff;
  background: #2f435d;
}

.nav__icon {
  font-size: 1.4rem;
  line-height: 1;
}

/* ===== Tablet / Desktop: igual que el diseño (>= 768px) ===== */
@media (min-width: 768px) {
  .card {
    grid-template-columns: 40% 60%;
  }
}
/* ===== Móvil: foto arriba, contenido abajo ===== */
@media (max-width: 767px) {
  .card {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 1.6rem;
  }
  .card__side {
    padding: 2rem 1.25rem;
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }
  .card__main {
    padding: 1.75rem 1.25rem;
  }
  .profile__photo {
    width: 150px;
    height: 150px;
  }
  .profile__name, .contact__title {
    font-size: 1.8rem;
  }
  .about__text {
    font-size: 1rem;
  }
  .brand__logo {
    height: 48px;
  }
  .nav {
    bottom: 1rem;
  }
  .nav__btn {
    width: 54px;
    height: 54px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
/*# sourceMappingURL=app.css.map */
