/* ===== VARIABLES ===== */
:root {
  --azul-oscuro: #002060;
  --amarillo: #e6b546;
  --blanco: #ffffff;
  --gris: #7c7c7c;
  --transition: all 0.4s ease;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SECTION TITLE INTERNA ===== */
.sect_title_interna {
  background-image: url(../../../img/fondo/banner_internas.webp);
  background-repeat: no-repeat;
  background-position: left;
  background-size: 100% 1000%;
  padding: 50px 0;
  position: relative;
  z-index: 1;
  animation: bg 25s infinite linear alternate;
}

@keyframes bg {
  from {
    background-size: 100% 1000%;
  }

  to {
    background-size: 150% 1500%;
    background-position: right;
  }
}

.sect_title_interna::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #000;
  opacity: 0.5;
  z-index: -1;
}

.h2_title_interna {
  color: var(--amarillo);
  font-weight: 800;
  font-size: 2.5rem;
  margin: 0;
}

.nav_internas {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.list_nav_internas {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 10px;
}

.list_nav_internas>li {
  color: var(--blanco);
  font-weight: 600;
  font-size: 15px;
}

.list_nav_internas>li:last-child {
  color: var(--amarillo);
  font-size: 16px;
  font-weight: 700;
}

.list_nav_internas>li>a {
  font-weight: 600;
  color: var(--blanco);
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition);
}

.list_nav_internas>li>a:hover {
  color: var(--amarillo);
}

/* ========================================
   SECTION FORMULARIO
   ======================================== */
.sect_formulario {
  padding: 80px 0;
  background-color: var(--azul-oscuro);
  position: relative;
  overflow: hidden;
  margin-bottom: 5px;
}

.form_wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 40px;
  transition: var(--transition);
  padding-bottom: 62px;
}

.form_wrapper:hover {
  background: var(--blanco);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.form_title {
  color: var(--azul-oscuro);
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 15px;
}

.form_title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--amarillo);
  border-radius: 2px;
}

.h6_subtitle {
  color: var(--gris);
  margin-bottom: 30px;
  font-size: 15px;
  line-height: 1.8;
}

.form_group {
  margin-bottom: 20px;
}

/* ===============================
   INPUTS & TEXTAREA – FIX FINAL
   =============================== */

.input_contact,
.textarea_contact {
  width: 100%;
  background: var(--blanco);
  color: var(--gris);
  font-size: 15px;
  padding: 12px 20px;
  font-family: inherit;

  border: 2px solid #d1d5db;
  border-radius: 16px;

  transition: all 0.3s ease;
}

/* Hover */
.input_contact:hover,
.textarea_contact:hover {
  border-color: var(--azul-oscuro);
}

/* Focus */
.input_contact:focus,
.textarea_contact:focus {
  outline: none;
  border-color: var(--azul-oscuro);
  box-shadow: 0 0 0 3px rgba(12, 18, 29, 0.15);
}

/* Quitar estilos Bootstrap */
.form-control:focus {
  box-shadow: none !important;
  border-color: var(--azul-oscuro) !important;
}

/* Alturas */
.input_contact {
  height: 50px;
}

.textarea_contact {
  min-height: 140px;
  resize: none;
}

/* Placeholder */
.input_contact::placeholder,
.textarea_contact::placeholder {
  color: #9ca3af;
  font-size: 14px;
}

.btn_enviar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 40px;
  background-color: var(--amarillo);
  border: none;
  color: var(--azul-oscuro);
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(230, 181, 70, 0.3);
  margin-top: 10px;
}

.btn_enviar:hover {
  background-color: #d4a235;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 181, 70, 0.4);
}

.btn_enviar:active {
  transform: translateY(0);
}

.btn_enviar svg {
  transition: transform 0.3s ease;
}

.btn_enviar:hover svg {
  transform: translateX(5px);
}

/* ========================================
   ASIDE CONTACTO
   ======================================== */
.contact_aside {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 40px 30px;
  height: 100%;
  transition: var(--transition);
}

