/* ========================================================= */
/* ============    MFI ARCHITECTS — STYLE.CSS    ============ */
/* ============      Glass & Minimalist v2       =========== */
/* ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;1,600&display=swap'); /* Fuente elegante opcional para títulos */

:root {
  --bg: #F2F2F7;             /* iOS System Gray 6 */
  --text: #1C1C1E;           /* iOS Black */
  --text-soft: #8E8E93;      /* iOS Gray */
  --accent: #BFA065;         /* Gold MFI */
  
  /* Glassmorphism Pro */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: 1px solid rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
  --blur: blur(25px);

  --radius-l: 28px;
  --radius-m: 16px;
  
  --font-main: 'Inter', -apple-system, sans-serif;
  --font-title: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size: 16px; }
body { background: var(--bg); font-family: var(--font-main); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { width:100%; display:block; border-radius: var(--radius-m); }

/* --- BOTONES --- */
.button {
  display: inline-block; padding: 1rem 2.5rem;
  background: var(--text); color: white;
  border-radius: 50px; text-decoration: none;
  font-weight: 500; border: none; cursor: pointer;
  transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }

.button-outline {
  display: inline-block; padding: 0.8rem 2rem;
  background: transparent; border: 1.5px solid var(--text); 
  color: var(--text); border-radius: 50px; text-decoration: none;
  font-weight: 500; transition: 0.3s;
}
.button-outline:hover { background: var(--text); color: white; }

/* --- NAVBAR --- */
.header {
  position:fixed; top:0; left:0; width:100%;
  background:rgba(255,255,255,0.85); backdrop-filter: saturate(180%) blur(20px);
  z-index:1000; border-bottom:1px solid rgba(0,0,0,0.05);
}
.nav {
  max-width:1200px; margin:auto; padding:1.1rem 2rem;
  display:flex; justify-content:space-between; align-items:center;
}
.nav__logo { font-family:var(--font-title); font-size:1.3rem; font-weight:700; letter-spacing:-0.02em; }
.nav__list { display:flex; gap:2rem; list-style:none; }
.nav__link { text-decoration:none; font-size:.9rem; color:var(--text-soft); transition:.3s; font-weight:500; }
.nav__link:hover { color:var(--text); }

/* --- HERO SLIDER (Texto Centrado) --- */
.hero-slider { height:100vh; overflow:hidden; position:relative; }
.comparison-slider-container { height:100%; width:100%; }
.comparison-slider__figure img { height:100%; width:100%; object-fit:cover; }
.comparison-slider__figure--right { position:absolute; top:0; left:0; clip-path: inset(0 0 0 50%); }

.comparison-slider__divider {
  position:absolute; top:0; left:50%; height:100%; width:2px;
  background:white; transform:translateX(-50%); cursor:ew-resize; z-index: 10;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.comparison-slider__handle {
  width:50px; height:50px; background:white; border-radius:50%;
  position:absolute; top:50%; left:50%; transform:translate(-50%, -50%);
  display:grid; place-items:center; color:var(--text);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}
.comparison-slider__handle:hover { transform: translate(-50%, -50%) scale(1.1); }

/* CENTRADO PERFECTO DEL TEXTO */
.hero-title-overlay {
  position:absolute; top:0; left:0; width:100%; height:100%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; /* Deja pasar el click al slider */
  z-index: 20;
}
.hero-main-title {
  font-family:var(--font-title); 
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight:700; color:white; 
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
  text-align: center; letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(to bottom, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; /* Efecto texto brillante */
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

/* --- SECCIONES GENERAL --- */
.section { padding: 7rem 1.5rem; }
.section__title { 
  font-family:var(--font-title); font-size:2.8rem; font-weight: 700;
  text-align:center; margin-bottom:0.5rem; letter-spacing:-0.02em; color: var(--text);
}
.section__subtitle { 
  text-align:center; color:var(--text-soft); margin-bottom:4rem; 
  font-weight:400; font-size: 1.1rem; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* --- LAB HEADER --- */
.lab-header {
  max-width: 1200px; margin: 0 auto 3rem auto;
  height: 350px; border-radius: var(--radius-l);
  background-image: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?auto=format&fit=crop&w=1600&q=80');
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glass-shadow); position: relative; overflow: hidden;
}
.lab-header::after {
  content:''; position:absolute; top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.3); /* Oscurecer imagen */
}
.lab-header h2 {
  font-family: var(--font-title); font-size: 3.5rem; color: white; position: relative; z-index: 2;
  text-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

/* --- CARRUSEL CON FLECHAS (Scroll Wrapper) --- */
.scroll-wrapper {
  position: relative; max-width: 1250px; margin: 0 auto;
  display: flex; align-items: center;
}
.horizontal-scroll {
  overflow-x:auto; white-space:nowrap; scroll-snap-type:x mandatory;
  padding: 1.5rem 0; width: 100%; scrollbar-width: none;
  scroll-behavior: smooth;
}
.horizontal-scroll::-webkit-scrollbar { display: none; }

.horizontal-track { display:inline-flex; gap:1.5rem; padding: 0 10px; }
.horizontal-track img {
  width:340px; height:240px; object-fit:cover; scroll-snap-align:center;
  transition: transform 0.4s ease; box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.horizontal-track img:hover { transform: translateY(-8px); }

/* Flechas de Navegación */
.nav-btn {
  background: white; border: 1px solid rgba(0,0,0,0.05);
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--text); cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  position: absolute; z-index: 10;
  transition: 0.3s; top: 50%; transform: translateY(-50%);
}
.nav-btn:hover { background: var(--text); color: white; transform: translateY(-50%) scale(1.1); }
.nav-btn.prev { left: -25px; }
.nav-btn.next { right: -25px; }

/* --- TARJETAS TEAM --- */
.about-text { font-size:1.2rem; text-align:center; color:var(--text-soft); margin-bottom:4rem; max-width:800px; margin-left: auto; margin-right: auto;}
.team-grid { display:flex; justify-content:center; gap:3rem; flex-wrap:wrap; max-width: 1000px; margin: auto; }
.team-card {
  width: 320px; background: white; padding: 2.5rem; border-radius: var(--radius-l);
  text-align:center; cursor: pointer; transition: 0.4s ease;
  box-shadow: var(--glass-shadow); border: 1px solid white;
}
.team-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0,0,0,0.1); }
.team-img-wrapper {
  width: 150px; height: 150px; margin: 0 auto 1.5rem auto;
  border-radius: 50%; overflow: hidden; border: 3px solid #f0f0f0;
}
.team-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-family:var(--font-title); font-size:1.4rem; margin-bottom:0.3rem; }
.team-role { color:var(--accent); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.team-bio {
  max-height: 0; overflow: hidden; opacity: 0;
  text-align: left; font-size: 0.95rem; color: var(--text-soft);
  transition: all 0.5s ease; margin-top: 0;
}
.team-card.active .team-bio { max-height: 600px; opacity: 1; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #f2f2f2; }

/* --- CALCULADORA AESTHETIC --- */
.glass-panel {
  background: var(--glass-bg); backdrop-filter: var(--blur);
  border: var(--glass-border); box-shadow: var(--glass-shadow);
  border-radius: var(--radius-l); padding: 3.5rem;
  max-width: 550px; margin: 0 auto; position: relative;
}
.input-group { margin-bottom: 1.5rem; position: relative; }
label {
  display: block; font-size: 0.75rem; font-weight: 700;
  color: var(--text-soft); margin-bottom: 0.5rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-left: 5px;
}
input, select, textarea {
  width: 100%; padding: 1.2rem;
  border: 1px solid rgba(0,0,0,0.05); border-radius: var(--radius-m);
  background: rgba(255,255,255,0.9); /* Casi blanco total */
  font-size: 1rem; color: var(--text); font-family: var(--font-main);
  transition: 0.3s; appearance: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(191, 160, 101, 0.15); background: white;
}
.calc-result { text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.08); }
.calc-result h3 { font-family: var(--font-title); font-size: 3.2rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }

/* --- CONTACTO SPLIT AESTHETIC --- */
.contact-glass {
  max-width: 1100px; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
  padding: 4rem;
}
.contact-slogan {
  font-family: var(--font-title); font-size: 2rem; line-height: 1.2; margin-bottom: 2.5rem;
  font-weight: 700; color: var(--accent);
}
.contact-info h4 { 
  margin-bottom: 1rem; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; 
}
.contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 0.8rem; font-size: 1rem; color: var(--text-soft); }
.cv-box {
  background: white; padding: 1.5rem; border-radius: var(--radius-m);
  text-align: center; margin-top: 2.5rem; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* --- FOOTER --- */
.footer { background: #111; color: white; padding: 5rem 1rem; text-align:center; margin-top: 8rem; border-top-left-radius: 40px; border-top-right-radius: 40px; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .contact-glass { grid-template-columns: 1fr; gap: 3rem; padding: 2rem; }
  .nav-btn { display: none; } /* Ocultar flechas en móvil */
  .nav__list { display:none; }
  .hero-main-title { font-size: 2.5rem; padding: 0 1rem; }
  .lab-header h2 { font-size: 2rem; }
  .scroll-wrapper { width: 100%; }
}