

/* ==========================================================================
   Extracted Page-Specific Styles
   ========================================================================== */

/* Modern Reset & Base */
      :root {
        --bs-dark:     #365359;
        --bs-teal:     #2699A6;
        --bs-cyan:     #24A6A6;
        --bs-olive:    #A3A649;
        --bs-light:    #F2F2F2;
        --font-heading: 'Montserrat', sans-serif;
        --font-body: 'Poppins', sans-serif;
        --max-w: 1200px;
        --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      }

      [data-theme="light"] {
        --bg-body: #F8F9FA;
        --bg-card: #FFFFFF;
        --bg-card-hover: #F2F5F6;
        --text-title: #1a2a2e;
        --text-main: #365359;
        --text-muted: #5e7a82;
        --border: rgba(38, 153, 166, 0.15);
      }
      
      [data-theme="dark"] {
        --bg-body: #0a0f12;
        --bg-card: #121a1e;
        --bg-card-hover: #182329;
        --text-title: #ffffff;
        --text-main: #e2e8f0;
        --text-muted: #94a3b8;
        --border: rgba(255, 255, 255, 0.08);
      }

      * { margin: 0; padding: 0; box-sizing: border-box; }
      body {
        font-family: var(--font-body);
        background-color: var(--bg-body);
        color: var(--text-main);
        overflow-x: hidden;
      }

      .container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
      .section { padding: 100px 0; }
      .section-alt { background-color: var(--bg-card); }

      h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--text-title); line-height: 1.2; font-weight: 700; }
      p { line-height: 1.7; color: var(--text-muted); margin-bottom: 20px; }
      a { text-decoration: none; transition: all var(--transition); }

      /* Buttons */
      .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 14px 32px;
        border-radius: 8px;
        font-family: var(--font-body);
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        transition: all var(--transition);
        border: none;
        gap: 10px;
      }
      .btn-primary {
        background: linear-gradient(135deg, #0b5d67, #0d626c);
        color: #fff;
        box-shadow: 0 4px 15px rgba(11,93,103,0.3);
      }
      .btn-primary:hover {
        transform: translateY(-3px);
        background: linear-gradient(135deg, #0d6c78, #0e7885);
        box-shadow: 0 8px 25px rgba(11,93,103,0.4);
        color: #fff;
      }
      .btn-outline {
        background: transparent;
        color: var(--text-title);
        border: 2px solid var(--border);
      }
      .btn-outline:hover {
        border-color: var(--bs-teal);
        color: var(--bs-teal);
      }

      /* Grid system */
      .grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 30px; }
      .col-6 { grid-column: span 6; }
      .col-4 { grid-column: span 4; }
      .col-12 { grid-column: span 12; }
      @media(max-width: 992px) { .col-6, .col-4 { grid-column: span 12; } }

      /* Hero Section */
      .hero {
        min-height: 80vh;
        display: flex;
        align-items: center;
        position: relative;
        padding-top: 170px;
        padding-bottom: 80px;
      }
      .hero-title { font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 900; margin-bottom: 15px; letter-spacing: -1px; }
      .hero-title span { background: linear-gradient(135deg, var(--bs-teal), var(--bs-cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
      .hero-subtitle { font-size: 1.25rem; color: var(--bs-teal); font-weight: 600; margin-bottom: 25px; letter-spacing: 1px; text-transform: uppercase; }
      .hero-text-wrap { max-width: 600px; }

      .profile-img-wrapper {
        position: relative;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        aspect-ratio: 1;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--bs-teal), var(--bs-cyan), var(--bs-olive));
        padding: 5px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.2);
        animation: float 6s ease-in-out infinite;
      }
      @keyframes float {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-15px); }
        100% { transform: translateY(0px); }
      }
      .profile-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        border: 10px solid var(--bg-body);
      }

      /* Floating Badges */
      .float-badge {
        position: absolute;
        background: var(--bg-card);
        padding: 15px 25px;
        border-radius: 12px;
        border: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        gap: 5px;
        z-index: 10;
      }
      .badge-exp { top: 10%; left: -20px; }
      .badge-proj { bottom: 10%; right: -20px; }
      .badge-num { font-size: 1.8rem; font-weight: 800; font-family: var(--font-heading); color: var(--bs-teal); line-height: 1; }
      .badge-text { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; }

      @media(max-width: 768px) {
        .hero { flex-direction: column; text-align: center; }
        .hero-text-wrap { order: 2; margin: 0 auto; }
        .hero-img-col { order: 1; margin-bottom: 40px; }
        .badge-exp { left: 0; }
        .badge-proj { right: 0; }
      }

      /* Stats */
      .stats-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
        text-align: center;
        padding: 60px 0;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
      }
      .stat-number { font-size: 4rem; font-family: var(--font-heading); font-weight: 900; color: var(--text-title); margin-bottom: 5px; }
      .stat-number span { color: var(--bs-teal); }
      .stat-label { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; }

      /* Timeline */
      .timeline { position: relative; padding-left: 50px; margin-top: 40px; }
      .timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--bs-teal), var(--bs-cyan), transparent); }
      .timeline-item { position: relative; margin-bottom: 50px; }
      .timeline-dot { position: absolute; left: -56px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--bs-teal); box-shadow: 0 0 0 4px var(--bg-body), 0 0 0 8px rgba(38,153,166,0.2); transition: all var(--transition); }
      .timeline-item:hover .timeline-dot { background: var(--bs-cyan); box-shadow: 0 0 0 4px var(--bg-body), 0 0 0 8px rgba(36,166,166,0.4); }
      .timeline-date { font-size: 0.9rem; color: var(--bs-teal); font-weight: 700; margin-bottom: 8px; letter-spacing: 1px; display: inline-block; padding: 4px 12px; background: var(--border); border-radius: 20px; }
      .timeline-title { font-size: 1.4rem; margin-bottom: 10px; }

      /* Skills */
      .skills-container { background: var(--bg-card); padding: 40px; border-radius: 20px; border: 1px solid var(--border); }
      .skill-item { margin-bottom: 30px; }
      .skill-item:last-child { margin-bottom: 0; }
      .skill-header { display: flex; justify-content: space-between; margin-bottom: 12px; font-weight: 600; font-size: 1.05rem; }
      .skill-bar-bg { width: 100%; height: 10px; background: var(--bg-body); border-radius: 5px; overflow: hidden; border: 1px solid var(--border); }
      .skill-bar-fill { height: 100%; background: linear-gradient(90deg, var(--bs-teal), var(--bs-cyan)); width: 0; transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); border-radius: 5px; }

      /* Philosophy */
      .phil-card {
        background: var(--bg-body);
        padding: 40px;
        border-radius: 20px;
        border: 1px solid var(--border);
        transition: all var(--transition);
        height: 100%;
        position: relative;
        overflow: hidden;
      }
      .phil-card::before {
        content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--bs-teal), var(--bs-cyan)); transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease;
      }
      .phil-card:hover { transform: translateY(-10px); border-color: var(--bs-teal); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
      .phil-card:hover::before { transform: scaleX(1); }
      .phil-icon { font-size: 2.5rem; margin-bottom: 25px; }

      /* Gallery */
      .gallery-item {
        border-radius: 16px;
        overflow: hidden;
        position: relative;
        aspect-ratio: 4/3;
        border: 1px solid var(--border);
        transition: all var(--transition);
      }
      .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.7s ease;
      }
      .gallery-item:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); border-color: var(--bs-teal); }
      .gallery-item:hover img { transform: scale(1.08); }

      /* Animations */
      .reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
      .reveal.visible { opacity: 1; transform: translateY(0); }
      .delay-1 { transition-delay: 0.1s; }
      .delay-2 { transition-delay: 0.2s; }
      .delay-3 { transition-delay: 0.3s; }

      .section-heading { text-align: center; margin-bottom: 60px; }
      .section-heading-badge { display: inline-block; padding: 6px 16px; background: var(--border); color: var(--bs-teal); border-radius: 30px; font-weight: 700; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 15px; }
      .section-heading h2 { font-size: 3rem; margin-bottom: 15px; background: linear-gradient(135deg, var(--text-title), var(--bs-teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
      
      /* Utilities */
      .text-teal { color: var(--bs-teal); }

.timeline-scroll {
      max-height: 520px;
      overflow-y: auto;
      padding-right: 20px;
    }
    .timeline-scroll::-webkit-scrollbar {
      width: 6px;
    }
    .timeline-scroll::-webkit-scrollbar-track {
      background: transparent;
    }
    .timeline-scroll::-webkit-scrollbar-thumb {
      background: var(--brand-blue, #0a5cff);
      border-radius: 10px;
    }

      /* Hover Overlay for Gallery Items */
      .gallery-item {
        position: relative;
        display: block;
        text-decoration: none;
      }
      .gallery-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(10, 15, 18, 0.95) 0%, rgba(10, 15, 18, 0.4) 60%, transparent 100%);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 24px;
        opacity: 0;
        transition: opacity var(--transition);
        z-index: 2;
        text-align: left;
      }
      .gallery-item:hover .gallery-overlay {
        opacity: 1;
      }
      .gallery-title {
        color: #ffffff;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 1.25rem;
        margin-bottom: 5px;
        display: block;
      }
            .gallery-subtitle {
        color: var(--bs-teal);
        font-weight: 600;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        display: block;
      }

      /* ==========================================================================
         CTA SECTION - Sobre Mi
         ========================================================================== */
      .sobre-cta-section {
        padding: 70px 0;
        background: linear-gradient(135deg, rgba(38,153,166,0.06) 0%, rgba(36,166,166,0.04) 100%);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
      }

      .sobre-cta-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-left: 4px solid var(--bs-teal);
        border-radius: 16px;
        padding: 48px 52px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.08);
      }

      .sobre-cta-text {
        flex: 1;
        max-width: 560px;
      }

      .sobre-cta-text .section-heading-badge {
        margin-bottom: 12px;
      }

      .sobre-cta-text h2 {
        font-size: clamp(1.6rem, 3vw, 2.2rem);
        margin-bottom: 12px;
        background: linear-gradient(135deg, var(--text-title), var(--bs-teal));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
      }

      .sobre-cta-text p {
        margin-bottom: 0;
        font-size: 1rem;
      }

      .sobre-cta-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        flex-shrink: 0;
      }

      .sobre-cta-actions .btn {
        white-space: nowrap;
        min-width: 200px;
        justify-content: center;
      }

      @media (max-width: 768px) {
        .sobre-cta-inner {
          flex-direction: column;
          padding: 36px 28px;
          text-align: center;
        }
        .sobre-cta-text { max-width: 100%; }
        .sobre-cta-actions { width: 100%; }
        .sobre-cta-actions .btn { width: 100%; min-width: 0; }
      }
