
  :root {
    --ebony: #5C6249;
    --reseda: #848C67;
    --sage: #9BA186;
    --bone: #E1DBCA;
    --dun: #C5BEA9;
    --off-white: #F5F2EC;
    --text-dark: #2E3127;
    --text-mid: #5C6249;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

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

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(245,242,236,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--dun);
  }

.logo{
    font-size: 18px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 1px;
}
  .logo span { color: var(--reseda); }
  .nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
  }
  @media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open { 
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--off-white);
        z-index: 9999;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }
}
  .nav-links a {
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-mid);
    transition: color 0.3s;
  }
  .nav-links a:hover { color: var(--ebony); }

  /* HERO */
  #hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 8rem 4rem 4rem;
    position: relative;
    overflow: hidden;
  }
  .hero-bg-shape {
    position: absolute;
    right: -5%;
    top: 10%;
    width: 55%;
    height: 85%;
    background: var(--bone);
    border-radius: 40% 60% 70% 30% / 40% 30% 70% 60%;
    opacity: 0.5;
    z-index: 0;
  }
  .hero-content { position: relative; z-index: 1; }
  .hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--reseda);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .hero-eyebrow::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--reseda);
    display: block;
  }
  h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 300;
    line-height: 1.05;
    color: var(--text-dark);
    margin-bottom: 2rem;
  }
  h1 em {
    font-style: italic;
    color: var(--reseda);
  }
  .hero-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-mid);
    max-width: 420px;
    margin-bottom: 3rem;
  }
  .btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--ebony);
    color: var(--bone);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.2s;
  }
  .btn-primary:hover { background: var(--reseda); transform: translateY(-2px); }
  .btn-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--ebony);
    color: var(--ebony);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s;
    margin-left: 1rem;
  }
  .btn-outline:hover { background: var(--ebony); color: var(--bone); }

  .hero-image {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero-portrait {
    width: 480px;
    height: 480px;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-portrait::before {
    content: none;
  }
  .portrait-label {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: var(--bone);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
  }
  /* NUMBERS */
  .stats-bar {
    background: var(--ebony);
    padding: 3rem 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  .stat {
    text-align: center;
    color: var(--bone);
  }
  .stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 300;
    display: block;
  }
  .stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sage);
    margin-top: 0.25rem;
  }

  /* SECTIONS */
  section { padding: 6rem 4rem; }

  .section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 4rem;
  }
  .section-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--reseda);
    margin-bottom: 0.75rem;
  }
  h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--text-dark);
  }
  h2 em { font-style: italic; color: var(--reseda); }

  /* ABOUT */
  #sobre {
    background: var(--bone);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }
  .about-text p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-mid);
    margin-bottom: 1.5rem;
  }
  .about-text p:first-of-type {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 300;
    color: var(--text-dark);
    line-height: 1.6;
  }
  .values-list {
    list-style: none;
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .values-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-mid);
    letter-spacing: 0.03em;
  }
  .values-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--reseda);
    display: block;
    flex-shrink: 0;
  }
  .about-visual {
    position: relative;
  }
  .about-card {
    background: var(--off-white);
    padding: 3rem;
    position: relative;
  }
  .about-card::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--dun);
    z-index: -1;
  }
  .about-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--ebony);
    margin-bottom: 0;
  }
  .about-title {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--reseda);
    margin-bottom: 0.25rem;
  }
  .skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  .skill-tag {
    padding: 0.5rem 1rem;
    background: var(--bone);
    font-size: 0.75rem;
    color: var(--text-mid);
    letter-spacing: 0.08em;
    text-align: center;
    border: 1px solid var(--dun);
  }

  /* SERVICIOS */
  #servicios { background: var(--off-white); }
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background: var(--dun);
  }
  .service-card {
    background: var(--off-white);
    padding: 3rem 2.5rem;
    position: relative;
    transition: background 0.35s;
    cursor: default;
  }
  .service-card:hover { background: var(--bone); }
  .service-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 300;
    color: var(--dun);
    line-height: 1;
    margin-bottom: 1.5rem;
  }
  .service-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 1rem;
  }
  .service-desc {
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text-mid);
  }
  .service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--reseda);
    text-decoration: none;
    transition: gap 0.3s;
  }
  .service-link:hover { gap: 1rem; color: var(--ebony); }
  .service-link::after { content: '→'; }

  /* PROCESO */
  #proceso {
    background: var(--ebony);
    color: var(--bone);
  }
  #proceso h2 { color: var(--bone); }
  #proceso h2 em { color: var(--sage); }
  #proceso .section-label { color: var(--sage); }
  .process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 4rem;
    position: relative;
  }
  .process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--reseda);
    opacity: 0.4;
  }
  .step {
    padding: 0 2rem;
    position: relative;
  }
  .step-num {
    width: 80px;
    height: 80px;
    border: 1px solid var(--reseda);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--sage);
    margin-bottom: 2rem;
    background: var(--ebony);
    position: relative;
    z-index: 1;
  }
  .step-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--bone);
  }
  .step-desc {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--sage);
  }

  /* PROYECTOS */
  #proyectos { background: var(--dun); }
  .projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
  }
  .project-card:first-child {
    grid-row: span 1;
  }
  .project-img {
    width: 100%;
    aspect-ratio: 4/3;
    display: block;
    position: relative;
    overflow: hidden;
  }
  .project-card .project-img {
    aspect-ratio: unset;
    height: 100%;
    min-height: 500px;
  }
  .project-bg {
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
  }
  .project-card:hover .project-bg { transform: scale(1.04); }
  .project-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(46,49,39,0.9) 0%, transparent 100%);
    transform: translateY(30%);
    transition: transform 0.4s;
  }
  .project-card:hover .project-overlay { transform: translateY(0); }
  .project-cat {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 0.5rem;
  }
  .project-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--bone);
  }

  /* TESTIMONIOS */
  #testimonios { background: var(--off-white); }
  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
  }
  .testimonial-card {
    padding: 2.5rem;
    background: var(--bone);
    border-top: 3px solid var(--reseda);
  }
  .quote-mark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--reseda);
    opacity: 0.4;
    margin-bottom: 1rem;
  }
  .testimonial-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 2rem;
  }
  .testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .author-avatar {
    width: 42px;
    height: 42px;
    background: var(--reseda);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--bone);
    flex-shrink: 0;
  }
  .author-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
  }
  .author-role {
    font-size: 0.75rem;
    color: var(--reseda);
    letter-spacing: 0.05em;
  }

  /* CONTACTO */
  #contacto {
    background: var(--bone);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }
  .contact-info h2 { margin-bottom: 1.5rem; }
  .contact-info p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: 3rem;
  }
  .contact-details { list-style: none; }
  .contact-details li {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--dun);
    align-items: center;
  }
  .contact-icon {
    width: 40px;
    height: 40px;
    background: var(--ebony);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .contact-icon svg { stroke: var(--bone); width: 18px; height: 18px; fill: none; stroke-width: 1.5; }
  .contact-item-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--reseda);
    margin-bottom: 0.2rem;
  }
  .contact-item-value {
    font-size: 0.95rem;
    color: var(--text-dark);
  }
  .contact-form {
    background: var(--off-white);
    padding: 3rem;
  }
  .form-group {
    margin-bottom: 1.5rem;
  }
  .form-group label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--reseda);
    margin-bottom: 0.5rem;
  }
  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--dun);
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.3s;
    appearance: none;
  }
  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
    border-color: var(--ebony);
  }
  .form-group textarea { resize: vertical; min-height: 120px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
  .form-row .form-group { min-width: 0; }
  .form-row .form-group label { white-space: normal; min-height: 2.2em; display: flex; align-items: flex-end; padding-bottom: 0.3rem; }
  .btn-submit {
    width: 100%;
    padding: 1.1rem;
    background: var(--ebony);
    color: var(--bone);
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 0.5rem;
  }
  .btn-submit:hover { background: var(--reseda); }

  /* FOOTER */
  footer {
    background: var(--text-dark);
    color: var(--dun);
    padding: 5rem 4rem 0;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(197,190,169,0.12);
  }
  .footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bone);
    margin-bottom: 1rem;
  }
  .footer-logo span { color: var(--reseda); }
  .footer-mission {
    font-size: 0.84rem;
    line-height: 1.8;
    color: var(--sage);
    margin-bottom: 1.5rem;
    max-width: 290px;
  }
  .footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }
  .footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--dun);
  }
  .footer-contact li svg {
    width: 15px; height: 15px;
    stroke: var(--reseda);
    flex-shrink: 0;
  }
  .footer-contact a {
    color: var(--dun);
    text-decoration: none;
    transition: color 0.2s;
  }
  .footer-contact a:hover { color: var(--bone); }
  .footer-col-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--reseda);
    margin-bottom: 1.4rem;
    font-weight: 500;
  }
  .footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }
  .footer-nav a {
    font-size: 0.85rem;
    color: var(--dun);
    text-decoration: none;
    transition: color 0.22s, padding-left 0.22s;
    display: inline-block;
  }
  .footer-nav a:hover { color: var(--bone); padding-left: 0.3rem; }
  .footer-socials {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
  }
  .footer-social-icon {
    width: 38px; height: 38px;
    border-radius: 6px;
    border: 1px solid rgba(197,190,169,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dun);
    text-decoration: none;
    transition: background 0.22s, border-color 0.22s, color 0.22s;
  }
  .footer-social-icon svg { width: 18px; height: 18px; }
  .footer-social-icon:hover {
    background: rgba(132,140,103,0.18);
    border-color: var(--reseda);
    color: var(--bone);
  }
  .footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bone);
    text-decoration: none;
    border: 1px solid rgba(225,219,202,0.25);
    padding: 0.7rem 1.2rem;
    border-radius: 4px;
    transition: background 0.22s, border-color 0.22s;
  }
  .footer-cta:hover {
    background: rgba(132,140,103,0.18);
    border-color: var(--reseda);
  }
  .footer-bottom {
    padding: 1.5rem 0;
    font-size: 0.7rem;
    color: rgba(197,190,169,0.4);
    text-align: center;
  }

  /* ANIMATED ENTRANCE */
  .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: none;
  }

  /* Hero parallax layers — GPU hint */
  .hero-video-bg,
  .hero-content,
  .hero-image {
    will-change: transform;
  }

  /* SCROLLBAR */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: var(--off-white); }
  ::-webkit-scrollbar-thumb { background: var(--dun); }

  @media (max-width: 900px) {
    nav { padding: 1rem 2rem; }
    #hero, #sobre, #contacto { grid-template-columns: 1fr; padding: 6rem 2rem 3rem; gap: 3rem; }
    section { padding: 4rem 2rem; }
    .stats-bar { grid-template-columns: 2fr 2fr; }
    .services-grid, .process-steps, .testimonials-grid { grid-template-columns: 1fr; }
    #proyectos .projects-grid { grid-template-columns: 1fr !important; max-width: 100% !important; }
    #proyectos .project-card .project-img { aspect-ratio: 4/3 !important; min-height: unset !important; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  }

  /* Hero logo wrapper */
  .hero-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  .hero-logo {
    width: 550px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }

/* ===== CARRITO ===== */
.cart-btn {
  position: relative;
  background: var(--ebony);
  border: none;
  border-radius: 0;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--bone);
  transition: background 0.3s;
  flex-shrink: 0;
}
.cart-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--bone);
  fill: none;
}
.cart-btn:hover { background: var(--reseda); }
.cart-count {
  background: #c0392b;
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -6px;
  right: -6px;
}

