/* ============================================================
   AJAL LOL — sections.css
   Ruta: assets/css/publicpages/sections.css
   Contiene: Hero · About · Stats · Clients/Marquee
             Services/Actividades · Team · Identity/MVOV · FAQ
   Depende de: base.css (variables)
   ============================================================ */

/* ─── HERO ─── */
#hero {
  min-height: 94vh;
  display: flex; align-items: center;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(245,198,212,.35) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(201,169,110,.15) 0%, transparent 50%),
    linear-gradient(145deg, var(--rose-deep) 0%, #5c1438 40%, var(--rose-mid) 100%);
  position: relative; overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
  background-size: 36px 36px;
}
.hero-circle { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-circle-1 {
  width: 500px; height: 500px; right: -100px; top: -100px;
  border: 1px solid rgba(255,255,255,.07);
  animation: floatCircle 8s ease-in-out infinite;
}
.hero-circle-2 {
  width: 300px; height: 300px; right: 80px; top: 80px;
  border: 1px solid rgba(245,198,212,.15);
  animation: floatCircle 6s ease-in-out infinite reverse;
}
.hero-circle-3 {
  width: 180px; height: 180px; right: 180px; top: 180px;
  background: radial-gradient(circle, rgba(245,198,212,.12), transparent);
  animation: floatCircle 5s ease-in-out infinite;
}
@keyframes floatCircle {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-20px) scale(1.03); }
}
.hero-content { position: relative; color: var(--white); max-width: 640px; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px); padding: .4rem 1.1rem; border-radius: 99px;
  font-size: .75rem; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--rose-pale); margin-bottom: 1.5rem;
  animation: heroFadeIn .8s ease both;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.1; font-weight: 700; margin-bottom: 1.4rem;
  animation: heroFadeIn .9s .1s ease both;
}
.hero-content h1 em { font-style: italic; color: var(--rose-pale); display: block; }
.hero-content p {
  font-size: 1.05rem; color: rgba(255,255,255,.85); font-weight: 400;
  max-width: 500px; margin-bottom: 2.5rem; line-height: 1.8;
  animation: heroFadeIn .9s .2s ease both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; animation: heroFadeIn .9s .3s ease both; }
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.5); font-size: .72rem; letter-spacing: 2px; text-transform: uppercase;
  animation: heroFadeIn 1s .6s ease both;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(1); opacity: .5; }
  50%      { transform: scaleY(.6); opacity: 1; }
}

/* ─── NOSOTROS ─── */
#about .about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.about-img-wrapper { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.about-img-wrapper::before {
  content: ''; position: absolute; inset: -2px;
  background: linear-gradient(135deg, var(--rose-mid), var(--gold), var(--rose-pale));
  border-radius: inherit; z-index: -1; opacity: .5;
}
.about-img-wrapper img {
  width: 100%; height: 500px; object-fit: cover;
  transition: transform .7s ease;
  border-radius: calc(var(--radius-lg) - 2px);
}
.about-img-wrapper:hover img { transform: scale(1.04); }
.about-img-badge {
  position: absolute; bottom: 1.8rem; left: 1.8rem;
  background: rgba(139,34,82,.85); backdrop-filter: blur(12px);
  color: var(--white); padding: .8rem 1.5rem; border-radius: var(--radius-md);
  font-size: .82rem; font-weight: 500; border: 1px solid rgba(255,255,255,.15);
}
.about-img-badge i { color: var(--gold-light); }
.about-content .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--rose-blush); color: var(--rose-mid);
  font-size: .72rem; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase;
  padding: .35rem 1rem; border-radius: 99px; margin-bottom: 1.2rem;
  border: 1px solid var(--rose-pale);
}
.about-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--rose-deep); margin-bottom: 1.2rem; line-height: 1.25; font-weight: 700;
}
.about-content p { color: var(--text-mid); margin-bottom: 1.1rem; font-weight: 400; font-size: .97rem; line-height: 1.8; }
.about-content p.intro {
  font-family: var(--font-display); font-style: italic; font-size: 1.12rem;
  color: var(--text-dark); line-height: 1.75;
  border-left: 3px solid var(--rose-soft); padding-left: 1.2rem;
}
@media (max-width: 800px) {
  #about .about-grid { grid-template-columns: 1fr; }
  .about-img-wrapper img { height: 300px; }
}