/* ==========================================================================
   HOJA DE VIDA — bloque de contacto
   Es lo que separa una página "sobre mí" de una hoja de vida: los datos
   tienen que estar visibles arriba, no escondidos en el footer.
   ========================================================================== */
.cv-contacto {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.92rem;
  color: var(--text-muted, #94a3b8);
}
.cv-contacto li { display: flex; align-items: center; }
.cv-contacto li + li::before {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brand-blue, #2699A6);
  margin-right: 12px;
  flex: 0 0 auto;
}
.cv-contacto a { color: inherit; border-bottom: 1px solid transparent; }
.cv-contacto a:hover { color: var(--brand-blue, #2699A6); border-bottom-color: currentColor; }

/* ==========================================================================
   IMPRESIÓN — de esto sale el PDF
   Una hoja de vida que no imprime bien no es una hoja de vida.
   ========================================================================== */
@page { size: A4; margin: 14mm 15mm; }

@media print {
  /* Fuera todo lo que no es contenido de la hoja de vida.
     Una hoja de vida son 1 o 2 páginas: el portafolio y la filosofía se quedan
     en la versión web, donde sí aportan. En papel serían relleno — y las
     imágenes de proyecto por sí solas pesaban 2,8 MB. */
  header, footer, .header-wireframe, .footer-wireframe,
  #headerSite, .floating-controls, .floating-controls-container,
  .cv-acciones, .sobre-cta-section, .btn,
  .hero-img-col, .float-badge, .whatsapp-float, .scroll-top,
  #proyectos, .proyectos-section, .project-card, .project-grid,
  #proceso, .print-oculto {
    display: none !important;
  }

  /* Ninguna imagen va al papel */
  main img, .profile-img-wrapper { display: none !important; }

  /* Las cifras SÍ se quedan: en la hoja de vida de un diseñador,
     "150+ proyectos · 40+ marcas · 8+ años" es información, no adorno. */
  .stats-container { display: flex !important; gap: 40px; }
  .stat-number { font-size: 16pt !important; }

  /* Papel blanco, texto negro: ignora el tema oscuro */
  html, body {
    background: #fff !important;
    color: #1a1a1a !important;
    font-size: 10.5pt;
  }
  h1, h2, h3, h4, .hero-title, .timeline-title { color: #12232a !important; }
  .text-teal, .section-heading-badge, .stat-number,
  .cv-contacto li + li::before { color: #2699A6 !important; }
  .section, .section-alt, .hero { padding: 10px 0 !important; background: #fff !important; }
  .section-alt { border-top: 1px solid #ddd; }

  /* El hero pasa a una columna: la foto no va en la hoja de vida impresa.
     Es el bloque más alto de la página, así que acá se recorta de verdad. */
  .hero { min-height: 0 !important; padding-top: 0 !important; }
  .hero .grid-12 > .col-6 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
  .hero-title { font-size: 21pt !important; margin: 0 0 2px !important; line-height: 1.1 !important; }
  .hero-subtitle { font-size: 10.5pt !important; margin: 0 0 8px !important; }
  .cv-contacto { margin: 6px 0 10px !important; font-size: 8.5pt !important; gap: 3px 14px !important; }
  .hero p { font-size: 9.5pt !important; text-align: justify; }

  /* Las cifras, en una línea compacta bajo el encabezado */
  .section-alt .stats-container { padding: 4px 0 !important; }
  .stat-label { font-size: 8pt !important; }

  /* Las animaciones de entrada quedarían invisibles al imprimir */
  .reveal, .reveal.visible { opacity: 1 !important; transform: none !important; }

  /* El timeline no se parte a la mitad */
  .timeline-item, .skill-item, .edu-item { page-break-inside: avoid; }
  h2, h3 { page-break-after: avoid; }
  .timeline-scroll { max-height: none !important; overflow: visible !important; }

  /* Los enlaces se leen en papel */
  .cv-contacto a { text-decoration: none; }
  a[href^="http"]::after { content: ""; }

  /* --- Compactar: el objetivo son 2 páginas, no 4 --- */
  .section, .section-alt, .hero { padding: 8px 0 !important; margin: 0 !important; }
  .section-heading { margin-bottom: 10px !important; text-align: left !important; }
  .section-heading-badge { font-size: 8pt !important; }
  h2 { font-size: 13pt !important; margin: 10px 0 6px !important; }
  h3 { font-size: 11pt !important; margin-bottom: 3px !important; }
  p { margin: 0 0 5px !important; line-height: 1.35 !important; }
  ul { margin: 0 0 6px !important; }
  li { margin-bottom: 2px !important; }

  /* Trayectoria: es el corazón de la hoja de vida, pero sin aire de sobra */
  .timeline { padding-left: 16px !important; }
  .timeline-item { margin-bottom: 9px !important; padding-bottom: 0 !important; }
  .timeline-date { font-size: 8.5pt !important; margin-bottom: 1px !important; }

  /* Trayectoria y habilidades LADO A LADO, no apiladas: es lo que hace que
     quepa en 2 páginas en vez de 4. Solo el hero pasa a una columna, porque
     ahí la segunda columna era la foto (que no se imprime). */
  #bio .grid-12 { display: flex !important; gap: 24px !important; }
  #bio .grid-12 > .col-6 { width: 48% !important; max-width: 48% !important; flex: 0 0 48% !important; }
}