.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 200;
}
.cart-overlay.open { display: block; }

.cart-sidebar {
  position: fixed;
  top: 0; right: -420px;
  width: 380px;
  max-width: 95vw;
  height: 100vh;
  background: var(--off-white);
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 30px rgba(0,0,0,0.12);
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
}
.cart-sidebar.open { right: 0; }

.cart-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--dun);
}
.cart-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-dark);
}
.cart-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-mid);
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}
.cart-close:hover { color: var(--text-dark); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.cart-empty {
  color: var(--text-mid);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 2rem;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--dun);
}
.cart-item-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}
.cart-item-price {
  font-size: 0.78rem;
  color: var(--text-mid);
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-mid);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.2rem 0.4rem;
  transition: color 0.2s;
}
.cart-item-remove:hover { color: #c0392b; }

.cart-footer {
  padding: 1.2rem 1.5rem 2rem;
  border-top: 1px solid var(--dun);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* ===== EQUIPO ===== */
#equipo {
  padding: 6rem 4rem;
  background: var(--off-white);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.team-card {
  background: #fff;
  border: 1px solid var(--dun);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  min-height: 230px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.team-card:hover {
  box-shadow: 0 8px 30px rgba(92,98,73,0.1);
}
.team-avatar {
  flex-shrink: 0;
  margin-top: -0.5rem;
}
.team-avatar-placeholder {
  width: 70px;
  height: 70px;
  background: var(--ebony);
  color: var(--bone);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.team-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}
.team-role {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--reseda);
  margin-bottom: 0.7rem;
}
.team-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-mid);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* TEAM GROUP HEADERS */
.team-group-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 0;
  padding: 1.5rem 2rem;
  background: var(--bone);
  border-left: 4px solid var(--ebony);
}
.team-group-badge {
  color: var(--bone);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  white-space: nowrap;
}
.team-group-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}
.team-group-title em { font-style: italic; color: var(--reseda); }
.team-group-sub {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* ===== PRODUCTOS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.product-card {
  background: #fff;
  border: 1px solid var(--dun);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 8px 30px rgba(92,98,73,0.12);
  transform: translateY(-4px);
}
.product-img svg {
  width: 100%;
  height: 160px;
  display: block;
  object-fit: cover;
}
.product-info {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-cat {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--reseda);
  margin-bottom: 0.4rem;
}
.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}
.product-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-mid);
  flex: 1;
  margin-bottom: 1rem;
}
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.product-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ebony);
}
.btn-add-cart {
  background: var(--ebony);
  color: var(--bone);
  border: none;
  padding: 0.55rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}
