/* Estilos página */
.navbar{
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    background-color: white;
}
.main-header {
    background: var(--morena-gradient);
    color: var(--morena-white);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.header-content {
    position: relative;
    z-index: 2;
}

/* Sección de Búsqueda */
.search-section {
    padding: 4rem 0;
    background: var(--morena-white);
    margin: -2rem 0 0 0;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    position: relative;
    z-index: 3;
}

.search-card {
    background: var(--morena-white);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-hover);
    border-left: 4px solid var(--morena-gold);
    height: auto;
}

.search-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--morena-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--morena-black);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--morena-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--morena-primary);
    box-shadow: 0 0 0 3px rgba(131, 51, 48, 0.1);
}

.search-btn {
    background: var(--morena-gradient-gold);
    color: var(--morena-white);
    border: none;
    padding: 1rem 3rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    min-width: 200px;
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.search-btn i {
    margin-right: 0.5rem;
}

/* Sección de Resultados */
.results-section {
    padding: 4rem 0;
}

.results-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    color: var(--morena-primary);
    margin-bottom: 3rem;
    text-align: center;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.result-card {
    background: var(--morena-white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border-left: 4px solid var(--morena-primary);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--morena-gradient-gold);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.result-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.result-icon {
    width: 60px;
    height: 60px;
    background: var(--morena-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--morena-white);
    font-size: 1.5rem;
    margin-right: 1rem;
}

.result-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--morena-primary);
    margin-bottom: 0.25rem;
}

.result-subtitle {
    color: var(--morena-gray);
    font-size: 0.9rem;
}

.result-info {
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--morena-black);
}

.info-item i {
    color: var(--morena-primary);
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.result-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--morena-primary);
    color: var(--morena-white);
}

.btn-secondary {
    background: var(--morena-gold);
    color: var(--morena-white);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.action-btn i {
    margin-right: 0.5rem;
}



/* Footer */
.main-footer {
    background: var(--morena-gradient);
    color: var(--morena-white);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .result-actions {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animaciones de entrada */
.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efectos especiales */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}















.header-morena{
    text-align: center;
    color: #fff;
    padding: 20px;
    background: linear-gradient(to right, #6f2928, #4f162d);
    border-bottom: 8px solid #bc955b;
}
.logo-morena{
    height: 60px;
    padding: 10px;
}
.headerTit{
  font-weight: 300;
}
.headerBold{
  font-weight: 800;
}
.sectionUno{
    text-align: center;
    margin: 30px;
}
.contBotones{
    display: flex;
    text-align: center;
}
.btn-grad {
  background: linear-gradient(to right, #bc955b, #7e2d43);
  background-size: 200% 100%;
  background-position: left center;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background-position 0.5s ease, transform 0.3s ease;
  overflow: hidden;
  font-weight: 700;
  margin: 10px;
}

.btn-grad i {
  transition: transform 0.3s ease;
}

.btn-grad:hover {
  background-position: right center;
}

.btn-grad:hover i {
  transform: translateX(5px);
}

.btn-secundario {
  position: relative;
  background: transparent;
  color: #7e2d43;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin: 10px;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 1;
  overflow: hidden;
}

.btn-secundario::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(to right, #bc955b, #7e2d43);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  z-index: -1;
}

.btn-secundario:hover {
  background: linear-gradient(to right, #bc955b, #7e2d43);
  color: white;
}

.btn-secundario i {
  transition: transform 0.3s ease;
}

.btn-secundario:hover i {
  transform: translateX(5px);
}

.contPDF {
  background: #fff;
  border-radius: 15px;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
  margin: 20px;
  border-left: 5px solid #bc955b;
  padding: 20px 100px;
  max-width: 100%;
}

.contPDF iframe {
  width: 100%;
  height: 70vh;
  border: none;
}



.titPrincipal{
    font-weight: 900;
    color: #4f162d;
}
.blanco_c{
  color: #fff !important;
}
.img-fluid {
  max-width: 100%;
  height: auto;
}
.sectionTres {
    width: 100%;
    height: 250px;
    background-image: url('../img/bg-red.png');
    background-size: cover;
    background-position: center;
    padding: 20px;
    border-radius: 25px;
    display: flex;
    flex-direction: row; 
    justify-content: space-between;
    color: #fff;
    position: relative; 
    margin: 100px 0px;
}
.contTexto, .contImagen {
  flex: 1;
  z-index: 1; 
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.contImagen {
  width: 50%;
}

.contImagen img {
  width: 90%;
}

.contTexto {
  flex-direction: column;
  text-align: right;
  width: 50%;
  align-items: flex-end;
}

@media (max-width: 991px) { /* Tablets */
  .sectionTres {
    flex-direction: column;
    height: auto;
    padding: 40px 20px;
    text-align: center;
  }

  .contTexto, .contImagen {
    width: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .contTexto {
    align-items: center;
    text-align: center;
    padding-top: 20px;
  }

  .contImagen img {
    width: 70%;
    max-width: 300px;
  }
  .sectionUno{
      margin: 10px;
  }
  .sectionDos{
    margin: 30px 0px;
  }
  .sectionTres{
     margin: 30px 0px;
  }
  .contPDF iframe {
    height: 60vh;
  }
}

@media (max-width: 576px) { /* Celulares */
  .sectionTres {
    padding: 30px 15px;
    margin: 60px 0px;
  }

  .contTexto p {
    font-size: 0.9rem;
  }

  .btn-grad {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
  }

  .contImagen img {
    width: 80%;
  }
  .contPDF iframe {
    height: 50vh;
  }
}
