/* MCOY Abogados — hoja de estilos principal */

:root {
  --navy: #1e3a54;
  --navy-dark: #14293c;
  --blue: #5d80a0;
  --blue-light: #eef3f7;
  --accent: #a8265f;
  --accent-dark: #841c4a;
  --gray-900: #22282e;
  --gray-700: #4a5560;
  --gray-500: #7c8894;
  --gray-200: #e4e8ec;
  --gray-100: #f5f7f9;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 4px 20px rgba(20, 41, 60, 0.08);
  --shadow-lg: 0 10px 40px rgba(20, 41, 60, 0.15);
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy); margin: 0 0 20px; line-height: 1.25; }
h2.section-title { font-size: 2.1rem; text-align: center; margin-bottom: 12px; }
p.section-subtitle { text-align: center; color: var(--gray-700); max-width: 720px; margin: 0 auto 48px; }
.text-center { text-align: center; }
.btn {
  display: inline-block; padding: 13px 32px; background: var(--accent); color: var(--white);
  border-radius: 999px; font-weight: 600; letter-spacing: .3px; border: none; cursor: pointer;
  transition: background .2s ease, transform .2s ease; font-size: .95rem;
}
.btn:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  box-shadow: 0 2px 12px rgba(20,41,60,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 44px; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a { color: var(--navy); font-weight: 600; font-size: .93rem; letter-spacing: .2px; }
.main-nav a:hover { color: var(--accent); }
.lang-switch { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; }
.lang-switch a { color: var(--gray-500); }
.lang-switch a.active { color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); display: block; }

/* ===== Slider / Hero ===== */
.hero-slider { position: relative; height: 78vh; min-height: 480px; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease; display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,41,60,.78) 0%, rgba(20,41,60,.45) 55%, rgba(20,41,60,.15) 100%);
}
.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 620px; }
.hero-content h1 { color: var(--white); font-size: 2.6rem; margin-bottom: 18px; }
.hero-content p { font-size: 1.15rem; margin-bottom: 32px; color: rgba(255,255,255,.9); }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--white); background: transparent; cursor: pointer; padding: 0; }
.hero-dots button.active { background: var(--white); }

/* ===== Nosotros ===== */
.nosotros { background: var(--gray-100); }
.nosotros-intro { max-width: 820px; margin: 0 auto 56px; text-align: center; color: var(--gray-700); font-size: 1.08rem; }
.nosotros-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-bottom: 40px; }
.nosotros-block { background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid var(--accent); }
.nosotros-block h3 { font-size: 1.15rem; margin-bottom: 12px; }
.nosotros-block p { color: var(--gray-700); margin: 0; font-size: .96rem; }
.nosotros-cierre { text-align: center; max-width: 760px; margin: 0 auto; font-size: 1.15rem; color: var(--navy); font-family: var(--font-serif); font-style: italic; }

/* ===== Historia ===== */
.historia { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.historia img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.historia-text p { color: var(--gray-700); }

/* ===== Tu Equipo ===== */
.tuequipo { background: var(--navy) url('/assets/img/fondotuequipo.svg') no-repeat center / cover; position: relative; }
.tuequipo .section-title, .tuequipo .lema { color: var(--white); }
.tuequipo .lema { text-align: center; letter-spacing: .5px; margin-bottom: 48px; color: rgba(255,255,255,.85); font-weight: 600; font-size: .92rem; text-transform: uppercase; }
.equipo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.equipo-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.equipo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.equipo-card .foto { aspect-ratio: 3/4; overflow: hidden; background: var(--gray-200); }
.equipo-card .foto img { width: 100%; height: 100%; object-fit: cover; }
.equipo-card .info { padding: 18px 16px; text-align: center; }
.equipo-card .info h3 { font-size: 1rem; margin: 0 0 6px; }
.equipo-card .info .cargo { color: var(--accent); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 12px; }
.equipo-card .info a.btn-mini { font-size: .82rem; font-weight: 600; }

/* ===== Perfil individual ===== */
.perfil-header { background: var(--gray-100); padding: 56px 0; }
.perfil-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; }
.perfil-grid img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.perfil-grid .cargo { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: .85rem; margin-bottom: 16px; }
.perfil-grid .email a { font-weight: 600; }
.perfil-body { padding: 56px 0; }
.perfil-body h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .4px; color: var(--accent); margin-top: 40px; }