.btn-add-cart:hover { background: var(--reseda); }

/* ===== ALCANCES ===== */
.alcances-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.alcance-card {
  background: #fff;
  border: 1px solid var(--dun);
  padding: 2rem 1.8rem;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}
.alcance-card:hover {
  box-shadow: 0 8px 30px rgba(92,98,73,0.1);
  transform: translateY(-3px);
}
.alcance-icon {
  margin-bottom: 0.8rem;
  color: var(--reseda);
  line-height: 0;
}
.alcance-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--ebony);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.alcance-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--reseda);
  margin-bottom: 0.8rem;
  font-weight: 500;
}
.alcance-desc {
  font-size: 0.83rem;
  line-height: 1.7;
  color: var(--text-mid);
}

/* Responsive nuevas secciones */
@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .alcances-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
  .alcances-grid { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; }
  .cart-sidebar { width: 100vw; }
}

/* ===== FOTO FUNDADOR ===== */
.founder-photo-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}
.founder-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--dun);
  flex-shrink: 0;
}

/* ============================================
   ANIMACIONES & EFECTOS DINÁMICOS
   ============================================ */

/* --- Keyframes globales --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(92,98,73,0.35); }
  70%  { box-shadow: 0 0 0 14px rgba(92,98,73,0); }
  100% { box-shadow: 0 0 0 0 rgba(92,98,73,0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px) scale(0.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes borderGrow {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes navSlide {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bgShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  30%       { transform: scale(1.25) rotate(-8deg); }
  60%       { transform: scale(0.92) rotate(5deg); }
}

/* --- Nav animada al cargar --- */
nav {
  animation: navSlide 0.6s cubic-bezier(0.4,0,0.2,1) both;
  transition: box-shadow 0.3s, background 0.3s;
}
nav.scrolled {
  box-shadow: 0 4px 24px rgba(46,49,39,0.10);
  background: rgba(245,242,236,0.98);
}
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--ebony);
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
}
.nav-links a:hover::after { width: 100%; }

/* --- Hero content: JS toma el control del reveal (split-text en extras.js) --- */
.hero-content h1 {
  /* sin animación CSS propia; se divide en .hero-line por JS */
  animation: none;
  opacity: 1;
}
.hero-content .hero-desc {
  animation: none;
  opacity: 0; /* el split JS la restaura */
}
.hero-content .btn-primary,
.hero-content .btn-outline {
  animation: none;
  /* JS aplica la transición de entrada */
}
.hero-logo-wrapper {
  animation: fadeInRight 1s 0.3s cubic-bezier(0.4,0,0.2,1) both;
}
/* Logo flotante */
.hero-logo {
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(92,98,73,0.25));
  transition: filter 0.3s;
}
.hero-logo:hover {
  filter: drop-shadow(0 28px 50px rgba(92,98,73,0.4));
  animation-play-state: paused;
}

/* --- Botón primario mejorado --- */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: background 0.35s, transform 0.25s, box-shadow 0.35s !important;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 28px rgba(92,98,73,0.35) !important;
}
.btn-primary:hover::before { opacity: 1; animation: shimmer 0.7s linear; }
.btn-primary:active { transform: translateY(0) scale(0.97) !important; }

/* --- Botón outline mejorado --- */
.btn-outline {
  position: relative;
  overflow: hidden;
  transition: all 0.35s !important;
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ebony);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  z-index: 0;
}
.btn-outline span, .btn-outline {
  position: relative;
  z-index: 1;
}
.btn-outline:hover::before { transform: scaleX(1); }
.btn-outline:hover {
  color: var(--bone) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 28px rgba(92,98,73,0.2) !important;
}
.btn-outline:active { transform: translateY(0) scale(0.97) !important; }

/* --- Stats bar contador animado --- */
.stat {
  transition: transform 0.3s;
}
.stat:hover { transform: scale(1.06); }
.stat-number {
  display: block;
  animation: countUp 0.8s cubic-bezier(0.4,0,0.2,1) both;
}
.stat:nth-child(1) .stat-number { animation-delay: 0.1s; }
.stat:nth-child(2) .stat-number { animation-delay: 0.25s; }
.stat:nth-child(3) .stat-number { animation-delay: 0.4s; }
.stat:nth-child(4) .stat-number { animation-delay: 0.55s; }

/* --- Tarjetas de equipo --- */
.team-card {
  transition: box-shadow 0.35s, transform 0.35s !important;
  position: relative;
}
.team-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px;
  height: 0;
  background: var(--ebony);
  transition: height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.team-card:hover::before { height: 100%; }
.team-card:hover {
  box-shadow: 0 16px 40px rgba(92,98,73,0.18) !important;
}
.team-avatar-placeholder {
  transition: transform 0.35s, background 0.35s;
}
.team-card:hover .team-avatar-placeholder {
  transform: scale(1.1) rotate(-5deg);
  background: var(--reseda);
}

/* --- Tarjetas de productos --- */
.product-card {
  transition: box-shadow 0.35s, transform 0.35s !important;
  position: relative;
  overflow: hidden;
}
.product-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ebony), var(--reseda));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover::after { transform: scaleX(1); }
.product-card:hover {
  box-shadow: 0 20px 50px rgba(92,98,73,0.18) !important;
  transform: translateY(-6px) !important;
}
.product-img svg {
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover .product-img svg {
  transform: scale(1.06);
}

/* --- Botón agregar al carrito --- */
.btn-add-cart {
  position: relative;
  overflow: hidden;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s !important;
}
.btn-add-cart::after {
  content: '✓ Añadido';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--reseda);
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s;
}
.btn-add-cart:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(92,98,73,0.3) !important;
}
.btn-add-cart:active { transform: scale(0.95) !important; }

