/*
Theme Name: WordPress Las Palmas
Theme URI: https://example.com/
Author: Proyecto WordPress Las Palmas
Description: Tema inicial ligero para un portal editorial y directorio profesional de WordPress en Gran Canaria. Incluye portada editorial y estilos responsive. Requiere configurar WordPress y, para el directorio, un plugin como HivePress.
Version: 1.0.7
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: wordpress-las-palmas
*/
:root{--ink:#15243a;--muted:#607086;--blue:#2457d6;--blue-dark:#173eaa;--mint:#dff7ef;--paper:#f7f9fc;--line:#e4eaf2;--white:#fff;--radius:20px;--shadow:0 18px 50px rgba(23,48,86,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--white);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.65}a{color:var(--blue);text-decoration:none}a:hover{color:var(--blue-dark)}img{max-width:100%;height:auto}h1,h2,h3,h4{line-height:1.12;letter-spacing:-.035em;margin:0 0 .65em;font-weight:800}h1{font-size:clamp(2.5rem,6vw,5rem)}h2{font-size:clamp(1.8rem,3.6vw,3rem)}h3{font-size:1.25rem}p{margin:0 0 1em}.site-wrap{overflow:hidden}.container{width:min(1160px,calc(100% - 40px));margin-inline:auto}.site-header{position:relative;z-index:5;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line)}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:82px}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-weight:850;letter-spacing:-.03em;font-size:1.05rem}.brand-mark{display:block;flex:0 0 42px;width:42px;height:42px;aspect-ratio:1/1;object-fit:cover;border-radius:50%;overflow:hidden;background:transparent;box-shadow:none;clip-path:circle(50% at 50% 50%)}
.site-footer .brand-mark{flex-basis:42px;width:42px;height:42px;border-radius:50%;object-fit:cover}
@media(max-width:680px){.brand-mark{flex-basis:40px;width:40px;height:40px}.site-footer .brand-mark{width:40px;height:40px}}.brand small{display:block;color:var(--muted);font-size:.68rem;font-weight:650;letter-spacing:.08em;text-transform:uppercase}.main-nav{display:flex;align-items:center;gap:23px}.main-nav a{font-size:.91rem;font-weight:700;color:#40506a}.main-nav a:hover{color:var(--blue)}.nav-cta,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;background:var(--blue);color:#fff;padding:13px 20px;font-weight:750;font-size:.94rem;transition:transform .2s,background .2s}.nav-cta:hover,.button:hover{background:var(--blue-dark);color:#fff;transform:translateY(-1px)}.button.secondary{background:#fff;color:var(--ink);border:1px solid var(--line)}.button.secondary:hover{border-color:#b8c8e8;background:#f7f9ff}.hero{padding:82px 0 66px;background:radial-gradient(ellipse at 80% 15%,rgba(87,220,182,.2),transparent 36%),radial-gradient(ellipse at 4% 80%,rgba(36,87,214,.1),transparent 36%),linear-gradient(180deg,#fbfcff,#fff)}.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:54px}.eyebrow{display:inline-flex;align-items:center;gap:9px;margin-bottom:23px;color:var(--blue);font-size:.78rem;letter-spacing:.13em;text-transform:uppercase;font-weight:850}.eyebrow:before{content:"";width:26px;height:2px;background:var(--blue)}.hero h1 span{color:var(--blue)}.hero-copy{max-width:650px;color:var(--muted);font-size:1.15rem;line-height:1.75;margin-bottom:28px}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:28px}.hero-note{color:#6c7a8e;font-size:.85rem}.hero-art{position:relative;min-height:380px;display:grid;place-items:center}.art-orbit{position:absolute;width:340px;height:340px;border:1px solid #dbe5f5;border-radius:50%;box-shadow:0 0 0 38px rgba(36,87,214,.025),0 0 0 78px rgba(36,87,214,.02)}.art-card{position:relative;background:#fff;border:1px solid #e4eaf4;border-radius:24px;padding:25px;width:min(360px,100%);box-shadow:var(--shadow);transform:rotate(-2deg)}.art-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.dots{display:flex;gap:5px}.dots i{width:7px;height:7px;border-radius:50%;background:#d7e0ef}.art-pill{font-size:.7rem;font-weight:800;color:#087b5e;background:var(--mint);border-radius:99px;padding:5px 9px}.art-lines{display:grid;gap:10px;margin:18px 0}.art-line{height:9px;border-radius:20px;background:#edf1f8}.art-line.wide{width:100%}.art-line.mid{width:72%}.art-line.short{width:48%}.art-bottom{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.art-tile{height:68px;border-radius:13px;background:linear-gradient(145deg,#f0f5ff,#e5ebfb);display:grid;place-items:center;color:var(--blue);font-size:1.4rem;font-weight:900}.floating-tag{position:absolute;background:#fff;border:1px solid var(--line);border-radius:15px;padding:12px 15px;box-shadow:var(--shadow);font-size:.82rem;font-weight:800}.floating-tag.one{top:36px;right:-2px}.floating-tag.two{bottom:30px;left:-5px}.floating-tag span{display:block;color:var(--muted);font-weight:600;font-size:.7rem}.section{padding:82px 0}.section.soft{background:var(--paper)}.section-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:32px}.section-head p{max-width:520px;color:var(--muted);margin:0}.kicker{font-size:.76rem;text-transform:uppercase;letter-spacing:.12em;color:var(--blue);font-weight:850;margin-bottom:13px}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.feature-card{border:1px solid var(--line);border-radius:var(--radius);padding:27px;background:#fff;transition:transform .2s,box-shadow .2s}.feature-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.feature-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:#edf3ff;color:var(--blue);font-size:1.25rem;margin-bottom:22px}.feature-card p{color:var(--muted);font-size:.96rem}.text-link{font-weight:800;display:inline-flex;gap:7px;align-items:center}.directory-panel{background:var(--ink);color:#fff;border-radius:28px;padding:clamp(28px,5vw,54px);display:grid;grid-template-columns:1fr .9fr;gap:38px;align-items:center}.directory-panel p{color:#c4cfdf;max-width:540px}.directory-panel h2{max-width:550px}.directory-panel .button{background:#fff;color:var(--ink)}.directory-list{display:grid;gap:12px}.directory-row{display:flex;align-items:center;gap:13px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:15px;padding:15px}.directory-row .feature-icon{margin:0;background:rgba(255,255,255,.12);color:#a9c4ff;width:42px;height:42px}.directory-row strong{display:block;font-size:.95rem}.directory-row small{color:#b9c5d7}.article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.article-card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff}.article-visual{height:155px;padding:22px;background:linear-gradient(135deg,#e8efff,#dff7ef);display:flex;align-items:end}.article-visual span{background:#fff;color:var(--blue);border-radius:99px;padding:6px 10px;font-size:.7rem;font-weight:850}.article-body{padding:22px}.article-body h3 a{color:var(--ink)}.article-body p{color:var(--muted);font-size:.92rem}.article-meta{font-size:.78rem;color:#78869a}.cta-band{padding:58px 0;background:#edf3ff}.cta-inner{display:flex;justify-content:space-between;align-items:center;gap:30px}.cta-inner p{color:var(--muted);margin:0;max-width:600px}.site-footer{padding:48px 0 25px;background:#111e32;color:#d7dfeb}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:36px;padding-bottom:35px}.site-footer .brand{color:#fff}.site-footer p,.site-footer a{color:#b7c3d5}.footer-links{display:grid;gap:9px}.footer-heading{font-weight:800;color:#fff;margin-bottom:12px}.footer-bottom{border-top:1px solid rgba(255,255,255,.13);padding-top:20px;display:flex;justify-content:space-between;gap:18px;color:#9eacc0;font-size:.8rem}.content-main{padding:60px 0 90px;min-height:50vh}.content-main article{max-width:820px;margin:auto}.content-main h1{font-size:clamp(2.2rem,5vw,3.7rem)}.content-main .entry-content{font-size:1.05rem}.content-main .entry-content>*{margin-bottom:1.3em}.post-list{display:grid;gap:20px}.post-list article{border:1px solid var(--line);border-radius:18px;padding:25px}.post-list h2{font-size:1.6rem}.post-list p{color:var(--muted)}.menu-toggle{display:none;background:#fff;border:1px solid var(--line);border-radius:10px;padding:9px 12px;color:var(--ink);font-weight:800}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.alignwide{max-width:1160px;margin-inline:auto}.alignfull{width:100%}.wp-block-button__link{background:var(--blue);border-radius:999px}.wp-block-image img{border-radius:15px}
@media(max-width:900px){.main-nav{gap:13px}.main-nav a{font-size:.82rem}.hero-grid{gap:24px}.hero-art{min-height:320px}.art-orbit{width:270px;height:270px}.feature-grid,.article-grid{grid-template-columns:repeat(2,1fr)}.directory-panel{grid-template-columns:1fr}.directory-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.container{width:min(100% - 30px,1160px)}.header-inner{min-height:72px;flex-wrap:wrap}.menu-toggle{display:block}.main-nav{display:none;order:3;width:100%;padding:0 0 18px;align-items:stretch;flex-direction:column;gap:0}.main-nav.is-open{display:flex}.main-nav a{padding:10px 0;border-top:1px solid var(--line);font-size:.95rem}.nav-cta{display:none}.hero{padding:52px 0 45px}.hero-grid{grid-template-columns:1fr}.hero h1{font-size:clamp(2.55rem,12vw,4rem)}.hero-copy{font-size:1.03rem}.hero-art{min-height:300px;margin-top:5px}.art-card{width:min(330px,90%)}.floating-tag.one{right:0}.floating-tag.two{left:0}.section{padding:58px 0}.section-head,.cta-inner{align-items:flex-start;flex-direction:column}.feature-grid,.article-grid,.directory-list{grid-template-columns:1fr}.feature-card{padding:23px}.directory-panel{padding:26px 21px}.footer-grid{grid-template-columns:1fr;gap:25px}.footer-bottom{flex-direction:column}.brand{font-size:.98rem}}


/* HivePress: integración visual con WordPress Las Palmas. */
.hp-header-menu{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hp-header-menu .hp-menu{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0;padding:0;list-style:none}
.hp-header-menu a,.hp-header-menu .hp-link{display:inline-flex;align-items:center;gap:6px;color:var(--blue);font-size:.88rem;font-weight:750;padding:9px 12px;border:1px solid var(--line);border-radius:999px;background:#fff}
.hp-header-menu a:hover{background:#edf3ff;color:var(--blue-dark)}
.hp-page,.wplp-hivepress-page{width:min(1160px,calc(100% - 40px));max-width:1160px;margin-inline:auto;padding:38px 0 72px}
.hp-page h1,.hp-page h2,.hp-page h3,.wplp-hivepress-page h1,.wplp-hivepress-page h2,.wplp-hivepress-page h3{color:var(--ink)}
.hp-page .hp-form,.hp-page form.hp-form,.hp-form--listing-search,.hp-form--user-login,.hp-form--user-register,.hp-form--user-update{padding:22px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 30px rgba(23,48,86,.05)}
.hp-page input[type="text"],.hp-page input[type="email"],.hp-page input[type="password"],.hp-page input[type="number"],.hp-page input[type="tel"],.hp-page input[type="url"],.hp-page select,.hp-page textarea,.hp-form input,.hp-form select,.hp-form textarea{width:100%;max-width:100%;min-height:44px;border:1px solid #d7e0ec;border-radius:10px;padding:10px 12px;color:var(--ink);background:#fff;font:inherit}
.hp-page input:focus,.hp-page select:focus,.hp-page textarea:focus,.hp-form input:focus,.hp-form select:focus,.hp-form textarea:focus{outline:2px solid rgba(36,87,214,.18);border-color:var(--blue)}
.hp-page button,.hp-page input[type="submit"],.hp-page .button,.hp-page .hp-button,.hp-page a.hp-button,.hp-form button,.hp-form input[type="submit"]{border:0;border-radius:999px;background:var(--blue);color:#fff;padding:11px 18px;font-weight:750;cursor:pointer}
.hp-page button:hover,.hp-page input[type="submit"]:hover,.hp-page .hp-button:hover,.hp-form button:hover{background:var(--blue-dark);color:#fff}
.hp-listings,.hp-listing-categories,.hp-vendors{gap:20px}
.hp-listing,.hp-listing-category,.hp-vendor,.hp-card{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(23,48,86,.045)}
.hp-listing__header,.hp-listing__content,.hp-listing__footer,.hp-vendor__content{padding:16px}
.hp-listing__title,.hp-listing-category__name,.hp-vendor__name{font-weight:800;letter-spacing:-.02em;color:var(--ink)}
.hp-listing__title a,.hp-listing-category__name a,.hp-vendor__name a{color:var(--ink)}
.hp-listing__title a:hover,.hp-listing-category__name a:hover,.hp-vendor__name a:hover{color:var(--blue)}
.hp-listing__image img,.hp-listing-category__image img,.hp-vendor__image img{display:block;width:100%;height:auto;object-fit:cover}
.hp-listing__attributes,.hp-listing__details{color:var(--muted);font-size:.9rem}
.hp-pagination{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:28px}
.hp-pagination a,.hp-pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:38px;padding:7px 11px;border:1px solid var(--line);border-radius:10px;background:#fff}
.hp-pagination .current{background:var(--blue);border-color:var(--blue);color:#fff}
.hp-message{border-radius:12px;padding:14px 16px}
.hp-page .hp-breadcrumbs{font-size:.88rem;color:var(--muted);margin-bottom:18px}
.hp-page .hp-breadcrumbs a{color:var(--blue)}
@media(max-width:900px){.hp-header-menu{gap:6px}.hp-header-menu a,.hp-header-menu .hp-link{font-size:.8rem;padding:8px 9px}}
@media(max-width:680px){.hp-header-menu{order:4;width:100%;padding:0 0 14px;justify-content:flex-start}.hp-header-menu .hp-menu{width:100%;gap:7px}.hp-header-menu a,.hp-header-menu .hp-link{font-size:.84rem}.hp-page,.wplp-hivepress-page{width:calc(100% - 30px);padding:26px 0 48px}.hp-page .hp-form,.hp-page form.hp-form,.hp-form--listing-search,.hp-form--user-login,.hp-form--user-register,.hp-form--user-update{padding:16px}.hp-listings,.hp-listing-categories,.hp-vendors{gap:14px}}


/* Logo circular forzado en cabecera y pie. Versión 1.0.1: reglas de alta prioridad
   para evitar que estilos del tema o plugins vuelvan a mostrarlo cuadrado. */
.site-header .brand img.brand-mark,
.site-footer .brand img.brand-mark,
.site-header a.brand img,
.site-footer a.brand img {
  display: block !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
  clip-path: circle(50% at 50% 50%) !important;
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
}
.site-footer .brand img.brand-mark,
.site-footer .brand img {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
}


/* Mobile header: keep the profile CTA visible on small screens. */
@media (max-width:680px){
  .site-header .header-inner > .nav-cta{
    display:inline-flex !important;
    order:5 !important;
    flex:0 0 auto;
    width:auto;
    max-width:100%;
    margin:0 0 14px;
    white-space:nowrap;
    font-size:.92rem;
    padding:12px 18px;
    visibility:visible;
    opacity:1;
  }
  .site-header .hp-header-menu{order:4;width:100%;}
}

/* Contenido de portada editable desde el panel propio */
.wplp-custom-home-content{padding:clamp(28px,5vw,72px) 0}.wplp-custom-home-content .container>*:first-child{margin-top:0}.wplp-custom-home-content img{max-width:100%;height:auto}.wplp-custom-home-content .wp-block-button__link{border-radius:999px}


/* Imagen destacada real en las tarjetas de artículos de la portada. */
.article-image-link{display:block;color:inherit;text-decoration:none}.article-visual{position:relative;overflow:hidden;isolation:isolate}.article-visual.has-featured-image{background:#e8efff}.article-visual .article-featured-image{position:absolute;inset:0;z-index:-1;width:100%;height:100%;max-width:none;object-fit:cover;display:block;border-radius:0;transition:transform .35s ease}.article-image-link:hover .article-featured-image{transform:scale(1.04)}.article-visual span{position:relative;z-index:1}

/* v1.0.5: ficha profesional limpia */
.single-featured-image img{display:block;max-width:100%;height:auto;border-radius:16px;margin:0 0 1.5rem}


/* v1.0.6: centrar el enlace de retorno al blog dentro del contenido de cada entrada. */
.content-main article .back-to-blog-wrap {
  display: block;
  width: 100%;
  margin: 36px auto 0 !important;
  text-align: center !important;
  clear: both;
}
.content-main article .back-to-blog-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* v1.0.7: imágenes destacadas visibles en las tarjetas de la página Blog. */
.blog-post-list .blog-article-card{max-width:none;margin:0;padding:0;overflow:hidden;}
.blog-post-list .article-image-link{display:block;overflow:hidden;border-radius:17px 17px 0 0;}
.blog-post-list .article-visual{height:clamp(190px,28vw,300px);padding:20px;background:linear-gradient(135deg,#e8efff,#dff7ef);}
.blog-post-list .article-visual.has-featured-image{background:#e8efff;}
.blog-post-list .article-visual .article-featured-image{z-index:0;object-fit:cover;}
.blog-post-list .article-visual span{z-index:1;}
.blog-post-list .article-body{padding:24px;}
.blog-post-list .article-body h2{font-size:1.6rem;margin:.55em 0;}
.blog-post-list .article-body h2 a{color:var(--ink);text-decoration:none;}
.blog-post-list .article-body h2 a:hover{color:var(--blue);}
@media(max-width:680px){.blog-post-list .article-visual{height:210px;}.blog-post-list .article-body{padding:19px;}}
