:root {
  --color1: #4c4a42;
  --radius: 12px;
  --transition: .3s ease;
  --max-width: 1000px;
  --nav-height: 80px;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', system-ui, sans-serif;
  background: url('img/fondomarmol.png') center/cover no-repeat fixed;
  color: #222;
  line-height: 1.6;
}

/* -------------------- NAV -------------------- */
nav {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: 0 0 10px rgba(0,0,0,.3);
  z-index: 10;
  transition: background .3s, color .3s;
}
.nav1 {
  background: rgba(255,255,255,0.9);
  color: #222;
}
.nav2 {
  background: #fff;
  color: #000;
}
.contenedor-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--nav-height);
  gap: 1rem;
}
.logo img {
  height: 60px;
}
.enlaces ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.enlaces a {
  text-decoration: none;
  font-size: 16px;
  padding: 5px 0;
  position: relative;
  color: inherit;
  transition: color .2s;
}
.enlaces a:hover {
  color: var(--color1);
}
.enlaces a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--color1);
  transition: width .25s;
}
.enlaces a:hover::after,
.enlaces a.active::after {
  width: 100%;
}
.iconos button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* -------------------- SECCIÓN NOSOTROS -------------------- */
.nosotros-section {
  padding-top: calc(var(--nav-height) + 30px);
  padding-bottom: 60px;
  text-align: center;
}

.nosotros-section h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--color1);
}

/* Imagen circular con sombra */
.people img {
  width: 200px;
  height:200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
  transition: transform .3s ease, box-shadow .3s ease;
  margin: 1rem auto;
  display: block;
}
.people img:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 16px rgba(0,0,0,0.35);
}

/* Textos */
.lead {
  font-size: 1.15rem;
  max-width: 850px;
  margin: 1rem auto;
}
.lead + .lead {
  margin-top: 1.5rem; /* separación entre párrafos */
}

h2 {
  font-size: 2rem;
  margin: 3rem 0 1rem;
  color: var(--color1);
}

/* -------------------- BOTONES DE VALORES -------------------- */
.btn-outline-warning {
  background-color: var(--color1);
  color: #fff;
  font-size: 1.1rem;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  transition: background-color .3s ease, transform .2s;
}
.btn-outline-warning:hover {
  background-color: #fff;
  color: var(--color1);
  border: 2px solid var(--color1);
  transform: translateY(-2px);
}

/* -------------------- RECUADRO DE VALORES -------------------- */
.valores-text {
  background: #86877b;
  color: #fff;
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 20px;
  text-align: left;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* -------------------- FOOTER -------------------- */
footer {
  position: relative;
  padding: 3rem 0 2rem;
  color: #fff;
}
.footer-bg {
  position: relative;
  background: url('img/arquitectura1.jpg') center/cover no-repeat;
  overflow: hidden;
}
.footer-bg .overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 35, 0.6);
  backdrop-filter: blur(8px);
  z-index: 0;
}
.footer-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.branding {
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: center;
}
.logo-footer {
  width: 60px;
}
.logo-footer img {
  width: 100%;
}
.titulo-footer {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-text {
  font-size: 1rem;
  opacity: .9;
}
.red-social {
  margin-top: .5rem;
}
.red-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,.5);
  border-radius: 50%;
  padding: 6px;
  text-decoration: none;
  transition: transform .2s;
}
.red-social a img {
  width: 100%;
  filter: brightness(1.2);
}
.red-social a:hover {
  transform: scale(1.1);
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 900px) {
  .contenedor-nav { flex-wrap: wrap; }
  .enlaces ul { gap: .5rem; flex-wrap: wrap; }
}

@media (max-width: 700px) {
  .enlaces {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    background: #6e4f32;
    width: 0;
    height: 100%;
    overflow: hidden;
    transition: width .3s ease;
    z-index: 20;
    display: flex;
    flex-direction: column;
  }
  .enlaces ul {
    flex-direction: column;
    width: 100%;
  }
  .enlaces a {
    display: block;
    width: 100%;
    padding: 18px;
    color: #fff;
  }
  .iconos { display: block; }
}
