/* ==================== RESET ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; line-height: 1.6; color: #333; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* ==================== VARIABLES ==================== */
:root {
    --light-green: #20a144;
    --blue:  #0889be;
    --max-width: 1400px;
}

/* ==================== BUTTONS ==================== */
button {
    border: none;
    cursor: pointer;
}

.btn-type1, .btn-type2 {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    width: 190px;
    height: 50px;
}

.btn-type1 {
    background-color: var(--light-green);
    background-size: 150% 100%;
    box-shadow: rgba(0, 0, 0, 0.25) 8px 8px 16px 0px inset;
    transition: background-position 0.5s;
}

.btn-type1:hover {
    background-position: 100% 0px;
}

.btn-type2 {
    background-color: white;
    color: rgb(181, 181, 181);
}

.btn-type2:hover {
    color: var(--light-green);
}

/* ==================== MENSAJE ERROR ==============*/

.mensaje-error {
    color: red;
    font-size: 12px;
    margin-top: 2px;
    display: block;
    margin-bottom: 5px; 
}


/* ==================== HEADER ==================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 10px 20px;
    height: auto;
    z-index: 2;
}

header img {
    width: 30%;
    max-width: 250px;
}

nav {
    display: flex;
    gap: 5px;
    height: 50px;
}

nav a {
    text-decoration: none;
    text-align: center;
    padding: 0 15px;
    color: rgb(124, 124, 124);
    display: flex;
    justify-content: center;
    align-items: center;
}

nav a:hover:not(:last-child) { 
    color: var(--light-green); 
}


/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--light-green);
    color: white;
    display: flex;
    flex-direction: row;      
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 30px 5%;
    text-align: left;
}

/* Marca / Logo y texto */
.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;  
    gap: 10px;
}

.footer__logo {
    max-width: 320px;
}

.footer__copy {
    font-size: 14px;
}

.footer__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;  
    gap: 8px;
}

.footer__phone {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.footer__phone:hover {
    text-decoration: underline;
}

.footer__socials {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.footer__socials img {
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease;
}

.footer__socials img:hover {
    transform: scale(1.1);
}
/* ==================== HERO ==================== */
.hero {
    width: 100%;
    min-height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 100% 70%;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    padding: 10px 10px;
    overflow: hidden;
    z-index: 1;
    margin-top: -100px;
}

.hero::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 45%;
    background: url("imgs/texturaPasta.jpg") center center no-repeat;
    background-size: cover;
    opacity: 1;
    z-index: 0;
}

.hero .sect1-container {
    position: relative;
    z-index: 1;
}

/* ==================== SECT1 CONTAINER ==================== */
.sect1-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
    width: 100%;
    max-width: 1400px;
    gap: 20px;
    padding: 0 20px;
}

.sect1-container > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 3%;
    position: relative;
}

/* ==================== HERO TEXT ==================== */
.sect1-text {
    font-family: sans-serif;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 20px;
}

.sect1-divider {
    width: 60px;
    height: 4px;
    background-color: #20a144;
    margin-bottom: 15px;
}

.sect1-text h1 {
    font-size: 2em;
    font-weight: bold;
    color: #002D4D;
    margin-bottom: 15px;
}

.sect1-text h1 .highlight {
    color: #20a144;
}

.sect1-text p {
    font-size: 1.1em;
    color: #555;
}

.sect1-container > div:nth-child(2) { padding-bottom: 0px; }

.sect1-container > div:nth-child(2) h2 {
    font-size: 1.8em;
    text-align: center;
    max-width: 320px;
    line-height: 1.2;
    margin: 10px 0px;
    color: #070707;
}

.sect1-container > div:nth-child(2) > p {
    max-width: 320px;
    font-size: 1.2em;
    text-align: center;
    margin: 40px 0px;
    color: #fff;
}

.sect1-container > div > img {
    height: auto;
    width: 100%;
    position: relative;
    top: 30px;
}

.sect1-container-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--blue);
    border-radius: 8px;
    text-align: center;
    width: 100%;
    max-width: none;
    min-height: 400px;
    letter-spacing: 3px;
    overflow: hidden;
    border: 2px solid var(--blue);
}

.sect1-container-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(255, 255, 255);
    z-index: 0;
}

.sect1-container-card * { position: relative; z-index: 1; }

.sect1-container-card > div:nth-child(2) {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 10px 0px;
    color: var(--light-green);
    margin: 10px 0px;
}

