.titulo1 {
    position: relative;
    width: 100%;
    min-height: 140px;
}

/* Flor */
.flor {
    position: absolute;
    top: 25%;
    left: 10%;
    width: clamp(45px, 6vw, 80px);
}

/* Texto */
.texto-titulo {
    position: absolute;
    top: 60%;
    left: 18%;
    transform: translateY(-50%);
    font-family: 'Alegreya', serif;
    font-weight: 840;
    font-size: clamp(28px, 6vw, 60px);
    color: #dd910d;
    letter-spacing: 2px;
}
@media (max-width: 768px) {
    .flor {
        left: 50%;
        top: 20%;
    }

    .texto-titulo {
        left: 50%;
        top: 65%;
        transform: translate(-50%, -50%);
        text-align: center;
    }
}

/* Contenedor general */
.actuaciones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Card */
.actuacion {
    position: relative;
    height: clamp(480px, 80vh, 670px);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 1 10px 25px rgba(212, 40, 2, 0.15);
    cursor: pointer;
}

/* Imagen */
.actuacion img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

/* Recuadro de texto */
.info {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30%;
    background: rgba(27, 27, 27, 0.99);
    padding: 20px;
    text-align: center;

    transition: all 0.6s ease;
}

.info a {
    text-decoration: none;
    display: block;
}

h1, h2, h3 {
    font-family: 'Cinzel Decorative', serif;
}

/* Título */
.info h3{
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #dd910d;
}

/* Texto corto visible */
.texto-corto {
    font-size: 14px;
    color: #fefefe;
}

/* Texto largo oculto */
.texto-largo {
    display: none;
    font-size: 14px;
    margin-top: 15px;
    line-height: 1.5;
    color:#ffffff
}

/* Botón oculto */
.info button {
    display: none;
    margin-top: 20px;
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    background: #c30404;
    color: #fff;
    cursor: pointer;
}

.actuacion:hover img {
    transform: scale(1.1);
}

.actuacion:hover .info {
    height: 100%;
    background: rgba(0,0,0,0.85);
    color: #db9b07;
}

.actuacion:hover .texto-corto {
    display: none;
}

