/*-- FONT --*/
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/*-- GLOBAL --*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.txt-lighter {
  font-weight: lighter;
}

body {
  color: #555;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 12px;
  font-weight: bold;
}

.sections {
  width: 100%;
  text-align: center;
  background-color: #f9f9f9;
  border-bottom: 1px solid rgba(14,165,233,1); 
  padding: 40px;
  margin-bottom: 25px;
}

/*-- HEADER --*/
.header {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60px;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.header__inner-logo {
  width: 120px;
  height: auto;
  margin: 5px 0 0 10px;
}

.header__inner-menu-button {
  border: none;
  background-color: transparent;
  cursor: pointer;
  padding: 5px;
  margin-right: 10px;
}

.header__inner-menu-button-icon {
  width: 18px;
  height: 18px;
}

/*-- NAV --*/
.header__inner-nav {
  position: absolute;
  top: 60px;
  width: 100%;
  background-color: #fff;
}

.header__inner-nav-list {
  display: none;
  list-style-type: none;
  padding-left: 0;        
  margin: 0;  
}

.header__inner-nav-list.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  list-style: none;
  padding: 0;
  margin-bottom: 10px;
  gap: 10px;
  font-size: 13px;
}

.header__inner-nav-list-links {
  list-style: none;
  position: relative;
  padding: 5px 0;
  color: #555;
  text-decoration: none;
}


.header__inner-nav-list-item-flag {
  width: 20px;
  height: 14px;
}

.header__inner-nav-list-links::after,
.header__inner-nav-list-item.selected .header__inner-nav-list-links::after {
  width: 100%; 
}

.header__inner-nav-list-links::after {
  content: "";
  position: absolute;
  top: 20px; 
  left: 0;
  width: 100%;
  height: 4px;
  background-color: transparent; 
  transform: scaleX(0); 
  transform-origin: right;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.header__inner-nav-list-links:hover::after {
  background-color: #87d2f4; 
  transform: scaleX(1);
  transform-origin: left;
}

.header__inner-nav-list-item.selected .header__inner-nav-list-links::after {
  background-color: #0ea5e9; 
  transform: scaleX(1);
}

/*-- MAIN --*/
.main {
  padding-top: 60px;
}

.main__banner {
  width: 100%;
  height: 243px;
  /* Capas, de arriba hacia abajo: velo oscuro para legibilidad del texto,
     foto del campus, y el degradado de marca CONTIE como respaldo. Si
     banner-contie.webp no existe, esa capa no pinta y queda el degradado. */
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.12) 100%),
    url(./src/banner-contie.webp),
    linear-gradient(135deg, #0ea5e9 0%, #2d6fa4 100%);
  background-size: cover;
  /* Anclado arriba a proposito: el banner es una franja mucho mas ancha que alta,
     y con `center` el recorte se come el Cerro de la Silla, que es justo lo que
     identifica a Monterrey. */
  background-position: center top;
}

.main__banner-logo {
  width: 170px;
  height: auto;
  margin: 55px 0 15px 20px;
}

.main__banner-title,
.main__banner-subtitle,
.main__banner-logo {
  color: #fff;
  margin-left: 20px;
}

.main__banner-title {
  font-size: 2.8em;
}

.main__banner-subtitle {
  font-size: 1.6em;
  font-weight: lighter;
}

/*-- TITLES --*/
.main__titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.main__titles-heading {
  width: 90%;
  text-transform: uppercase;
}

.main__titles-1 {
  font-size: 2em;
  margin: 25px 0 15px 0;
}

.main__titles-2 {
  width: 85%;
  font-size: 1.7em;
  margin-bottom: 50px;
}

/*-- PAYMENT --*/
.main__payment-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main__payment-content-title {
  text-align: center;
  font-size: 2em;
  color: rgba(14,165,233,1);
  margin-bottom: 40px;
}

.main__payment-content-hr {
  width: 90%;
  border: none;
  border-bottom: 1px solid rgba(14,165,233,1); 
  margin-bottom: 40px;
}