/* --- Carrito (botón nav) --- */
.cart-btn {
  transition: background 0.3s, transform 0.2s !important;
}
.cart-btn:hover { transform: scale(1.08) !important; }
.cart-btn.added { animation: cartBounce 0.5s ease; }

/* --- Tarjetas de alcances --- */
.alcance-card {
  transition: box-shadow 0.35s, transform 0.35s !important;
  position: relative;
  overflow: hidden;
}
.alcance-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ebony);
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 0;
}
.alcance-card > * { position: relative; z-index: 1; }
.alcance-card:hover::before { opacity: 1; }
.alcance-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 20px 50px rgba(92,98,73,0.25) !important;
}
.alcance-card:hover .alcance-num,
.alcance-card:hover .alcance-label,
.alcance-card:hover .alcance-desc { color: var(--bone) !important; }
.alcance-card:hover .alcance-icon { filter: grayscale(0) brightness(1.3); }
.alcance-num { transition: color 0.35s; }
.alcance-label { transition: color 0.35s; }
.alcance-desc { transition: color 0.35s; }

/* --- Steps del proceso --- */
.step {
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(92,98,73,0.12);
}
.step-num {
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), color 0.3s;
  display: inline-block;
}
.step:hover .step-num {
  transform: scale(1.15);
  color: var(--ebony);
}

/* --- Cards de proyectos --- */
.project-card {
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s !important;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 24px 60px rgba(92,98,73,0.25) !important;
}
.project-overlay {
  transition: opacity 0.4s, transform 0.4s !important;
  transform: translateY(8px);
}
.project-card:hover .project-overlay {
  transform: translateY(0) !important;
}

/* --- About card fundador --- */
.about-card {
  transition: box-shadow 0.35s, transform 0.35s;
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(92,98,73,0.15);
}
.founder-photo {
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s;
}
.founder-photo:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(92,98,73,0.3);
}

/* --- Skill tags --- */
.skill-tag {
  transition: background 0.25s, color 0.25s, transform 0.25s;
  cursor: default;
}
.skill-tag:hover {
  background: var(--ebony);
  color: var(--bone);
  transform: translateY(-2px);
}

/* --- Input / Form focus animado --- */
input, select, textarea {
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ebony) !important;
  box-shadow: 0 0 0 3px rgba(92,98,73,0.12);
  transform: scale(1.005);
}

/* --- Botón submit --- */
.btn-submit {
  position: relative;
  overflow: hidden;
  transition: background 0.35s, transform 0.25s, box-shadow 0.35s !important;
}
.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  background-size: 200%;
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-submit:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(92,98,73,0.35) !important;
  background: var(--reseda) !important;
}
.btn-submit:hover::before { opacity: 1; animation: shimmer 0.7s linear; }
.btn-submit:active { transform: scale(0.97) !important; }

/* --- Footer links --- */
.footer-social a {
  position: relative;
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
}
.footer-social a:hover {
  color: var(--bone) !important;
  transform: translateY(-3px);
}

/* --- Fade-in mejorado (scroll) --- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hero background shape animado --- */
.hero-bg-shape {
  animation: bgShift 10s ease infinite, float 8s ease-in-out infinite;
  background: linear-gradient(135deg, var(--bone), var(--dun), var(--sage)) !important;
  background-size: 300% 300% !important;
  opacity: 0.4 !important;
}

/* --- Scroll suave con cursor personalizado en cards --- */
.product-card, .team-card, .alcance-card, .project-card {
  cursor: pointer;
}

/* --- Cart sidebar animación de entrada de ítems --- */
.cart-item {
  animation: fadeInUp 0.3s ease both;
}

/* --- Botón flotante WhatsApp --- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 9999;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}
.whatsapp-float svg {
  display: block;
}

/* --- Íconos en footer social --- */
.footer-social a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-social svg {
  flex-shrink: 0;
}

/* ===== MÉTRICAS DIGITALES FACEBOOK ===== */
.metricas-section {
  background: var(--ebony);
  padding: 6rem 4rem;
  color: var(--bone);
}
.metricas-section .section-label { color: var(--sage); }
.metricas-section h2 { color: var(--bone); }
.metricas-section h2 em { color: var(--sage); }
.metricas-section .section-header { margin-bottom: 3.5rem; }

/* Grid de tarjetas métricas */
.fb-metrics-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 2.5rem;
}
.fb-metric-card {
  background: rgba(255,255,255,0.04);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: background 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.fb-metric-card:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-4px);
}
.fb-metric-highlight {
  background: rgba(155,161,134,0.15) !important;
  border-top: 3px solid var(--sage);
}
.fb-metric-icon {
  margin-bottom: 0.75rem;
  display: block;
  color: var(--reseda);
  line-height: 0;
}
.fb-metric-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--bone);
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}
.fb-metric-highlight .fb-metric-num {
  font-size: 3.6rem;
  color: #fff;
}
.fb-metric-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  line-height: 1.5;
}
.fb-metric-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  border-radius: 2px;
}
.fb-badge-up {
  background: rgba(107,168,107,0.25);
  color: #8ecf8e;
  border: 1px solid rgba(107,168,107,0.35);
}