.actuacion:hover .texto-largo,
.actuacion:hover button {
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .actuaciones {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .actuaciones {
        grid-template-columns: 1fr;
    }
}
/*parte titulo 2*/
/*parte titulo con patron*/


/* patron */
.titulo2 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

/* Patrones */
.patron,
.patron1 {
    position: absolute;
    top: 50%;
    width: clamp(220px, 40vw, 520px);
    transform: translateY(-50%);
}

.patron { left: 0; }
.patron1 { right: 0; }

/* Texto */
.texto-titulo2 {
    position: relative;
    font-family: 'Caesar Dressing', cursive;
    font-size: clamp(28px, 6vw, 60px);
    color: #dd910d;
    letter-spacing: 2px;
    z-index: 2;
}
@media (max-width: 768px) {
    .patron,
    .patron1 {
        display: none;
    }
}
@media (max-width: 768px) {
    .flor{
        display: none;
    }
}
/*parte contenido nosotros*/
/* Contenedor para centrar la card */
/* Centrado */
.card-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

/* Card */
.cardN {
  position: relative;
  width: 100%;
  max-width: 1320px;
  height:auto;
  min-height: 500px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.img-reveal {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}

.reveal-img.active .img-reveal {
  opacity: 1;
  transform: translateY(0);
}
/* Imagen */
.card-imgN {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-overlayN {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;              
  padding: clamp(20px, 5vw, 60px);
  flex-wrap: wrap;     

 background:
  linear-gradient(to top,
    rgba(115, 75, 7, 0.55),
    rgba(0,0,0,0.9),
    transparent
    
  );


  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
@media (max-width: 768px) {
    .card-overlayN {
        flex-direction: column;
        text-align: center;
    }

    .card-textN {
        max-width: 100%;
    }

    .card-btnN {
        align-self: center;
    }
}

/* ================= CONTENIDO ================= */
.reveal-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.reveal-text > * {
  opacity: 0;
  filter: blur(6px);
  transition: opacity 0.7s ease, filter 0.7s ease;
}

.reveal-text.active > * {
  opacity: 1;
  filter: blur(0);
}

.reveal-text.active .card-textN {
  opacity: 1;
  transition-delay: 0.3s;
}

.reveal-text.active .card-btnN {
  opacity: 1;
  transition-delay: 0.45s;
}

.iconN {
    transform: translate(20000px, 10px);
    position: static;
    transform: none;
    width: 100px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
}
/* Título */
.card-titleN {
  font-family: 'Caesar Dressing', cursive;
  font-size: 50px;
  color: #dd910d;
  margin: 0 0 15px 0;
}
/* Texto */
.card-textN {
  font-size: 15px;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 0 20px 0;
  color: #ffffff;
}

/* Botón */
.card-btnN {
  width: fit-content;
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-size: 14px;

  background-color: #9d0606;
  color: #ffffff;

  transition: all 0.3s ease;
  align-self: flex-start;
}

.card-btnN:hover {
  background-color: #000000;
  color: #da8300;
}

/* estado inicial */
.reveal {
  opacity: 0;
}

/* lo que se anima */
.reveal-wrap {
  opacity: 0;
  filter: blur(8px);
  transition: opacity 1s ease, filter 1s ease;
}

/* cuando entra en pantalla */
.reveal.active {
  opacity: 1;
}

.reveal.active .reveal-wrap {
  opacity: 1;
  filter: blur(0);
}
/* ---------------------------parte DE PROYECTOS ------------*/

.proyectosM {
  display: flex;
  flex-direction: column;
  gap: 10px;
    padding: 40px 20px 20px 10px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Título */
.titulo_proyecto {
  font-family: 'Alegreya', serif;
  font-weight: 740;
  font-size: 60px;
  color: #dd910d;
  margin-bottom: 30px;
  text-align: center;
}

/* ===================== CARDS ===================== */

.proy1,
.proy2 {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 20px 0;
}

.proy2 {
  flex-direction: row-reverse;
  align-items: flex-start; 
  padding: 20px 0;
}

/* ===================== IMÁGENES ===================== */

.proy1 img {
  width: 340px;
  height: 500px;
  object-fit: cover;
  border-radius: 15px;
  flex-shrink: 0;
}

.proy2 img {
  width: 340px;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
  order: 2;

}
@media (max-width: 768px) {
    .proy1,
    .proy2 {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .proy2 img {
        margin-top: 0;
    }
    .inf1,
    .inf2 {
        text-align: center;
    }
}

/* Responsive: en pantallas pequeñas volver a apilar y cancelar margen negativo */
@media (max-width: 768px) {
  .proy2 {
    flex-direction: column;
    align-items: center;
  }
  .proy2 img {
    margin-top: 0;
    width: 100%;
    max-width: 340px;
    height: auto;
  }
}

/* ===================== WRAPPER IMAGEN (ANIMACIÓN) ===================== */

.img-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;

  opacity: 0;
  filter: blur(6px);

  transition:
    transform 1s ease,
    opacity 1s ease,
    filter 1s ease;
}

/* Direcciones */
.left-img {
  transform: translateX(-120px);
}

.right-img {
  transform: translateX(120px);
}

/* Imagen visible */
.reveal-card.active .img-wrap {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

/* Animación específica para imágenes de proyectos (.img-anim) */
.img-anim {
  opacity: 0;
  transition: transform 1s ease, opacity 1s ease;
}

.reveal-card.left .img-anim {
  transform: translateX(-120px);
}

.reveal-card.right .img-anim {
  transform: translateX(120px);
}

.reveal-card.active .img-anim {
  transform: translateX(0);
  opacity: 1;
}

/* ===================== TEXTO ===================== */

.inf1 {
  display: flex;
  flex-direction: column;
  background: rgba(27, 27, 27, 0.65);
  padding: 35px 40px;
  border-radius: 18px;
}

.inf2 {
  display: flex;
  flex-direction: column;
  background: rgba(27, 27, 27, 0.65);
  padding: 35px 40px;
  border-radius: 18px;
  order: 1;
}

/* Animación texto */
.text-anim {
  opacity: 0;
  filter: blur(10px);
  transition:
    opacity 0.6s ease 0.4s,
    filter 0.6s ease 0.4s;
}

.reveal-card.active .text-anim {
  opacity: 1;
  filter: blur(0);
}
/* Títulos */
.t1 {
  font-family: 'Caesar Dressing', cursive;
  font-size: 40px;
  color: #dd910d;
  margin-bottom: 10px;
}
.largo {
  
  font-size: 14px;
  line-height: 1.6;
  color: #eae9e7e6;
  max-width: 520px;
}

/* ===================== BOTÓN ===================== */

/* Estilos globales para todos los botones */
button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;
  white-space: nowrap;

  padding: 8px 22px;
  border-radius: 30px;
  border: none;
  cursor: pointer;

  background: linear-gradient(145deg, #9d0606, #600000);
  color: #ffffff;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;

  box-shadow:
    0 8px 20px rgba(157, 6, 6, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.15);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(200, 123, 9, 0.35),
    transparent
  );

  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 30px rgba(157, 6, 6, 0.7);
}

button:hover::after {
  opacity: 1;
}

button:active {
  transform: translateY(0);
  box-shadow:
    0 6px 15px rgba(157, 6, 6, 0.5);
}

.t2 {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;
  white-space: nowrap;

  padding: clamp(7px, 2vw, 10px) clamp(18px, 4vw, 28px);
  border-radius: 30px;
  border: none;
  cursor: pointer;

  background: linear-gradient(145deg, #9d0606, #600000);
  color: #ffffff;
  font-size: clamp(12px, 2.5vw, 14px);
  font-weight: 600;
  letter-spacing: 0.6px;

  box-shadow:
    0 8px 20px rgba(157, 6, 6, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.15);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.t2::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(200, 123, 9, 0.35),
    transparent
  );

  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.t2:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 30px rgba(157, 6, 6, 0.7);
}

.t2:hover::after {
  opacity: 1;
}

.t2:active {
  transform: translateY(0);
  box-shadow:
    0 6px 15px rgba(157, 6, 6, 0.5);
}
/* ================= SOLUCIÓN OVERFLOW ================= */

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

* {
  max-width: 100%;
}

/* ================= ANIMACIONES SEGURAS ================= */

.left-img {
  transform: translateX(-30%);
}

.right-img {
  transform: translateX(30%);
}

.reveal-card.left .img-anim {
  transform: translateX(-30%);
}

.reveal-card.right .img-anim {
  transform: translateX(30%);
}

.reveal-card.active .img-anim,
.reveal-card.active .img-wrap {
  transform: translateX(0);
}

/* ================= PROYECTO 2 FIX ================= */


@media (max-width: 768px) {
  .proy2 img {
    transform: none;
  }
}

/* Responsive para tablet */
@media (max-width: 992px) and (min-width: 769px) {
  .proy2 img {
    transform: translateY(-100px);
  }

  .reveal-card.right.proy2 .img-anim {
    transform: translateX(120px) translateY(-100px);
  }

  .reveal-card.active.proy2 .img-anim {
    transform: translateX(0) translateY(-100px);
    opacity: 1;
  }
}

/* Responsive para mobile pequeño */
@media (max-width: 480px) {
  .proy1 img,
  .proy2 img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .proy2 img {
    transform: translateY(-50px);
  }

  .reveal-card.right.proy2 .img-anim {
    transform: translateX(120px) translateY(-50px);
  }

  .reveal-card.active.proy2 .img-anim {
    transform: translateX(0) translateY(-50px);
    opacity: 1;
  }
}
