:root {
  --bg-dark: #011140;      /* fondo principal (azul profundo) */
  --card-bg: #0A2C59;      /* tarjetas */
  --accent: #3DADF2;       /* color destacado (botones, links) */
  --accent-soft: #103B73;  /* hover / detalles */
  --text-main: #F2F2F2;    /* texto principal */
  --text-muted: #AFC4D9;   /* texto secundario */
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: var(--text-main);
}

/* SKIP LINK */
.skip-link {
  position: absolute;
  top: -50px;
  left: 10px;
  background: var(--accent);
  color: #0f1a24;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 2000;
  text-decoration: none;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 10px;
}

/* FOCUS ACCESIBLE */
a:focus,
button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 80px 0;
}

/* NAVBAR */ .navbar { 
  background: rgba(15, 26, 36, 0.85); 
  backdrop-filter: blur(8px); 
  border-bottom: 1px solid rgba(255,255,255,0.05); 
  z-index: 1000; position: sticky; top: 0;
} 

.nav-content { 
  display: flex; align-items: center; 
  justify-content: space-between; 
  height: 70px; padding: 0; 
} 

.logo img {
  filter: brightness(0) invert(1); 
  height: 150px; 
  width: auto; 
  margin-left: -10px;
} 

.logo,
.logo:hover,
.logo:focus,
.logo:active {
  text-decoration: none;
  outline: none;
}

.navbar a {
  position: relative;
  margin-left: 20px;
  text-decoration: none;
  color: #cbd5e1;
  transition: color 0.25s ease;
  padding: 6px 0;
}

/* línea animada debajo */
/* línea animada SOLO links del menú */
.navbar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.navbar nav a:hover::after {
  width: 100%;
}

/* hover */
.navbar a:hover {
  color: var(--accent);
}

.navbar a:hover::after {
  width: 100%;
}

/* click real */
.navbar a:active {
  transform: translateY(1px);
  opacity: 0.85;
}

/* accesibilidad teclado */
.navbar a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.navbar a:focus {
  outline: none;
}

.navbar a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* NAV DESKTOP */
nav {
  display: flex;
  gap: 20px;
}

/* HAMBURGER */
button {
  font-family: inherit;
  background: none;
  border: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: var(--accent);
  margin: 4px 0;
  transition: 0.3s;
}
/* HERO */
.hero {
  position: relative;

  min-height: 100vh;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
}

/* overlay oscuro */
.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

/* contenido arriba */
.hero-content {
  position: relative;
  z-index: 2;
}

/* hero chico */
.hero.small {
  min-height: auto;
  padding: 80px 0;
}

/* TITULOS */
.hero h1 {
  font-size: 56px;
  margin-bottom: 20px;
  line-height: 1.1;
}

/* TEXTO */
.hero p {
  color: #d1d5db;
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 18px;
}

/* MOBILE */
@media (max-width: 768px) {

  .hero {
    min-height: 70vh;
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

}

/* BUTTONS */
.btn {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  margin-right: 10px;
  display: inline-block;
  transition: all 0.35s ease;
}

.primary {
  background: var(--accent);
  color: #011140;
}

.primary:hover {
  background: var(--accent-soft);
  color: #fff;
}

.white {
  background: white;
  color: var(--bg-dark);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* LINKS */
.link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  position: relative;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.link:hover::after {
  width: 100%;
}

/* TITLES */
h2 {
  text-align: center;
  margin-bottom: 30px;
}

h2::after {
  content: "";
  width: 50px;
  height: 2px;
  background: var(--accent);
  display: block;
  margin: 10px auto 0;
}

/* AREAS */
.areas {
  display: flex;
  gap: 20px;
}

.area-card {
  flex: 1;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.35s ease;
}

.area-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.3),
    0 0 0 1px rgba(200,169,106,0.08);
}

.area-card p {
  color: var(--text-muted);
  margin: 10px 0;
}

.page-areas ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.team-grid .card {
  display: block;
  padding: 0; /* importante para que no deforme */
  background: none;
}
/* Animación escalonada de las tarjetas del equipo */
.team-grid .card:nth-child(1) { transition-delay: 0.1s; }
.team-grid .card:nth-child(2) { transition-delay: 0.25s; }
.team-grid .card:nth-child(3) { transition-delay: 0.4s; }
.team-grid .card:nth-child(4) { transition-delay: 0.55s; }
.team-grid .card:nth-child(5) { transition-delay: 0.7s; }
.team-grid .card:nth-child(6) { transition-delay: 0.85s; }