.main__payment-div{
  display: flex;
  justify-content: center;
}

.main__payment-div-table {
  width: 90%;
  border-collapse: collapse;
  text-align: center;
  color: #000;
  font-size: 0.9rem;
  margin-bottom: 50px;
}

.main__payment-div-table th,
.main__payment-div-table td {
  border: 1px solid rgba(14,165,233,1);
  padding: 15px;
}

.main__payment-div-table-icon {
  width: 25px;
  height: 25px;
}

/*-- AUTHOR --*/
.main__author {
  display: flex;
  justify-content: center;
  border: 1px solid #dee2e6;
  margin-top: 10px;
  margin-bottom: 50px;
}

.main__author-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  margin-top: 40px;
  text-align: center;
}

.main__author-content-question {
  width: 100%;
  padding: 10px;
  font-size: 1.2em;
  color: #4b5563;
  background-color: #f9f9f9;
  border-bottom: 1px solid rgba(14,165,233,1); 
}

.main__author-personalInfo {
  display: none;
  flex-direction: column;
  width: 90%;
  margin-top: 30px;
  text-align: center;
  background-color: #f4f4f4;
  border-bottom: 1px solid rgba(14,165,233,1); 
  padding: 40px;
}

.main__author-personalInfo-p {
  position: relative;
  bottom: 5px;
  font-size: 14px;
  color: #4b5563; 
}

.main__author-content-id {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 30px;
}

.main__author-content-id-txt {
  font-size: 1.2em;

}

.main__author-content-id-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.main__author-content-input {
  width: 100%;
  padding: 10px;
  margin: 15px 0;
}

.main__author-content-actions{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.main__author-content-actions-button {
  width: 100%;
  padding: 15px;
  font-size: 1.3em;
  font-weight: bold;
  color: #4b5563;
  background-color: #f9f9f9;
  border: 2px solid transparent;
  border-radius: 20px;
  border-image: linear-gradient(0deg, rgba(45,111,164,1) 0%, rgba(14,165,233,1) 100%);
  border-image-slice: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.main__author-content-actions-button:hover {
  transform: scale(1.03);
}

.main__author-content-actions-p {
  font-size: 1.3em;
  margin: 5px 0;
}

.main__author-content-hr {
  margin-top: 30px;
}

/*-- AUTHOR-FIND --*/
/*-- FIND --*/

.main__author-search {
  width: 100%;
  margin: 20px 0;
  padding: 20px 15px;
  background: #f9f9f9;
  border-radius: 10px;
}

/*-- TOTAL A PAGAR --*/

.main__author-search-total {
  display: none;
  margin-top: 25px;
  padding: 15px 20px;
  font-size: 1.2em;
  font-weight: normal;
  text-align: center;
  color: #7c2d12;
  background-color: #ffedd5;
  border: 1px solid #fdba74;
  border-left: 5px solid #f97316;
  border-radius: 10px;
}

.main__author-search-total.active {
  display: block;
}

.main__author-search-total strong {
  font-weight: 800;
}

.main__author-search-table {
  border-collapse: collapse;
  margin: 15px 0 25px 0;
}

.main__author-search-table th {
  font-size: 0.85rem;
  text-align: center;
  color: #000;
  background-color: #eee;
  border-top: 1px solid rgba(14,165,233,1);
  border-bottom: 1px solid rgba(14,165,233,1);
  padding: 15px;
}

.main__author-search-table td {
  font-size: 0.80rem;
  font-style: italic;
  text-align: center;
  color: #000;
  background-color: rgb(212, 242, 255);
  padding: 5px;
}

.main__author-search-table-total td {
  font-size: 0.80rem;
  font-style: italic;
  text-align: center;
  color: #000;
  background-color: rgb(143, 221, 255);
  padding: 5px;
}

.main__author-search-actions {
  text-align: right;
  margin-top: 10px;
}

.main__author-search-actions-reset {
  margin-top: 10px;
}

.main__author-content-actions-button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

#authorTable {
  border-collapse: collapse;
  margin: 15px 0 25px 0;
  width: 100%;
  table-layout: fixed; /* Agregado para que las columnas tengan el mismo ancho */
}

#authorTable th,
#authorTable td {
  font-size: 0.80rem;
  color: #000;
  padding: 10px;
}

