/*
Theme Name:   Kadence Prestasocial
Description:  Child theme de Kadence para Prestasocial (marca teal/coral, fuentes Alef/Abel)
Author:       Kuralmedia
Template:     kadence
Version:      1.1.0
*/

/* ===== Marca Prestasocial ===== */
:root{
  --ps-teal:#4abfb7; --ps-teal-dark:#3aa79f; --ps-coral:#f69291;
  --ps-blue:#389cbc; --ps-dark:#2b3a3a; --ps-text:#333333;
  --ps-grey:#5a6b6b; --ps-light:#f3f8f8; --ps-white:#ffffff;
  --global-palette1:#4abfb7; --global-palette2:#389cbc; --global-palette3:#2b3a3a;
  --global-palette4:#2b3a3a; --global-palette5:#5a6b6b; --global-palette6:#7a8a8a;
  --global-palette7:#f3f8f8; --global-palette8:#ffffff; --global-palette9:#ffffff;
  --global-body-font-family:'Alef', system-ui, -apple-system, sans-serif;
  --global-heading-font-family:'Abel', system-ui, -apple-system, sans-serif;
}

body{ font-family:var(--global-body-font-family); color:var(--ps-text); }
h1,h2,h3,h4,h5,h6,.entry-title,.kt-adv-heading{ font-family:var(--global-heading-font-family); color:var(--ps-dark); }

/* ===== Botones ===== */
.wp-block-button__link, .kt-button, .kadence-button, .button,
input[type="submit"], .wp-block-search__button{
  background-color:var(--ps-teal); border-color:var(--ps-teal); color:#fff;
  border-radius:4px; font-family:var(--global-heading-font-family);
  letter-spacing:.5px; text-transform:uppercase; padding:14px 30px; transition:.2s;
}
.wp-block-button__link:hover,.kt-button:hover,.button:hover,input[type="submit"]:hover{
  background-color:var(--ps-teal-dark); border-color:var(--ps-teal-dark); color:#fff;
}
.is-style-outline .wp-block-button__link{ background:transparent; color:var(--ps-teal); border:2px solid var(--ps-teal); }