.team-grid .card:hover,
.team-grid .card:focus-within {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.3),
    0 0 0 1px rgba(200,169,106,0.08);
}

.avatar {
  width: 80px;
  height: 80px;
  background: #2f3e4f;
  border-radius: 50%;
  margin-bottom: 10px;
}

/* MEDIA */
.media-card .media-thumb {
  height: 100px;
  background: #2f3e4f;
  margin-bottom: 10px;
  border-radius: 8px;
}

/* CTA */
.cta {
  background: transparent;
  color: var(--text-main);
  padding: 50px 20px;
  text-align: center;
}

.cta h2 {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-main);
  opacity: 0.9;
}

/* botón menos agresivo */
.cta .btn.white {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.cta .btn.white:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
}

/* SCROLL ANIMATION */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-60px);
  transition:1.2s ease;
  transition-delay: 0.2s;
}

.fade-right {
  opacity: 0;
  transform: translateX(60px);
  transition: 1.6s ease;
  transition-delay: 0.4s;
}

.fade-left.show,
.fade-right.show {
  opacity: 1;
  transform: translateX(0);
}

/* TEAM IMAGE OVERLAY */
.team-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* ← magia */
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.team-image:hover img {
  transform: scale(1.05);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 260px); /* tamaño fijo */
  justify-content: center; /* 🔥 centra y junta */
  gap: 20px; /* menos espacio */
}
.team-grid .card {
  max-width: 260px; /* 🔥 achica la card */
  margin: 0 auto;
}

.team-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.team-image:hover .team-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* BOTÓN CHICO */
.btn.small {
  padding: 8px 16px;
  font-size: 13px;
  margin-top: 10px;
}

/* CONTACTO */
.contacto-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.page-contacto .hero.small {
  padding: 100px 0 60px;
}

.page-contacto .hero.small .container {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-contacto .hero.small h1 {
  margin: 0;
  font-size: 44px;
}

.page-contacto .hero.small p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-form {
  flex: 1 1 500px;
  background: rgba(22, 38, 53, 0.7);
  backdrop-filter: blur(6px);

  padding: 35px;
  border-radius: 16px;

  border: 1px solid rgba(200,169,106,0.1);
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.contact-right{
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info{
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 40px;
}

.contact-image{
  width: 100%;
  height: 280px; /* ajustá a gusto */
  overflow: hidden;
  border-radius: 14px;
}

.contact-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.3s ease;
}

.contact-image img:hover{
  transform: scale(1.02);
}
.page-contacto form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-contacto input,
.page-contacto textarea,
.page-contacto select {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--card-bg);
  color: white;
  transition: all 0.3s ease;
}

.page-contacto input:focus,
.page-contacto textarea:focus,
.page-contacto select:focus {
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(200,169,106,0.15);
}

/* MOBILE */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    display: none;
    z-index: 999;
    opacity: 0;
    transform: translateY(-10px);
    transition: 0.3s;
  }

  nav.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  nav a {
    padding: 10px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .areas,
  .grid,
  .team-grid {
    flex-direction: column;
    align-items: center;
  }

  .contacto-grid {
    flex-direction: column;
    align-items: center;
  }

  .contact-form,
  .contact-right {
    width: 100%;
    max-width: 500px;
  }
}

.page-area .grid {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-area .card {
  flex: 1 1 300px;
  max-width: 350px;
  text-align: left;
}

.page-area .card h3 {
  margin-bottom: 10px;
}

/* TARJETAS ÁREA JURÍDICA - EFECTO PRO */
.page-area .card {
  flex: 1 1 300px;
  max-width: 350px;
  text-align: left;

  border: 1px solid rgba(200,169,106,0.15);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);

  transition: all 0.35s ease;
}

/* HOVER */
.page-area .card:hover {
  transform: scale(1.03) translateY(-5px);

  box-shadow:
    0 15px 35px rgba(0,0,0,0.35),
    0 0 0 1px rgba(200,169,106,0.2);
}

