/* GALERÍA */
.about-gallery{
  padding:100px 0;
  background:#fff;
}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-top:40px;
}

.gallery-item{
  overflow:hidden;
  border-radius:20px;
  position:relative;
}

.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .6s ease;
}

.gallery-item:hover img{
  transform:scale(1.1);
}

.gallery-item.large{
  grid-column:span 2;
}

/* COMO TRABAJAMOS */
.work-section{
  padding:100px 0;
}

.work-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:25px;
  margin-top:40px;
}

.work-step{
  background:white;
  padding:30px;
  border-radius:20px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  text-align:center;
  transition:all .3s ease;
  opacity:0;
  transform:translateY(40px);
}

.work-step.active{
  opacity:1;
  transform:translateY(0);
}

.work-step span{
  display:inline-block;
  width:60px;
  height:60px;
  border-radius:50%;
  background:rgba(245,124,0,.1);
  color:#f57c00;
  font-weight:800;
  line-height:60px;
  margin-bottom:15px;
}

/* ANIMACIONES GENERALES */
.reveal{
  opacity:0;
  transform:translateY(60px);
  transition:all .6s ease;
}

.reveal.active{
  opacity:1;
  transform:translateY(0);
}

/* RESPONSIVE */
@media(max-width:900px){
  .gallery-grid{
    grid-template-columns:1fr;
  }

  .gallery-item.large{
    grid-column:span 1;
  }

  .work-grid{
    grid-template-columns:1fr;
  }
}

/* MISSION INTERACTIVA */
.mission-section.interactive{
  position:relative;
  overflow:hidden;
}

.mission-card{
  position:relative;
  cursor:pointer;
  transition:.4s ease;
  overflow:hidden;
}

.mission-card::before{
  content:"";
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transition:.4s ease;
  z-index:0;
}

.mission-card:hover::before{
  opacity:.25;
}

.mission-card h3,
.mission-card p{
  position:relative;
  z-index:1;
}

.mission-card:hover{
  transform:translateY(-10px) scale(1.03);
  box-shadow:0 20px 40px rgba(0,0,0,.2);
}


/* VALUES INTERACTIVO */
.interactive-values .value-card{
  cursor:pointer;
  transition:.3s ease;
}