/* ===== Secciones ===== */
.ps-section{ padding:50px 0 90px 0; }
.ps-section--light{ background:var(--ps-light); }
.ps-section--teal{ background:var(--ps-teal); color:#fff; }
.ps-section--teal h1,.ps-section--teal h2,.ps-section--teal h3,.ps-section--teal p{ color:#fff; }
.ps-accent{ color:var(--ps-coral); } .ps-teal{ color:var(--ps-teal); }
.ps-center{ text-align:center; } .ps-max{ max-width:1100px; margin:0 auto; padding:0 22px; }
.ps-title{ font-size:clamp(26px,4vw,22px); line-height:1.15; margin:0 0 16px; letter-spacing:.5px; }
.ps-title--line::after{ content:""; display:block; width:60px; height:3px; background:var(--ps-coral); margin:16px auto 0; }
.ps-sub{ font-size:18px; color:var(--ps-grey); }
.ps-eyebrow{ font-family:var(--global-heading-font-family); letter-spacing:3px; text-transform:uppercase; color:var(--ps-teal); font-size:52px; margin:0; margin-bottom:0 !important; }
.single-content h2, .single-content h3, .single-content h4, .single-content h5, .single-content h6{ margin:0 0 1.5em 0; }

/* ===== Hero ===== */
.ps-hero{ position:relative; color:#fff; text-align:center; padding:140px 22px; background-size:cover; background-position:center; }
.ps-hero::before{ content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(30,70,68,.55),rgba(30,70,68,.65)); }
.ps-hero > *{ position:relative; z-index:2; }
.ps-hero h1{ color:#fff; font-size:clamp(30px,5vw,54px); line-height:1.1; margin:0 0 18px; letter-spacing:1.5px; text-transform:uppercase; }
.ps-hero p{ font-size:clamp(16px,2vw,22px); max-width:780px; margin:0 auto 30px; color:#f0fbfa; }

/* Hero de marca: foto difuminada (blur) fundida sobre degradado teal + ola del logo */
.ps-hero--brand{ position:relative; overflow:hidden; padding:170px 22px 150px;
  background:linear-gradient(160deg,#1e3331 0%,#2b6f69 58%,#46b7ae 100%); }
.ps-hero--brand::before{ content:""; position:absolute; inset:-34px; z-index:0;
  background-image:
    linear-gradient(160deg, rgba(26,46,44,.80) 0%, rgba(30,90,84,.58) 52%, rgba(74,191,183,.44) 100%),
    url('http://prestasocial.fr/wp-content/uploads/2026/09/hero-equipe-prestasocial.jpg');
  background-size:cover, cover; background-position:center center, center center; background-repeat:no-repeat, no-repeat;
  filter: blur(4px) saturate(1.05); transform: scale(1.06); }
.ps-hero--brand::after{ content:""; position:absolute; left:0; right:0; bottom:-2px; height:80px; z-index:1;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='80' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 54 C 300 6 600 92 900 48 S 1320 6 1440 44' fill='none' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='3'/%3E%3C/svg%3E") repeat-x bottom; }
.ps-hero--brand > *{ position:relative; z-index:2; }
.ps-hero--brand h1{ font-size:clamp(26px,4vw,50px); line-height:1.15; max-width:1050px; margin:0 auto 34px; text-shadow:0 2px 20px rgba(0,0,0,.5); }

/* ===== Page hero (cabecera de pagina) ===== */
.ps-page-hero{ position:relative; color:#fff; text-align:center; padding:120px 22px 90px; background-size:cover; background-position:center; }
.ps-page-hero::before{ content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(30,70,68,.5),rgba(30,70,68,.62)); }
.ps-page-hero > *{ position:relative; z-index:2; }
.ps-page-hero h1{ color:#fff; font-size:clamp(26px,4vw,46px); line-height:1.15; margin:0; letter-spacing:1.5px; text-transform:uppercase; }
.ps-page-hero p{ margin:14px auto 0; max-width:760px; font-size:18px; color:#eafaf8; }

/* ===== Layout 2 columnas ===== */
.ps-two{ display:grid; grid-template-columns:1.1fr .9fr; gap:44px; align-items:center; }
.ps-two--rev .ps-img{ order:2; }
@media(max-width:860px){ .ps-two{ grid-template-columns:1fr; gap:26px; } .ps-two--rev .ps-img{ order:0; } }
.ps-img{ width:100%; border-radius:10px; box-shadow:0 12px 34px rgba(0,0,0,.12); display:block; }
.ps-lead{ font-size:19px; line-height:1.65; }
.ps-sep{ height:1px; background:#e4eded; border:0; margin:0; }

/* ===== Stats ===== */
.ps-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; text-align:center; }
@media(max-width:800px){ .ps-stats{ grid-template-columns:repeat(2,1fr); } }
.ps-stat .num{ font-family:var(--global-heading-font-family); font-size:clamp(34px,5vw,52px); line-height:1; color:#fff; }
.ps-stat .lbl{ font-size:15px; color:#e6f7f5; margin-top:8px; }

/* ===== Tarjetas genéricas ===== */
.ps-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
@media(max-width:900px){ .ps-cards{ grid-template-columns:1fr; } }
.ps-card{ background:#fff; border-radius:10px; padding:34px 28px; box-shadow:0 8px 26px rgba(0,0,0,.06); border-top:3px solid var(--ps-teal); }

/* ===== Grid de dominios ===== */
.ps-domains{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
@media(max-width:960px){ .ps-domains{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:560px){ .ps-domains{ grid-template-columns:1fr; } }
.ps-domain{ background:#fff; border-radius:10px; padding:28px 22px; text-align:center; box-shadow:0 6px 20px rgba(0,0,0,.05); transition:.2s; }
.ps-domain:hover{ transform:translateY(-4px); box-shadow:0 12px 30px rgba(0,0,0,.10); }
.ps-domain h3{ font-size:19px; margin:14px 0 8px; }
.ps-domain p{ font-size:15px; color:var(--ps-grey); margin:0; }

/* ===== Iconos ===== */
.ps-icon{ display:inline-flex; align-items:center; justify-content:center; width:64px; height:64px; border-radius:50%; background:var(--ps-light); }
.ps-icon svg{ width:32px; height:32px; stroke:var(--ps-teal); fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* ===== Modalidades (lista con checks) ===== */
.ps-checks{ list-style:none; padding:0; margin:0; display:grid; grid-template-columns:1fr 1fr; gap:12px 30px; }
@media(max-width:700px){ .ps-checks{ grid-template-columns:1fr; } }
.ps-checks li{ position:relative; padding-left:34px; font-size:17px; }
.ps-checks li::before{ content:"✓"; position:absolute; left:0; top:-1px; width:22px; height:22px; border-radius:50%;
  background:var(--ps-teal); color:#fff; font-size:13px; display:flex; align-items:center; justify-content:center; }

/* ===== Listas ventajas ===== */
.ps-list{ list-style:none; padding:0; margin:0; }
.ps-list li{ position:relative; padding-left:28px; margin-bottom:12px; }
.ps-list li::before{ content:""; position:absolute; left:0; top:9px; width:10px; height:10px; border-radius:50%; background:var(--ps-teal); }

/* ===== Partners ===== */
.ps-partners{ display:flex; flex-wrap:wrap; gap:14px 26px; justify-content:center; align-items:center; }
.ps-partners span{ font-family:var(--global-heading-font-family); letter-spacing:1px; color:var(--ps-grey); text-transform:uppercase; font-size:15px; padding:10px 18px; border:1px solid #dfe8e8; border-radius:6px; background:#fff; }

/* ===== CTA ===== */
.ps-cta{ display:flex; align-items:center; justify-content:space-between; gap:26px; flex-wrap:wrap; }
.ps-cta .t{ font-family:var(--global-heading-font-family); font-size:clamp(24px,3.4vw,36px); line-height:1.15; margin:0; }
.ps-cta .s{ margin:8px 0 0; color:#eafaf8; }

/* ===== Footer ===== */
.ps-footer{ background:var(--ps-dark); color:#dfe8e8; }
.ps-footer a{ color:#cddede; text-decoration:none; }
.ps-footer a:hover{ color:#fff; }
.ps-foot{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:36px; padding-top:60px; padding-bottom:46px; }
@media(max-width:800px){ .ps-foot{ grid-template-columns:1fr; gap:26px; } }
.ps-foot-col h4{ color:#fff; font-family:var(--global-heading-font-family); font-size:18px; letter-spacing:1px; text-transform:uppercase; margin:0 0 14px; }
.ps-foot-col p{ margin:5px 0; font-size:15px; color:#c7d6d6; }
.ps-foot-logo{ max-width:150px; height:auto; margin-bottom:16px; background:#fff; padding:10px; border-radius:8px; display:inline-block; }
.ps-foot-bottom{ border-top:1px solid rgba(255,255,255,.12); padding:18px 0; font-size:14px; color:#9fb4b4; }
.site-footer{ display:none; }

/* ===== Header ===== */
#wrapper{ overflow:visible; }
#masthead.site-header{ position:sticky; top:0; z-index:999; background:#fff; transition:box-shadow .3s ease; }
.site-header.ps-scrolled{ box-shadow:0 6px 26px rgba(0,0,0,.09); }
.site-header .site-container{ max-width:1100px !important; margin:0 auto; padding-left:22px; padding-right:22px; }
.site-main-header-inner-wrap{ align-items:center; min-height:94px; }
.site-header-main-section-left{ display:flex; align-items:center; }
.site-header-main-section-right{ display:flex; align-items:center; justify-content:flex-end; }
.site-branding .site-title-wrap,
.site-branding .site-title,
.site-branding .site-description{ display:none !important; }
.site-branding img.custom-logo{ max-height:68px; width:auto; display:block; }

/* ===== Menu principal ===== */
#primary-menu{ display:flex; align-items:center; gap:2px; }
#primary-menu > li{ margin:0; }
#primary-menu > li > a{
  position:relative; display:block; padding:14px 16px;
  font-family:var(--global-heading-font-family); text-transform:uppercase;
  letter-spacing:.7px; font-size:15px; color:var(--ps-dark); background:transparent;
  transition:color .25s ease;
}
#primary-menu > li > a::after{
  content:""; position:absolute; left:16px; right:16px; bottom:8px; height:2px;
  background:var(--ps-teal); transform:scaleX(0); transform-origin:left center;
  transition:transform .3s cubic-bezier(.2,.7,.2,1);
}
#primary-menu > li > a:hover{ color:var(--ps-teal); }
#primary-menu > li > a:hover::after,
#primary-menu > li.current-menu-item > a::after,
#primary-menu > li.current-menu-ancestor > a::after{ transform:scaleX(1); }
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-menu-ancestor > a{ color:var(--ps-teal); }
#primary-menu > li:first-child > a{ padding-left:0; }
#primary-menu > li:first-child > a::after{ left:0; }
#primary-menu > li:last-child > a{ padding-right:0; }
#primary-menu > li:last-child > a::after{ right:0; }

/* CTA telefonico: icono circular con enlace tel: */
#primary-menu > li.ps-cta-item{ margin-left:16px; }
#primary-menu > li.ps-cta-item > a{
  display:inline-flex; align-items:center; justify-content:center;
  width:48px; height:48px; padding:0 !important; border-radius:50%;
  background-color:var(--ps-teal);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:center; background-size:22px 22px;
  font-size:0 !important; line-height:0; text-indent:-9999px; overflow:hidden;
  transition:background-color .25s ease, transform .25s ease;
}
#primary-menu > li.ps-cta-item > a::after{ display:none !important; }
#primary-menu > li.ps-cta-item > a:hover{ background-color:var(--ps-teal-dark); transform:translateY(-1px); }

/* Dropdown */
#primary-menu .sub-menu{
  background:#fff; border-radius:10px; padding:10px 0; min-width:252px;
  box-shadow:0 20px 44px rgba(0,0,0,.15); border-top:3px solid var(--ps-teal); overflow:hidden;
}
#primary-menu li:hover > .sub-menu{ animation:psDrop .24s cubic-bezier(.2,.7,.2,1); }
@keyframes psDrop{ from{ opacity:0; transform:translateY(10px);} to{ opacity:1; transform:translateY(0);} }
#primary-menu .sub-menu li{ margin:0; }
#primary-menu .sub-menu a{
  display:block; padding:11px 22px; font-size:15px; color:var(--ps-text);
  border-left:3px solid transparent; font-family:var(--global-body-font-family); text-transform:none; letter-spacing:0;
  transition:background .2s ease, border-color .2s ease, padding-left .2s ease, color .2s ease;
}
#primary-menu .sub-menu a:hover{ background:var(--ps-light); color:var(--ps-teal); border-left-color:var(--ps-teal); padding-left:26px; }
/* Dropdown: enlaces a ancho completo */
.header-navigation .header-menu-container ul ul li.menu-item > a{
  width:100%; display:block;
}

/* Boton CTA en cabecera */
.site-header .header-button a, .site-header .kadence-button{
  background:var(--ps-teal) !important; color:#fff !important; border-radius:4px;
  font-family:var(--global-heading-font-family); text-transform:uppercase; letter-spacing:.6px;
  padding:12px 22px !important; transition:.25s;
}
.site-header .header-button a:hover{ background:var(--ps-teal-dark) !important; transform:translateY(-1px); }

/* Movil */
@media(max-width:1024px){
  .site-header .site-container{ padding:0 16px; }
  .site-branding img.custom-logo{ max-height:48px; }
}