/* ===== Áreas de práctica ===== */
.areaspractica { background: var(--gray-100); }
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.area-card { position: relative; border-radius: var(--radius); overflow: hidden; height: 320px; box-shadow: var(--shadow); }
.area-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.area-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,41,60,0) 30%, rgba(20,41,60,.92) 100%); }
.area-card .area-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 2; color: var(--white); }
.area-card h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 8px; }
.area-card p { font-size: .85rem; color: rgba(255,255,255,.85); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.area-card a.link { color: var(--white); font-weight: 700; font-size: .82rem; }
.area-subpages { margin-top: 20px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.area-subpages a { background: var(--white); border: 1px solid var(--gray-200); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .85rem; color: var(--navy); }
.area-subpages a:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Premios ===== */
.premios-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; align-items: stretch; margin-bottom: 40px; }
.premio-item { text-align: center; padding: 20px; background: var(--gray-100); border-radius: var(--radius); }
.premio-item img { height: 70px; object-fit: contain; margin: 0 auto 14px; }
.premio-item p { font-size: .82rem; color: var(--gray-700); margin: 0; }

/* ===== Testimonios ===== */
.loquedicen { background: var(--navy-dark); }
.loquedicen .section-title { color: var(--white); }
.testimonios-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testimonio-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 28px; color: rgba(255,255,255,.9); }
.testimonio-card p.quote { font-style: italic; font-size: .95rem; margin-bottom: 18px; }
.testimonio-card .autor { font-weight: 700; color: var(--white); }
.testimonio-card .cargo { font-size: .82rem; color: rgba(255,255,255,.6); }

/* ===== Contacto ===== */
.contacto-oficinas { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 40px; }
.oficina-card { background: var(--gray-100); border-radius: var(--radius); padding: 32px; cursor: pointer; border: 2px solid transparent; transition: border-color .2s ease; }
.oficina-card:hover, .oficina-card.active { border-color: var(--accent); }
.oficina-card h3 { margin-bottom: 10px; }
.oficina-card .direccion { color: var(--gray-700); margin-bottom: 10px; }
.oficina-card .telefono { font-weight: 700; color: var(--navy); }
.oficina-card .ver-mapa { display: inline-block; margin-top: 14px; font-weight: 700; font-size: .85rem; }
.mapa-wrap { display: none; margin-bottom: 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mapa-wrap.visible { display: block; }
.mapa-wrap iframe { width: 100%; height: 380px; border: 0; }
.correo-general { text-align: center; margin-bottom: 48px; font-size: 1.05rem; }
.correo-general a { font-weight: 700; }
.contacto-form { max-width: 640px; margin: 0 auto; background: var(--gray-100); padding: 40px; border-radius: var(--radius); }
.contacto-form .field { margin-bottom: 20px; }
.contacto-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9rem; color: var(--navy); }
.contacto-form input, .contacto-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius);
  font-family: var(--font); font-size: .95rem; background: var(--white);
}
.contacto-form textarea { min-height: 130px; resize: vertical; }
.contacto-form .hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-msg { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: .9rem; }
.form-msg.ok { background: #e5f6ea; color: #1c6b34; }
.form-msg.error { background: #fbe7e9; color: #a12a35; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.7); padding: 40px 0; text-align: center; }
.site-footer .footer-logo { height: 32px; margin: 0 auto 16px; filter: brightness(0) invert(1); opacity: .85; }
.site-footer p { margin: 4px 0; font-size: .85rem; }
.site-footer a { color: rgba(255,255,255,.85); }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .nosotros-grid, .equipo-grid, .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .premios-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonios-track { grid-template-columns: repeat(2, 1fr); }
  .historia { grid-template-columns: 1fr; }
  .perfil-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: 56px 0; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 76px; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: flex-start; padding: 20px 24px; box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 16px; width: 100%; }
  .hero-content h1 { font-size: 1.8rem; }
  .nosotros-grid, .equipo-grid, .areas-grid, .premios-grid, .testimonios-track, .contacto-oficinas { grid-template-columns: 1fr; }
  h2.section-title { font-size: 1.6rem; }
  .contacto-form { padding: 24px; }
}
