/* ==========================================================================
   PORTFOLIO WEB - LAUTARO CALETTI
   Estilo Editorial y Sistema Visual basado en el Manual de Marca
   ========================================================================== */

@import url('./variables.css');

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

p {
  color: var(--text-main);
  font-size: 1.15rem;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
}

/* Contenedores */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 5vw, 3rem);
  padding-right: clamp(1.25rem, 5vw, 3rem);
}

.section-spacing {
  padding-top: clamp(4.5rem, 8vw, 8rem);
  padding-bottom: clamp(4.5rem, 8vw, 8rem);
}

/* ==========================================================================
   COMPONENTES DE MARCA: CURSOR EDITORIAL [I] Y RECUADROS DE ENFOQUE
   ========================================================================== */

/* El Cursor Editorial [I] (Páginas 2, 7, 15 y 20 del Manual) */
.brand-cursor {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  position: relative;
  width: 16px;
  height: 1em;
  margin: 0 0.15em;
  user-select: none;
}

.brand-cursor::before,
.brand-cursor::after {
  content: '';
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: currentColor;
  border-radius: 1px;
}

.brand-cursor-stem {
  width: 3px;
  height: calc(100% - 5px);
  background-color: currentColor;
}

/* Animación de Parpadeo Oficial */
.blink {
  animation: cursorBlink 1.1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Recuadro de Enfoque / Píldoras Editoriales (Página 16) */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1.2px solid var(--border-color);
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  background: var(--bg-pill);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.pill-badge.active,
.pill-badge:hover {
  background: var(--bg-pill-hover);
  color: var(--text-pill-hover);
}

.pill-badge-sm {
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 6px 16px rgba(76, 108, 135, 0.25);
}

.btn-dark {
  background-color: var(--text-main);
  color: var(--bg-body);
}

.btn-dark:hover {
  background-color: var(--accent);
  color: #FFFFFF;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
  background-color: var(--text-main);
  color: var(--bg-body);
}

/* Líneas y Separadores de Grilla Editorial (Página 16) */
.editorial-line {
  height: 1px;
  width: 100%;
  background-color: var(--border-grid);
  margin: 0;
  border: none;
}

.editorial-header-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   HEADER & NAVEGACIÓN
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-body);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logotipo Lautaro Caletti */
.brand-logo {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--text-main);
  text-decoration: none;
}

.brand-logo .submark {
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  margin-left: 0.35rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-item-pill {
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  font-family: var(--font-headings);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  transition: all var(--transition-fast);
}

.nav-item-pill:hover,
.nav-item-pill.active {
  background-color: var(--text-main);
  color: var(--bg-body);
}

.nav-item-pill.nav-cta {
  background-color: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.nav-item-pill.nav-cta:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #FFFFFF;
}

/* Theme Toggle Pill */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  font-family: var(--font-headings);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--border-color);
  background-color: rgba(0, 0, 0, 0.05);
}

/* Mobile Toggle */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION (Basada en la pág. 20 del Manual "WEB - HOME PAGE")
   ========================================================================== */
