/* RESET */

.page {
    width: 100%;            /* La página ocupa el 100% del ancho disponible */
    max-width: 1920px;       /* El ancho máximo de la página */
    margin: 0 auto;          /* Centrar la página horizontalmente */
    padding: 0px;           /* Espacio interno */
    background-color: #fff;  /* Color de fondo blanco */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Sombra suave para dar relieve */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'EB Garamond', serif;
  color: #fff;
  line-height: 1.6;
  background-color: #f8f9fa;
  
}

/* NAVBAR */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5); /* Transparente */
  backdrop-filter: blur(6px);
}

nav .logo {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 75px;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
  font-size:20px;
}

nav ul li a:hover,
nav ul li a.active {
  color: #d4af37; /* Dorado */
}
.logo img {
  height: 50px; /* Ajusta según tu diseño */
  width: auto;
}

/* === FIX: Evitar scroll lateral === */
html, body {
  overflow-x: hidden;
}

/* === Menú hamburguesa === */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* Animación de la X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === RESPONSIVE NAV === */
@media (max-width: 992px) {
  nav {
    padding: 15px 20px; /* menos padding */
  }

  nav ul {
    gap: 30px; /* menos separación */
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav ul {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: left 0.3s ease;
    margin: 0;
    padding: 0;
  }

  nav ul.active {
    left: 0;
  }

  nav ul li a {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  nav .logo img {
    height: 35px;
    max-width: 140px;
  }

  nav ul li a {
    font-size: 1.2rem;
  }
}


/* HERO */
.def-hero {
  position: relative;
  background: url("images/Banner principal (Defensa Médico Legal).webp") no-repeat center center/cover;
  height: 80vh; /* altura pantalla completa */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'EB Garamond', serif;
  color: #fff;
}

.def-hero-overlay {
  background: rgba(0, 0, 0, 0.4); /* capa oscura encima */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.def-hero-content h1 {
  font-size: 6rem;
  font-weight: 400;
}

.def-hero-content h1 strong {
  font-weight: 700;
}

.def-hero-content h2 {
  font-size: 6rem;
  font-weight: 700;
  color: #FED870; /* dorado/amarillo */
  margin: 15px 0;
  letter-spacing: 3px;
}

.def-subtitulo {
  font-size: 2.3rem;
  background: rgba(0,0,0,0.7);
  display: inline-block;
  padding: 8px 20px;
  margin-top: 15px;
  border-radius: 5px;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .def-hero-content h1 {
    font-size: 2rem;
  }

  .def-hero-content h2 {
    font-size: 2.2rem;
  }

  .def-subtitulo {
    font-size: 1rem;
  }
}


/* SECCION_1 */
.def-section {
  background: #fff;
  padding: 60px 15%;
  text-align: center;
  color: #1a2b49;
}

.def-title {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 25px;
  color: #1a2b49;
}

.def-title .def-highlight {
  color: #AA875E; /* Dorado */
  font-weight: 700;
}

.def-text {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 40px;
  color: #1a2b49;
}

.def-text strong {
  font-weight: 700;
  color: #1a2b49;
}

.def-subtitle {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a2b49;
  position: relative;
  display: inline-block;
  max-width: 1000px;
  line-height: 1.5;
}

.def-subtitle::before,
.def-subtitle::after {
  content: "";
  position: absolute;
  top: 70%;
  width: 290px;
  height: 3px;
  background: #1a2b49;
}

.def-subtitle::before {
  left: 6px;
}

.def-subtitle::after {
  right: 6px;
}

/* Responsivo */
@media (max-width: 768px) {
  .def-section {
    padding: 40px 8%;
  }

  .def-title {
    font-size: 1.4rem;
  }

  .def-subtitle {
    font-size: 1rem;
    display: block;
  }

  .def-subtitle::before,
  .def-subtitle::after {
    display: none;
  }
}

/* 📱 Tablets */
@media (max-width: 1024px) {
  .def-section {
    padding: 50px 10%;
  }

  .def-title {
    font-size: 1.8rem;
  }

  .def-text {
    font-size: 1.4rem;
    margin-bottom: 30px;
  }

  .def-subtitle {
    font-size: 1.2rem;
  }

  .def-subtitle::before,
  .def-subtitle::after {
    width: 120px;
  }
}

/* 📱 Móviles */
@media (max-width: 768px) {
  .def-section {
    padding: 40px 8%;
  }

  .def-title {
    font-size: 1.6rem;
  }

  .def-text {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  .def-subtitle {
    font-size: 1rem;
    display: block;
    padding: 0;
  }

  .def-subtitle::before,
  .def-subtitle::after {
    display: none; /* Se eliminan líneas laterales en móvil */
  }
}

/* 📱 Extra pequeños (≤480px) */
@media (max-width: 480px) {
  .def-section {
    padding: 30px 6%;
  }

  .def-title {
    font-size: 1.4rem;
  }

  .def-text {
    font-size: 1rem;
  }

  .def-subtitle {
    font-size: 0.9rem;
  }
}

/* SECCION_2 */
.defensa-section {
  background-color: #f8f8f8;
  padding: 50px 20px;
  text-align: center;
  max-width:960px;
  margin:0 auto;
  color: #17344F;
}

.defensa-container h2 {
  font-size: 28px;
  font-weight: normal;
  margin-bottom: 10px;
  color: #fff;
  background: #17344F;
  padding: 20px;
}



.subtitulo {
  font-size: 28px;
  margin-bottom: 40px;
  color: #555;
}

.defensa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Siempre 2 columnas */
  gap: 30px;
  justify-content: center;
  margin-bottom: 40px;
}

.defensa-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.defensa-card:hover {
  transform: translateY(-14px);
}

.defensa-footer{
	font-size: 24px;
	color: #17344F;
}

/* Imagen con franja dorada en la parte inferior */
.defensa-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  position: relative;
  border-bottom: 10px solid #AA875E; /* 🔹 Franja dorada sobre la imagen */
  box-shadow: 0 4px 10px rgba(170,135,94,0.4); /* Sombra inicial */
  animation: goldPulse 3s infinite ease-in-out;
}

@keyframes goldPulse {
  0% {
    border-bottom-color: #AA875E;
    box-shadow: 0 4px 10px rgba(170,135,94,0.2);
  }
  50% {
    border-bottom-color: #d4af37; /* Más brillante */
    box-shadow: 0 8px 18px rgba(212,175,55,0.5);
  }
  100% {
    border-bottom-color: #AA875E;
    box-shadow: 0 4px 10px rgba(170,135,94,0.4);
  }
}


/* Texto debajo */
.defensa-card p {
  padding: 15px;
  font-size: 26px;
  color: #17344F;
  margin: 0;
  transition: color 0.3s ease;
}

/* Animación opcional: cambia el color del texto en hover */
.defensa-card:hover p {
  color: #AA875E;
}

/* 📱 Responsivo */
/* Tablet */
@media (max-width: 1024px) {
  .defensa-container h2 {
    font-size: 24px;
    padding: 15px;
  }

  .subtitulo {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .defensa-grid {
    gap: 20px;
  }

  .defensa-card img {
    height: 240px;
  }

  .defensa-card p {
    font-size: 20px;
  }
}

/* Móvil grande */
@media (max-width: 768px) {
  .defensa-section {
    padding: 40px 15px;
  }

  .defensa-grid {
    grid-template-columns: 1fr; /* Pasa a 1 columna */
    gap: 25px;
  }

  .defensa-container h2 {
    font-size: 22px;
  }

  .subtitulo {
    font-size: 20px;
  }

  .defensa-card img {
    height: 220px;
  }

  .defensa-card p {
    font-size: 18px;
  }
}

/* Móvil pequeño */
@media (max-width: 480px) {
  .defensa-section {
    padding: 30px 10px;
  }

  .defensa-container h2 {
    font-size: 20px;
    padding: 12px;
  }

  .subtitulo {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .defensa-card img {
    height: 180px;
  }

  .defensa-card p {
    font-size: 16px;
    padding: 12px;
  }

  .defensa-footer {
    font-size: 18px;
  }
}


/* SECCION_3 */
.legal-services {
  color: #fff;
}

.section-title {
  text-align: center;
  font-size: 36px;
  color: #1f3653;
  margin: 40px 0 20px 0;
  font-weight: 700;
  background: #fff; /* Fondo blanco */
  padding: 20px;
}

.section-title span {
  font-weight: 400;
}

.content-box {
  background-color: #22415D; /* Fondo azul oscuro */
  padding: 40px 20px;
}

.subtitle-box {
  display: inline-block;
  background: #1c1c1c;
  color: #fff;
  padding: 10px 20px;
  position: relative;
  font-size: 34px;
  margin-bottom: 30px;
  margin-left: 40px;
}

/* Triángulo derecho */
.subtitle-box::after {
  content: "";
  position: absolute;
  right: -45px;
  top: 0;
  border-top: 83px solid transparent;
  border-bottom: 0 solid transparent;
  border-left: 46px solid #AA875E;
}

/* Triángulo izquierdo */
.subtitle-box::before {
  content: "";
  position: absolute;
  left: -45px;
  top: 0;
  border-top: 0px solid transparent;
  border-bottom: 83px solid transparent;
  border-right: 46px solid #AA875E;
}


.content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.left {
  flex: 1;
}

.left p {
  font-size: 24px;
  margin-bottom: 20px;
  line-height: 1.5;
  color: #fff;
}



.image-box img {
  max-width: 100%;
  display: block;
}

.right {
  flex: 1;
  border-left: 6px solid #AA875E;
  padding-left: 65px;
}

.right h4 {
  color: #f3c14b;
  margin-bottom: 15px;
  font-size: 34px;
}

.right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.right ul li {
  margin-bottom: 12px;
  font-size: 26px;
  position: relative;
  padding-left: 20px;
}

.right ul li::before {
  content: "•";
  color: #f3c14b; /* Amarillo dorado */
  font-size: 34px;
  position: absolute;
  left: 0;
  top: -2px;
}

/* 🔹 ANIMACIONES SCROLL */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.scroll-animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* Variantes */
.fade-down { transform: translateY(-30px); }
.fade-up { transform: translateY(30px); }
.slide-left { transform: translateX(-50px); }
.slide-right { transform: translateX(50px); }
.zoom-in { transform: scale(0.8); }

/* 📱 RESPONSIVO */
/* Tablet */
@media (max-width: 1024px) {
  .section-title {
    font-size: 30px;
    padding: 15px;
  }

  .subtitle-box {
    font-size: 28px;
    margin-left: 20px;
  }

  .subtitle-box::before,
  .subtitle-box::after {
    border-top-width: 65px;
    border-bottom-width: 65px;
  }

  .left p {
    font-size: 20px;
  }

  .right h4 {
    font-size: 28px;
  }

  .right ul li {
    font-size: 22px;
  }
}

/* Móvil grande */
@media (max-width: 768px) {
  .content {
    flex-direction: column;
    gap: 30px;
  }

  .section-title {
    font-size: 26px;
  }

  .subtitle-box {
    font-size: 22px;
    margin-left: 0;
  }

  .subtitle-box::before,
  .subtitle-box::after {
    display: none; /* Se eliminan los triángulos en móvil */
  }

  .left p {
    font-size: 18px;
  }

  .right {
    border-left: none;
    padding-left: 0;
    border-top: 4px solid #AA875E;
    padding-top: 20px;
  }

  .right h4 {
    font-size: 24px;
  }

  .right ul li {
    font-size: 18px;
  }
}

/* Móvil pequeño */
@media (max-width: 480px) {
  .section-title {
    font-size: 22px;
    padding: 12px;
  }

  .subtitle-box {
    font-size: 18px;
    padding: 8px 15px;
  }

  .left p {
    font-size: 16px;
  }

  .right h4 {
    font-size: 20px;
  }

  .right ul li {
    font-size: 16px;
  }
}

/* ===== ESTILOS SECCIÓN DEFENSA LEG ===== */
.defensa-leg {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 28px;
  color: #1b3342;
}

.defensa-grid-leg {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  gap: 24px;
  align-items: start;
}

/* Texto */
.defensa-left-leg h3 {
  font-size: 24px;
  margin-bottom: 26px;
  font-weight: 600;
  line-height: 1.4;
}

.beneficios-leg {
  list-style: none;
  padding: 0;
  margin: 0;
}

.beneficios-leg li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 18px;
  font-size: 23px;
  line-height: 1.5;
  color: #25404f;
}

.beneficios-leg li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  background: #c8a36b; /* Dorado */
  border-radius: 50%;
}

/* Divisor */
.defensa-divider-leg {
  width: 8px;
  height: 345px;
  background: linear-gradient(#c49b69, #a87740);
  margin-top: 50px;
  justify-self: center;
}

/* Imagen + título */
.defensa-right-leg {
  position: relative;
  text-align: center;
}

/* Ribbon */
.ribbon-leg {
  position: absolute;
  top: -36px;
  right: -20px;
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
  padding: 12px 26px;
  font-size: 30px;
}

/* Triángulo derecho */
.ribbon-leg::after {
  content: "";
  position: absolute;
  right: -45px;
  top: 0;
  border-top: 72px solid transparent;
  border-bottom: 0 solid transparent;
  border-left: 46px solid #AA875E;
}

/* Triángulo izquierdo */
.ribbon-leg::before {
  content: "";
  position: absolute;
  left: -45px;
  top: 0;
  border-top: 0px solid transparent;
  border-bottom: 72px solid transparent;
  border-right: 46px solid #AA875E;
}

.image-wrap-leg img {
  width: 650px;
  height: auto;
  display: block;
  margin-top: 60px;
}

/* Texto inferior */
.defensa-caption-leg {
  margin-top: 22px;
  font-size: 24px;
  line-height: 1.5;
  color: #1b3342;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.defensa-caption-leg strong {
  font-weight: 700;
  color: #122432;
}

/* 📱 RESPONSIVO */
/* Tablet */
@media (max-width: 1024px) {
  .defensa-grid-leg {
    grid-template-columns: 1fr; /* Se apila en 1 columna */
    gap: 40px;
  }

  .defensa-divider-leg {
    display: none; /* Se elimina divisor vertical */
  }

  .defensa-left-leg h3 {
    font-size: 22px;
  }

  .beneficios-leg li {
    font-size: 20px;
  }

  .ribbon-leg {
    font-size: 24px;
    padding: 10px 20px;
  }

  .image-wrap-leg img {
    width: 100%;
    max-width: 520px;
    margin: 40px auto 0;
  }

  .defensa-caption-leg {
    font-size: 20px;
  }
}

/* Móvil grande */
@media (max-width: 768px) {
  .defensa-leg {
    padding: 30px 20px;
    margin: 40px auto;
  }

  .defensa-left-leg h3 {
    font-size: 20px;
  }

  .beneficios-leg li {
    font-size: 18px;
  }

  .ribbon-leg {
    position: static; /* Se coloca arriba sin absolute */
    display: inline-block;
    margin-bottom: 20px;
    font-size: 20px;
  }

  .ribbon-leg::before,
  .ribbon-leg::after {
    display: none; /* Se eliminan triángulos */
  }

  .image-wrap-leg img {
    width: 100%;
    max-width: 420px;
  }

  .defensa-caption-leg {
    font-size: 18px;
  }
}

/* Móvil pequeño */
@media (max-width: 480px) {
  .defensa-leg {
    padding: 20px 15px;
  }

  .defensa-left-leg h3 {
    font-size: 18px;
  }

  .beneficios-leg li {
    font-size: 16px;
  }

  .ribbon-leg {
    font-size: 18px;
    padding: 8px 15px;
  }

  .image-wrap-leg img {
    max-width: 100%;
    margin-top: 20px;
  }

  .defensa-caption-leg {
    font-size: 16px;
  }
}


