
  :root {
    --olive:      #6B7C3A;
    --olive-dim:  #4E5C2A;
    --khaki:      #A8B87A;
    --tan:        #C5B99A;
    --dark:       #111410;
    --dark-2:     #191D12;
    --dark-3:     #202618;
    --slate:      #8A9678;
    --white:      #EFF0E8;
    --white-dim:  rgba(239,240,232,0.68);
    --accent:     #556B2F;
    --verdeDAVID: #3A3F29;
    --doradoDAVID:#C9A050;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--dark);
    color: var(--white);
    font-family: 'Barlow', sans-serif;
    overflow-x: hidden;
  }

  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    height: 72px;
    background: #3A3F29;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.678) /*rgba(107,124,58,0.25)*/;
  }

  .brain-container {
    display: flex;
    flex-direction: row; 
    align-items: center;
    gap: 15px; 
  }
  .nav-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #C9A050;
  }
  .nav-logo span {
    display: block;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--white);
    margin-top: 2px;
  }
  .logo{
    display: flex;
    width: 50px; 
    height: 50px;
    background-image: url('perfil\ intagram.jpg');
    background-size: cover;
    background-position: center;
  }

  .nav-links { display: flex; gap: 40px; list-style: none; }
  .nav-links a {
    color: var(--white);
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--doradoDAVID); }

  .nav-cta {
    background: var(--olive) !important;
    color: var(--white) !important;
    padding: 10px 24px;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    border: 1px solid var(--white-dim) !important;
    transition: background 0.2s, transform 0.2s !important;
  }
  .nav-cta:hover { background: var(--white-dim) !important; transform: translateY(-1px); color: var(--dark) !important; }

/*-----------INICIO / Imagen fondo-------------*/
  #inicio {
    min-height: 100vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; 
    overflow: hidden;
    max-width: 100%;
    margin: 0;       
    padding: 72px 0 0 0;
  }
  .hero-bg {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(150deg, rgba(23, 29, 21, 0.693) 0%, rgba(23, 29, 21, 0.693) 55%, rgba(23, 29, 21, 0.693) 100%),
      url('IAfondo.png') center/cover no-repeat;
  }
  .hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    padding: 0 clamp(15px, 4vw, 40px);
    animation: heroIn 1.2s cubic-bezier(0.22,1,0.36,1) forwards;
  }
  @keyframes heroIn {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--doradoDAVID);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }
  .hero-eyebrow::before,
  .hero-eyebrow::after { 
    content: ''; 
    width: clamp(30px, 10vw, 150px); 
    height: 1px; 
    background: var(--doradoDAVID); 
    opacity: 0.6; 
  }
  .hero-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(35px, 10vw, 96px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 0px;
    background: var(--doradoDAVID);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero-name2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(35px, 10vw, 96px); 
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--white) 0%, var(--khaki) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--white-dim);
    margin-bottom: 36px;
  }
  .hero-subtitle {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--white-dim);
    max-width: 580px;
    margin: 0 auto 48px;
  }
  .hero-subtitle strong { color: var(--white); font-weight: 500; }
  .hero-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
  .btn-primary {
    background: var(--olive);
    color: var(--white);
    padding: 16px 40px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--white-dim);
    transition: all 0.25s;
    display: inline-block;
  }
  .btn-primary:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(107,124,58,0.28);
  }
  .btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 16px 40px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid rgba(239,240,232,0.2);
    transition: all 0.25s;
  }
  .btn-secondary:hover { border-color: var(--white); transform: translateY(-2px); }
  .scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
  }
  .scroll-hint::after { content: ''; width: 1px; height: 50px; background: linear-gradient(to bottom, var(--white-dim), transparent); }
  @keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
  }
/*----------------INICIO / Barra de estadistica----------------*/
  .stats-bar {
    background: var(--dark-3);
    border-top: 1px solid rgba(255, 255, 255, 0.28); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.28); 
    padding: 32px 60px;
    display: flex;
    justify-content: center;
  }
  .stat-item { flex: 1; max-width: 220px; text-align: center; position: relative; }
  .stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 10%; height: 80%; width: 1px;
    background: rgba(107,124,58,0.25);
  }
  .stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
  }
  .stat-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white-dim);
    margin-top: 6px;
  }
  section { padding: 100px 60px; max-width: 1200px; margin: 0 auto; }
  .section-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--doradoDAVID);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .section-label::before { content: ''; width: 30px; height: 1px; background: var(--doradoDAVID); }
  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--white);
  }
  .section-title em { font-style: normal; color: var(--doradoDAVID); }