.hero-section {
  padding-top: clamp(4rem, 9vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--border-grid);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-manifesto {
  font-family: var(--font-headings);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
  text-transform: uppercase;
}

.hero-manifesto .text-highlight {
  color: var(--accent);
}

.hero-tagline {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 400;
  color: var(--text-main);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.hero-tagline strong {
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Right: Big Animated Editorial Cursor & Identity Card */
.hero-visual-card {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-subtle);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
}

.hero-visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-cursor-display {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.hero-cursor-graphic {
  width: 54px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: var(--text-main);
}

.hero-cursor-graphic .bar-top,
.hero-cursor-graphic .bar-bottom {
  width: 100%;
  height: 8px;
  background-color: currentColor;
  border-radius: 2px;
}

.hero-cursor-graphic .bar-stem {
  width: 9px;
  height: 100%;
  background-color: currentColor;
}

.hero-visual-footer {
  border-top: 1px solid var(--border-grid);
  padding-top: 1.2rem;
  font-family: var(--font-headings);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

/* ==========================================================================
   PRINCIPIOS QUE NOS GUÍAN (Página 6 del Manual de Marca)
   ========================================================================== */
.principles-section {
  border-bottom: 1px solid var(--border-grid);
}

.section-intro-split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.principle-card {
  padding: 2.2rem 1.8rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.principle-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color);
  box-shadow: var(--shadow-hover);
}

.principle-icon-wrap {
  width: 48px;
  height: 48px;
  color: var(--accent);
}

.principle-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.principle-card p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   SOBRE MÍ & FILOSOFÍA ("NUESTRA VOZ" - Páginas 4 y 5)
   ========================================================================== */
.about-section {
  border-bottom: 1px solid var(--border-grid);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.about-bio-text {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.about-manifesto-quote {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 700;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--text-main);
}

.voice-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.voice-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.75rem 1.2rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-sm);
}

.voice-item .voice-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
}

/* ==========================================================================
   SERVICIOS / ÁREAS DE EXPERIENCIA (Del CV de Lautaro)
   ========================================================================== */
.services-section {
  border-bottom: 1px solid var(--border-grid);
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2.2rem;
  border: 1px solid var(--border-grid);
  background-color: var(--bg-surface);
  border-radius: var(--radius-card);
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  border-color: var(--text-main);
  box-shadow: var(--shadow-hover);
}

.service-number {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PROYECTOS DESTACADOS & FILTROS
   ========================================================================== */
.projects-section {
  border-bottom: 1px solid var(--border-grid);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-pill {
  border: 1.2px solid var(--border-color);
  background: transparent;
  color: var(--text-main);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-headings);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill.active,
.filter-pill:hover {
  background-color: var(--text-main);
  color: var(--bg-body);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.project-card {
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

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

.project-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #EAEAEA;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-grid);
}

.project-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-thumb-wrap img {
  transform: scale(1.04);
}

.project-info {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.project-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.project-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

/* ==========================================================================
   MODAL DE CASO DE ESTUDIO (Case Study Modal)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 26, 26, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-body);
  color: var(--text-main);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: var(--radius-card);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition-normal);
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-grid);
}

.modal-close-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--text-main);
  color: var(--bg-body);
}

.modal-body {
  padding: 2.5rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.modal-hero-img {
  width: 100%;
  min-height: 180px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-grid);
  overflow: hidden;
  background: var(--bg-surface);
}
.modal-hero-img img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px !important;
  min-height: 180px;
  object-fit: contain !important;
  background: var(--bg-surface);
}

.modal-quote-box {
  background-color: var(--bg-surface);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  font-style: italic;
}

.modal-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   TRAYECTORIA & FORMACIÓN (Del CV de Lautaro)
   ========================================================================== */
.timeline-section {
  border-bottom: 1px solid var(--border-grid);
}

.timeline-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.timeline-column h3 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 1.5px solid var(--border-grid);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1.5rem - 5px);
  top: 6px;
  width: 9px;
  height: 9px;
  background-color: var(--accent);
  border-radius: 50%;
}

.timeline-date {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.timeline-role {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.timeline-desc li {
  margin-left: 1.2rem;
  margin-bottom: 0.3rem;
}

/* Info Adicional Badges */
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* ==========================================================================
   CONTACTO & REDES (Páginas 19 y CV)
   ========================================================================== */
.contact-section {
  border-bottom: 1px solid var(--border-grid);
}

.contact-card-box {
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: var(--shadow-subtle);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.contact-left h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1.2rem;
}

.contact-left p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.contact-direct-items {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-pill);
  background-color: var(--bg-body);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.contact-item-row:hover {
  border-color: var(--border-color);
  transform: translateX(4px);
}

.contact-item-row .icon {
  font-size: 1.2rem;
  color: var(--accent);
}

.contact-item-row .label {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-item-row .value {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-left: auto;
}

/* Formulario */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 1.2px solid var(--border-grid);
  border-radius: var(--radius-sm);
  background: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.05rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   FOOTER (Página 21 y 22)
   ========================================================================== */
.site-footer {
  padding: 4rem 0 3rem;
  background-color: var(--bg-body);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-isologo {
  width: 52px;
  height: 52px;
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--border-grid);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-headings);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Toast de Notificación (Copiar Email) */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--color-negro-grafito);
  color: var(--color-blanco-lino);
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-headings);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
  z-index: 3000;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
.nav-mobile-drawer {
  display: none;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .timeline-split,
  .contact-card-box {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .section-intro-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .nav-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Menú Móvil Desplegable */
  .nav-mobile-drawer {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--bg-body);
    border-bottom: 1.5px solid var(--border-color);
    padding: 2rem;
    flex-direction: column;
    gap: 1rem;
    z-index: 99;
  }

  .nav-mobile-drawer.open {
    display: flex;
  }
}

/* Portfolio editor: alternate content for the About section */
.about-grid.about-side-hidden {
  grid-template-columns: 1fr;
}
.about-photo-custom {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 1px solid var(--border-grid);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-surface);
}
.about-photo-custom img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}
@media (max-width: 960px) {
  .about-grid.about-side-hidden {
    grid-template-columns: 1fr;
  }
}

/* Galería opcional de casos de estudio */
.modal-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.modal-gallery-item {
  width: 82px;
  height: 62px;
  padding: 0;
  border: 1px solid var(--border-grid);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-surface);
  cursor: pointer;
  opacity: 0.72;
  transition: transform var(--transition-fast), opacity var(--transition-fast), border-color var(--transition-fast);
}
.modal-gallery-item:hover,
.modal-gallery-item.active {
  opacity: 1;
  transform: translateY(-2px);
  border-color: var(--accent);
}
.modal-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Carrusel grande para las galerías de proyectos
   El visor mantiene 16:9 y adapta cualquier imagen existente sin recortarla. */
.modal-carousel {
  position: relative;
  width: 100%;
  margin-top: 0.8rem;
}
.modal-hero-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-grid);
  overflow: hidden;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-hero-img img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none !important;
  min-height: 0;
  object-fit: contain !important;
  background: var(--bg-surface);
}
.modal-carousel-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-grid);
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: var(--font-headings);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}
.modal-carousel-arrow:hover {
  transform: translateY(-50%) scale(1.06);
}
.modal-carousel-prev { left: 16px; }
.modal-carousel-next { right: 16px; }
.modal-carousel-counter {
  display: none;
  text-align: center;
  margin-top: 0.55rem;
  font-family: var(--font-headings);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .04em;
}
.modal-carousel.has-gallery .modal-carousel-counter {
  display: block;
}