.contact_aside:hover {
  background: var(--blanco);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.aside_title {
  color: var(--azul-oscuro);
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.aside_title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--amarillo);
  border-radius: 2px;
}

.list_aside {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.list_aside>li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0, 32, 96, 0.1);
}

.list_aside>li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
  display: block;
}

.map_item {
  margin-top: 20px;
}

.map_item .mapa-responsive {
  width: 100%;
  height: 250px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.map_item .mapa-responsive iframe {
  width: 100%;
  height: 100%;
  border: 0;
  transition: filter 0.3s ease;
}

.icon_wrapper {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--azul-oscuro);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.list_aside>li:hover .icon_wrapper {
  background: var(--amarillo);
  transform: scale(1.1);
}

.icon_wrapper img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.content_li {
  flex: 1;
}

.content_li h4 {
  color: var(--azul-oscuro);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.content_li a,
.content_li p {
  color: var(--gris);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.6;
  transition: color 0.3s ease;
  margin-bottom: 0;
}

.content_li a:hover {
  color: var(--amarillo);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets */
@media (max-width: 991px) {
  .h2_title_interna {
    font-size: 2rem;
  }

  .sect_formulario {
    padding: 60px 0;
  }

  .form_wrapper {
    padding: 30px 25px;
  }

  .contact_aside {
    margin-top: 40px;
  }

  .map_item .mapa-responsive {
    height: 220px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .sect_title_interna {
    padding: 30px 0;
  }

  .h2_title_interna {
    display: none;
  }

  .nav_internas {
    justify-content: flex-end;
  }

  .list_nav_internas {
    text-align: right;
  }

  .sect_formulario {
    padding: 50px 0;
  }

  .form_wrapper {
    padding: 25px 20px;
  }

  .form_title {
    font-size: 22px;
    text-align: center;
  }

  .form_title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .h6_subtitle {
    text-align: center;
    font-size: 14px;
  }

  .btn_enviar {
    width: 100%;
    padding: 14px 30px;
  }

  .contact_aside {
    padding: 30px 20px;
  }

  .aside_title {
    font-size: 20px;
  }

  .list_aside>li {
    margin-bottom: 25px;
    padding-bottom: 20px;
  }

  .icon_wrapper {
    width: 45px;
    height: 45px;
  }

  .icon_wrapper img {
    width: 24px;
    height: 24px;
  }

  .map_item .mapa-responsive {
    height: 200px;
  }
}

/* Extra Small Mobile */
@media (max-width: 575px) {
  .h2_title_interna {
    font-size: 1.75rem;
  }

  .list_nav_internas>li {
    font-size: 13px;
  }

  .list_nav_internas>li:last-child {
    font-size: 14px;
  }

  .form_title {
    font-size: 20px;
  }

  .input_contact,
  .textarea_contact {
    font-size: 14px;
    padding: 10px 15px;
  }

  .input_contact {
    height: 45px;
  }

  .btn_enviar {
    font-size: 15px;
    padding: 12px 25px;
  }

  .map_item .mapa-responsive {
    height: 180px;
  }

  .aside_title {
    font-size: 18px;
  }

  .content_li h4 {
    font-size: 13px;
  }

  .content_li a,
  .content_li p {
    font-size: 14px;
  }
}

/***contacto correo***/

.alert-container {
  margin-bottom: 20px;
  min-height: 0;
}

.custom-alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideDown 0.3s ease-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.custom-alert-success {
  background-color: #d4edda;
  border-left: 4px solid #28a745;
  color: #155724;
}

.custom-alert-error {
  background-color: #f8d7da;
  border-left: 4px solid #dc3545;
  color: #721c24;
}

.custom-alert-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.custom-alert-message {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.custom-alert-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-alert-close:hover {
  opacity: 1;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn_enviar {
  position: relative;
  overflow: hidden;
}

.btn_enviar.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn_enviar .btn-text {
  transition: opacity 0.3s;
}

.btn_enviar.loading .btn-text {
  opacity: 0.6;
}

/* Spinner de carga */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}