:root {
  --navy: #1a2a40;
  --gold: #c9a227;
  --white: #ffffff;
  --text: #333333;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background-color: #faf9f8;
  line-height: 1.6;

header

{ 

background-image: url('images/Playa.jpg'); 
background-size: cover; 
background-position: center; 
background-repeat: no-repeat; 
min-height: 500px; /* Makes the image visible */ 
display: flex; /* Allows centering */ 
justify-content: center; /* Centers logo horizontally */ 
align-items: center; /* Centers logo vertically */ 
color: var(--white); 
padding: 18px 12px; 
border-bottom: 4px solid var(--gold);



 <!---- background-color: var(--navy); --->
 <!---- color: var(--white); --->  
 <!---- padding: 18px 12px; ---> 
 <!---- border-bottom: 4px solid var(--gold); --->  

 }  


.container {
  max-width: 1000px;
  width: 90%;
  margin: 0 auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.brand img {
  width: 120px;
  height: auto;
  border-radius: 6px;
  background: var(--white);
  padding: 6px;
}

nav {
  margin-left: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0;
  margin: 0;
}

.nav-links li a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: var(--gold);
}

main h2, main h3 {
  color: var(--navy);
}

.servicios-destacados {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.servicio {
  flex: 1 1 200px;
  max-width: 220px;
  background: var(--white);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.servicio:hover {
  transform: translateY(-4px);
}

.servicio img {
  width: 60px;
  height: auto;
  margin-bottom: 10px;
}

.servicio h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0;
}

.perfil {
  text-align: center;
}

.perfil img {
  width: 120px;
  border-radius: 50%;
  margin-bottom: 12px;
}

.btn-contacto {
  background-color: var(--gold);
  color: var(--navy);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-contacto:hover {
  background-color: #e0b84d;
}

footer {
  background: #eaeaea;
  text-align: center;
  padding: 16px;
  font-size: 0.9rem;
}

/* 📱 Media Query para pantallas pequeñas */
@media (max-width: 768px) {
  .brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .servicios-destacados {
    flex-direction: column;
  }

  .servicio {
    flex: 1 1 100%;
  }

  .btn-contacto {
    width: 100%;
    text-align: center;
  }

/* === Estilos por página === */

/* Página: declaratoria-herederos.html */
.herederos-page .main-content {
  text-align: center;
}

/* Página: poderes.html */
/* .poderes-page .main-content { ... } */