.sect1-container-card > div:nth-child(2) .line {
    height: 85px;
    width: 2px;
    border-radius: 50%;
    background-color: var(--light-green);
    margin: 0px 10px;
}

/* DAYS */
.days:first-child { text-align: right; }
.days:last-child { text-align: left; }
.days p:last-child {
    font-size: 6em;
    font-family: "Alumni Sans", sans-serif;
    line-height: 0.7;
}

.sect1-container > div:first-child p,
.sect1-container > div:last-child p {
    font-size: 1.5em;
}

.sect1-container-card h3 { font-weight: 900; font-size: 2em; }

.sect1-container-card h4 {
    font-family: "Alumni Sans", sans-serif;
    font-size: 6em;
    color: transparent;
    -webkit-text-stroke: 1px var(--light-green);
    text-shadow: none;
    line-height: 0.9;
}

.sect1-container-card .line {
    width: 90px;
    height: 2px;
    background-color: white;
    margin: 10px 0px;
}

.sect1-container-card > div:nth-child(7) {
    display: flex;
    width: 60%;
    justify-content: space-between;
    align-items: center;
    font-size: 0.5em;
}

.sect1-container-card > div:nth-child(7) p {
    letter-spacing: 0px;
    width: 55px;
    opacity: 0.8;
}

.sect1-container-card > p:last-child {
    margin: 5px 15px 0px;
    letter-spacing: 0px;
}

#tiempo_uio, #tiempo_gye {
    font-size: 3em;
    font-family: "Alumni Sans", sans-serif;
    letter-spacing: 0px;
    line-height: 1;
}




/* ==================== ABOUT ==================== */
.about {
  padding: 60px 0;
}

.about-content {
  display: flex;
  gap: 1rem;
  align-items: center;      
  justify-content: center; 
}


.subtitle {
  color: #e63946;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.title {
  font-size: 32px;
  margin-bottom: 20px;
}