/* ─── STATS ─── */
#stats {
  background: linear-gradient(135deg, var(--rose-deep) 0%, #7a1d48 50%, var(--rose-mid) 100%);
  position: relative; overflow: hidden;
}
#stats::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Ccircle cx='40' cy='40' r='35' stroke='rgba(255,255,255,.04)' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E") center/80px;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.stat-item  { text-align: center; color: var(--white); padding: 3rem 1.5rem; position: relative; }
.stat-item::after {
  content: ''; position: absolute; right: 0; top: 20%; bottom: 20%;
  width: 1px; background: rgba(255,255,255,.12);
}
.stat-item:last-child::after { display: none; }
.stat-item i { font-size: 2rem; color: var(--rose-pale); display: block; margin-bottom: 1rem; opacity: .8; }
.stat-item .num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 700; line-height: 1; display: block;
  background: linear-gradient(135deg, var(--white), var(--rose-pale));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-item p { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: .6rem; letter-spacing: .5px; text-transform: uppercase; font-weight: 500; }
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item::after { display: none; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* ─── ALIADOS / MARQUEE ─── */
#clients { overflow: hidden; padding-block: 4rem; }

.masonry-viewport {
  height: 340px;
  overflow: hidden;
  position: relative;
}
.masonry-viewport::before,
.masonry-viewport::after {
  content: ''; position: absolute; left: 0; right: 0;
  height: 110px; z-index: 2; pointer-events: none;
}
.masonry-viewport::before { top: 0;    background: linear-gradient(to bottom, var(--cream-dark), transparent); }
.masonry-viewport::after  { bottom: 0; background: linear-gradient(to top,    var(--cream-dark), transparent); }

.masonry-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  height: 100%;
}

.col-track {
  display: flex; flex-direction: column; gap: 1rem;
  will-change: transform;
}
.col-up   { animation: scroll-up   var(--dur, 20s) linear infinite; }
.col-down { animation: scroll-down var(--dur, 20s) linear infinite; }

@keyframes scroll-up   { from { transform: translateY(0); }    to { transform: translateY(-50%); } }
@keyframes scroll-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }

.logo-card {
  background: #EDE7DF;
  border-radius: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0; cursor: default;
  overflow: hidden;
  transition: background 0.3s;
}
.logo-card:hover { background: #e8dfd8; }

.logo-card img {
  width: 65%; height: auto; object-fit: contain; display: block;
  filter: sepia(1) saturate(0.6) hue-rotate(300deg) brightness(0.75) opacity(0.85);
  transition: filter 0.4s;
}
.logo-card:hover img {
  filter: none;
}
.logo-label { display: none; }
.logo-card:hover .logo-label { opacity: 1; transform: translateY(0); }

.card-sm { padding: 1.6rem 0.8rem; }
.card-md { padding: 2.4rem 0.8rem; }
.card-lg { padding: 3.2rem 0.8rem; }

@media (min-width: 768px) {
  .masonry-columns {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  .masonry-columns {
    grid-template-columns: repeat(6, 1fr);
  }
}


/* ─── TEAM ─── */
.team-carousel-wrapper {
  position: relative;
  overflow: hidden;
}
.team-grid {
  display: flex;
  gap: 2.5rem;
  transition: transform .45s ease;
  will-change: transform;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  flex: 0 0 calc((100% - 5rem) / 3); /* 3 tarjetas visibles */
  border: 1px solid var(--rose-pale);
  cursor: none;
}
.team-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: var(--rose-soft); }
.team-card .member-img {
  width: 100%; aspect-ratio: 1; overflow: hidden;
  background: linear-gradient(135deg, var(--rose-blush), var(--cream-dark)); position: relative;
}
.team-card .member-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(139,34,82,.2));
  opacity: 0; transition: opacity var(--transition);
}
.team-card:hover .member-img::after { opacity: 1; }
.team-card .member-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.team-card:hover .member-img img { transform: scale(1.06); }
.team-card .member-info {
  padding: 1.5rem 1.2rem 1.8rem;
  text-align: center;
  border-top: 2px solid var(--rose-blush);
}
.team-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--rose-deep); font-weight: 700; }
.team-card span { font-size: .78rem; color: var(--text-light); letter-spacing: 1px; text-transform: uppercase; display: block; margin-top: .35rem; font-weight: 500; }