.interactive-values .value-card:hover{
  background:linear-gradient(135deg,#f57c00,#ff9f1c);
  color:#fff;
  transform:translateY(-6px) scale(1.05);
}

.value-display{
  margin-top:40px;
  padding:25px;
  border-radius:20px;
  background:#f7f7f7;
  text-align:center;
  font-weight:600;
  min-height:70px;
}


/* ANIMACIONES SCROLL PRO */
.fade-up{
  opacity:0;
  transform:translateY(60px);
  transition:all .7s cubic-bezier(.16,1,.3,1);
}

.fade-up.active{
  opacity:1;
  transform:translateY(0);
}

/* EFECTO PARALLAX SUAVE */
.hero--about{
  background-attachment:fixed;
}
/* ===== MISSION PRO BLANCO ===== */
.mission-section.pro{
  padding:100px 0;
  background:#ffffff;
  color:#272727;
}

.mission-wrap{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:50px;
  align-items:center;
}

/* NAV */
.mission-nav{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.mission-tab{
  background:#f7f7f7;
  border:none;
  color:#777;
  font-size:18px;
  text-align:left;
  padding:16px 18px;
  cursor:pointer;
  border-radius:12px;
  transition:.3s ease;
  font-weight:600;
}

.mission-tab.active{
  background:linear-gradient(135deg,#f57c00,#ff9f1c);
  color:#fff;
  box-shadow:0 10px 25px rgba(245,124,0,.25);
}

.mission-tab:hover{
  background:#eee;
  color:#000;
}

/* CONTENT */
.mission-content{
  position:relative;
}

.mission-pane{
  display:none;
  animation:fadeUp .5s ease;
}

.mission-pane.active{
  display:block;
}

.mission-pane h3{
  font-size:34px;
  margin-bottom:15px;
}

.mission-pane p{
  max-width:600px;
  margin-bottom:25px;
  color:#5d5d5d;
  font-size:16px;
}

/* IMAGEN CON EFECTO */
.mission-pane img{
  width:100%;
  max-height:420px;
  object-fit:cover;
  border-radius:20px;
  box-shadow:0 20px 40px rgba(0,0,0,.12);
  transition:.4s ease;
}

.mission-pane img:hover{
  transform:scale(1.02);
}

/* ANIMACIÓN */
@keyframes fadeUp{
  from{opacity:0; transform:translateY(20px);}
  to{opacity:1; transform:translateY(0);}
}

/* RESPONSIVE */
@media(max-width:900px){
  .mission-wrap{
    grid-template-columns:1fr;
  }

  .mission-nav{
    flex-direction:row;
    justify-content:space-between;
  }

  .mission-tab{
    font-size:14px;
    padding:12px;
  }
}

/* =========================
ANIMACIÓN PREMIUM GLOBAL
========================= */
.reveal-pro{
  opacity:0;
  transform: translateY(50px) scale(.98);
  filter: blur(6px);
  transition:
    opacity .9s cubic-bezier(.16,1,.3,1),
    transform .9s cubic-bezier(.16,1,.3,1),
    filter .9s ease;
}

.reveal-pro.active{
  opacity:1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Delay dinámico */
.reveal-pro:nth-child(1){transition-delay:.05s}
.reveal-pro:nth-child(2){transition-delay:.1s}
.reveal-pro:nth-child(3){transition-delay:.15s}
.reveal-pro:nth-child(4){transition-delay:.2s}

/* =========================
CARDS MÁS "VIVAS"
========================= */
.value-card,
.gallery-item,
.mission-pane img{
  transition:
    transform .35s cubic-bezier(.16,1,.3,1),
    box-shadow .35s ease,
    filter .3s ease;
}

.value-card:hover,
.gallery-item:hover{
  transform: translateY(-10px) scale(1.03);
  box-shadow:0 25px 50px rgba(0,0,0,.18);
}

/* =========================
HOVER MÁS PREMIUM (GLOW)
========================= */
.value-card:hover{
  background: linear-gradient(135deg,#f57c00,#ff9f1c);
  color:#fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2),
              0 20px 60px rgba(245,124,0,.4);
}

/* =========================
IMÁGENES MÁS CINEMÁTICAS
========================= */
.gallery-item img{
  transition: transform .8s cubic-bezier(.16,1,.3,1), filter .5s ease;
}

.gallery-item:hover img{
  transform: scale(1.12);
  filter: brightness(1.05) contrast(1.05);
}

/* =========================
SCROLL SUAVE MÁS PROFESIONAL
========================= */
html{
  scroll-behavior:smooth;
}

/* =========================
EFECTO "FOCUS SECTION"
========================= */
section{
  transition: opacity .6s ease;
}

section:not(.active-section){
  opacity:.6;
}

@media (max-width:860px){
  .nav__menu{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:#fff;
    border-bottom:1px solid rgba(0,0,0,.06);
    padding:18px 20px 26px;
    display:none;
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
    box-shadow:0 18px 30px rgba(0,0,0,.08);
    z-index:100;
  }

  .nav__menu.is-open{
    display:flex;
  }

  .nav__menu a{
    width:100%;
    padding:10px 0;
  }
}

/* =========================
LINEAS DE ACCIÓN
========================= */
.action-lines{
  padding:110px 0;
  background:
  linear-gradient(180deg,#fff 0%,#fff8f2 100%);
  position:relative;
  overflow:hidden;
}

.center{
  text-align:center;
}

.center p{
  max-width:760px;
  margin:18px auto 0;
}

.action-grid{
  margin-top:60px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

.action-card{
  background:#fff;
  padding:40px 28px;
  border-radius:28px;
  position:relative;
  overflow:hidden;
  box-shadow:0 15px 40px rgba(0,0,0,.06);
  transition:.45s cubic-bezier(.16,1,.3,1);
  border:1px solid rgba(0,0,0,.04);
}

.action-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
  linear-gradient(135deg,
  rgba(245,124,0,.08),
  rgba(255,159,28,.02));
  opacity:0;
  transition:.4s ease;
}

.action-card:hover::before{
  opacity:1;
}

.action-card:hover{
  transform:translateY(-12px);
  box-shadow:0 30px 60px rgba(0,0,0,.12);
}

.action-icon{
  width:72px;
  height:72px;
  border-radius:22px;
  display:grid;
  place-items:center;
  font-size:30px;
  margin-bottom:24px;
  background:
  linear-gradient(135deg,#f57c00,#ff9f1c);
  color:#fff;
  box-shadow:0 15px 30px rgba(245,124,0,.25);
}

.action-card h3{
  margin-bottom:14px;
  font-size:22px;
}

.action-card p{
  color:#666;
  line-height:1.7;
}

/* =========================
TEAM SECTION
========================= */
.team-section{
  padding:110px 0;
  background:#fff;
}

.team-grid{
  margin-top:60px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.team-card{
  background:#fff;
  border-radius:28px;
  overflow:hidden;
  position:relative;
  transition:.45s cubic-bezier(.16,1,.3,1);
  box-shadow:0 15px 40px rgba(0,0,0,.08);
}

.team-card:hover{
  transform:translateY(-10px);
  box-shadow:0 30px 60px rgba(0,0,0,.16);
}

.team-photo{
  position:relative;
  height:380px;
  overflow:hidden;
}

.team-photo::after{
  content:"";
  position:absolute;
  inset:0;
  background:
  linear-gradient(to top,
  rgba(0,0,0,.45),
  transparent 45%);
}

.team-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .8s ease;
}

.team-card:hover img{
  transform:scale(1.08);
}

.team-info{
  padding:26px 22px;
  text-align:center;
}

.team-info h3{
  margin-bottom:6px;
  font-size:20px;
}

.team-info span{
  color:#f57c00;
  font-weight:600;
  font-size:14px;
  letter-spacing:.03em;
}

/* =========================
RESPONSIVE
========================= */
@media(max-width:1100px){

  .action-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .team-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:700px){

  .action-grid,
  .team-grid{
    grid-template-columns:1fr;
  }

  .team-photo{
    height:360px;
  }
}

/* =========================
TEAM MODAL
========================= */

.team-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  transition:.3s ease;
}

.team-modal.active{
  opacity:1;
  visibility:visible;
}

.team-modal__overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.75);
  backdrop-filter:blur(6px);
}

.team-modal__content{
  position:relative;
  width:min(1050px,90%);
  background:#fff;
  border-radius:30px;
  overflow:hidden;
  display:grid;
  grid-template-columns:320px 1fr;
  z-index:2;
  animation:modalShow .4s ease;
}

@keyframes modalShow{
  from{
    opacity:0;
    transform:translateY(20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.team-modal__content img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.team-modal__body{
  padding:40px;
}

.team-modal__body h3{
  font-size:32px;
  margin-bottom:8px;
}

.team-modal__body span{
  color:#f57c00;
  font-weight:700;
  display:block;
  margin-bottom:20px;
}

.team-modal__body p{
  line-height:1.8;
  color:#555;
}

.team-modal__close{
  position:absolute;
  top:18px;
  right:18px;
  width:44px;
  height:44px;
  border:none;
  border-radius:50%;
  background:#f57c00;
  color:#fff;
  font-size:24px;
  cursor:pointer;
}

.team-card{
  cursor:pointer;
}

.team-modal__body p{
  white-space:pre-line;
}

@media(max-width:768px){

  .team-modal__content{
    grid-template-columns:1fr;
    max-height:90vh;
    overflow:auto;
  }

  .team-modal__content img{
    height:300px;
  }

}