.title span { color: #0077ff; }

.about-text p { margin-bottom: 20px; color: #555; }

/* About Cards */
.about-cards {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

.about-cards .card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);

  /* 🔧 Fijo */
  width: 400px;   /* el ancho será siempre 300px */
  max-width: 400px;
  min-width: 400px;
}

.about-cards .icon { font-size: 22px; color: #0077ff; }

/* About Images */
.about-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.about-images img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.about-images img:first-child { grid-column: span 1; }

/* Carrusel About */
.about-carousel {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  align-items: center;
  background: #222;
  padding: 40px 0;
}

.carousel-container {
  display: flex;
  gap: 40px;
  align-items: center;
}

/* Main Image */
.main-image img {
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Thumbnails */
.thumbnails {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.thumbnails img {
  width: 100px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}

.thumbnails img:hover,
.thumbnails img.active { opacity: 1; transform: scale(1.05); }

.about > div:last-child div h4 {
    font-size: 1.1em;
    letter-spacing: 5px;
}

.about > div:last-child div h3 { 
    font-size: 2em; 
}

.about > div:last-child p { 
    margin: 25px 0px; 
}

.about > div:last-child div h4, 
.about > div:last-child div h3 {
    background-image: linear-gradient(to right, var(--light-green), #65e000);
    background-clip: text;
    color: transparent;
    font-weight: 900;
}

/* ==================== SECT2 ==================== */

.sect2-container { 
    display: flex; 
    flex-direction: column; 
    position: relative; 
    align-items: center; 
    width: 100%; 
    padding: 0 5%; 
    overflow-x: hidden; 
}

.sect2-columns { 
    display: flex; 
    gap: 40px; 
    width: 100%; 
    max-width: var(--max-width); 
    margin-top: 40px; 
    flex-wrap: wrap; 
    align-items: flex-start; 
}

.sect2-welcome {
    text-align: center;
    font-size: 4.5em;
    font-weight: 900;
    color: var(--light-green); 
    margin-bottom: 10px; 
    margin-top: 50px; 
}


.sect2-left { 
    flex: 1; 
    min-width: 250px; 
    text-align: right; 
    padding-top: 15%; 
    z-index: 1; 
}

.sect2-right { 
    flex: 1.5;
    min-width: 300px; 
    position: relative; 
    text-align: center; 
}

.sect2-right h2 {
    background-color: var(--light-green);
    background-clip: text;
    color: transparent;
    font-size: 4.5em;
    font-weight: 900;
    margin-bottom: 20px;
}

.sect2-right p { 
    margin-bottom: 10px; 
    line-height: 1.6; 
}

.sect2-right .principal-img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    object-fit: cover;
    margin: 0 auto 15px auto;
    display: block;
}


.sect2-right .year-img {
    width: 400px;
    margin: 0 auto;
    display: block;
    position: relative;
    bottom: auto;
    right: auto;
}


/* ==================== SECT3 ==================== */

.sect3-container {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;          
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;                
}

.sect3-container > div {
    flex: 1.5;
    padding: 20px;
    text-align: right;
}

.sect3-container > div:last-child {
    flex: 1;
}

.sect3-container > div:last-child img {
    width: 100%;
}

.sect3-container > div > div:first-child {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sect3-container > div div:first-child div:first-child h3,
.sect3-container > div div:first-child div:first-child h4 {
    background-color: var(--light-green);
    background-clip: text;
    color: transparent;
    font-weight: 900;
}

.sect3-container > div div:first-child div:first-child h3 {
    font-size: 3em;
}

.sect3-container > div div:first-child div:first-child h4 {
    font-size: 1.5em;
    letter-spacing: 4px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto auto;
    gap: 5px;
}

.schedule-grid > div {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.icon {
    height: 110px;
    font-size: 0.75em;
    letter-spacing: 2px;
    color: rgba(124, 124, 124, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.location-uio, .location-gye {
    font-weight: 600;
}

.location-uio {
    color: var(--blue);
    font-weight: 700;
}

.location-gye {
    color: var(--light-green);
}

.location-uio h2, .location-gye h2 {
    padding: 20px 0;
    font-size: 2.5em;
    font-weight: bold;
}

.location-uio span, .location-gye span {
    font-size: 2em;
    font-weight: 700;
}

.location-uio strong, .location-gye strong {
    font-size: 1.5em;
}

.location-uio a {
    color: var(--blue);
    font-weight: 700;
}

.location-gye a {
    color: var(--light-green);
    font-weight: 600;
}

.location-uio a:hover,
.location-gye a:hover {
    color: #858585;
}

/* Divider en grid */
.divider {
    height: 1px;
    grid-column: 2 / -1;
    background-color: var(--blue);
}


/* ==================== SECT5 ==================== */

.sect5-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;   
    gap: 20px;          
}

.sect5-container > div {
    flex: 1;
    text-align: right;
}

.sect5-container > div:last-child {
    flex: 2;
    text-align: center;
    padding: 5%;
}

.sect5-container > div:first-child img {
    width: 100%;
}

.sect5-container > div:nth-child(2) h3,
.sect5-container > div:nth-child(2) h4 {
    background-color: var(--blue);
    background-clip: text;
    color: transparent;
    font-weight: 900;
}

.sect5-container > div:nth-child(2) {
    margin-bottom: 50px;
}

.sect5-container > div:nth-child(2) h3 {
    font-size: 3em;
}

.sect5-container > div:nth-child(2) h4 {
    font-size: 1.2em;
    letter-spacing: 5px;
}

.sect5-container > div:last-child img {
    width: 80%;
}


/* ==================== LISTS ==================== */

#lista2 {
    counter-reset: li;                       
    list-style: none;                         
    font: 14px 'Trebuchet MS', 'Lucida Sans';
    padding: 0;
    margin-top: 4em;
    display: flex;
    flex-direction: column;
    gap: 20px;                             
    align-items: center;
}

#lista2 li {
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px 20px 20px 80px;              
    margin: 0;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 400px;
}

#lista2 li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

#lista2 li:before {
    content: counter(li);
    counter-increment: li;
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--light-green);
    color: #fff;
    height: 40px;
    width: 40px;
    line-height: 40px;
    text-align: center;
    font-weight: bold;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

#lista2 li:hover:before {
    transform: translateY(-50%) rotate(360deg);
}



/* ==================== GALERIA ==================== */

section#galeria-congresos {
  padding: 60px 20px; /* más espacio arriba y abajo */
  background: #fff;
  overflow: hidden;
  width: 100%;
}

section#galeria-congresos h3 {
  font-size: 1.2em;
  color: var(--light-green); /* naranja, puedes cambiar */
  margin: 0 0 30px 20%;
}

section#galeria-congresos h4 {
  font-size: 3em;
  color: var(--light-green); /* azul, puedes cambiar */
  margin: 0 0 10px 20%;
}