/*-- BTN CONTINUE --*/

.main__author-search-actions.active {
  display: none;
}

.main__author-content-actions.active {
  display: none;
}

/*-- AUTHOR-NOT-AUTHOR --*/
.main__author.active {
  flex-direction: column;
  align-items: center;
}

.main__author-content.active {
  display: none;
}

.main__author-personalInfo.active {
  display: flex;
}

.main__author-form.active {
  display: flex;
}

/*-- AUTHOR-INFO --*/
.main__author-content-info{
  position: fixed;          
  top: 0;
  left: 0;
  display: none;     
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);   
}

.main__author-content-info.active {
  display: flex;           
}

.main__author-content-info-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90%;
  height: 40%;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.main__author-content-info-close {
  position: relative;
  top: -20px;
  left: 145px;
  font-size: 15px;
  color: #555;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.main__author-content-info-img {
  width: 310px;
  height: 175px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/*-- FORM --*/
.main__author-form {
  display: none;
  width: 90%;
  margin-top: 10px;
  flex-direction: column;
  gap: 2rem;
}

.main__author-form-section {
  padding: 1rem 0;
}

.main__author-form-title {
  font-size: 1rem;
  font-weight: bold;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.main__author-form-hr {
  border: none;
  border-top: 1px solid #ddd;
}

.main__author-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.main__author-form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: #333;
}

.main__author-form-input {
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: border 0.2s ease-in-out, box-shadow 0.2s;
}

.main__author-form-input:focus {
  border-color: #0073e6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 115, 230, 0.15);
}

.main__author-form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.main__author-form-radio {
  margin: 0.4rem 0;
}

.main__author-form-radio label {
  font-size: 0.9rem;
  cursor: pointer;
  color: #444;
}

#payment-method.active {
  display: none;
}

#modalityConference {
  display: none;
}

#modalityConference.active {
  display: flex;
  flex-direction: column;
}

.main__author-form-note {
  font-size: 0.85rem;
  color: #4b5563;
  font-style: italic;
  width: 100%;
  text-align: center;
  background-color: rgb(212, 242, 255);
  padding: 20px;
}

.main__author-form-actions {
  text-align: center;
  margin-top: 1.5rem;
}

#submit-button {
  margin-bottom: 50px;
}

/*-- FOOTER --*/
.footer__contact {
  width: 100%;
  height: 512px;
  background-color: #555;
}

.footer__contact-info {
  display: flex;
  flex-direction: column;
  margin: 0 60px;
}

.footer__contact-info-div-title {
  margin-top: 50px;
  font-size: 1.4em;
  color: #fff;
}

.footer__contact-info-div-text {
  margin-top: 20px;
  font-size: 16px;
  color: #aaa;
}

.footer__contact-info-div-hr{
  margin: 10px 0;
  height: 1.5px;
}

.footer__contact-info-div-links {
  color: #ccc;
  font-size: 16px;
}

.footer__contact-info-div-social {
  display: flex;
  flex-direction: column;
}

#facebook-link {
  margin-bottom: 5px;
}

.footer__contact-info-inner {
  display: flex;
  justify-content: start;
  align-items: start;
}

.footer__contact-info-inner-logo {
  width: 300px;
  height: 96px;
  margin: 15px 0 30px;
}

.footer__contact-copyright {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 188px;
  font-size: 17px;
  background-color: #333;
}

.footer__contact-copyright-p {
  color: #aaa;
  font-weight: lighter;
  text-align: center;
}

.footer__contact-copyright-link {
  width: 68%;
  margin-top: 12px;
  color: #ccc;
  text-decoration: underline;
}