/* =========================
   SOBRE (PAGE-SOBRE)
   ========================= */

/* Mejor lectura del texto */
.page-sobre p {
  max-width: 750px;
  margin: 0 auto 20px;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: center;
}

/* Intro de valores */
.page-sobre .section-intro {
  max-width: 600px;
  margin: 0 auto 50px;
  text-align: center;
  opacity: 0.85;
}

/* GRID SOLO PARA SOBRE */
.page-sobre .grid {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

/* CARDS SOBRE */
.page-sobre .card {
  flex: 1 1 260px;
  max-width: 280px;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 16px;
  text-align: left;

  border: 1px solid rgba(200,169,106,0.08);

  transition: all 0.35s ease;
}

/* HOVER PRO (más elegante que el default) */
.page-sobre .card:hover {
  transform: translateY(-8px);

  box-shadow:
    0 15px 35px rgba(0,0,0,0.35),
    0 0 0 1px rgba(200,169,106,0.15);
}

/* NUMERACIÓN VALORES */
.page-sobre .value-number {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
  opacity: 0.6;
  display: block;
  margin-bottom: 8px;
}

/* TÍTULOS DE CARDS */
.page-sobre .card h4 {
  margin-bottom: 10px;
  color: white;
}

/* TEXTO DE CARDS */
.page-sobre .card p {
  text-align: left;
  margin: 0;
}

/* DIFERENCIAL (ligero destaque) */
.page-sobre section:nth-of-type(3) {
  position: relative;
}

.page-sobre section:nth-of-type(3)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 60%;
  height: 1px;
  background: rgba(200,169,106,0.15);
  transform: translateX(-50%);
}
.page-sobre .hero {
  text-align: center;
}

.page-sobre .hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}



/* =========================
   CARD FLIP MEDIA FIX
========================= */

.card-flip{
  position:relative;
  width:300px;
  height:380px;
  flex:0 0 300px;
  perspective:1200px;
}

.card-front,
.card-back{
  position:absolute;
  inset:0;

  width:100%;
  height:100%;

  border-radius:16px;
  background:var(--card-bg);
  padding:20px;

  backface-visibility:hidden;
  transition:transform .7s ease;

  display:flex;
  flex-direction:column;
  align-items:center;
}

.card-front{
  justify-content:flex-start;
}

.card-back{
  justify-content:space-between;
  transform:rotateY(180deg);
  text-align:center;
}

.card-flip:hover .card-front{
  transform:rotateY(180deg);
}

.card-flip:hover .card-back{
  transform:rotateY(0);
}

/* IMAGEN */
.media-thumb{
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:12px;
  display:block;
  margin-bottom:18px;
}

/* TITULO */
.card-front h3{
  margin-top:auto;
  color:var(--accent);
  text-align:center;
}

/* BOTON */
.card-back .btn{
  width:100%;
  background:var(--accent);
  color:var(--bg-dark)!important;
}

.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 400px; /* altura reducida */
  display: flex;
  align-items: center;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 26, 36, 0.5); /* overlay para que el texto se vea */
}

.hero .container {
  position: relative; /* necesario para que el texto quede sobre el overlay */
  display: flex;
  align-items: center;
  justify-content: flex-start; /* texto a la izquierda */
  height: 100%;
}

.hero-text {
  max-width: 600px;
  padding: 20px;
}

.hero h1 {
  font-size: 38px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 16px;
  color: #e5e7eb;
  margin-bottom: 20px;
}

/* Botón */
.hero .btn.primary {
  background: var(--accent);
  color: var(--bg-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: 300px;
    text-align: center;
  }

  .hero .container {
    justify-content: center;
  }

  .hero-text {
    max-width: 90%;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 14px;
  }
}
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 120px 0;
  display: flex;
  align-items: center;
  color: white;
}

.hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 26, 36, 0.6);
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  max-width: 1200px;
}

