/* ESTILOS BASE - Aplicando estilo de estilos.css */
.diagonal-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: url('../img/maderan.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

/* CONTENIDO IZQUIERDO - Estilo glassmorphism de estilos.css */
.diagonal-content {
  width: 50%;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.15); /* Más transparente como en estilos.css */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 0 25px rgba(255, 255, 255, 0.4),
    0 0 50px rgba(255, 255, 255, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px; /* Agregado borde redondeado */
  margin: 20px; /* Agregado margen para separación */
}

/* MARCO 3D DERECHO - Estilo glassmorphism */
.marco-3d-container {
  width: 50%;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.marco-3d {
  position: absolute;
  width: 100%;
  height: 100%;
  right: 0;
  background: rgba(255, 255, 255, 0.1); /* Cambiado a glassmorphism */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 0 15px rgba(255, 255, 255, 0.1);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  border-radius: 20px;
}

/* IMAGEN 3D - Efectos de brillo como en estilos.css */
.imagen-3d {
  position: absolute;
  height: 120%;
  max-width: 120%;
  right: 5%;
  bottom: -10%;
  transform: perspective(1000px) rotateY(-20deg) rotateX(10deg);
  filter: drop-shadow(-20px 15px 15px rgba(0,0,0,0.5))
          drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)); /* Agregado brillo blanco */
  z-index: 3;
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Transición suave */
}

.imagen-3d:hover {
  filter: drop-shadow(-20px 15px 15px rgba(0,0,0,0.5))
          drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
  transform: perspective(1000px) rotateY(-20deg) rotateX(10deg) translateZ(20px);
}

/* ESTILOS DE TEXTO - Efectos de brillo de estilos.css */
.diagonal-content h2 {
  font-size: 2.5rem;
  color: #ffffff; /* Cambiado a blanco para contraste */
  margin-bottom: 1rem;
  animation: white-glow 2.5s ease-in-out infinite alternate; /* Animación de brillo */
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

.diagonal-content p {
  font-size: 1.2rem;
  color: #ffffff; /* Cambiado a blanco para contraste */
  margin-bottom: 2rem;
  animation: white-glow-p 3.5s ease-in-out infinite alternate; /* Animación de brillo */
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  line-height: 1.8;
}

/* BOTÓN - Estilo glassmorphism de estilos.css */
.boton-ver-mas {
  display: inline-block;
  padding: 12px 30px;
  background: rgba(255, 255, 255, 0.2); /* Glassmorphism */
  color: #ffffff;
  text-decoration: none;
  border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 0 10px rgba(255, 255, 255, 0.5),
    inset 0 0 5px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.boton-ver-mas:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 0 20px rgba(255, 255, 255, 0.8),
    inset 0 0 10px rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.8);
}

/* ANIMACIONES DE BRILLO - Copiadas de estilos.css */
@keyframes white-glow {
  from {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7),
                 0 0 15px rgba(255, 255, 255, 0.5);
  }
  to {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9),
                 0 0 25px rgba(255, 255, 255, 0.7),
                 0 0 35px rgba(255, 255, 255, 0.4);
  }
}

@keyframes white-glow-p {
  from {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  }
  to {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(255, 255, 255, 0.3);
  }
}

/* EFECTO HOVER EN TODA LA SECCIÓN */
.diagonal-section:hover .diagonal-content {
  box-shadow: 
    0 0 35px rgba(255, 255, 255, 0.6),
    0 0 70px rgba(255, 255, 255, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.8);
}

/* RESPONSIVE - Ajustado para mantener el estilo glassmorphism */
@media (max-width: 768px) {
  .diagonal-section {
    flex-direction: column;
    min-height: auto;
    padding: 20px; /* Agregado padding */
  }
  
  .diagonal-content,
  .marco-3d-container {
    width: 100%;
    margin: 10px 0; /* Ajustado margen */
  }
  
  .diagonal-content {
    padding: 2rem;
    margin: 10px;
  }
  
  .marco-3d {
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0% 100%);
    height: 300px;
    position: relative;
    margin: 10px;
  }
  
  .imagen-3d {
    width: 80%;
    height: auto;
    right: 50%;
    transform: translateX(50%) perspective(500px) rotateY(-10deg);
  }
  
  .diagonal-content h2 {
    font-size: 2rem;
  }
  
  .diagonal-content p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .diagonal-content {
    padding: 1.5rem;
  }
  
  .diagonal-content h2 {
    font-size: 1.8rem;
  }
  
  .diagonal-content p {
    font-size: 0.9rem;
  }
  
  .boton-ver-mas {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}
