/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
	  
  background-color: #f8f9fa;
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Centrado de los contenedores */
.container {
  width: 100%;
  max-width: 1200px; /* Ajusta este valor a lo que necesites */
  margin: 0 auto; /* Esto centra el contenido */
  padding: 20px;
}
/* Header dorado con WhatsApp */
.header-dorado {
  background-color: #1c335f; /* Color dorado */
  color: white;
  padding: 8px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 10;
}
.header-dorado-container {
  width: 100%;
  max-width: 1400px;
  margin: auto;
  display: flex;
  justify-content: flex-end;;
  align-items: center;
  gap: 35px;
  color:#665236;
}

.header-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color:#665236;
}

.header-item i {
  font-size: 16px;
  color:#665236;
}

.header-item a {
  text-decoration: none;
  font-weight: 600;
  color:#665236;
}

.header-item.redes a {
  margin-left: 10px;
  font-size: 16px;
  transition: 0.3s ease;
  color:#665236;
}

.header-item.redes a:hover {
  transform: scale(1.2);
}

/* Header */
.header {
    position: fixed;
    top: 45px; /* altura del header dorado */
    width: 100%;
    left: 0;
    z-index: 9999;
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}


.header-container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columnas iguales */
    align-items: center;
}

.logo {
    display: flex;
    justify-content: flex-start; /* izquierda */
}

.logo img {
    height: 80px;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end; /* derecha */
    gap: 40px; /* espaciamiento igual entre botones */
    margin: 0;
    padding: 0;
}

.nav ul li a {
    text-decoration: none;
    font-weight: 600;
    color: #333;
    transition: 0.3s;
}

.nav ul li a:hover {
    color: #007bff;
}

/* Hero */ 
.hero { 
    margin-top: 50px;
	/*background: url('images/abogado.png') no-repeat center center; */ 
	background-size: cover; 
	height: 850px; 
	width: 100%; 
	display: flex; 
	justify-content: center; /* Centramos el contenido horizontalmente */ 
	align-items: center; /* Centramos el contenido verticalmente */ 
	text-align: left;
	padding-left: 480px;
	color: white; 
	position: relative; /* Necesario para que el z-index funcione */ 
	overflow: hidden; 
	background-position: center -50px; 
	transform: scaleX(-1); 
	z-index: 1; /* Establecer z-index bajo para que los paneles queden encima */ 
} 
.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0; /* Videos ocultos inicialmente */
  transition: opacity 1s ease-in-out;
}

.hero video.active {
  opacity: 1; /* Video visible cuando tiene la clase 'active' */
}

.hero-videos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.75) 0%,      /* Oscuro sólido */
    rgba(0, 0, 0, 0.70) 25%,     /* Mantiene oscuridad */
    rgba(0, 0, 0, 0.55) 50%,     /* Empieza a suavizar */
    rgba(0, 0, 0, 0.35) 70%,     /* Este es el 70% oscuro */
    rgba(0, 0, 0, 0.00) 100%     /* Último 30% transparente */
  );
  z-index: 2;
}

/* Contenido dentro del hero */ 
.hero-content { 
	max-width: 800px; /* Limita el tamaño del contenido */ 
	width: 100%; /* Asegura que el contenido tenga el 100% del ancho disponible */ 
	padding-right: 180px; 
	text-align: left; /* Asegura que el texto y el botón estén centrados */ 
	transform: scaleX(-1); 
	z-index: 3;
} .hero h2 { 
	font-size: 36px; 
	font-family: "Open Sans", sans-serif; 
	margin-bottom: 20px; 
	font-size: 2.5rem; 
	font-weight: bold; 
} .hero h2.title{ 
	font-size: 36px; 
	font-family: "Open Sans", sans-serif; 
	margin-bottom: 20px; 
	font-size: 2.5rem; 
	font-weight: bold; 
	color: white; 
} .hero p { 
	font-size: 18px; 
	line-height: 1.6; 
	margin-bottom: 20px; 
} .cta-btn { 
	background-color: #d5b36b; 
	color: white; 
	padding: 20px 40px;
	text-decoration: none; 
	font-weight: 700; 
	border-radius: 5px; 
	display: inline-block; 
	max-width: 250px; 
	width: 100%; 
	text-align: center; 
	margin-top: 20px; /* Espacio superior para separar el botón del texto */ 
} .cta-btn:hover { 
	background-color: #d5b36b; 
} 
/* Responsividad */ 
@media (max-width: 768px) { 
	.hero { 
		height: 350px; /* Ajustamos la altura para pantallas más pequeñas */ 
	} .hero-content { 
		padding: 15px; /* Reducimos el padding */ 
	} .hero h2 { 
		font-size: 2rem; 
	} .cta-btn {
		padding: 15px 30px; 
		font-size: 1rem; 
	} 
} @media (max-width: 480px) { 
	.hero { 
		height: 300px; /* Más pequeña para pantallas muy pequeñas */ 
	} .hero h2 { 
		font-size: 1.5rem;
	} .cta-btn { 
		padding: 10px 20px; 
	} 
}
/* Presentacion */
/* ==========================
   ÁREAS ESPECIALIZADAS
=========================== */
.areas-especializadas {
    background: #f8f9fc;
    padding: 90px 20px;
    margin-top: 40px;
}