.hero-text {
  max-width: 550px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  color: #d1d5db;
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero .btn {
  margin-top: 15px;
}

/* ===== Animación escalonada ===== */
.fade-item {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards;
  animation-delay: var(--delay);
}

/* =========================
   FIX GLOBAL SEGURO
   ========================= */

/* Unifica comportamiento del HERO (tenés 3 versiones) */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

/* Evita que overlays tapen contenido */
.hero::before,
.hero .overlay {
  pointer-events: none;
}

/* Asegura que el contenido siempre quede arriba */
.hero .container,
.hero-grid,
.hero-text {
  position: relative;
  z-index: 2;
}

/* NAV SIEMPRE FUNCIONAL */
.navbar {
  z-index: 9999;
}

/* FIX menú mobile (esto es clave) */
@media (max-width: 768px) {
  nav {
    left: 0;
  }
}

/* Evita glitches por transform */
.area-card,
.team-grid .card,
.page-area .card,
.page-sobre .card {
  transform: translateZ(0);
  
}

/* Mejora rendimiento animaciones */
.fade-in,
.fade-left,
.fade-right {
  will-change: transform, opacity;
}

/* =========================
   ÁREAS PRO
   ========================= */

/* Intro más fina */
.intro-pro {
  max-width: 700px;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Grid mejor distribuido */
.grid-pro {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Cards más premium */
.card-hover {
  transition: all 0.35s ease;
  border: 1px solid rgba(200,169,106,0.08);
}

.card-hover:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 15px 35px rgba(0,0,0,0.35),
    0 0 0 1px rgba(200,169,106,0.15);
}

/* Mejor spacing interno */
.card-hover p {
  margin-bottom: 10px;
}

/* =========================
   BIG LAW CARDS
   ========================= */

.page-area .card {
  position: relative;
  background: transparent;
  padding: 28px 24px 28px 28px;
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid rgba(200,169,106,0.4);

  transition: all 0.35s ease;
}

/* Hover sutil (clave en Big Law: menos es más) */
.page-area .card:hover {
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,0.02);

  transform: translateY(-4px);
}

/* Título fuerte */
.page-area .card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

/* Texto más limpio */
.page-area .card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Link tipo firma internacional */
.page-area .card .link {
  margin-top: 15px;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
}

/* Línea animada elegante */
.page-area .card .link::after {
  content: "";
  display: block;
  width: 0%;
  height: 1px;
  background: var(--accent);
  margin-top: 4px;
  transition: width 0.3s ease;
}

.page-area .card:hover .link::after {
  width: 100%;
}

/* Grid más aireado */
.grid-pro {
  gap: 30px;
}

/* Opcional: mejor alineación vertical */
.page-area .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* =========================
   TEAM ULTRA PRO
   ========================= */

.page-equipo .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 260px); /* 🔥 igual que index */
  justify-content: center; /* 🔥 centra */
  gap: 20px;
}

/* Card */
.page-equipo .card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

/* Imagen */
.page-equipo .team-image {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

/* Imagen efecto (VERTICAL FIX) */
.page-equipo .team-image img {
  width: 100%;
  aspect-ratio: 3 / 4;   /* ← CAMBIO CLAVE */
  height: auto;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

/* Overlay */.page-medios .media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.page-equipo .team-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;      /* ← CENTRADO */
  text-align: center;       /* ← CENTRADO */

  padding: 20px;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.25),
    transparent
  );

  opacity: 1;
  transition: all 0.4s ease;
}

/* Hover imagen */
.page-equipo .card:hover img {
  transform: scale(1.06);
  filter: brightness(0.85);
}

/* Spotlight effect */
.page-equipo .team-image::after {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at 50% 50%,
    rgba(255,255,255,0.12),
    transparent 60%
  );

  opacity: 0;
  transition: opacity 0.4s ease;

  pointer-events: none; /* ← FIX CLICK */
}

.page-equipo .card:hover .team-image::after {
  opacity: 1;
}

/* Texto */
.page-equipo .team-overlay h3 {
  color: #fff;
  margin-bottom: 4px;
  font-size: 18px;
}

.page-equipo .team-overlay p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 12px;
  font-size: 14px;
}

/* BOTÓN (ARREGLADO + CENTRADO) */
.page-equipo .team-overlay .btn {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);

  border: 1px solid rgba(255,255,255,0.18);

  color: white !important;

  font-size: 12px;
  padding: 8px 16px;

  border-radius: 999px;
  text-decoration: none;

  transition: background 0.3s ease, border 0.3s ease;

  align-self: center;
}