.galeria-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 1500px; /* más ancho */
  margin: 0 auto;
  padding: 0 20px;
}

.galeria-carrusel {
  flex: 0 0 65%; 
  overflow: hidden;
}

.galeria-descripcion {
  flex: 0 0 33%; 
  background: #f9f9f9;
  padding: 40px;
  border-radius: 15px;
  text-align: left;
}

.galeria-descripcion p {
  font-size: 1.1rem; 
  line-height: 1.6;
  color: #333;
}

/* Carrusel */
.scroll-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
}

.galeria-row {
  display: flex;
  gap: 20px;
}

.galeria-row img {
  height: 200px; /* más alto */
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.3s;
}

.galeria-row img:hover {
  transform: scale(1.08);
}

.scroll-left {
  animation: scrollLeft 50s linear infinite;
}

.scroll-right {
  animation: scrollRight 50s linear infinite;
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes scrollRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(255,255,255,0.5);
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* ==================== FORM / SECT7 ==================== */

.form-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
    padding: 2rem;
    width: 80%; /* ancho del contenedor */
    margin: 0 auto;
    flex-wrap: nowrap; /* Mantener una sola fila */
}

.form-image,
.form-box {
    width: 50%; /* ambas columnas ocupan 50% */
}


.form-image {
    min-height: 400px; /* altura mínima */
    background: url("imgs/form-bg.jpg") center/cover no-repeat;
    border-radius: 12px;
    position: relative;
}

.form-image::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.062);
    border-radius: 12px;
}

.form-wrapper > div:first-child img {
    max-width: 80%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
}

/* Formulario */
.form-box {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-box > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    text-align: center;
}

.form-title { 
    color: #0889be; 
    font-size: 2rem; 
    margin-bottom: 5px; 
}

.form-subtitle { 
    color: gray; 
    margin-bottom: 20px; 
}

.form-box input,
.form-box select {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid var(--blue);
    border-radius: 8px;
}


/* -------------------- CAPTCHA -------------------- */
.captcha-box { 
    margin-top: 20px; 
}

.captcha-container {
    width: 100%;
    height: 97px;
    border-radius: 10px;
    background: white;
    padding: 1.5px;
    display: flex; 
    justify-content: space-around; 
    align-items: center; 
    position: relative;
    border: 1px solid var(--blue);
}

.slider {
    width: 20%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 20px;
    position: relative;
}

.slider-track {
    height: 100%;
    background: var(--light-green);
    width: 0;
    border-radius: 20px;
    transition: width 0.3s;
}

.slider-thumb {
    width: 20px;
    height: 20px;
    background: var(--light-green);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.captcha-message {
    margin-top: 15px;
    font-size: 14px;
    color: #555;
}

/* -------------------- TIMELINE / PROGRESS -------------------- */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #333;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: 0.3s;
}

.progress-line { 
    flex: 1; 
    height: 3px; 
    background: #e0e0e0; 
}

.progress-step p { 
    font-size: 14px; 
    margin: 0; }

.form-step { 
    display: none; 
}
.form-step.active { 
    display: flex; 
    flex-direction: column; 
    gap: 5px; 
}

.progress-step.active .step-number { 
    background: var(--light-green); 
    color: white; 
}
.progress-step.active p { 
    color: var(--blue); 
    font-weight: bold; 
}

/* -------------------- TOGGLE -------------------- */
.toggle-container {
    position: relative;
    width: 225px;
    height: 45px;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px auto;
    box-shadow: inset 2px 2px 6px rgba(0,0,0,0.25),
                inset -2px -2px 6px rgba(255, 255, 255, 0.4);
}

.toggle-text {
    flex: 1;
    text-align: center;
    font-weight: 500;
    color: #727272; /* gris por defecto */
    transition: color 0.3s;
    z-index: 1;
}

.toggle-text.active-toggle-text { 
    color: #ffffff; 
    font-weight: 600; 
}
.toggle-text.inactive-toggle-text { 
    color: #505050; 
    font-weight: 600; 
}

