/*
Theme Name: Clínica Dental Placilla Theme
Theme URI: https://rutayredes.cl
Author: Ruta y Redes
Author URI: https://rutayredes.cl
Description: Theme liviano para Clínica Dental Placilla. Diseñado para trabajar con el plugin Clínica Dental Placilla Core. No requiere insertar código manual en functions.php.
Version: 5.9.0
Text Domain: cdp-theme
*/

html{box-sizing:border-box;}
*,*:before,*:after{box-sizing:inherit;}
body{margin:0;background:#F8F6F1;color:#3A3A3A;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
img{max-width:100%;height:auto;}
.cdp-skip-link{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden;}
.cdp-skip-link:focus{left:16px;top:16px;width:auto;height:auto;z-index:9999;background:#0E2A35;color:#fff;padding:12px 16px;border-radius:12px;text-decoration:none;}
.cdp-theme-main{min-height:60vh;}
.cdp-theme-fallback{width:min(900px,calc(100% - 40px));margin:80px auto;padding:38px;background:#fff;border-radius:28px;border:1px solid rgba(14,42,53,.08);box-shadow:0 18px 60px rgba(14,42,53,.08);}
.cdp-theme-fallback h1{margin-top:0;color:#0E2A35;}
.cdp-theme-footer{background:linear-gradient(135deg,#061A2E 0%,#07284A 48%,#0A3C70 100%);color:rgba(255,255,255,.78);padding:54px 0 24px;border-top:1px solid rgba(121,231,244,.14);}
.cdp-theme-footer a{color:#79E7F4;text-decoration:none;}
.cdp-footer-inner{width:min(1180px,calc(100% - 40px));margin:auto;display:grid;grid-template-columns:1.1fr .9fr .9fr;gap:28px;align-items:start;}
.cdp-footer-inner h2,.cdp-footer-inner h3{color:#fff;margin:0 0 14px;font-family:Manrope,system-ui,sans-serif;letter-spacing:-.03em;}
.cdp-footer-inner p{line-height:1.7;margin:0 0 10px;}
.cdp-footer-list{list-style:none;margin:0;padding:0;display:grid;gap:9px;}
.cdp-footer-bottom{width:min(1180px,calc(100% - 40px));margin:32px auto 0;padding-top:22px;border-top:1px solid rgba(121,231,244,.16);font-size:.9rem;color:rgba(255,255,255,.60);}
@media(max-width:760px){.cdp-footer-inner{grid-template-columns:1fr;}.cdp-theme-footer{padding-bottom:86px;}}


/* v17: footer legal y crédito ordenados */
.cdp-footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.cdp-footer-bottom .cdp-footer-legal{
  margin:0;
  color:rgba(255,255,255,.68);
  line-height:1.65;
}
.cdp-footer-credit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:9px 14px;
  border-radius:999px;
  background:rgba(121,231,244,.10);
  border:1px solid rgba(121,231,244,.18);
  color:#79E7F4!important;
  font-size:1rem;
  font-weight:900;
  line-height:1.25;
  transition:transform .25s ease,background .25s ease,border-color .25s ease;
}
.cdp-footer-credit:hover{
  transform:translateY(-2px);
  background:rgba(121,231,244,.16);
  border-color:rgba(121,231,244,.38);
}
@media(max-width:760px){
  .cdp-footer-bottom{align-items:flex-start;}
  .cdp-footer-credit{width:100%;}
}


/* v19: crédito footer más elegante, sin burbuja */
.cdp-footer-bottom{
  align-items:flex-start;
  gap:14px 28px;
}
.cdp-footer-credit{
  display:inline-flex;
  align-items:center;
  min-height:0;
  padding:0 0 5px;
  border:0;
  border-radius:0;
  background:transparent;
  color:#B9F6FF!important;
  font-size:1.05rem;
  font-weight:900;
  line-height:1.35;
  letter-spacing:-.01em;
  text-decoration:none;
  box-shadow:none;
  position:relative;
}
.cdp-footer-credit:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,#B9F6FF,rgba(185,246,255,.18));
  transform:scaleX(.62);
  transform-origin:left;
  transition:transform .25s ease,opacity .25s ease;
  opacity:.82;
}
.cdp-footer-credit:hover{
  transform:none;
  background:transparent;
  border-color:transparent;
  color:#fff!important;
}
.cdp-footer-credit:hover:after{
  transform:scaleX(1);
  opacity:1;
}
@media(max-width:760px){
  .cdp-footer-credit{width:auto;justify-content:flex-start;}
}
