
<style>
* {box-sizing:border-box;margin:0;padding:0;}
.container {max-width:100vw;/*min-height:100vh*/;display:flex;flex-direction:column;}
.header {border-radius:6px;color:#47b1b3;background:rgba(255, 255, 255, 0.95);backdrop-filter:blur(10px);padding:1rem;/*box-shadow:0 1px 5px rgba(0,0,0,2.1);position:sticky;top:0;z-index:100;*/}
/*.header:hover {box-shadow:0 2px 10px rgba(0,0,0,4.1)}*/
.header h1 {text-align:center;color:#2196F3;font-size:1.5rem;margin-bottom:0.5rem;}
.status {text-align:center;padding:0.5rem;border-radius:8px;margin-bottom:1rem;font-weight:600;}
.status.online {background:#4CAF50;color:white;}
.status.offline {background:#FF9800;color:white;}
.main-content {flex:1;display:grid;grid-template-columns:1fr;gap:1em;grid-template-areas:"a""b""c";padding:0.7em 0px;}
@media (min-width:768px){.main-content {grid-template-columns:1fr 1fr;}}
.map-container {background:white;border-radius:12px;overflow:hidden;box-shadow:0 8px 32px rgba(0,0,0,0.1);min-height:325px;position:relative;}
.map-svg {width:100%;height:400px;cursor:pointer;}
.info-panel {background:rgba(255, 255, 255, 0.95);backdrop-filter:blur(10px);border-radius:12px;padding:1.5rem;max-height:80vh;overflow-y:auto;}
.etapa-info {margin-bottom:2rem;}
/*.etapa-title {font-size:1rem;color:#2196F3;margin-bottom:1rem;display:flex;align-items:center;gap:0.5rem;}*/
.bloc-title {font-size:1rem;color:#2196F3;margin-bottom:1rem;/*display:flex*/;align-items:center;gap:0.5rem;}
.etapa-details {display:grid;gap:0.8rem;margin-bottom:1.5rem;}
.detail-item {display:flex;justify-content:space-between;padding:0.8rem;background:rgba(33, 150, 243, 0.1);border-radius:8px;border-left:4px solid #2196F3;}
.detail-label {font-weight:600;color:#666;}
.detail-value {color:#333;}
.visits-section {border-top:2px solid #e0e0e0;padding-top:1.5rem;}
.section-title {font-size:1.2rem;color:#2196F3;margin-bottom:1rem;display:flex;align-items:center;gap:0.5rem;}
.visit-card {background:linear-gradient(145deg, #f8f9fa, #e9ecef);border-radius:8px;padding:1rem;margin-bottom:1rem;box-shadow:0 2px 8px rgba(0,0,0,0.1);cursor:pointer;transition:all 0.3s ease;}
.visit-card:hover {transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,0.15);}
.visit-title {font-weight:600;color:#333;margin-bottom:0.5rem;}
.visit-type {background:#2196F3;color:white;padding:0.2rem 0.6rem;border-radius:20px;font-size:0.8rem;display:inline-block;margin-bottom:0.5rem;}
.visit-description {color:#666;font-size:0.9rem;line-height:1.4;}
.city-point {cursor:pointer;transition:all 0.3s ease;}
.city-point:hover {transform:scale(1.2);filter:drop-shadow(0 0 8px rgba(33, 150, 243, 0.8));}
.city-point.active {filter:drop-shadow(0 0 12px rgba(255, 193, 7, 1));transform:scale(1.3);}
.controls {display:flex;gap:1rem;margin-bottom:1rem;flex-wrap:wrap;}
.btn {padding:0.8rem 1.2rem;border:none;border-radius:8px;cursor:pointer;font-weight:600;transition:all 0.3s ease;flex:1;min-width:120px;}
.btn-primary {background:#2196F3;color:white;}
.btn-primary:hover {background:#1976D2;transform:translateY(-2px);}
.btn-secondary {background:#6c757d;color:white;}
.btn-secondary:hover {background:#545b62;}
.loading {text-align:center;padding:2rem;color:#666;}
.spinner {border:3px solid #f3f3f3;border-top:3px solid #2196F3;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite;margin:0 auto 1rem;}
@keyframes spin {0% { transform:rotate(0deg); }    100% { transform:rotate(360deg); }}
.toast {position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#333;color:white;padding:1rem 2rem;border-radius:8px;z-index:1000;opacity:0;transition:opacity 0.3s ease;}
.toast.show {opacity:1;}
.icon-company{width:35px}


*{margin:0;padding:0;box-sizing:border-box;}
body {padding-top:15px;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;overflow-x:hidden;}
.container {display:flex;flex-direction:column;width:100vw;max-width: 1500px;/*height:97vh*/;padding:3px;margin:0px auto;/*border:1px solid*/;border-radius:6px; position:relative;}
.main-content {flex:1;display:flex;flex-direction:column;}
.map_container {flex:1;position:relative;border-bottom:2px solid #34495e;}
#map {width:100%;height:37vh}
h3{margin:3px 0px;color:#fff;font-weight: 600;}
.header .titol{text-align:center;color:#47b1b3;font-size:1rem;margin-bottom:0.2rem;}
.info-panel {flex:1;background-color:white;padding:3px 10px;overflow-y:auto;border-top:1px solid #ddd;}
.info-bloc {/*flex:1*/;/*box-shadow: 0 1px 5px rgba(0, 0, 0, 2.1)*/;border-radius: 15px;background-color:white;overflow-y:auto;border-top:1px solid #ddd;}
.info-bloc:hover {/*box-shadow:0 2px 10px rgba(0,0,0,4.1)*/}


.info-content {max-height:100%;}
.info-item {margin-bottom:10px;padding:8px;background-color:#f8f9fa;border-radius:5px;border-left:4px solid #3498db;}
.info-item-no-border{margin-bottom:10px;/*padding:8px;*/border-radius:5px;}
.info-label {color:#2c3e50;color:#3498db;margin-bottom:3px;}
.info-value {color:#000;word-wrap:break-word;}
.info-descripcio {color:#000;word-wrap:break-word;}
.imatge-informacio{float:right;margin:0px 0px 10px 5px; max-width: 35%; max-height: 80px;display: block;border-radius:8px;}
.imatge-etapa{float:right;margin:0px 0px 10px 5px; max-width: 50%; max-height: 80px;display: block;border-radius:8px;}
.imatge-visita{float:right;margin:0px 0px 10px 5px; max-width: 50%; max-height: 80px;display: block;border-radius:8px;}
.no-selection {text-align:center;color:#7f8c8d;font-style:italic;padding:20px;}
.load-btn {width:125px;margin-right:5px;background-color:#47b1b3;color:white;padding:6px;border:none;border-radius:7px;cursor:pointer;}
.load-btn:hover {background-color:#fd7164;}

#loadCsv {position:absolute;top:7px;right:7px;}
#loadCsv_2{float:right}
#loadCsv_2:hover{background-color: #46b1b4;color: #fafafa;}




.status {margin-top:8px;padding:2px;border-radius:4px;text-align:center;width:100%!important;font-size:0.8em;}
.status.success {background-color:#d4edda;color:#155724;}
.status.error {background-color:#f8d7da;color:#721c24;}
#si-seleccio{display:none;}
#no-seleccio{/*display:block;*/display:flex;}
li{margin-bottom:10px;/*margin-left:-30px;*/}
ul{margin-top:2px}
p{margin-top:2px}
.visita-titol{text-indent:-18px;margin-left:15px;margin-bottom:5px; color:#3498db;font-weight: 600;}
.custom-marker {background-color:#3498db;width:20px;height:20px;border-radius:50%;border:3px solid white;box-shadow:0 2px 5px rgba(0,0,0,0.3);}
.custom-legend {position:absolute;top:3px;right:3px;z-index:1000;width:115px;background:white;padding:3px;border-radius:8px;box-shadow:0 2px 10px rgba(0,0,0,0.2);}
#btn_mapa_visio{position: absolute;top: 3px;right: 5px;z-index: 1000;width: 18px;background: white;padding: 3px;border-radius: 5px;box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);cursor: pointer;color: blue;}
.legend-title {font-weight:bold;font-size:0.9empx;color:#333;}
.legend-item {/*display:flex;*/align-items:center;/*margin-bottom:2px;*/cursor:pointer;}
.legend-checkbox {margin-right:8px;margin:2px 3px 2px 4px;transform: scale(1.3);}
.legend-color {width:16px;height:16px;border-radius:50%;margin-right:8px;border:2px solid #fff;box-shadow:0 0 0 1px #ccc;}
.legend-label {font-size:0.8em;color:#000;flex:1;}
.legend-count {font-size:11px;color:#888;margin-left:5px;}
.fullscreen-btn {position:absolute;bottom:10px;left:10px;background:white;border:2px solid rgba(0,0,0,0.2);border-radius:4px;width:34px;height:34px;cursor:pointer;z-index:1000;display:flex;align-items:center;justify-content:center;font-size:16px;box-shadow:0 1px 5px rgba(0,0,0,0.4);transition:all 0.2s;}
.fullscreen-btn:hover {background:#f4f4f4;transform:scale(1.05);}
.fullscreen-btn:active {background:#e4e4e4;}
body.fullscreen-mode {overflow:hidden;}
.leaflet-routing-container{display:none;}
.leaflet-popup-content p {margin:0.2em 0px;}
.leaflet-popup-content {margin:6px 0px;line-height:1.3;font-size:0.8em;min-height:1px;width:max-content;}
.divSubLlegenda{border-radius:6px;border:1px solid #dadada;padding:2px;}
.capSubLlenda{width:98%;border-radius:5px 5px 0px 0px;background-color:#EAEAFA;border-bottom:1px solid #cacaca;}
.legend-icona-transport{margin-left:5px;font-size:15px;z-index:100!important}
.transport-icon{display:block;z-index:10!important;}
.tab {overflow:hidden;border:1px solid #ccc;background-color:#f8f9fa;border-radius:5px;}
.tablinks{font-size:1em;}
.tab button {background-color:inherit;float:left;border:none;outline:none;cursor:pointer;padding:10px 10px;transition:0.3s;border-left:4px solid #3498db;}
.tab button:hover {/*background-color:#ddd;*/}
.tab button.active {background-color:#3498db;color:#fff;}
.tabcontent {display:none;padding:6px 12px;border:1px solid #ccc;border-top:none;margin-bottom:10px;padding:8px;border-radius:5px;border-left:4px solid #3498db;height:225px;overflow-y:auto;}
.tabCol{height:220px;width:48%;padding:0.5%;}
.titSubApt{color:#3498db;font-weight: 600;}
.info-value-col{height:55vh;background-color:#eaeaea;overflow-y:auto;padding:5px;li{text-indent:-2px; margin-left:-28px;}}
.info-value-info{margin-left:20px}
.btnInfo{text-decoration: none;margin: 1px 8px;text-align: center;max-width: 98%;border-radius: 4px;cursor: pointer;height: 20px;font-size: 1.2em;background-color: #3498db;color: white;}
a{text-decoration:none}
.divTab{border-radius:5px;}
#selEtapa{color:#ac2013;width:85%; border:1px solid #cacaca; border-radius:5px; background-color:#fdfddd;}
.lstVisites{padding:5px;overflow-y:auto}

@media screen and (orientation:landscape) {#etapaIdent_1{display:none}#etapaIdent_2{display:block}/* Estils per a orientació horitzontal */.main-content {flex-direction:row;}.map_container {flex:1;border-bottom:none;border-right:2px solid #34495e;}.info-panel {flex:1;border-top:none;}.tabDesc {height:63vh;}.tabcontent {height:60vh;}}

@media screen and (min-width:700px and max-width:800px) (orientation:landscape) {/* Estils per a orientació horitzontal */.container{font-size:0.8em}.main-content {flex-direction:row;}.map_container {flex:1;border-bottom:none;border-right:2px solid #34495e;}.info-panel {flex:1;border-top:none;}}

@media screen and (min-width:768px)  and (orientation:portrait) {/* Estils per a tablets */.container{font-size:1em;  }.header {font-size:1.3em;padding:5px;}.info-panel {padding:5px;}.info-item {padding:5px;margin-bottom:5px;}}

@media screen and (min-width:900px and max-width:1200px) and (orientation:landscape) {/* Estils per a tablets *//*.map_container{height:80vh}*/.container{font-size:0.8em;max-width:1200px;margin:0px auto;border:1px solid;border-radius:6px;height:97vh;padding:3px; position:relative;   }.header {font-size:1.5em;padding:5px;}.info-panel {padding:20px;}.info-item {padding:12px;margin-bottom:15px;}}

@media screen and (max-width:768px) {/* Estils per a tablets */.map_container{/*height:200px*/}.container{/*font-size:0.8em;*/}.header {font-size:1.2em;padding:5px;}.info-panel {padding:5px;}.info-item {padding:5px;margin-bottom:5px;}}



@media screen (min-width:769px) and (max-width:1099px) and (orientation:landscape) {.container{font-size:1.2em}.map_container{/*height:30vh*/}}

@media screen (min-width:769px) and (max-width:1024px) and (orientation:portrait) {.container{font-size:1.2em}.map_container{height:40vh}}

@media (min-width:769px) and (max-width:1024px) {.map_container{/*height:20vh!important*/}} 

@media (min-width:300px) and (max-width:400px), screen and (orientation:portrait)  {.map_container{height:35vh!important;flex:none!important;}.container{font-size:0.8em;border:1px solid;border-radius:6px;height:99vh;width:98wh;padding:1px;border:0px;}.info-panel{font-size:0.9em!important}.info-value-col{height:29vh;background-color:#eaeaea;overflow-y:auto;padding:5px;}}


.bloc-title {font-size: 1em;font-weight: bold;color: #333;padding: 5px 10px;background: linear-gradient(135deg,#005eb3, #47b1b3);color: white;cursor: pointer;margin: 0;position: relative;transition: all 0.3s ease;border: none;user-select: none;}
.bloc-title-mapa {font-size: 1em;font-weight: bold;color: #333;padding: 5px 10px;background: linear-gradient(135deg, #47b1b3,#005eb3);color: white;cursor: pointer;margin: 0;position: relative;transition: all 0.3s ease;border: none;user-select: none;}

.bloc-title-centre-centre{height:40px;background: linear-gradient(135deg, #005eb3,#47b1b3)}
.bloc-title-centre-mapa{height:40px;background: linear-gradient(135deg, #47b1b3,#005eb3)}

.bloc-descripcio {display: block;height:auto;overflow-y:auto;font-size:0.8em;/*column-count:3*/}

.cursos-title:hover {background: linear-gradient(135deg, #0056b3, #004085);transform: translateY(-1px);}
.cursos-title::after {content: '▼';position: absolute;right: 20px;top: 50%;transform: translateY(-50%);transition: transform 0.3s ease;font-size: 0.9rem;}
.cursos-title.active::after {transform: translateY(-50%) rotate(180deg);}*/
.cursos-title.active {background: linear-gradient(135deg, #28a745, #1e7e34);}
.cursos-descripcio {font-size:0.9em;padding: 5px 0px;margin: 0;line-height: 1.6;color: #555;background: white;display: none;border-top: 1px solid #e9ecef;animation: slideDown 0.3s ease;}
.cursos-descripcio.active {display: block;height:auto;overflow-y:auto;}


.mapa-title:hover {background: linear-gradient(135deg, #0056b3, #004085);transform: translateY(-1px);}
.mapa-title::after {content: '▼';position: absolute;right: 20px;top: 50%;transform: translateY(-50%);transition: transform 0.3s ease;font-size: 0.9rem;}
.mapa-title:after {transform: translateY(-50%) rotate(180deg);}



#lbl-desplega-cursos{float:right;margin-right:40px; margin-top:4px}
#lbl-desplega-mapa{float:right;margin-right:40px; margin-top:4px}

.etapa-info {background: white;border-radius: 8px;margin-bottom: 6px;box-shadow: 0 2px 8px rgba(0,0,0,0.1);overflow: hidden;}
.etapa-title {font-weight: bold;color: #333;padding: 4px 10px;/*background: linear-gradient(135deg, #3498db, #0056b3)*/;color: #0056b3;cursor: pointer;margin: 0;position: relative;transition: all 0.3s ease;border: none;user-select: none;}
.etapa-title:hover {background: linear-gradient(135deg, #0056b3, #47b1b3);color:#fff;transform: translateY(-1px);}
.etapa-title::after {content: '▼';position: absolute;right: 20px;top: 50%;transform: translateY(-50%);transition: transform 0.3s ease;font-size: 0.9rem;}
.etapa-title.active::after {transform: translateY(-50%) rotate(180deg);}*/
.etapa-title.active {background: linear-gradient(135deg, #28a745, #1e7e34);}


/*
.etapa-btn {font-size: 0.9em;font-weight: bold;color: #333;padding: 5px 20px;background: linear-gradient(135deg, #3498db, #0056b3);color: white;cursor: pointer;margin: 0;position: relative;transition: all 0.3s ease;border: none;user-select: none;}
.etapa-btn:hover {background: linear-gradient(135deg, #0056b3, #004085);transform: translateY(-1px);}
.etapa-btn::after {content: '▼';position: absolute;right: 20px;top: 50%;transform: translateY(-50%);transition: transform 0.3s ease;font-size: 0.9rem;}
.etapa-btn.active::after {transform: translateY(-50%) rotate(180deg);}
.etapa-btn.active {background: linear-gradient(135deg, #28a745, #1e7e34);}
*/


.curs-subtitol{margin-left:10px;color:#0056b3;cursor:pointer}
.curs-subtitol:hover{background-color:#7ab2b4; color:#fff; .icon-formiguer{filter: invert(40%) sepia(100%) saturate(500%) hue-rotate(180deg)}}
.etapa-descripcio {font-size:1.2em;margin: 0;line-height: 1.6;color: #555;background: white;display: none;border-top: 1px solid #e9ecef;animation: slideDown 0.3s ease;}
.etapa-descripcio.active {display: block;height:auto;overflow-y:auto;}
.mapa-icon{width:20px!important}
.curs-subtitol{margin-left:30px;font-size:1em;color:#0056b3}
.curs_centre{width:100%;margin-left:30px;font-size:0.9em;color:#47b1b3;cursor:pointer}
.curs_centre:hover{width:100%;margin-left:30px;font-size:0.9em;background-color:#ece5cb;color:#000}
.centre-subtitol{margin:7px 0px 5px;font-size:1.4em;color:#47b1b3}
.centre-dades{margin-left:10px;color:#fd7164}
.curs-chk{text-indent:-20px;margin-left:20px;margin-top:5px}
.inp-chk{margin-right:7px}
.centre-lupa{font-size:1.2em;margin-right:5px;cursor:pointer}
.Companyia-icon{font-size:1.5em;cursor:pointer}
.bloc-descripcio-centre{font-size:0.9em;padding:0px 10px}

.inp_resum{width:55px;height:25px;padding:2px 5px;font-size:0.9em;border-radius:5px;color:#fd7164;border:1px solid #fd7164;background-color:#fff}
#txt_cercar_centre{width:60%;height:25px;margin-left:1%;padding:0px 5px; font-size:0.9em;border-radius:5px;color:#fd7164;border:1px solid #fd7164}
.btn_cerca_centre{width:30px;height:25px;padding:0px 4px; font-size:1em;border-radius:5px;color:#fd7164;border:1px solid #fd7164;background-color:#fff;cursor:pointer;}
input::placeholder {color: #fd7164;font-style: italic;font-weight: 300;font-size: 1em;opacity:0.8;}

#bloc-cursos{grid-area: a; grid-row: 2;}
#bloc-mapa{grid-area: b; grid-row: 1;}

.btn_centre{margin: 3px 2px;font-size: 1em;background-color: #fd7164;color: #000;padding: 0px 5px;border-radius: 8px;border: 1px solid #cacaca;height: 25px;cursor: pointer;}
.curs_dades{width:25px;height:20px;text-align:center;font-size:0.8em;border-radius:5px;color:#000;border:1px solid #fd7164;background-color:#fff}

.etapa-estadistiques{width: 100%;height:25px:line-height:2em;padding:0px 10px; font-size: 1em;background-color: #fd716490;}
.lbl-recompte{/*font-size:0.7em*/}



@media screen and (orientation:portrait) {
    #centre_cercar{width:100px;height:25px;margin-left:0px;padding:0px 5px; font-size:0.9em!important;border-radius:5px;color:#fd7164;border:1px solid #fd7164}
    .etapa-info {margin-bottom: 0px!important;}
    .info-panel{flex:none}#etapaIdent_1{display:block}#etapaIdent_2{display:none}.map_container{height:30vh}
  
    #bloc-mapa{order:1;}
    #bloc-cursos{order:3;}
    #bloc-mapa{order:2;}

    .logo-programa{height:4vh;margin:-10px 0px}

    #loadCsv {
      position: absolute;
      top: 0.5vh;
      right: 2vw;
      height: 4vh;
      max-width: 100%;
      background-color: #095bad;
      color: white;
      padding: 1vh 3vw;
      border: none;
      border-radius: 8px;
      cursor: pointer;
    }
}


@media screen and (orientation:landscape) {
    #centre_cercar{width:180px;height:25px;margin-left:20px;padding:0px 5px; font-size:0.9em;border-radius:5px;color:#fd7164;border:1px solid #fd7164}
    .etapa-info {margin-bottom: 6px!important;}

    .info-panel{flex:1}#map{height:60vh}.map_container{/*height:30vh*/}
    
    #bloc-mapa{order:1;}
    #bloc-cursos{order:2;}
    #bloc-mapa{order:3;}

    .logo-programa{height:4vh;margin:-10px 0px}
    
    #loadCsv {
      position: absolute;
      top: 0.5vh;
      right: 2vw;
      height: 4vh;
      max-width: 100%;
      background-color: #47b1b3;
      color: white;
      border: none;
      border-radius: 7px;
      cursor: pointer;
    }

    .bloc-descripcio-centre{font-size:0.9em;padding:0px 10px 10px}
    .bloc-mapa-centre{font-size:0.9em;padding:0px 10px}

}

  /* Amaguem el checkbox per defecte */
  input[type="checkbox"] {
    display: none;
  }

  /* Estil personalitzat per al checkbox */
  label.custom-checkbox {
    transform: scale(1);
    margin-right: 10px;
    margin-bottom:-6px;
    display: inline-block;
    width: 25px;
    height: 20px;
    background-color: #fff;
    border: 2px solid #fd7164;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
  }

.lbl-curs{margin-top:-5px;font-size:1.2em}



.btn-tornar{float: right;width:125px;font-size:0.9em;margin-right:5px;padding:6px;cursor:pointer;color: #fd7164;background-color: #fff;border-radius: 7px;}
.btn-tornar:hover{color: #fff;background-color: #fd7164;}



.lst-Companyia-centre{font-size:0.9em;margin-left:5px;color:#2c3e50;cursor:pointer}
.lst-Companyia-centre:hover{font-size:0.9em;margin-left:10px;background-color:#ece5cb;color:#000}


  /* Quan el checkbox està marcat, canviem el fons i el color */
  input[type="checkbox"]:checked + label.custom-checkbox {
    background-color: #fd7164;
    border-color: #fd7164;
  }

  /* Afegim una "marca" de verificació */
  input[type="checkbox"]:checked + label.custom-checkbox::after {
    content: '✔';
    color: white;
    position: absolute;
    top: -2px;
    left: 4px;
    font-size: 16px;
  }


  .leaflet-control-center  button{height: 30px;background-color: #fafafa;border: 1px solid;outline-style: none;border-radius: 5px;padding: 5px;}

  .leaflet-control-center  button:hover{box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);}

  #capçalera-centres{padding:10px}
  .descripcio-reptes-centre{margin-top:10px}




/* === MODAL OVERLAY === */
.modal-overlay {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0, 0, 0, 0.5);z-index: 1000;display: none;justify-content: center;align-items: center;}

/* === MODAL === */
.modal {background: white;border-radius: 8px;box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);width: 60vw;max-width: 90%;max-height: 90%;overflow: hidden;animation: modalAppear 0.3s ease-out;}

@keyframes modalAppear {from {    opacity: 0;    transform: scale(0.8) translateY(-50px);}to {    opacity: 1;    transform: scale(1) translateY(0);}}

/* === HEADER === */
.modal-header {background: #47b1b3;color: white;padding: 20px;display: flex;justify-content: space-between;align-items: center;}

.modal-title {margin: 0;font-size: 1.4em;}

.modal-close {background: none;border: none;color: white;font-size: 24px;cursor: pointer;padding: 5px;border-radius: 50%;width: 35px;height: 35px;}

.modal-close:hover {background: rgba(255, 255, 255, 0.2);}

/* === BODY === */
.modal-body {padding: 25px;}

/* === FORMULARI === */
.form-group {margin-bottom: 20px;}

.form-label {display: block;margin-bottom: 8px;font-weight: 500;color: #333;}

.form-input {width: 100%;padding: 12px;border: 2px solid #ddd;border-radius: 6px;font-size: 16px;transition: border-color 0.3s ease;}

.form-input:focus {outline: none;border-color: #095bad;box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);}

.form-textarea {resize: vertical;min-height: 80px;}

/* === FOOTER === */
.modal-footer {padding: 20px;background: #f8f9fa;text-align: right;border-top: 1px solid #dee2e6;}

.btn {padding: 10px 20px;border: none;border-radius: 5px;cursor: pointer;font-size: 16px;margin-left: 10px;transition: all 0.3s ease;}

.btn-primary {background: #095bad;color: white;}

.btn-primary:hover {background: #0056b3;}

.btn-secondary {background: #6c757d;color: white;}

.btn-secondary:hover {background: #545b62;}

/* === RESPONSIVE === */
@media (max-width: 600px) {.modal {width: 95%;margin: 10px;}.modal-header,.modal-body,.modal-footer {padding: 15px;}}


/* === ESTILS DE LA PÀGINA === */
.demo-container {max-width: 600px;margin: 0 auto;background: white;padding: 30px;border-radius: 10px;box-shadow: 0 2px 10px rgba(0,0,0,0.1);text-align: center;}
.open-modal-btn {background: linear-gradient(45deg, #095bad, #0056b3);color: white;border: none;padding: 15px 30px;font-size: 18px;border-radius: 8px;cursor: pointer;transition: transform 0.2s ease;}
.open-modal-btn:hover {transform: translateY(-2px);box-shadow: 0 4px 15px rgba(0,0,0,0.2);}





</style>