/* =====================================================================
   TRIAR · Versión 38
   Capa visual alineada con la intranet y el Gestor de Estudio:
   verde petróleo, turquesa y menta, fondo claro, tarjetas blancas con
   esquinas redondeadas, íconos en cuadrados con degradé y formas onduladas.
   Se carga después de triar.css y solo cambia la presentación.
   ===================================================================== */
:root{
  --petroleo:#0b5256;--petroleo-osc:#033a42;--petroleo-2:#0a5960;--petroleo-3:#1f7e7f;
  --turquesa:#329092;--menta:#5cc8c2;--menta-suave:#e4f3f2;
  --fondo:#f3f6f6;--tarjeta:#ffffff;--tinta:#0e3a40;--gris:#5a6f74;--linea:#e0e8e9;
  --sombra:0 12px 32px rgba(3,58,66,.08);--sombra-alta:0 22px 48px rgba(3,58,66,.14);
  --radio:22px;--radio-sm:14px;
  --grad-ico:linear-gradient(145deg,#1f7e7f 0%,#0b5256 100%);
  /* compatibilidad con las variables de la v36 */
  --navy:#0b5256;--navy2:#0a5960;--teal:#1f7e7f;--sage:#e4f3f2;--copper:#329092;
  --paper:#f3f6f6;--white:#ffffff;--ink:#0e3a40;--muted:#5a6f74;--line:#e0e8e9;
}
html body{background:var(--fondo);color:var(--tinta)}
html body h1,html body h2,html body h3{letter-spacing:-.025em;color:inherit}
html body h2{font-weight:800}
html body h3{font-weight:750}
.scroll-progress{background:linear-gradient(90deg,var(--turquesa),var(--menta))!important}

/* Rótulo con barra corta, como el encabezado del panel */
html body .eyebrow{color:var(--petroleo-3)}
html body .eyebrow:before{width:34px;height:4px;border-radius:4px;background:linear-gradient(90deg,var(--turquesa),var(--menta))}

/* Íconos en cuadrados redondeados con degradé */
.v37-ico,html body .service-icon{
  width:52px;height:52px;border-radius:15px;display:inline-grid;place-items:center;flex:0 0 auto;
  background:var(--grad-ico)!important;color:#fff!important;border:0!important;
  box-shadow:0 8px 18px rgba(11,82,86,.25),inset 0 1px 0 rgba(255,255,255,.18);
}
.v37-ico svg,html body .service-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.v37-ico-sm{width:40px;height:40px;border-radius:12px}
.v37-ico-sm svg{width:21px;height:21px}

/* Botones */
html body .btn,html body .nav-cta{border-radius:12px;background:var(--petroleo);box-shadow:0 8px 20px rgba(11,82,86,.22)}
html body .btn:hover,html body .nav-cta:hover{background:var(--petroleo-3)}
html body .btn.light{background:#fff;color:var(--petroleo)!important;box-shadow:0 10px 24px rgba(0,0,0,.18)}
html body .btn.light:hover{background:var(--menta-suave)}

/* Cabecera */
html body header{background:rgba(255,255,255,.94);border-bottom:1px solid var(--linea);box-shadow:0 6px 24px rgba(3,58,66,.05)}
html body nav a{color:#46606a}
html body nav a:not(.nav-cta):hover{color:var(--petroleo)}
html body nav a:not(.nav-cta){position:relative}
html body nav a:not(.nav-cta):after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:3px;border-radius:3px;background:var(--turquesa);transform:scaleX(0);transition:transform .2s}
html body nav a:not(.nav-cta):hover:after{transform:scaleX(1)}
html body .nav-toggle{border-radius:12px;border-color:var(--linea)}
html body .nav-toggle span{background:var(--petroleo)}
@media(max-width:850px){html body header.nav-open nav{background:#fff;border-radius:0 0 20px 20px}}

/* Portada */
html body .hero{background:linear-gradient(170deg,#0a5960 0%,#054952 50%,#033a42 100%)}
html body .hero:before{width:620px;height:620px;right:-240px;top:-330px;border:0;background:radial-gradient(circle,rgba(92,200,194,.16),rgba(92,200,194,0) 65%);box-shadow:none}
html body .hero .eyebrow{color:#bfe6e3}
html body .hero h1{font-weight:800;letter-spacing:-.035em}
html body .hero h1 span{color:var(--menta)}
html body .hero-copy{color:#d3e5e6}
html body .hero-secondary{color:var(--menta);border-color:rgba(92,200,194,.45)}
html body .hero-proof i{background:var(--menta)!important}
html body .hero-proof span{color:#cfe3e4}
html body .hero-bottom{border-top-color:rgba(255,255,255,.16);color:#b9d4d6}
html body .hero-bottom strong{color:var(--menta)}
.v37-wave{position:absolute;pointer-events:none;z-index:0;background-repeat:no-repeat;background-size:100% 100%}
.v37-wave-a{right:0;top:0;width:min(58vw,820px);height:300px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 260' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23329092' stop-opacity='0'/%3E%3Cstop offset='.55' stop-color='%23329092' stop-opacity='.5'/%3E%3Cstop offset='1' stop-color='%235cc8c2' stop-opacity='.85'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 0C150 120 340 185 600 140V0Z' fill='%23ffffff' fill-opacity='.045'/%3E%3Cpath d='M110 0C250 135 420 182 600 166V184C400 205 220 150 85 0Z' fill='url(%23g)'/%3E%3C/svg%3E")}
.v37-wave-b{left:0;bottom:0;width:min(46vw,620px);height:220px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 220' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%235cc8c2' stop-opacity='.55'/%3E%3Cstop offset='.6' stop-color='%23329092' stop-opacity='.25'/%3E%3Cstop offset='1' stop-color='%23329092' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 40C160 150 380 200 600 220H0Z' fill='%23ffffff' fill-opacity='.04'/%3E%3Cpath d='M0 92C170 175 360 212 560 220H500C330 214 160 178 0 120Z' fill='url(%23g)'/%3E%3C/svg%3E")}
html body .hero-grid,html body .hero-bottom{position:relative;z-index:1}
html body .photo-carousel{border-radius:26px;border:1px solid rgba(255,255,255,.22);box-shadow:0 30px 70px rgba(0,0,0,.32);background:#0a5960}
html body .photo-slide img{filter:saturate(.95)}
html body .photo-slide:after{background:linear-gradient(180deg,rgba(3,58,66,0) 40%,rgba(3,58,66,.78) 100%)}
html body .photo-overlay{left:22px;right:auto;bottom:24px;max-width:min(78%,400px);padding:18px 22px 20px;border-radius:18px;background:rgba(3,58,66,.55);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.16);border-right:0!important}
html body .photo-overlay:before,html body .photo-overlay:after{display:none!important}
html body .photo-overlay span{color:var(--menta)}
html body .carousel-arrow{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.5);backdrop-filter:blur(6px)}
html body .carousel-arrow:hover{background:rgba(255,255,255,.3)}
html body .carousel-dots button.active{background:var(--menta)}

/* Quiénes somos */
html body #nosotros{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 240' preserveAspectRatio='none'%3E%3Cpath d='M120 0C260 120 420 170 600 150V0Z' fill='%23e6eeef'/%3E%3Cpath d='M190 0C320 105 460 140 600 128V138C450 156 300 112 170 0Z' fill='%23329092' fill-opacity='.35'/%3E%3C/svg%3E") no-repeat right top/min(48vw,640px) 220px,var(--fondo)}
html body .experience{color:var(--petroleo);font-weight:800}
html body .experience sup{color:var(--turquesa)}
html body .intro-main h2 span{color:var(--petroleo-3)}
html body .credentials{border-top:0;gap:16px;margin-top:34px}
html body .credential,html body .credential+.credential{background:#fff;border:1px solid var(--linea)!important;border-radius:20px;padding:22px 22px 24px;box-shadow:var(--sombra)}
html body .credential .v37-ico{display:grid;margin-bottom:14px}
html body .credential small{display:block}
html body .credential small{color:var(--turquesa)}
html body .intro-visual{border-radius:var(--radio);overflow:hidden;box-shadow:var(--sombra-alta)}
html body .intro-visual img{border-radius:0}
html body .intro-visual-caption span{color:var(--menta)!important}

/* Servicios */
html body .services{background:#fff;border-color:var(--linea)}
html body #servicios .service-grid-detailed .service-card{border-radius:var(--radio);overflow:hidden;border:1px solid rgba(11,82,86,.18);box-shadow:var(--sombra)}
html body #servicios .service-grid-detailed .service-card:hover{box-shadow:var(--sombra-alta)}
html body #servicios .service-grid-detailed .service-card:before{background:linear-gradient(90deg,rgba(3,58,66,.97) 0%,rgba(5,73,82,.93) 36%,rgba(11,82,86,.80) 55%,rgba(11,82,86,.42) 74%,rgba(11,82,86,.10) 100%)!important}
html body #servicios .service-grid-detailed .service-card:after{background:linear-gradient(0deg,rgba(3,58,66,.25),transparent 50%)!important}
html body #servicios .service-grid-detailed .service-card .service-no{color:var(--menta)!important}
html body #servicios .service-grid-detailed .service-card .service-icon{color:#fff!important;width:50px;height:50px;background:linear-gradient(145deg,#329092,#1f7e7f)!important;box-shadow:0 8px 20px rgba(0,0,0,.25)}
html body #servicios .service-grid-detailed .service-card .service-seo{color:var(--menta)!important}
html body #servicios .service-detail-content{background:rgba(255,255,255,.07);border-left:3px solid var(--menta);border-radius:0 14px 14px 0}
html body #servicios .service-card.service-photo details.service-details>summary{background:#fff!important;border-color:#fff!important;color:var(--petroleo)!important;border-radius:12px!important;padding:9px 16px!important}
html body #servicios .service-card.service-photo details.service-details>summary span{color:var(--petroleo)!important}
html body #servicios .service-card.service-photo details.service-details>summary:hover{background:var(--menta)!important;border-color:var(--menta)!important}
html body #servicios .service-details{border-top-color:rgba(255,255,255,.22)!important}

/* Gestión proactiva */
html body .proactive{background:linear-gradient(180deg,#eef5f5 0%,var(--fondo) 100%);border-color:var(--linea)}
html body .proactive:before{left:auto;right:-160px;top:-200px;background:radial-gradient(circle,rgba(50,144,146,.14),rgba(50,144,146,0) 70%)}
html body .proactive-card{background:#fff;border:1px solid var(--linea);border-radius:var(--radio);box-shadow:var(--sombra)}
html body .proactive-card:hover{box-shadow:var(--sombra-alta)}
html body .proactive-body .v37-ico{margin-bottom:16px}
html body .proactive-kicker{color:var(--turquesa)}
html body .proactive-body h3{color:var(--tinta)}
html body .proactive-emphasis{position:relative;overflow:hidden;border-radius:var(--radio);border-left:0!important;background:linear-gradient(135deg,#033a42,#0b5256 60%,#1f7e7f)!important;box-shadow:var(--sombra-alta)}
html body .proactive-emphasis:after{content:"";position:absolute;right:0;bottom:0;width:340px;height:100%;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120C120 70 230 40 340 30V120Z' fill='%235cc8c2' fill-opacity='.14'/%3E%3Cpath d='M60 120C160 80 250 62 340 58V72C250 78 160 96 90 120Z' fill='%235cc8c2' fill-opacity='.35'/%3E%3C/svg%3E") no-repeat right bottom/100% 100%}
html body .proactive-emphasis>*{position:relative;z-index:1}
html body .proactive-emphasis-mark{color:var(--menta)!important}
html body .proactive-emphasis-line{background:var(--menta)}

/* Guías */
html body .guides{background:var(--fondo)}
html body .guides-intro p{color:var(--gris)}
html body .guide-feature{background:linear-gradient(135deg,#033a42,#0b5256);border-radius:var(--radio)}
html body .guide-feature .eyebrow{color:var(--menta)}
html body .guide-accordion{border-radius:18px;border-color:var(--linea);box-shadow:0 6px 18px rgba(3,58,66,.05);transition:box-shadow .2s}
html body .guide-accordion:hover{box-shadow:var(--sombra)}
html body .guide-accordion>summary{color:var(--tinta)}
html body .guide-accordion>summary:after{content:"›";width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--menta-suave);color:var(--petroleo);font-size:1.35rem;font-weight:700;transition:transform .2s,background .2s}
html body .guide-accordion[open]>summary:after{content:"›";transform:rotate(90deg);background:var(--petroleo);color:#fff}
html body .guide-accordion>summary:hover{background:#fafcfc}
html body .guide-sublist article{background:var(--fondo);border-radius:14px}
html body .guide-note{border-left-color:var(--turquesa);background:var(--menta-suave);border-radius:0 12px 12px 0}
html body .guide-bottom a{border-bottom-color:var(--turquesa)}

/* Novedades */
html body .news{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 220' preserveAspectRatio='none'%3E%3Cpath d='M0 0C140 110 300 160 600 140V0Z' fill='%23e3ebec'/%3E%3C/svg%3E") no-repeat right top/min(42vw,560px) 170px,#fff!important;border-color:var(--linea)}
html body .news:before,html body .news:after{display:none!important}
html body .section-heading h2:after{background:linear-gradient(90deg,var(--turquesa),var(--menta))!important;height:4px!important;border-radius:4px}
html body .news-card,html body .news-post{background:#fff;border:1px solid var(--linea);border-radius:var(--radio);overflow:hidden;box-shadow:var(--sombra)}
html body .news-card:hover,html body .news-post:hover{box-shadow:var(--sombra-alta)}
html body .news-image span{background:rgba(11,82,86,.92);border-radius:10px;border-left:0!important;backdrop-filter:blur(4px)}
html body .news-image span:before{display:none!important}
html body .news-body small,html body .news-post small{color:var(--turquesa)}
html body .news-body a{color:var(--petroleo);border-bottom-color:var(--turquesa)!important}

/* Vencimientos */
html body .deadlines{background:linear-gradient(135deg,#e8f3f3 0%,#f3f6f6 100%)!important}
html body .calendar-legend i{background:var(--turquesa)}
html body .calendar-panel{background:#fff;border:1px solid var(--linea);border-radius:26px;box-shadow:var(--sombra-alta)}
html body .calendar-head{border-bottom-color:var(--linea)}
html body .calendar-head>div{display:flex;flex-direction:column;align-items:center}
html body .calendar-head .v37-ico{margin-bottom:8px}
html body .calendar-head small{color:var(--turquesa)}
html body .calendar-head>button{border-radius:12px;background:var(--menta-suave);border-color:transparent;color:var(--petroleo)}
html body .calendar-head>button:hover{background:var(--petroleo);color:#fff}
html body .deadline-row{border-radius:14px}
html body .deadline-date{background:var(--grad-ico)!important;color:#fff!important;border-radius:14px!important}
html body .deadline-date strong{color:#fff!important}
html body .deadline-tag{background:var(--menta-suave)!important;color:var(--petroleo)!important;border-radius:8px!important}

/* Enlaces útiles */
html body .useful{background:var(--fondo)!important}
html body .official-link{background:#fff!important;border:1px solid var(--linea)!important;border-radius:18px!important;box-shadow:0 6px 18px rgba(3,58,66,.05);transition:transform .2s,box-shadow .2s,border-color .2s}
html body .official-link:hover{transform:translateY(-3px);box-shadow:var(--sombra-alta);border-color:rgba(50,144,146,.5)!important}
html body .official-link .link-category{color:var(--turquesa)!important}
html body .official-link strong{color:var(--tinta)!important}
html body .official-link b{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:var(--menta-suave);color:var(--petroleo)!important;font-size:.85rem}
html body .official-link:hover b{background:var(--petroleo);color:#fff!important}

/* Contacto: misma composición que el ingreso al Gestor */
html body .contact{position:relative;overflow:hidden;background:
  linear-gradient(90deg,rgba(3,58,66,.90) 0%,rgba(3,58,66,.80) 30%,rgba(11,82,86,.94) 48%,#0b5256 56%,#0b5256 100%),
  url("../img/cordoba-panorama.jpg") left center/58% auto no-repeat,#0b5256!important}
.v37-wave-c{right:0;bottom:0;width:min(50vw,680px);height:200px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23329092' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%235cc8c2' stop-opacity='.6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 200C200 150 400 90 600 40V200Z' fill='%23ffffff' fill-opacity='.04'/%3E%3Cpath d='M80 200C260 150 430 100 600 78V96C440 120 280 162 140 200Z' fill='url(%23g)'/%3E%3C/svg%3E")}
html body .contact .wrap{position:relative;z-index:1}
html body .contact .eyebrow{color:#bfe6e3}
html body .contact p{color:#d3e5e6}
html body .contact .contact-panel.contact-links{background:#fff;color:var(--tinta);border:0;border-radius:28px;padding:14px 30px;box-shadow:0 30px 70px rgba(0,0,0,.28)}
html body .contact .contact-row{border-bottom:1px solid var(--linea)}
html body .contact .contact-row:last-child{border-bottom:0}
html body .contact .contact-row>span:first-child{color:var(--gris)!important;font-weight:600}
html body .contact .contact-row>span:last-child{color:var(--tinta);font-weight:600}
html body .contact-links a:hover{color:var(--petroleo-3)}
html body .contact-social a{border-color:rgba(255,255,255,.35);border-radius:12px}
html body .contact-social a:hover{border-color:var(--menta);background:rgba(255,255,255,.08)}

/* Pie */
html body footer{background:#022f36;color:#9fbfc2}

/* Formulario emergente: tarjeta clara como el ingreso a la intranet */
html body .contact-modal-backdrop{background:rgba(2,40,46,.72)}
html body .contact-modal-dialog{background:linear-gradient(90deg,#0b5256,#329092,#5cc8c2) top/100% 6px no-repeat,#fff;color:var(--tinta);border:0;border-radius:28px;box-shadow:0 30px 90px rgba(0,0,0,.35)}
html body .contact-modal-dialog h2{color:var(--petroleo)}
html body .contact-modal-dialog .eyebrow{color:var(--petroleo-3)}
html body .contact-modal-intro{color:var(--gris)}
html body .contact-modal-close{border-color:var(--linea);color:var(--petroleo);border-radius:12px}
html body .contact-modal-close:hover{background:var(--menta-suave)}
html body .contact-modal .triar-contact-form label{color:var(--tinta)!important;font-weight:600}
html body .contact-modal .triar-contact-form input,html body .contact-modal .triar-contact-form select,html body .contact-modal .triar-contact-form textarea{background:#fff!important;color:var(--tinta)!important;border:1px solid #cfdcdd!important;border-radius:12px!important}
html body .contact-modal .triar-contact-form input:focus,html body .contact-modal .triar-contact-form select:focus,html body .contact-modal .triar-contact-form textarea:focus{outline:0;border-color:var(--turquesa)!important;box-shadow:0 0 0 4px rgba(50,144,146,.16)}
html body .contact-modal .triar-contact-form ::placeholder{color:#8ea2a6}
html body .contact-modal .triar-contact-form button.btn{width:100%;background:var(--petroleo);color:#fff!important}
html body .contact-modal .triar-contact-form button.btn:hover{background:var(--petroleo-3)}
html body .contact-modal .form-privacy,html body .contact-modal .form-status{color:var(--gris)!important}
html body .contact-modal .form-status.is-error{color:#b23b2a!important}

@media(max-width:850px){
  html body .credentials{grid-template-columns:1fr}
  .v37-wave-a{height:110px;width:70vw;opacity:.7}
  html body #nosotros{background-size:60vw 70px}
  .v37-wave-b{height:150px;width:70vw}
  html body .contact{background:linear-gradient(180deg,rgba(3,58,66,.80) 0%,rgba(11,82,86,.97) 45%,#0b5256 100%),url("../img/cordoba-panorama.jpg") center top/cover no-repeat,#0b5256!important}
}
@media(max-width:600px){
  html body .contact .contact-panel.contact-links{padding:8px 18px;border-radius:22px}
  html body .photo-overlay{left:14px;bottom:16px;max-width:calc(100% - 28px);padding:14px 16px}
  html body .contact-modal-dialog{border-radius:22px}
  }