/* controles */
.team-carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.8rem;
  margin-top: 2.5rem;
}
.carousel-btn {
  background: none;
  border: none;
  padding: .2rem .5rem;
  color: var(--rose-pale);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color .25s ease, transform .2s ease;
  line-height: 1;
}
.carousel-btn:hover  { color: var(--rose-deep); transform: scale(1.2); }
.carousel-btn:disabled { opacity: .2; pointer-events: none; }

.carousel-dots { display: flex; gap: .55rem; align-items: center; }
.carousel-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rose-pale);
  border: none; cursor: pointer;
  transition: background .3s ease, transform .3s ease, width .3s ease;
}
.carousel-dot.active {
  background: var(--rose-deep);
  width: 20px;
  border-radius: 99px;
}

@media (max-width: 900px) {
  .team-card { flex: 0 0 calc((100% - 2.5rem) / 2); }
}
@media (max-width: 560px) {
  .team-card { flex: 0 0 100%; }
}

/* ─── IDENTIDAD (MVOV) ─── */
#pricing {
  background: linear-gradient(160deg, var(--rose-deep) 0%, #6b1640 60%, var(--rose-mid) 100%);
  position: relative;
  overflow: hidden;
}
#pricing::before {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,198,212,.08), transparent 70%);
  border-radius: 50%;
}

#pricing .section-title h2        { color: var(--rose-pale); }
#pricing .section-title h2::after { background: linear-gradient(90deg, var(--rose-pale), var(--gold)); }
#pricing .section-title .sub      { color: rgba(255,255,255,.55); }
#pricing .section-title .sub span { color: var(--gold-light); }

.mvov-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.mvov-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(245,198,212,.15);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  color: var(--white);
  transition: var(--transition);
  cursor: none;
  position: relative;
  overflow: hidden;
}
.mvov-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,198,212,.08), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.mvov-card:hover { transform: translateY(-6px); border-color: rgba(245,198,212,.35); }
.mvov-card:hover::before { opacity: 1; }

.mvov-card h3 {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rose-pale);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  position: relative;
}
.mvov-card h3 i { color: var(--gold-light); font-size: 1rem; }

.mvov-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  position: relative;
}

.mvov-card li {
  font-size: .9rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  font-weight: 400;
  padding-left: 1.1rem;
  position: relative;
}

.mvov-card li::before {
  content: '◆';
  color: var(--rose-soft);
  font-size: .45rem;
  position: absolute;
  left: 0;
  top: .62em;
}

.mvov-card li strong {
  color: var(--rose-pale);
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 1024px) { .mvov-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .mvov-grid { grid-template-columns: 1fr; } }

/* ─── FAQ ─── */
.faq-list { max-width: 780px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--rose-pale); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem 0; background: none; border: none; cursor: none; text-align: left;
  font-family: var(--font-body); font-size: .97rem; font-weight: 500;
  color: var(--rose-deep); gap: 1.2rem; transition: color var(--transition); line-height: 1.5;
}
.faq-question:hover { color: var(--rose-mid); }
.faq-toggle {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--rose-blush); border: 1.5px solid var(--rose-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--rose-mid); font-size: .75rem; transition: var(--transition);
}
.faq-item.open .faq-toggle {
  background: var(--rose-deep); border-color: var(--rose-deep);
  color: var(--white); transform: rotate(90deg);
}
/* ─── FAQ ─── */
.faq-answer { 
  height: 0; 
  overflow: hidden; 
  transition: height .45s ease, padding .3s ease; 
}
.faq-item.open .faq-answer { 
  height: auto; 
  padding-bottom: 1.4rem; 
}
.faq-answer p {
  color: var(--text-mid); font-size: .93rem; line-height: 1.8; font-weight: 400;
  padding-left: 1rem; border-left: 2px solid var(--rose-pale);
}