.toggle-button {
    position: absolute;
    width: 105px;
    height: 40px;
    border-radius: 20px;
    background-color: var(--light-green, #4CAF50);
    left: 2px;
    top: 2px;
    transition: left 0.3s;
    z-index: 0;
}

.toggle-button.move { 
    left: calc(100% - 107px); 
}

/* -------------------- FORM OVERLAY -------------------- */
.form-overlay { 
    position: relative; 
    z-index: 2; 
}
.form-overlay h2 { 
    font-size: 1rem; 
    font-weight: 400; 
    letter-spacing: 2px; 
    margin-bottom: 10px; 
}
.form-overlay h1 { 
    font-size: 2rem; 
    margin-bottom: 10px; 
}
.form-overlay p { 
    font-size: 0.9rem; 
    opacity: 0.8; 
}

/* -------------------- BOTÓN SUBMIT -------------------- */
.submit-btn-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 5% 5px;
    gap: 20px;
    margin-bottom: 45px;
}


/* ==================== CAROUSEL 3D ==================== */

/* -------------------- CONTENEDOR PRINCIPAL -------------------- */
#carousel3d {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f1f1f1;
    padding: 40px 0;
}

/* -------------------- CAROUSEL -------------------- */
.carousel3d {
    position: relative;
    width: 100%;
    max-width: 1500px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    overflow: hidden;
}

/* -------------------- CARDS -------------------- */
.card3d {
    position: absolute;
    width: 350px;
    height: 450px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    text-align: center;
    padding: 20px;
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0.6;
    overflow: hidden;
    color: #fff;
}

.card3d:nth-child(1),
.card3d:nth-child(2),
.card3d:nth-child(3),
.card3d:nth-child(4) {
    background: url("imgs/texturaPasta.jpg") no-repeat center center;
    background-size: cover;
}

.card3d::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: #fff;
    clip-path: ellipse(80% 60% at 0% 100%);
}

.card3d img {
    width: 250px;
    height: 300px;
    border-radius: 20%;
    object-fit: cover;
    margin-top: 10px;
    border: 3px solid #fff;
    position: relative;
    z-index: 2;
}

.card3d h3,
.card3d p,
.card3d button {
    position: relative;
    z-index: 2;
}

.card3d h3 { margin: 15px 0 5px; }

.card3d p { font-size: 14px; color: #333; }

.card3d button {
    margin-top: 15px;
    padding: 8px 18px;
    border: none;
    background: #007bff;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}


/* -------------------- CONTROLES -------------------- */
.controls3d {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.btn3d {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}



/* ==================== MODAL ==================== */

.modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;            
    justify-content: center;  
    align-items: center;   
    padding: 20px;              
    box-sizing: border-box;
}

.modal-content {
    background-color: white;
    text-align: center;
    width: 100%;
    max-width: 600px;          
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;          
    position: relative;         
}


.modal-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light-green);
    padding: 10px;
    border-radius: 8px 8px 0 0;
}

/* Imagen en el header */
.modal-header img {
    max-width: 60%;
    height: auto;
    margin: 5px 0;
}

/* -------------------- CUERPO -------------------- */
.modal-body img {
    max-width: 100%;
    height: auto;
    margin: 10px auto;
    display: block;
}

/* -------------------- TÍTULOS -------------------- */
.modal-content h2 {
    background-color: var(--light-green);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: 2em;
    font-weight: 900;
    margin: 15px 0;
    text-align: center;
}

.modal-content h3 {
    color: #000000;
    font-size: 1.2em;
    margin-bottom: 10px;
    text-align: center;
}

/* -------------------- PÁRRAFOS -------------------- */
.modal-content p {
    max-width: 90%;
    margin: 0 auto 15px auto;
    font-size: 1em;
    line-height: 1.5;
}

/* -------------------- BOTÓN CERRAR -------------------- */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #f5f0f0;
    cursor: pointer;
    z-index: 10;
}

.close:hover {
    color: #949494;
}

/* -------------------- SCROLL PERSONALIZADO -------------------- */
.modal-content::-webkit-scrollbar {
    width: 8px; /* ancho de la barra */
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1; /* fondo */
    border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--light-green); /* color de la barra */
    border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--blue); /* color al pasar el mouse */
}

/* Firefox */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: var(--light-green) #f1f1f1;
}


/*------------------------------------------SPINNER----------------------------------------------*/
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #7AC143;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* ==================== MEDIA QUERIES ==================== */