/*-----------PERFIL --------------------*/
  #nosotros {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 120px 60px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .about-text p { font-size: 16px; font-weight: 300; line-height: 1.85; color: var(--white-dim); margin-bottom: 20px; }
  .about-text p strong { color: var(--white); font-weight: 500; }
  /*.blueprint-card {
    background: var(--dark-2);
    border: 1px solid rgba(107,124,58,0.25);
    padding: 48px;
    position: relative;
    overflow: hidden;
  }
  .blueprint-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(107,124,58,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(107,124,58,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
  }
  .blueprint-card::after {
    content: '';
    position: absolute;
    top: -1px; left: 40px; right: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--olive-dim), var(--doradoDAVID), var(--olive-dim));
  }*/
  .logo_2{
    display: flex;
    width: 100%; 
    max-width: 400px; 
    aspect-ratio: 1 / 1; 
    border: 1px solid var(--white-dim);
    background: linear-gradient(rgba(42, 48, 41, 0.388)),
    url('perfil\ facebook.jpg') center/cover no-repeat;
  }

  .bc-inner { position: relative; z-index: 1; }
  .bc-title { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--white); margin-bottom: 32px; }

  /*.skill-row { margin-bottom: 20px; }
  .skill-row-top { display: flex; justify-content: space-between; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; letter-spacing: 1px; color: var(--white-dim); margin-bottom: 6px; }
  .skill-row-top span:last-child { color: var(--doradoDAVID); }
  .skill-bar { height: 3px; background: rgba(255,255,255,0.07); position: relative; overflow: hidden; }
  .skill-fill { position: absolute; left: 0; top: 0; height: 100%; background: linear-gradient(90deg, var(--olive-dim), var(--khaki)); transition: width 1.5s cubic-bezier(0.22,1,0.36,1); width: 0; }
  .skill-fill.animated { width: var(--w); }
  */

  /*---------SERVICIOS / Lo que oferece---------------*/
  #servicios { padding: 100px 60px; max-width: 1200px; margin: 0 auto; }

  .services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; flex-wrap: wrap; gap: 24px; }

  .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }

  .service-card {
    background: var(--dark-2);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, background 0.3s;
    cursor: default;
  }
  .service-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--doradoDAVID);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
  }
  .service-card:hover { background: var(--dark-3); transform: translateY(-4px); }
  .service-card:hover::before { transform: scaleX(1); }

  .service-num { font-family: 'Playfair Display', serif; font-size: 60px; font-weight: 900; color: rgba(107,124,58,0.1); line-height: 1; margin-bottom: 24px; letter-spacing: -2px; }
  .service-icon { font-size: 28px; margin-bottom: 20px; display: block; }
  .service-name { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: 1px; color: var(--white); margin-bottom: 16px; text-transform: uppercase; }
  .service-desc { font-size: 14px; font-weight: 300; line-height: 1.7; color: var(--slate); }

