:root{
  --verde:#173f25;
  --verde-claro:#7ca43c;
  --naranjo:#d95f02;
  --fondo:#f7f8f4;
  --texto:#243024;
}
*{box-sizing:border-box}
body{margin:0;font-family:Arial, Helvetica, sans-serif;background:var(--fondo);color:var(--texto);line-height:1.55}
.topbar{background:white;padding:18px 6%;display:flex;justify-content:space-between;align-items:center;gap:20px;box-shadow:0 2px 12px rgba(0,0,0,.08);position:sticky;top:0;z-index:10}
.brand{display:flex;align-items:center;gap:18px}.logo{width:105px;height:105px;object-fit:contain}.brand h1{margin:0;color:var(--verde);font-size:1.7rem;line-height:1.05}.brand p{margin:.35rem 0 0;color:var(--naranjo);font-weight:bold}
nav{display:flex;gap:18px;flex-wrap:wrap}nav a{color:var(--verde);text-decoration:none;font-weight:bold;font-size:.9rem}nav a:hover{color:var(--naranjo)}
.hero{position:relative;min-height:540px;overflow:hidden;background:#000}.slider{display:flex;width:500%;height:540px;animation:slide 25s infinite}.slider img{width:20%;height:100%;object-fit:cover;filter:brightness(.72)}
.hero-text{position:absolute;left:6%;bottom:13%;max-width:560px;color:white;text-shadow:0 2px 8px rgba(0,0,0,.65)}.hero-text h2{font-size:3rem;margin:0 0 10px;color:var(--naranjo);text-shadow:0 2px 8px rgba(0,0,0,.75)}.hero-text p{font-size:1.25rem}.hero-date{font-weight:bold;background:rgba(23,63,37,.75);display:inline-block;padding:8px 12px;border-radius:6px}.buttons{display:flex;gap:14px;flex-wrap:wrap}.btn{display:inline-block;padding:12px 18px;border-radius:6px;text-decoration:none;color:white;font-weight:bold}.primary{background:var(--naranjo)}.secondary{background:var(--verde-claro)}
@keyframes slide{0%,16%{transform:translateX(0)}20%,36%{transform:translateX(-20%)}40%,56%{transform:translateX(-40%)}60%,76%{transform:translateX(-60%)}80%,96%{transform:translateX(-80%)}100%{transform:translateX(0)}}
.info-strip{display:grid;grid-template-columns:repeat(4,1fr);background:var(--verde);color:white;text-align:center}.info-strip a{padding:24px;border-right:1px solid rgba(255,255,255,.35);color:white;text-decoration:none;display:block;transition:background .2s ease}.info-strip a:hover{background:rgba(255,255,255,.12)}.info-strip span{display:block;color:#dce9c7}
.content{max-width:1120px;margin:auto;padding:55px 6%}.two-columns{display:grid;grid-template-columns:1.5fr 1fr;gap:34px;align-items:start}h2{color:var(--verde);font-size:2rem}.card{background:white;border-radius:12px;padding:22px;box-shadow:0 4px 18px rgba(0,0,0,.08)}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.highlight{background:#eef4e6;border-radius:16px;margin-top:20px}footer{background:#1b1b1b;color:white;text-align:center;padding:25px}
@media(max-width:850px){.topbar{display:block}.brand{margin-bottom:15px}.brand h1{font-size:1.35rem}.logo{width:82px;height:82px}nav{gap:10px}.hero,.slider{height:500px;min-height:500px}.hero-text h2{font-size:2.2rem}.info-strip,.two-columns,.cards{grid-template-columns:1fr}.info-strip a{border-right:0;border-bottom:1px solid rgba(255,255,255,.25)}}


/* Tabla de costos de participación */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 2rem 0;
}
.fees-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.fees-table th {
  background: #2f6b3d;
  color: #ffffff;
  text-align: left;
  padding: 14px 16px;
}
.fees-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #e7e7e7;
}
.fees-table td:last-child {
  font-weight: 700;
  text-align: right;
}
.fees-table tr:last-child td {
  border-bottom: none;
}
#costos-participacion h3 {
  margin-top: 1.8rem;
}