@media (max-width: 700px) {
  .modal-carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }
  .modal-carousel-prev { left: 10px; }
  .modal-carousel-next { right: 10px; }
}

/* Selector de idioma */
.language-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: .18rem;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border-grid);
  border-radius: 999px;
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-headings);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}
.language-toggle-btn span:last-child { color: var(--text-muted); }
.language-toggle-btn.is-en span:first-child { color: var(--text-muted); }
.language-toggle-btn.is-en span:last-child { color: var(--text-main); }
.language-separator { color: var(--text-muted) !important; }
.language-mobile-btn {
  border: 1px solid var(--border-grid);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
}


/* Netlify Forms honeypot */
.netlify-honeypot { position: absolute !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; height: 1px !important; width: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important; }


/* Videos verticales 9:16 para casos de estudio */
.modal-videos-section { padding-top: .5rem; }
.modal-section-label { font-family: var(--font-headings); font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); margin-bottom: 1rem; }
.modal-videos-grid { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 1.5rem; }
.modal-video-card { width: min(100%, 300px); aspect-ratio: 9 / 16; border: 1px solid var(--border-grid); border-radius: var(--radius-sm); overflow: hidden; background: #111; }
.modal-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #111; }
@media (max-width: 700px) { .modal-videos-grid { gap: 1rem; } .modal-video-card { width: min(100%, 280px); } }