/* Bloque de barras de tendencia */
.fb-trend-block {
  background: rgba(255,255,255,0.04);
  padding: 2.5rem 3rem;
  margin-bottom: 1.5rem;
}
.fb-trend-title {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 2rem;
}
.fb-trend-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: end;
}
.fb-trend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.fb-bar-wrap {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.fb-bar {
  width: 60%;
  height: var(--bar-h, 50%);
  background: rgba(155,161,134,0.4);
  border-top: 2px solid var(--sage);
  transition: height 1s cubic-bezier(0.4,0,0.2,1), background 0.3s;
  position: relative;
}
.fb-bar-accent {
  background: rgba(155,161,134,0.7) !important;
  border-top-color: #fff !important;
}
.fb-trend-item:hover .fb-bar {
  background: rgba(155,161,134,0.65);
}
.fb-bar-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}
.fb-bar-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--bone);
  line-height: 1;
}
.fb-bar-change {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.fb-bar-change.up { color: #8ecf8e; }
.fb-bar-change.down { color: #e07a7a; }

.fb-source-note {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(155,161,134,0.5);
  text-align: center;
  margin-top: 1rem;
}

/* Responsive métricas */
@media (max-width: 900px) {
  .metricas-section { padding: 4rem 2rem; }
  .fb-metrics-grid { grid-template-columns: 1fr 1fr; }
  .fb-trend-bars { grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
  .fb-trend-block { padding: 1.5rem; }
}
@media (max-width: 600px) {
  .fb-metrics-grid { grid-template-columns: 1fr 1fr; }
  .fb-metric-num { font-size: 2rem; }
  .fb-metric-highlight .fb-metric-num { font-size: 2.4rem; }
  .fb-trend-bars { gap: 0.5rem; }
  .fb-bar-val { font-size: 1rem; }
}

/* ===== MAPA INTERACTIVO ===== */
.mapa-section {
  padding: 6rem 4rem;
  background: var(--off-white);
}

.mapa-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin: 2rem 0 2.5rem;
  padding: 1.5rem 2rem;
  background: white;
  border: 1px solid var(--dun);
  border-radius: 12px;
}

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

.filtro-group label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
}

.filtro-group select,
.filtro-group input[type="text"] {
  padding: 0.6rem 1rem;
  border: 1px solid var(--dun);
  border-radius: 8px;
  background: var(--off-white);
  color: var(--text-dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  transition: border-color 0.2s;
  min-width: 180px;
}

.filtro-group select { cursor: pointer; }

.filtro-group input[type="text"]::placeholder { color: var(--sage); }

.filtro-group select:focus,
.filtro-group input[type="text"]:focus {
  outline: none;
  border-color: var(--reseda);
}

.mapa-reset {
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
  cursor: pointer;
  border: 1px solid var(--reseda);
  border-radius: 8px;
  background: transparent;
  color: var(--reseda);
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  align-self: flex-end;
}
.mapa-reset:hover { background: var(--reseda); color: white; }

.mapa-wrapper {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}

.mapa-colombia-container {
  position: relative;
  background: white;
  border: 1px solid var(--dun);
  border-radius: 16px;
  padding: 1.5rem;
  overflow: hidden;
}

#mapaColombia {
  width: 100%;
  max-height: 640px;
}

/* Departamentos */
.dep {
  fill: var(--bone);
  stroke: white;
  stroke-width: 1.5;
  cursor: pointer;
  transition: fill 0.25s, filter 0.2s;
}
.dep:hover {
  filter: brightness(0.88);
}
.dep.has-species {
  fill: var(--reseda);
}
.dep.has-venomous {
  fill: #C45C3A;
}
.dep.selected {
  stroke: var(--text-dark);
  stroke-width: 2.5;
  filter: brightness(0.85);
}
.dep.dimmed {
  fill: #dde0d5 !important;
  opacity: 0.5;
}

.mapa-leyenda {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--dun);
}
.leyenda-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-mid);
}
.leyenda-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Panel lateral */
.mapa-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mapa-info-placeholder {
  background: white;
  border: 1px solid var(--dun);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--sage);
  font-size: 0.88rem;
  line-height: 1.7;
}
.mapa-info-icon { color: var(--reseda); margin-bottom: 0.75rem; line-height: 0; }

#mapaDepInfo {
  background: white;
  border: 1px solid var(--dun);
  border-radius: 16px;
  padding: 1.5rem;
  display: none;
}
.dep-info-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--dun);
}
.dep-info-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-top: 0.2rem;
}
.dep-info-snake {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--dun);
}
.dep-info-snake:last-child { border-bottom: none; }
.dep-snake-name {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-dark);
  font-weight: 500;
}
.dep-snake-familia {
  font-size: 0.72rem;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dep-snake-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  margin-top: 0.2rem;
  width: fit-content;
}
.dep-snake-danger.venomous { background: #fde8e0; color: #C45C3A; }
.dep-snake-danger.safe { background: #e3eeeb; color: #3a7c6a; }

/* Lista de especies */
.mapa-especies-list {
  background: white;
  border: 1px solid var(--dun);
  border-radius: 16px;
  padding: 1.5rem;
  max-height: 480px;
  overflow-y: auto;
}
.mapa-especies-list::-webkit-scrollbar { width: 4px; }
.mapa-especies-list::-webkit-scrollbar-thumb { background: var(--dun); border-radius: 4px; }

.especies-list-title {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.especies-count-badge {
  background: var(--ebony);
  color: white;
  border-radius: 20px;
  padding: 0.1rem 0.55rem;
  font-size: 0.7rem;
}

.especie-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--dun);
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 6px;
  padding-left: 0.4rem;
}
.especie-card:hover { background: var(--off-white); }
.especie-card:last-child { border-bottom: none; }
.especie-nombre {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-dark);
  font-weight: 500;
}
.especie-dep {
  font-size: 0.75rem;
  color: var(--sage);
}
.especie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.2rem;
}
.especie-tag {
  font-size: 0.65rem;
  padding: 0.12rem 0.45rem;
  border-radius: 20px;
  background: var(--off-white);
  color: var(--text-mid);
  border: 1px solid var(--dun);
}
.especie-tag.venomous { background: #fde8e0; color: #C45C3A; border-color: #f4c2b0; }
.especie-tag.safe { background: #e3eeeb; color: #3a7c6a; border-color: #b0d4cb; }

/* Stats del mapa */
.mapa-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.mapa-stat {
  background: white;
  border: 1px solid var(--dun);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}
.mapa-stat-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: var(--ebony);
  line-height: 1;
}
.mapa-stat-label {
  font-size: 0.75rem;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
  display: block;
}

/* Tooltip */
.mapa-tooltip {
  position: fixed;
  background: var(--text-dark);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.15s;
  max-width: 200px;
  line-height: 1.4;
}
.mapa-tooltip.visible { opacity: 1; }

@media (max-width: 1100px) {
  .mapa-wrapper { grid-template-columns: 1fr; }
  .mapa-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .mapa-section { padding: 4rem 1.5rem; }
  .mapa-filtros { padding: 1rem; }
  .filtro-group select { min-width: 140px; }
  .mapa-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ===== PRODUCTOS ACTUALIZADOS ===== */
.products-grid--two {
  grid-template-columns: 1fr 1fr !important;
  max-width: 900px;
  margin: 0 auto;
}
.product-card--featured .product-img { height: 320px; }
.product-img--photo { padding: 0; overflow: hidden; border-radius: 12px 12px 0 0; }

.product-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0.75rem 0 1rem;
}
.product-includes span {
  font-size: 0.75rem;
  color: var(--reseda);
}

/* Combo banner */
.combo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.5rem;
  padding: 2rem 2.5rem;
  background: var(--ebony);
  border-radius: 16px;
  color: var(--bone);
}
.combo-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.4rem;
}
.combo-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}
.combo-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--dun);
  max-width: 480px;
}
.combo-price-block {
  text-align: center;
  flex-shrink: 0;
}
.combo-original {
  font-size: 0.8rem;
  color: var(--sage);
  margin-bottom: 0.3rem;
}
.combo-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--bone);
  margin-bottom: 0.2rem;
}
.combo-saving {
  font-size: 0.75rem;
  color: #8ec98e;
  margin-bottom: 1rem;
}