.ae-container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.ae-title {
    font-size: 36px;
    font-weight: 800;
    color: #1c335f;
}

.ae-subtitle {
    font-size: 18px;
    color: #555;
    max-width: 780px;
    margin: 15px auto 50px;
    line-height: 1.6;
}

.ae-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.ae-item {
    background: white;
    padding: 35px 25px;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transition: .3s;
}

.ae-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.14);
}

.ae-item i {
    font-size: 48px;
    color: #004AAD;
    margin-bottom: 15px;
}

.ae-item h4 {
    font-size: 22px;
    font-weight: 800;
    color: #1c335f;
    margin-bottom: 12px;
}

.ae-item p {
    font-size: 15px;
    color: #555;
    line-height: 1.55;
    margin-bottom: 20px;
}

.ae-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #d5b36b; /* dorado */
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: .3s;
}

.ae-btn:hover {
    background: #c39a4f;
}

/* Responsive */
@media (max-width: 900px) {
    .ae-items {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .ae-items {
        grid-template-columns: 1fr;
    }
}


/* Sección de Nuestros Servicios */



.servicios-bloque {
    background: #1c335f; /* Azul elegante */
    padding: 90px 20px;
    margin-top: 0px;
}

.sb-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

/* Texto izquierda */
.sb-info h2 {
    color: white;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.sb-info p {
    color: #dbe7f7;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.sb-btn {
    display: inline-block;
    background: #d5b36b;
    color: white;
    padding: 14px 28px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.sb-btn:hover {
    background: #bf9a57;
}

/* Tarjetas */
/* TARJETAS — 4 arriba + 3 abajo */
.sb-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.sb-card {
    background: white;
    padding: 35px 25px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: .25s ease;
}

.sb-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Centrar automáticamente la fila de abajo cuando hay menos tarjetas */
.sb-cards > *:nth-child(n+5) {
    justify-self: center;
    width: 80%; /* ajusta para que no queden tan anchas */
}

/* Íconos */
.sb-card i {
    font-size: 48px;
    color: #004AAD;
    margin-bottom: 18px;
}

.sb-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1c335f;
}

/* Responsive */
@media (max-width: 992px) {
    .sb-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .sb-cards > *:nth-child(n+5) {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .sb-cards {
        grid-template-columns: 1fr;
    }
}


/* ==========================
   SECCIÓN POR QUÉ ELEGIRNOS
   ========================== */

.porque-elegirnos-index {
    background: #f7f9fc;
    padding: 80px 20px;
}

.pe-container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.pe-title-index {
    font-size: 36px;
    font-weight: 800;
    color: #1c335f;
    text-transform: uppercase;
}

.pe-title-index::after {
    content: "";
    width: 80px;
    height: 4px;
    background: #d5b36b;
    display: block;
    margin: 12px auto 30px;
    border-radius: 6px;
}

.pe-sub-index {
    font-size: 18px;
    color: #444;
    max-width: 700px;
    margin: auto;
    margin-bottom: 50px;
    line-height: 1.6;
}

.pe-items-index {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}

.pe-item-index {
    background: white;
    padding: 30px 20px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: .3s;
}

.pe-item-index:hover {
    transform: translateY(-6px);
}

.pe-item-index i {
    font-size: 38px;
    color: #1c335f;
    margin-bottom: 15px;
}

.pe-item-index h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1c335f;
    margin-bottom: 10px;
}

.pe-item-index p {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .pe-items-index {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .pe-items-index {
        grid-template-columns: 1fr;
    }
}
/* ==========================
   CASOS DE ÉXITO
   ========================== */

.casos-exito {
    padding: 80px 20px;
    background: #1c335f;
    text-align: center;
    color: white;
}

.ce-title {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 50px;
}

.ce-grid {
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}

.ce-item {
    background: rgba(255,255,255,0.1);
    padding: 40px 20px;
    border-radius: 14px;
    backdrop-filter: blur(4px);
    transition: .3s;
}

.ce-item:hover {
    transform: translateY(-6px);
}

.ce-num {
    font-size: 42px;
    font-weight: 800;
    color: #d5b36b;
    display: block;
    margin-bottom: 12px;
}

.ce-item p {
    font-size: 15px;
    color: #e7e7e7;
}

@media (max-width: 900px) {
    .ce-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .ce-grid {
        grid-template-columns: 1fr;
    }
}




/* TARJETAS */
.card {
  width: 240px; /* Hacer las tarjetas un poco más pequeñas */
  height: auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 25px 20px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: none;
  transition: .3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

/* BARRA DECORATIVA SUPERIOR */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: #d5b36b; /* dorado */
}

/* ICONO */
.card i {
  font-size: 25px;
  color: #d5b36b;
  margin-bottom: 20px;
}

/* TÍTULO */
.card h4 {
  font-size: 18px;
  font-weight: 800;
  color: #2d3650; /* azul elegante */
  margin-bottom: 12px;
  line-height: 1.2;
}

/* TEXTO */
.card p {
  font-size: 12px;
  color: #555;
  line-height: 1.55;
  margin-bottom: 20px;
}

/* ENLACE */
.card a {
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
  text-decoration: none;
  color: #2d3650;
  transition: .2s ease;
}

.card a:hover {
  color: #d5b36b;
}

/* EFECTO HOVER */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}


/* Estilo para la nueva sección CTA */
.cta-section {
  background-color: #003366;  /* Fondo azul oscuro */
  color: white;
  text-align: center;
  padding: 60px 20px;
  margin-top: 60px; /* Espacio encima de la sección */
}

.cta-section h2 {
  font-size: 36px;
  font-weight: bold;
  color: white;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 18px;
  color: #dbe3ec;  /* Color de texto más suave */
  margin-bottom: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.cta-btn {
  background-color: #f2b12a;  /* Color amarillo para el botón */
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 5px;
  display: inline-block;
  text-transform: uppercase;
}

.cta-btn:hover {
  background-color: #d58a00;  /* Fondo amarillo oscuro cuando pasa el mouse */
}

.testimonios {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fc;
}

.testimonios h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #1a1a1a;
    font-weight: 700;
}

.testimonios-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonio-card {
    width: 350px;
    background: #f5f5f7;
    padding: 60px 25px 25px; /* Aumentamos padding top */
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    transition: transform .25s;
}

.testimonio-card:hover {
    transform: translateY(-6px);
}

.google-icon {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: white;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Contenedor de la foto con posición relativa para colocar el logo encima */
.perfil {
    position: absolute;
    top: -35px;  /* Sube la foto */
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 5px;
    border-radius: 50%;
}

.foto-perfil {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}


.testimonio-card h3 {
    margin-top: 10px;
    font-size: 20px;
    color: black;
    font-weight: 600;
}

.fecha {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #777;
}

.rating {
    font-size: 18px;
    color: #f5b300;
    margin: 10px 0;
}

.verificado img {
    width: 20px;
    height: 20px;
    margin-left: 0px;
    vertical-align: middle;
    padding-bottom: 5px;
    cursor: pointer;
}

.texto {
    height: 80px;
    overflow: hidden;
    font-size: 15px;
    color: #444;
    transition: .3s;
}

.texto.expandido {
    height: auto;
}

.leer-mas {
    margin-top: 10px;
    background: none;
    border: none;
    color: #9e9e9e;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}
.estrella-icon {
    width: 18px;
    height: 18px;
    margin-right: 2px;
}


/* FOOTER */
.footer {
  background: #062044;
  padding: 60px 20px 20px;
  color: #dbe7f7;
  font-family: 'Montserrat', sans-serif;
}

.footer-container {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: 260px 1fr 1fr 350px;
  gap: 50px;
  align-items: flex-start;
}

/* Logo */
.footer-logo {
  width: 240px;
  margin-bottom: 20px;
}

/* Redes */
.footer-social a {
  margin-right: 15px;
  font-size: 18px;
  color: white;
  transition: 0.3s;
}

.footer-social a:hover {
  color: #f2b632;
}

/* Títulos */
.footer-col h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}

/* Listas */
.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin: 8px 0;
}

.footer-col ul li a {
  color: #b8c7db;
  text-decoration: none;
  transition: 0.3s;
  font-size: 15px;
}

.footer-col ul li a:hover {
  color: #f2b632;
}

/* Botón */
.footer-btn {
  display: inline-block;
  background: #f2b632;
  color: #062044;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 20px;
  transition: 0.3s;
}

.footer-btn:hover {
  background: #ffcc56;
}

/* Caja contacto */
.footer-contact-box {
  background: #0a2d57;
  padding: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-contact-box i {
  font-size: 28px;
  color: #f2b632;
  margin-right: 10px;
}

.footer-contact-box .phone {
  font-size: 17px;
  font-weight: 700;
  color: white;
}

/* Email & dirección */
.footer-email, .footer-address {
  margin: 8px 0;
  font-size: 15px;
}

.footer-email i, .footer-address i {
  margin-right: 8px;
  color: #f2b632;
}

/* Abajo */
.footer-bottom {
  margin-top: 40px;
  text-align: center;
  padding-top: 15px;
  border-top: 1px solid #123a66;
}

.footer-bottom a {
  margin: 0 10px;
  color: #dbe7f7;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #f2b632;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-contact-box {
    justify-content: center;
  }
}