/* ==================== TABLETS PEQUEÑAS / MÓVILES GRANDES ==================== */
@media (max-width: 650px) {

    /* -------------------- HEADER -------------------- */
    header { 
        flex-direction: column; 
        align-items: center; 
        gap: 15px; 
    }
    header img { 
        width: 50%; 
        max-width: 180px; 
    }
    nav { 
        flex-wrap: wrap; 
        justify-content: center; 
    }

    /* -------------------- HERO / SECT1 -------------------- */
    .hero { 
        margin-top: 25px; 
    }
    .sect1-container-card { 
        min-height: 300px; 
    }
    .sect1-container > div:nth-child(2) h2 { 
        font-size: 1.2em; 
    }
    .sect1-container > div:nth-child(2) > p { 
        font-size: 0.95em; 
        margin: 20px 0; 
    }
    
     .sect1-container {
        display: grid;
    } 


    .hero::after {
    top: 38%;
    height: 24%;
    }

    /* -------------------- LISTAS -------------------- */
    #lista2 li { 
        max-width: 280px; 
        padding: 12px 12px 12px 50px; 
    }
    #lista2 li:before { 
        height: 30px; 
        width: 30px; 
        line-height: 30px; 
        left: 8px; 
    }

    /* -------------------- SECT2 -------------------- */
    .sect2-right .principal-img, 
    .sect2-right .year-img { 
        max-width: 90%; 
    }

    .sect2-right h2 {
    font-size: 3.5em;
    font-weight: 900;
    }
    .sect2-welcome {
    text-align: center;
    font-size: 3.5em;
    }

    .sect2-columns {
    gap: 1px
    }

    .sect2-left {
    padding-top: 1%;
    }

    /*------------------------------------SECT3----------------------*/


    .sect3-container {
    display: block;
    }

    /* -------------------- FORMULARIO / SECT7 -------------------- */
    .form-wrapper { 
        flex-direction: column; 
        margin: 10px 10px; 
        width: 100%;
    }
    .form-box, .form-image { 
        width: 100%; 
        border-radius: 12px; 
        padding: 20px; 
    }

    /* Toggle */
    .toggle-container { 
        width: 180px; 
        height: 40px; 
        padding: 0 4px; 
    }
    .toggle-text { 
        font-size: 14px; 
    }
    .toggle-button { 
        width: 85px; 
        height: 36px; 
        left: 2px; 
        top: 2px; 
    }
    .toggle-button.move { 
        left: calc(100% - 87px); 
    }

    /* -------------------- ABOUT / SECT3 -------------------- */
    .about-content { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
    }

    .about-text { 
        width: 100%; 
    }
    .sect3-container > div { 
        text-align: center; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        justify-content: center; 
        gap: 20px; 
    }
    .sect3-container > div:last-child img { 
        width: 70%; 
    }

    /* -------------------- CAROUSEL -------------------- */
    .carousel-container { 
        width: 100%; 
        max-width: 350px; 
    }
    .carousel-container .main-image img { 
        width: 100%; 
        height: auto; 
    }
    .thumbnails { 
        display: flex; 
        justify-content: center; 
        gap: 10px; 
        flex-wrap: wrap; 
    }
    .thumbnails img { 
        width: 80px; 
        height: auto; 
        cursor: pointer; 
    }

/* -------------------- SECT5 (móvil: columna) -------------------- */
    .sect5-container {
        display: flex;
        flex-direction: column;  
        align-items: center;     
        justify-content: center;
        width: 90%;              
        margin: 0 auto;
        gap: 20px;              
    }   

    .sect5-container > div {
        width: 100%;             
        text-align: center;      
        padding: 0;            
    }

.sect5-container > div:nth-child(2) h3 {
    font-size: 2em;
}

.sect5-container > div:nth-child(2) h4 {
    font-size: 1em;
}