@media (max-width: 800px) {
  .products-grid--two { grid-template-columns: 1fr !important; }
  .combo-banner { flex-direction: column; text-align: center; }
  .combo-desc { max-width: 100%; }
}

/* ===== HERO VIDEO ===== */
.hero-video-section {
  position: relative;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 18, 10, 0.82) 0%,
    rgba(30, 36, 20, 0.65) 50%,
    rgba(15, 18, 10, 0.50) 100%
  );
}

/* Asegura que el contenido quede sobre el video */
.hero-video-section .hero-content,
.hero-video-section .hero-image {
  position: relative;
  z-index: 2;
}

/* Texto blanco sobre el video */
.hero-video-section h1 { color: #f5f2ec; }
.hero-video-section .hero-desc { color: rgba(225, 219, 202, 0.88); }
.hero-video-section .btn-outline {
  border-color: rgba(225,219,202,0.6);
  color: var(--bone);
}
.hero-video-section .btn-outline:hover {
  background: rgba(225,219,202,0.12);
}

/* Logo con halo para que resalte sobre el video */
.hero-logo-glow {
  background: rgba(15, 18, 10, 0.45) !important;
  border: 1px solid rgba(155, 161, 134, 0.35) !important;
  border-radius: 50% !important;
  box-shadow:
    0 0 40px rgba(132, 140, 103, 0.35),
    0 0 80px rgba(132, 140, 103, 0.15),
    inset 0 0 30px rgba(15,18,10,0.4) !important;
  backdrop-filter: blur(6px);
}



/* ===== BOTONES FLOTANTES REDES SOCIALES ===== */
.social-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.8rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.social-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  text-decoration: none;
  color: white;
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.social-float-btn svg {
  width: 24px;
  height: 24px;
}

.social-float-btn:hover {
  transform: scale(1.15);
  filter: brightness(1.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.social-float-wa  { background: #25D366; box-shadow: 0 4px 16px rgba(37,211,102,0.55); }
.social-float-fb  { background: #1877F2; box-shadow: 0 4px 16px rgba(24,119,242,0.55); }
.social-float-ig  { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); box-shadow: 0 4px 16px rgba(214,36,159,0.55); }

@media (max-width: 600px) {
  .social-float { right: 0.8rem; bottom: 1.2rem; }
  .social-float-btn { width: 46px; height: 46px; }
  .social-float-btn svg { width: 21px; height: 21px; }
}

/* ===== GALERÍA DE AVISTAMIENTOS ===== */
.galeria-section { padding: 6rem 4rem; background: var(--off-white); }

/* Header: título izquierda, botón derecha */
.galeria-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

.galeria-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin: 0 0 2.5rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--dun);
  border-radius: 12px;
}

.galeria-reset {
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
  cursor: pointer;
  border: 1px solid var(--reseda);
  border-radius: 8px;
  background: transparent;
  color: var(--reseda);
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  align-self: flex-end;
}
.galeria-reset:hover { background: var(--reseda); color: white; }

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.galeria-loading, .galeria-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem;
  color: var(--sage);
  font-size: 0.9rem;
}
.galeria-empty span { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }

.galeria-card {
  background: white;
  border: 1px solid var(--dun);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
}
.galeria-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(92,98,73,0.18); }

.galeria-card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.galeria-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
.galeria-card:hover .galeria-card-img img { transform: scale(1.06); }

.galeria-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,18,8,0.88) 0%, rgba(14,18,8,0.28) 55%, transparent 100%);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.3s;
}
.galeria-card:hover .galeria-card-overlay { opacity: 1; }
.galeria-card-especie { color: white; font-style: italic; font-size: 0.9rem; }
.galeria-card-lugar { color: rgba(255,255,255,0.75); font-size: 0.75rem; margin-top: 0.2rem; }

.galeria-card-info { padding: 0.9rem 1rem; border-top: 1px solid var(--dun); }
.galeria-card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.galeria-tag {
  font-size: 0.62rem;
  padding: 0.12rem 0.5rem;
  background: transparent;
  border: 1px solid var(--dun);
  border-radius: 2px;
  color: var(--text-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.galeria-card-autor { font-size: 0.72rem; color: var(--sage); }

/* ===== MODALES ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,15,8,0.7);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.modal-card {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--dun);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.modal-header h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 400; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--sage);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--off-white); }

.modal-body { padding: 1.5rem 2rem; }

.reporte-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.foto-upload-area {
  height: 280px;
  border: 2px dashed var(--dun);
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}
.foto-upload-area:hover { border-color: var(--reseda); }
.foto-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--sage);
}
.foto-placeholder span { display: block; color: var(--sage); line-height: 0; margin-bottom: 0.4rem; }
.foto-placeholder p { font-size: 0.85rem; }
.foto-hint { font-size: 0.72rem !important; color: var(--dun) !important; }

.reporte-fields { display: flex; flex-direction: column; gap: 0.8rem; }
.reporte-fields .form-group input,
.reporte-fields .form-group select,
.reporte-fields .form-group textarea {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--dun);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  background: var(--off-white);
  color: var(--text-dark);
  transition: border-color 0.2s;
  resize: vertical;
}
.reporte-fields .form-group input:focus,
.reporte-fields .form-group select:focus,
.reporte-fields .form-group textarea:focus { outline: none; border-color: var(--reseda); }
.reporte-fields .form-group label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.3rem;
  display: block;
}

.modal-footer {
  padding: 1.2rem 2rem 1.5rem;
  border-top: 1px solid var(--dun);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.reporte-progress { text-align: center; }
.reporte-progress-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--ebony), var(--reseda));
  border-radius: 3px;
  width: 0%;
  transition: width 0.4s ease;
  margin-bottom: 0.5rem;
}
.reporte-progress p { font-size: 0.8rem; color: var(--sage); }
.reporte-success {
  color: var(--reseda);
  font-size: 0.88rem;
  text-align: center;
  padding: 0.5rem;
}

/* Modal foto ampliada */
.modal-foto { align-items: center; }
.modal-foto-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  max-width: 700px;
  width: 100%;
  position: relative;
}
.modal-foto-card img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.modal-foto-info { padding: 1.2rem 1.5rem; }
.modal-foto-especie { font-style: italic; font-size: 1.1rem; color: var(--text-dark); margin-bottom: 0.3rem; }
.modal-foto-meta { font-size: 0.78rem; color: var(--sage); margin-bottom: 0.5rem; }
.modal-foto-desc { font-size: 0.88rem; color: var(--text-mid); line-height: 1.7; }
.modal-close-foto {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 700px) {
  .reporte-form { grid-template-columns: 1fr; }
  .foto-upload-area { height: 200px; }
  .modal-body { padding: 1rem; }
  .modal-header, .modal-footer { padding: 1rem; }
}

/* ===== FIX EQUIPO HEADER ===== */
#equipo .section-header {
  align-items: flex-start;
}