.page-equipo .team-overlay .btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.35);
  color: white !important;

  transform: none;
  box-shadow: none;
}

/* Hover botón */
.page-equipo .team-overlay .btn:hover {
  background: #fff;
  color: #111 !important;
}

/* =========================
   HERO SMALL PRO (EQUIPO)
   ========================= */

.page-equipo .hero.small {
  position: relative;
  padding: 120px 0 80px;

  background: linear-gradient(
    to bottom,
    rgba(10,15,20,0.85),
    rgba(10,15,20,0.95)
  );
}

.page-equipo .hero.small .container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 700px;
}

.page-equipo .hero.small h1 {
  margin: 0;
  font-size: 42px;
}

.page-equipo .hero.small h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin-top: 10px;
}

.page-equipo .hero.small p {
  margin: 0;
  color: var(--text-muted);
}

/* =========================
   PERFIL
========================= */

.page-perfil .perfil-header.layout {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

/* AVATAR */
.page-perfil .avatar.large {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;

  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  background: #2f3e4f;
}

/* la imagen dentro */
.page-perfil .avatar.large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* INFO */
.page-perfil .perfil-info h1 {
  margin-bottom: 5px;
  color: var(--text-main);
  font-size: 32px;
}

/* ROL */
.page-perfil .perfil-info .rol {
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--accent);
}

/* BIO */
.page-perfil .perfil-info .bio {
  max-width: 500px;
  margin-bottom: 20px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* TAG (si lo usás en Juan/Valentina) */
.page-perfil .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  opacity: 0.8;
}

/* BOTONES */
.page-perfil .perfil-actions .btn {
  margin-top: 10px;
}

.page-perfil .perfil-hero {
  min-height: auto;
  padding: 50px 0;
}

.page-perfil .perfil-header.layout {
  gap: 50px;
}

.page-perfil .avatar.large {
  width: 220px;
  height: 220px;
}

.page-perfil .perfil-info {
  max-width: 700px;
}
/* =========================
   PERFIL PROFESIONAL PRO
========================= */

.page-perfil .perfil-content {
  max-width: 950px;
  margin: 0 auto;
  padding-top: 40px;
}

/* BLOQUES */
.page-perfil .perfil-block {
  background: rgba(255,255,255,0.02);

  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--accent);

  padding: 40px;
  border-radius: 14px;

  margin-bottom: 35px;

  transition: all 0.35s ease;
}

/* Hover elegante */
.page-perfil .perfil-block:hover {
  transform: translateY(-4px);

  background: rgba(255,255,255,0.03);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.25);
}

/* TITULOS */
.page-perfil .perfil-block h2 {
  text-align: left;
  margin-bottom: 28px;

  font-size: 30px;
  font-weight: 600;

  color: #fff;
}

/* Línea decorativa */
.page-perfil .perfil-block h2::after {
  margin: 12px 0 0;
}

/* TEXTOS */
.page-perfil .perfil-block p {
  color: var(--text-muted);

  font-size: 16px;
  line-height: 1.9;

  margin-bottom: 18px;

  max-width: 850px;
}

/* MÁS AIRE ENTRE LÍNEAS */
.page-perfil .perfil-block p:last-child {
  margin-bottom: 0;
}

.page-perfil .perfil-lista {
  padding-left: 20px;
}

.page-perfil .perfil-lista li {
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.8;
}
/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  .page-perfil .perfil-header.layout {
    flex-direction: column;
    text-align: center;
  }

  .page-perfil .perfil-info .bio {
    max-width: 100%;
  }
}

/* FIX CLICK */
.page-equipo .team-overlay {
  z-index: 2;
}
/* =========================
/* =========================
   MEDIOS - ESTILO FIRMA PRO
========================= */

/* GRID */
.page-medios .medios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  margin-top: 50px;
}

/* CARD */
.page-medios .media-card {
  display: grid;
  gap: 10px;
  padding-bottom: 30px;

  border-bottom: 1px solid rgba(255,255,255,0.08);

  position: relative;
  padding-left: 16px;

  transition: all 0.3s ease;
}

/* línea lateral pro */
.page-medios .media-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;

  width: 2px;
  height: 40px;

  background: var(--accent);
  opacity: 0.6;
}