/*-- RESPONSIVE  --*/
@media screen and (min-width: 767px) {
  /* Header */
  .header__inner-logo { width: 200px; height: auto; margin: 5px 0 0 20px; }
  .header__inner-menu-button { margin-right: 20px; }
  .header__inner-menu-button-icon { width: 25px; height: 25px; }
  .main { display: flex; flex-direction: column; justify-content: center; align-items: center; }
  
  /* Author */
  .main__author { width: 60%; margin: 10px 0 50px 0; }
  .main__author-content-info-section { width: 50%; height: 50%; }
  .main__author-content-info-close { top: -50px; left: 200px; font-size: 20px; }
  .main__author-content-info-img { width: 90%; height: 60%; }

  /* Footer */
  .footer__contact-info-inner { justify-content: center; }
  .footer__contact-copyright { text-align: center;} 
}

/* Desktop */
@media screen and (min-width: 1024px) {
  /* Header */ 
  .header { height: 76px; }
  .header__inner { flex-direction: row; align-items: center; margin-top: 10px; padding: 0 50px; }
  .header__inner-logo { width: 220px; height: auto; margin-left: 300px; }
  .header__inner-menu-button { display: none; }
  .header__inner-menu-button-icon { width: 18px; height: 18px; }
  .header__inner-nav { position: static; }

  .header__inner-nav-list { display: flex; margin-left: 145px; font-size: 13px; }
  .header__inner-nav-list-item-flag { position: relative; left: 15px; }
  .header__inner-nav-list-links { padding: 0 20px; }
  .header__inner-nav-list-links::after { top: 38px; }

  /* Banner */
  .main__banner { height: 485px; }
  .main__banner-logo { width: 300px; height: auto; margin: 150px 0 20px 0; }
  .main__banner-title { font-size: 5.5em; }
  .main__banner-subtitle { font-size: 2.5em; font-weight: lighter; }
  .main__banner-title,
  .main__banner-subtitle,
  .main__banner-logo { margin-left: 192px; }

  /* Titles */
  .main__titles-1 { width: 100%; margin: 60px 0 15px 0; font-size: 2.5em; }
  .main__titles-2 { font-size: 2em; }

  /* Payment */
  .main__payment { display: flex; flex-direction: column; align-items: center;}
  .main__payment-div { width: 150%; justify-content: center; }
  .main__payment-content-title { margin-bottom: 40px; }
  .main__payment-content-hr { width: 500px ;margin-bottom: 40px; }
  .main__payment-div-table { width: 100%; }
  
  /* Author */
  .main__author { width: 60%; margin: 10px 0 50px 0; }
  .main__author-content-info-section { width: 40%; height: 60%; }
  .main__author-content-info-close { top: -80px; left: 21.5rem; font-size: 25px; }
  .main__author-content-info-img { width: 90%; height: 60%; }

  /* Author Search */
  .main__author-search-table td {
    font-size: 0.85rem;
    padding: 25px;
  }
  .main__author-search-table-total td {
    font-size: 0.85rem;
    padding: 15px;
  }

  /* Footer */
  .footer__contact {display: flex; flex-direction: column; align-items: center; height: 412px;}
  .footer__contact-info {flex-direction: row; height: 100%;  width: 100%; justify-content: center; gap: 300px;} 
  .footer__contact-info-inner { margin-top: 80px;}
  .footer__contact-copyright { flex-direction: row; justify-content: space-around; height: 140px; }
  .footer__contact-copyright-link { width: 25%; margin-top: 0; }
  .footer__contact-copyright-p { margin-left: 65px;} 
}

.main__author-search-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* keeps column widths consistent */
  overflow: hidden;
}

/* Allow text to wrap normally inside cells */
.main__author-search-table th,
.main__author-search-table td {
  white-space: normal;     /* allow line breaks */
  word-wrap: break-word;   /* older syntax support */
  overflow-wrap: anywhere; /* modern syntax: breaks long words if needed */
  vertical-align: top;     /* optional: aligns multi-line text neatly */
  padding: 0.5rem;         /* optional: more readable spacing */
}