/* 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: #d5b36b; /* 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 {
  background-color: white;
  color: black;
  padding: 10px 50px;
  display: flex;
  justify-content: center; /* Centra el logo y el menú */
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}
header .logo img {
  width: 180px;
  height: 30px;
padding:0;
	margin: 0;
}
nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: black;
  text-decoration: none;
  font-weight: 600;
}
nav ul li a.active {
  color: black; /* Color dorado para el enlace activo */
  text-decoration: none; /* Eliminamos el subrayado */
  padding: 5px 10px; /* Espaciado dentro del cuadro */
 background-color: #d5b36b; /* Borde de color dorado */
  transition: all 0.3s ease; /* Transición suave */
}

nav ul li a.active:hover {
  background-color: rgba(213, 179, 107, 0.1); /* Fondo suave cuando pasa el mouse */
  border-color: #f2b12a; /* Cambio de borde al pasar el mouse */
}


.hero-imagen {
  width: 100%;
  height: 300px;
  background-image: url('images/abogado.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center; /* Texto a la izquierda */
  padding-left: 8%;
  position: relative;
}

/* Oscurecer la imagen para hacer legible el texto */
.hero-imagen::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  color: #fff;
}

.hero-content h2 {
  font-size: 42px;
  margin: 8px 0;
  line-height: 1.2;
  font-weight: 700;
}

.hero-content p {
  margin: 20px 0;
  font-size: 18px;
  line-height: 1.6;
}

.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: #d5b36b;
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: 0.3s ease;
}

.cta-btn:hover {
  background-color: #b99757;
  transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */

@media(max-width: 768px) {
  .hero-imagen {
    height: 60vh;
    padding-left: 5%;
    background-attachment: scroll;
  }

  .hero-content h2 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }
}


.servicios-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.servicio-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    text-align: center;
    padding-bottom: 25px;
    position: relative;
}

.servicio-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.icono-servicio {
    width: 60px;
    height: 60px;
    background: #00274d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: -30px auto 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.servicio-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.servicio-card p {
    font-size: 15px;
    color: #444;
    padding: 0 20px;
    line-height: 1.5;
}

.btn-detalles {
    color: #003366;
    font-weight: bold;
    text-decoration: none;
    margin-top: 15px;
    display: inline-block;
    transition: 0.3s;
}

.btn-detalles:hover {
    color: #001a33;
    text-decoration: underline;
}


.cta-section {
    background: #082042; /* azul profundo */
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
    margin-top: 60px;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 17px;
    margin-bottom: 25px;
    color: #d9e1f2;
}

.cupos {
    color: #f0a333; /* dorado */
    font-weight: 600;
}

.cta-btn {
    padding: 14px 32px;
    background: #f0a333;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: 0.3s ease;
}

.cta-btn:hover {
    background: #cf8927;
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}


.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: 30px;
    height: 30px;
    margin-left: 6px;
    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-color: #003366;
  color: white;
  padding: 40px 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  max-width: 200px;
  height: auto;
}

.footer-text {
  text-align: right;
}

.footer-text h4 {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: bold;
}

.footer-text p {
  font-size: 16px;
  margin-bottom: 15px;
}

.footer-text .cta-btn {
  background-color: #F2B12A;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 5px;
  display: inline-block;
}

.footer-links {
  text-align: center;
  margin-top: 20px;
}

.footer-links a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-weight: 600;
}