/* hover sutil */
.page-medios .media-card:hover {
  transform: translateX(4px);
}

/* IMAGEN */
.page-medios .media-thumb {
  height: 200px;
  background: linear-gradient(
    135deg,
    #2a3a4a,
    #1c2733
  );
  border-radius: 6px;
}

/* CONTENIDO */
.page-medios .media-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* META (medio + fecha) */
.page-medios .media-meta {
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
}

/* TITULO */
.page-medios .media-card h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.3;
}

/* TEXTO */
.page-medios .media-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
}

/* LINK */
.page-medios .media-link {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  text-decoration: none;
  margin-top: 6px;
  width: fit-content;
  position: relative;
}

/* línea animada */
.page-medios .media-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.page-medios .media-link:hover::after {
  width: 100%;
}

/* HERO */
.page-medios .hero.small .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 700px;
}

.page-medios .hero.small h1 {
  margin: 0;
}

.page-medios .hero.small p {
  margin: 0;
  color: var(--text-muted);
}

/* línea decorativa */
.page-medios .hero.small h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin-top: 10px;
}

/* =========================
   WHATSAPP PRO
========================= */

.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right:35px;

  width: 55px;
  height: 55px;

  border-radius: 50%;
  background: #25D366;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  z-index: 999;

  opacity: 0;
  transform: translateY(20px);

  transition: all 0.4s ease;
}

/* WHATSAPP */
.whatsapp-float img {
  width: 26px;
  height: 26px;
}

/* Mostrar al hacer scroll */
.whatsapp-float.show {
  opacity: 1;
  transform: translateY(0);
}

/* Hover */
.whatsapp-float:hover {
  transform: scale(1.08);
}

/* =========================
   TOOLTIP
========================= */

.wa-tooltip {
  position: absolute;
  right: 65px;

  background: #111;
  color: #fff;

  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;

  opacity: 0;
  transform: translateX(10px);

  white-space: nowrap;

  transition: all 0.3s ease;
}

.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* =========================
   PULSE SUTIL
========================= */
@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float {
  animation: whatsappPulse 3s infinite;
  animation-delay: 2s;
}

.whatsapp-float:hover {
  animation: none;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }

  .wa-tooltip {
    display: none;
  }
}
/* DESKTOP */
@media (min-width: 768px) {

  .page-medios .media-card {
    grid-template-columns: 320px 1fr;
    gap: 35px;
    align-items: center;
  }

  .page-medios .media-thumb {
    height: 180px;
  }

}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .hero {
    padding: 80px 20px;
    text-align: center;
  }
  .hero-grid {
    justify-content: center;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 16px;
  }
}


/* FIX HERO IMAGE (manos.jpg) */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7); 
  z-index: 1;
}


/* ===================================================
   --- CARRUSEL DE MEDIOS ULTRA FIX (PC Y MÓVIL) --- 
   =================================================== */

.media-carousel-3d {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 30px;
  padding: 20px 0;
}

.media-track {
  display: flex;
  flex-direction: row; /* Fuerza alineación horizontal */
  flex-wrap: nowrap;   /* Evita saltos de línea */
  gap: 20px;
  width: max-content;
  animation: scroll-left 30s linear infinite;
}

/* Evita bloqueos de animación */
.media-track:hover {
  animation-play-state: paused;
}

/* Estructura fija de las tarjetas */
.card-flip {
  flex: 0 0 300px;
  width: 300px;
  height: 380px;
  position: relative;
  perspective: 1200px;
}

/* Control estricto de las imágenes en el carrusel */
.media-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* --- ANIMACIÓN PORCENTUAL ESTABLE (Netuy, GitHub y Local) --- */
@keyframes scroll-left {
  from { 
    transform: translateX(0); 
  }
  to { 
    transform: translateX(-50%); /* Mueve exactamente el bloque original */
  }
}

/* AJUSTES CELULARES (Evita el estiramiento vertical) */
@media (max-width: 768px) {
  .media-track {
    gap: 15px;
  }
  
  .card-flip {
    flex: 0 0 260px;
    width: 260px;
    height: 340px;
  }

  .media-thumb {
    height: 160px; /* Reduce la imagen proporcionalmente en pantallas chicas */
  }
}