.sect5-container > div:first-child img,
.sect5-container > div:last-child img {
    width: 80%;            
    max-width: 300px;     
    margin: 0 auto;
    display: block;
}

 section#galeria-congresos h4 {
    font-size: 2em;
    text-align: center;
    margin-left: 0;
    margin-bottom: 10px;
  }
  section#galeria-congresos h3 {
    font-size: 1em;
    text-align: center;
    margin-left: 0;
    margin-bottom: 20px;
  }

  /* Contenedor en columna */
  .galeria-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
  }

  /* Carrusel ocupa 100% */
  .galeria-carrusel {
    flex: 0 0 100%;
    margin-bottom: 20px;
  }

  /* Descripción ocupa 100% */
  .galeria-descripcion {
    flex: 0 0 100%;
    padding: 20px;
    text-align: center;
  }

  /* Ajuste de imágenes */
  .galeria-row img {
    height: 120px;
    width: auto;
  }

    /* -------------------- FOOTER -------------------- */
    .footer {
        flex-direction: column; 
        justify-content: center;
        align-items: center; 
        text-align: center;
        gap: 1px;
        padding: 30px 5%;
    }
    .footer__logo { 
        max-width: 200px; 
    }
    .footer__brand, .footer__contact { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        gap: 10px; 
    }

    /* -------------------- TIMELINE / FORM STEPS -------------------- */
    .progress-container { 
        flex-direction: column; 
        align-items: flex-start; 
        width: 90%; 
        margin: 15px auto; 
        gap: 1px; 
    }
    .progress-step { 
        flex-direction: row; 
        align-items: center; 
        text-align: left; 
        margin-bottom: 5px; 
        width: 100%; 
    }
    .step-number { 
        width: 30px; 
        height: 30px; 
        font-size: 14px; 
        margin-right: 10px; 
    }
    .progress-step p { 
        font-size: 14px; 
        margin: 0; 
    }
    .progress-line { 
        height: 4px; 
        width: 100%; 
        background-color: #dddddd; 
        margin: 5px 0 10px 40px; 
        border-radius: 2px; 
    }
    .progress-step.active .step-number { 
        background-color: #4CAF50; 
        color: #ffffff; 
    }
    .progress-step.active + .progress-line { 
        background-color: #20a144; 
    }

    .form-wrapper > div:first-child img {
    max-width: 100%;
    }

    section#galeria-congresos {

    width: 95%;
}
    /*--------------------------MODAL--------------------*/

    .modal-content {
        max-width: 95%;
    }

    .modal-content h2 {
        font-size: 1.5em;
    }

    .modal-content h3 {
        font-size: 1em;
    }

    .modal-content p {
        font-size: 0.9em;
    }

    .modal-header img {
        max-width: 80%;
    }


}


/* ==================== MEDIA QUERY: TABLETS ==================== */
@media (min-width: 651px) and (max-width: 1024px) {

    /* -------------------- HEADER -------------------- */
    header {
        flex-direction: row; /* mantener horizontal */
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }
    header img {
        width: 35%;
        max-width: 220px;
    }
    nav {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 10px;
    }

    /*-----------------------HERO--------------------- */

    .hero {
    width: 100%;
    min-height: 50vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat;
    position: relative;
    padding: 20px 10px;
    overflow: hidden;
    z-index: 1;
    margin-top: 0; 

    /* -------------------- SECT2 -------------------- */
    .sect2-container {
        padding: 0 8%;
    }
    .sect2-columns {
        gap: 30px;
    }
    .sect2-left {
        padding-top: 10%;
        text-align: right;
    }
    .sect2-right h2 {
        font-size: 3.5em;
    }
    .sect2-right .principal-img,
    .sect2-right .year-img {
        max-width: 80%;
    }


    /*-----------------------SECT3--------------------- */
   .about-content {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}
    /* -------------------- SECT5 -------------------- */
    .sect5-container {
    width: 100%;
    }

    .sect5-container > div:last-child {
    flex: 2;
    text-align: center;
    padding: 0%;
    }
    /* -------------------- FORM / SECT7 -------------------- */
    .form-wrapper {
        flex-direction: row;  /* imagen y form lado a lado */
        gap: 2rem;
        padding: 2rem;
    }
    .form-box, .form-image {
        width: 48%;
        padding: 25px;
    }

    /* Toggle */
    .toggle-container {
        width: 200px;
        height: 42px;
    }
    .toggle-text {
        font-size: 15px;
    }
    .toggle-button {
        width: 95px;
        height: 38px;
    }
    .toggle-button.move {
        left: calc(100% - 97px);
    }

    /* -------------------- LISTS -------------------- */
    #lista2 li {
        max-width: 350px;
        padding: 18px 18px 18px 60px;
    }
    #lista2 li:before {
        height: 35px;
        width: 35px;
        line-height: 35px;
        left: 10px;
    }

    /* -------------------- FOOTER -------------------- */
    .footer {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 30px 5%;
    }
    .footer__brand,
    .footer__contact {
        align-items: flex-start;
    }
}
}