#costos-participacion{
    max-width:900px;
    margin:40px auto;
}
.fees-table{
    width:85% !important;
    margin:20px auto 40px auto !important;
}
.fees-table th, .fees-table td{
    padding:16px 24px !important;
}


.fee-notes{
    max-width:85%;
    margin: 10px auto 20px auto;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #333;
}
.fee-notes p{
    margin: 8px 0;
}


/* Contacto y pie de página */
#consultas {
  max-width: 900px;
  margin: 40px auto;
  padding: 28px;
  background: #f7faf6;
  border-left: 6px solid #2f6b3d;
  border-radius: 12px;
}
#consultas a,
.site-footer a,
footer a {
  color: inherit;
  font-weight: 700;
}
.site-footer,
footer {
  margin-top: 50px;
  padding: 24px 18px;
  text-align: center;
}


/* Logo Universidad de Talca y ajustes solicitados */
.logo-utalca{
  max-height: 90px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 10px 24px 10px auto;
}
.top-logo-utalca{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 12px 28px;
  background: #ffffff;
}
.lema-blanco{
  color: #ffffff !important;
}
.texto-principal-congreso{
  max-width: 980px;
  margin: 40px auto;
  padding: 28px;
  background: #ffffff;
  border-radius: 14px;
  line-height: 1.7;
}
.texto-principal-congreso p{
  font-size: 1.05rem;
}


/* Logo UTalca extremo superior derecho */
.logo-utalca{
    position:absolute !important;
    top:10px !important;
    right:15px !important;
    max-height:90px !important;
    width:auto !important;
    z-index:9999 !important;
}
header, .top-logo-utalca{
    position:relative !important;
}


.sobre-fechas-grid{
    display:block;
    margin:30px auto;
    max-width:1200px;
}
.sobre-box{
    width:48%;
    float:left;
    margin-right:2%;
    background:#fff;
    padding:25px;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
}
.sobre-box h2{
    margin-top:0;
}

.bienvenida-congreso{
 max-width:1100px;
 margin:20px auto 30px auto;
 background:#ffffff;
 padding:24px 28px;
 border-radius:12px;
 box-shadow:0 4px 12px rgba(0,0,0,0.08);
 line-height:1.7;
}


/* Bienvenida del Comité Organizador */
.bienvenida-congreso{
  max-width: 1200px;
  margin: 36px auto 28px auto;
  padding: 0 24px;
  box-sizing: border-box;
  clear: both;
}
.bienvenida-contenedor{
  background: #ffffff;
  border-radius: 14px;
  padding: 28px 34px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  border-left: 6px solid #2f6b3d;
}
.bienvenida-contenedor p{
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 12px 0;
}
.bienvenida-contenedor p:last-child{
  margin-bottom: 0;
}


/* Reducción de espacios verticales */
section{
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}

.content-section,
.fechas-importantes,
.programa-preliminar,
.envio-resumenes,
.bienvenida-congreso{
  margin-top: 20px !important;
  margin-bottom: 20px !important;
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

h2{
  margin-top: 10px !important;
  margin-bottom: 15px !important;
}

.sche-box{display:flex;gap:30px;align-items:flex-start}.sche-logo img{max-width:220px}.sche-text{line-height:1.7;flex:1}

/* Sección Sociedad Chilena de Entomología */
.sche-box{
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-top: 24px;
}
.sche-logo{
  flex: 0 0 240px;
}
.sche-logo img{
  max-width: 240px;
  height: auto;
  display: block;
}
.sche-text{
  flex: 1;
  line-height: 1.7;
}
@media(max-width: 800px){
  .sche-box{
    flex-direction: column;
  }
  .sche-logo{
    flex: none;
  }
  .sche-logo img{
    max-width: 200px;
  }
}