/* ===== DIVISOR ESCAMAS (snake scales divider) ===== */
.scales-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  display: block;
  height: 28px;
  position: relative;
}

/* ===== COBERTURA INTERNACIONAL ===== */
.cobertura-paises { display: flex; flex-direction: column; gap: 0.4rem; }
.cobertura-principal { font-size: 0.92rem; color: var(--text-dark); font-weight: 500; }
.cobertura-sub {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 0.2rem;
}
.cobertura-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}
.cobertura-flags span.fi {
  font-size: 1.3rem;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  cursor: default;
  transition: transform 0.15s;
}
.cobertura-flags span.fi:hover { transform: scale(1.25); }
.cobertura-principal span.fi {
  font-size: 0.92rem;
  border-radius: 2px;
  vertical-align: middle;
}

/* ===== PROYECTOS CON FOTO REAL ===== */
.project-img--photo {
  background: white;
}
.project-img--photo img {
  transition: transform 0.5s ease;
}
.project-card:hover .project-img--photo img {
  transform: scale(1.04);
}

.project-overlay--full {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,20,10,0.95) 0%, rgba(15,20,10,0.5) 60%, transparent 100%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .project-overlay--full { opacity: 1; }

.project-desc-overlay {
  font-size: 0.8rem;
  color: rgba(225,219,202,0.88);
  line-height: 1.6;
  margin: 0.5rem 0 0.8rem;
}

.project-redes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}
.project-redes span {
  font-size: 0.68rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ===== FIX PROYECTOS — 2 tarjetas iguales, centradas ===== */
#proyectos .projects-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.5rem !important;
  max-width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-items: stretch !important;
}
#proyectos .project-card {
  grid-row: span 1 !important;
}
#proyectos .project-card .project-img,
#proyectos .project-card:first-child .project-img {
  aspect-ratio: 4/3 !important;
  height: auto !important;
  min-height: unset !important;
}

/* ===== FIX RECCISCO imagen completa ===== */
#proyectos .project-card:first-child .project-img--photo img {
  object-fit: contain !important;
  background: #e8e4dc;
}

/* ===== EQUIPO — separación definitiva ===== */
#equipo {
  background: var(--off-white) !important;
  padding-top: 8rem !important;
  overflow: visible;
}
#equipo > .section-header {
  align-items: flex-start !important;
  margin-bottom: 3rem;
}

/* ===== ESCAMAS — patrón global reutilizable ===== */
:root {
  --scales-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='34'%3E%3Cellipse cx='20' cy='17' rx='18' ry='13' fill='none' stroke='%239BA186' stroke-width='0.7' opacity='0.22'/%3E%3Cellipse cx='0' cy='0' rx='18' ry='13' fill='none' stroke='%239BA186' stroke-width='0.7' opacity='0.22'/%3E%3Cellipse cx='40' cy='0' rx='18' ry='13' fill='none' stroke='%239BA186' stroke-width='0.7' opacity='0.22'/%3E%3Cellipse cx='0' cy='34' rx='18' ry='13' fill='none' stroke='%239BA186' stroke-width='0.7' opacity='0.22'/%3E%3Cellipse cx='40' cy='34' rx='18' ry='13' fill='none' stroke='%239BA186' stroke-width='0.7' opacity='0.22'/%3E%3C/svg%3E");
}

/* Secciones que llevan escamas de fondo */
#servicios,
#equipo,
#sobre,
#testimonios,
.stats-bar,
#contacto {
  position: relative;
}
#servicios::before,
#equipo::before,
#sobre::before,
#testimonios::before,
.stats-bar::before,
#contacto::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--scales-pattern);
  background-size: 40px 34px;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}
/* Asegurar que el contenido quede encima del patrón */
#servicios > *,
#equipo > *,
#sobre > *,
#testimonios > *,
.stats-bar > *,
#contacto > * {
  position: relative;
  z-index: 1;
}

/* ===== SCALES DIVIDER — separador entre secciones ===== */
.scales-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  display: block;
  height: 28px;
}
.scales-divider svg {
  display: block;
  width: 100%;
  height: 28px;
}

