/* ======== GENERAL ======== */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom right, #2b0000, #3a0c0c, #5b2c2c);
  color: #f4f0ec;
  overflow-x: hidden;
}

/* ======== MENÚ PRINCIPAL ======== */
.main-nav {
  background: rgba(20, 0, 0, 0.7);
  padding: 20px 0;
  text-align: center;
  backdrop-filter: blur(8px);
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.menu a {
  color: #f4f0ec;
  text-decoration: none;
  font-weight: 300;
  transition: 0.3s;
}

.menu a:hover,
.menu a.active {
  color: #d9c18e;
  text-shadow: 0 0 8px rgba(217, 193, 142, 0.6);
}

/* ======== SUBMENÚ ======== */
.sub-nav {
  background: rgba(25, 0, 0, 0.4);
  padding: 10px 0;
  text-align: center;
  border-top: 1px solid rgba(217, 193, 142, 0.15);
  border-bottom: 1px solid rgba(217, 193, 142, 0.15);
}

.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.sub-menu a {
  color: #d9c18e;
  text-decoration: none;
  transition: 0.3s;
}

.sub-menu a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(217, 193, 142, 0.7);
}

/* ======== CONTENIDO ======== */
.raices {
  padding-top: 80px;
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.8;
  animation: fadeIn 1.5s ease-out;
}

.intro h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin: 0;
}

.frase {
  font-style: italic;
  color: #d9c18e;
}

/* ======== FOTO ALINEADA Y TEXTO ENVUELTO ======== */
.foto-izquierda {
  float: left;
  width: 320px;
  max-width: 40%;
  margin: 10px 30px 20px 0;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(217, 193, 142, 0.25);
  shape-outside: inset(0 round 8px);
  clip-path: inset(0 round 8px);
}

.nota-texto {
  text-align: justify;
  font-size: 1.1rem;
}

.nota-texto p {
  margin-bottom: 25px;
  text-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.nota-texto em {
  color: #d9c18e;
  font-weight: 500;
}

/* ======== BOTÓN FINAL ======== */
.cierre {
  margin: 80px 0;
  text-align: center;
}

.boton {
  background: #d9c18e;
  padding: 12px 24px;
  text-decoration: none;
  color: #1a1a1a;
  border-radius: 4px;
  transition: 0.3s;
}

.boton:hover {
  background: #e6d4ae;
  box-shadow: 0 0 10px rgba(217,193,142,0.6);
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .foto-izquierda {
    float: none;
    display: block;
    width: 90%;
    max-width: 400px;
    margin: 0 auto 30px auto;
  }
}

/* ======== ANIMACIÓN ======== */
@keyframes fadeIn {
  from {opacity:0; transform: translateY(20px);}
  to {opacity:1; transform: translateY(0);}

 .foto-derecha {
  float: right;
  width: 320px;             /* Tamaño fijo consistente */
  max-width: 35%;           /* Evita que crezca demasiado si la pantalla es grande */
  height: auto;             /* Mantiene proporción natural */
  margin: 0 0 20px 30px;    /* Deja espacio entre texto e imagen */
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(217,193,142,0.25);

  /* Para envolver el texto como revista */
  shape-outside: inset(0 round 8px);
  clip-path: inset(0 round 8px);
  object-fit: cover;
}


/* Mobile */
@media (max-width: 768px) {
  .foto-derecha {
    float: none;
    display: block;
    width: 90%;
    max-width: 400px;
    margin: 0 auto 30px auto;

    /* Fotos izquierda */
.foto-izquierda {
  float: left;
  width: 320px;
  max-width: 40%;
  height: auto;
  margin: 0 30px 20px 0;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(217,193,142,0.25);
  shape-outside: inset(0 round 8px);
  clip-path: inset(0 round 8px);
  object-fit: cover;
}

/* Fotos derecha */
.foto-derecha {
  float: right;
  width: 320px;
  max-width: 40%;
  height: auto;
  margin: 0 0 20px 30px;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(217,193,142,0.25);
  shape-outside: inset(0 round 8px);
  clip-path: inset(0 round 8px);
  object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
  .foto-izquierda,
  .foto-derecha {
    float: none;
    display: block;
    width: 90%;
    max-width: 400px;
    margin: 0 auto 30px auto;
  }

  }