/*---------SERVICIOS / El proceso-----------*/
  #proceso-section { background: var(--dark-2); padding: 0; margin: 0; max-width: 100%; width: 100%; }
  .proceso-inner { max-width: 1200px; margin: 0 auto; padding: 100px 60px; }

  .proceso-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 60px; position: relative; }
  .proceso-grid::before {
    content: '';
    position: absolute;
    top: 28px; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--doradoDAVID), transparent);
    opacity: 0.3;
  }

  .paso { text-align: center; position: relative; }
  .paso-num {
    width: 56px; height: 56px;
    border: 2px solid var(--doradoDAVID);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 18px;
    color: var(--doradoDAVID);
    letter-spacing: 2px;
    background: var(--dark-2);
    position: relative; z-index: 1;
    transition: background 0.3s, color 0.3s;
  }
  .paso:hover .paso-num { background: var(--doradoDAVID); color: var(--white); }
  .paso-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 2px; text-transform: uppercase; color: var(--white); margin-bottom: 12px; }
  .paso-desc { font-size: 13px; font-weight: 300; line-height: 1.7; color: var(--slate); }

  /*-------------Proyectos-------------------*/
  #proyectos { padding: 100px 60px; max-width: 1200px; margin: 0 auto; }

  .projects-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 2px; margin-top: 60px; }

  .project-card { background: var(--dark-2); padding: 48px; position: relative; overflow: hidden; transition: transform 0.3s; border: 1px solid rgba(255,255,255,0.03); }
  .project-card:hover { transform: translateY(-3px); }
  .project-card.large { grid-row: 1 / 3; }

  .project-tag {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
    color: var(--doradoDAVID); margin-bottom: 16px; display: inline-block;
    border: 1px solid var(--doradoDAVID); padding: 4px 12px;
    background: rgba(107,124,58,0.08);
  }
  .project-name { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--white); margin-bottom: 12px; line-height: 1.2; }
  .project-card.large .project-name { font-size: 32px; }
  .project-detail { font-size: 13px; font-weight: 300; color: var(--slate); line-height: 1.6; margin-bottom: 24px; }
  .project-meta { display: flex; gap: 24px; flex-wrap: wrap; }
  .meta-item { display: flex; flex-direction: column; gap: 4px; }
  .meta-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--slate); }
  .meta-value { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 600; color: var(--doradoDAVID); }

  /*-------------Contacto-----------------*/
  #contacto {
    background: var(--dark-2);
    padding: 0; margin: 0;
    max-width: 100%; width: 100%;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(107,124,58,0.2);
  }
  #contacto::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(107,124,58,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(107,124,58,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
  }

  .contacto-inner {
    position: relative; z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 60px;
    text-align: center;
  }
  .contacto-inner .section-label { justify-content: center; }
  .contacto-inner .section-label::before { display: none; }
  .contacto-inner p { font-size: 17px; font-weight: 300; line-height: 1.8; color: var(--white-dim); margin-bottom: 48px; max-width: 560px; margin-left: auto; margin-right: auto; }

  .contact-chips { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

  .chip {
    display: flex; align-items: center; gap: 12px;
    background: rgba(107,124,58,0.1);
    border: 1px solid rgba(107,124,58,0.3);
    padding: 16px 24px;
    text-decoration: none;
    transition: all 0.25s;
    color: var(--white);
  }
  .chip:hover { background: rgba(107,124,58,0.2); transform: translateY(-2px); }
  .chip-icon { font-size: 20px; }
  .chip-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
  .chip-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--slate); }
  .chip-value { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 600; color: var(--white); }

  .olive-divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(107,124,58,0.35), transparent); }

/*-----------Burbuja whatsapp-------------*/
  .whatsapp-burbuja {
    position: fixed;
    bottom: 3.5rem;
    right: 3.5rem;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: waPulse 2.5s infinite;
  }
  .whatsapp-burbuja:hover {
    transform: scale(1.3);
  }

/*-----------footer-------------*/
  footer {
    background: var(--dark);
    border-top: 1px solid rgba(107,124,58,0.15);
    padding: 32px 60px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  }
  .footer-brand { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--doradoDAVID); }
  .footer-copy { font-size: 12px; color: var(--slate); letter-spacing: 1px; }
  .footer-links { display: flex; gap: 28px; }
  .footer-links a { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--slate); text-decoration: none; transition: color 0.2s; }
  .footer-links a:hover { color: var(--doradoDAVID); }

  .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }

  @media (max-width: 900px) {
    nav { padding: 0 24px; }
    .nav-links { display: none; }
    section, .proceso-inner, .contacto-inner { padding: 60px 24px; }
    #nosotros { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px; }
    .services-grid { grid-template-columns: 1fr; }
    .proceso-grid { grid-template-columns: 1fr 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card.large { grid-row: auto; }
    .stats-bar { flex-wrap: wrap; gap: 32px; padding: 32px 24px; }
    .stat-item::after { display: none; }
    footer { padding: 24px; flex-direction: column; text-align: center; }
    .contact-chips { flex-direction: column; align-items: center; }
  }