/* ===== BOTÓN REPORTE MINI EN PANEL DEP ===== */
.btn-reporte-mini {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  background: transparent;
  border: 1.5px dashed var(--reseda);
  border-radius: 10px;
  color: var(--reseda);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.btn-reporte-mini:hover {
  background: var(--reseda);
  color: white;
  border-style: solid;
}

/* ===== ANIMACIONES ADICIONALES ISC ===== */

/* --- 1. Botones flotantes: entran deslizando desde la derecha --- */
@keyframes socialSlideIn {
  from { opacity: 0; transform: translateX(80px); }
  to   { opacity: 1; transform: translateX(0); }
}
.social-float-btn {
  opacity: 0;
  animation: socialSlideIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
.social-float-btn:nth-child(1) { animation-delay: 1.2s; }
.social-float-btn:nth-child(2) { animation-delay: 1.4s; }
.social-float-btn:nth-child(3) { animation-delay: 1.6s; }

/* --- 2. Hero logo: pulso de brillo continuo --- */
@keyframes logoPulse {
  0%, 100% {
    box-shadow:
      0 0 40px rgba(132,140,103,0.35),
      0 0 80px rgba(132,140,103,0.15),
      inset 0 0 30px rgba(15,18,10,0.4);
  }
  50% {
    box-shadow:
      0 0 60px rgba(132,140,103,0.6),
      0 0 120px rgba(132,140,103,0.3),
      inset 0 0 30px rgba(15,18,10,0.4);
  }
}
.hero-logo-glow {
  animation: logoPulse 3.5s ease-in-out infinite !important;
}

/* --- 3. Nav links: underline crece con cubic-bezier mejorado --- */
.nav-links a::after {
  transition: width 0.35s cubic-bezier(0.4,0,0.2,1) !important;
  transform-origin: left;
}

/* --- 4. Stats: los números se revelan con countUp al entrar --- */
.stat-number {
  display: inline-block;
}
.stat-number.counting {
  animation: countUp 0.6s cubic-bezier(0.4,0,0.2,1) both;
}

/* --- 5. Pasos proceso: línea de progreso animada + step highlight --- */
@keyframes lineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.process-steps::before {
  transform-origin: left;
  transform: scaleX(0);
  transition: none;
}
.process-steps.line-visible::before {
  animation: lineGrow 1.2s cubic-bezier(0.4,0,0.2,1) both;
}
.step-num {
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), color 0.3s, background 0.4s, border-color 0.4s !important;
}
.step.step-lit .step-num {
  background: var(--reseda) !important;
  color: var(--ebony) !important;
  border-color: var(--bone) !important;
  transform: scale(1.1);
}

/* --- 6. Barras métricas: crecen desde 0 al entrar al viewport --- */
.fb-bar {
  height: 0 !important;
  transition: height 1.1s cubic-bezier(0.4,0,0.2,1) !important;
}
.fb-bar.bar-visible {
  height: var(--bar-h, 50%) !important;
}

/* --- 7. Proyectos: overlay sube desde abajo con blur sutil --- */
.project-overlay--full {
  transform: translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1), transform 0.4s cubic-bezier(0.4,0,0.2,1) !important;
}
.project-card:hover .project-overlay--full {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* --- 8. Team cards: giro 3D al click --- */
.team-card-wrapper {
  perspective: 1200px;
  transition: transform 0.35s;
}
.team-card-wrapper:hover {
  transform: translateY(-6px);
}
@keyframes teamCardSpin {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}
.team-card {
  transform-style: preserve-3d;
  cursor: pointer;
  backface-visibility: hidden;
}
.team-card.spinning {
  animation: teamCardSpin 0.7s cubic-bezier(0.4,0,0.2,1);
}

/* --- 9. Avatar: glow ring al hover en tarjetas de equipo --- */
.team-avatar-placeholder {
  transition: box-shadow 0.35s, transform 0.35s !important;
}
.team-card:hover .team-avatar-placeholder {
  box-shadow: 0 0 0 3px var(--reseda), 0 0 20px rgba(132,140,103,0.4) !important;
  transform: scale(1.08);
}


/* ===== RESPONSIVE MÓVIL COMPLETO ===== */

/* --- Hamburger button --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ebony);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {

  /* Nav */
  nav {
    padding: 1rem 1.2rem;
    z-index: 9990 !important;
    /* Remove backdrop-filter on mobile — it makes nav the containing block
       for position:fixed children, so .nav-links only covers the nav bar
       instead of the full viewport */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--off-white) !important;
  }
  .hamburger { display: flex; }
  .nav-links {
    display: none !important;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--off-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 105;
  }
  .nav-links.open { display: flex !important; position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100vh !important; z-index: 99999 !important; background: var(--off-white) !important; }
  .nav-links a {
    font-size: 1.3rem;
    letter-spacing: 0.1em;
  }
  .cart-btn { margin-right: 3rem; }

  /* Galería: header en columna en móvil */
  .galeria-header {
    grid-template-columns: 1fr;
  }

  /* Formulario contacto — dos columnas bien alineadas */
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
  }
  .form-row .form-group {
    min-width: 0;
  }
  .form-row .form-group label {
    white-space: normal;
    word-break: break-word;
    min-height: 2.2em;
    display: flex;
    align-items: flex-end;
    padding-bottom: 0.4rem;
  }
  .form-row .form-group input {
    width: 100%;
  }

  /* Hero */
  #hero {
    grid-template-columns: 1fr !important;
    padding: 5rem 1.2rem 3rem !important;
    min-height: auto !important;
    text-align: center;
  }
  #hero h1 { font-size: clamp(2.2rem, 8vw, 3.5rem) !important; }
  .hero-image { display: none; }
  .hero-content .btn-primary,
  .hero-content .btn-outline { width: 100%; text-align: center; }

  /* Stats bar */
  .stats-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important;
  }
  .stat { padding: 1.2rem !important; }

  /* Secciones generales */
  section { padding: 3rem 1.2rem !important; }

  /* Sobre */
  #sobre {
    grid-template-columns: 1fr !important;
    padding: 3rem 1.2rem !important;
  }

  /* Team cards */
  .team-group-header {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: center;
  }
  .team-grid { grid-template-columns: 1fr !important; }
  .team-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    padding: 1.5rem !important;
  }
  .team-avatar { margin-bottom: 0.5rem; }

  /* Proceso */
  .process-steps {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .process-steps::before { display: none; }
  .step { padding: 0 !important; }

  /* Proyectos */
  #proyectos .projects-grid { grid-template-columns: 1fr !important; max-width: 100% !important; }
  #proyectos .project-card .project-img { aspect-ratio: 4/3 !important; min-height: unset !important; }

  /* Mapa */
  .mapa-layout {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
  #mapaSvgContainer svg {
    width: 100% !important;
    height: auto !important;
  }

  /* Métricas */
  .fb-metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .fb-trend-bars {
    gap: 0.5rem !important;
  }

  /* Alcances */
  .alcances-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Footer */
  footer { padding: 3.5rem 1.5rem 0 !important; }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .footer-mission { max-width: 100% !important; }

  /* Botones flotantes: no tapen contenido */
  .social-float {
    right: 0.6rem !important;
    bottom: 1rem !important;
  }
  .social-float-btn {
    width: 42px !important;
    height: 42px !important;
  }
  .social-float-btn svg {
    width: 20px !important;
    height: 20px !important;
  }

  /* Servicios */
  .services-grid { grid-template-columns: 1fr !important; }

  /* Testimonios */
  .testimonials-grid { grid-template-columns: 1fr !important; }

  /* Contacto */
  #contacto {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  /* Formulario: una columna en pantallas muy pequeñas */
  .form-row { grid-template-columns: 1fr !important; }
  /* Section headers con botón: apilados */
  .section-header { flex-direction: column !important; align-items: flex-start !important; gap: 1rem !important; }
}

@media (max-width: 400px) {
  .stats-bar { grid-template-columns: 1fr !important; }
  .alcances-grid { grid-template-columns: 1fr !important; }
  .fb-metrics-grid { grid-template-columns: 1fr !important; }
  #hero h1 { font-size: 2rem !important; }
}
