/*
Theme Name: Cuentos Astra Gutenberg Final 1.1.1
Theme URI: https://andidukb.my.canva.site/
Description: Astra child theme for editable Gutenberg blocks. Full replacement package with separate editable sections, video poster overlay, policy pages and corrected footer.
Author: Anzhelika Diduk
Template: astra
Version: 1.1.1
Text Domain: cuentos-astra-gutenberg-final-v1-1-1
*/

:root{
  --cuentos-blue:#0aa7c8;
  --cuentos-blue-dark:#1476bd;
  --cuentos-light:#dff6f4;
  --cuentos-soft:#ccefee;
  --cuentos-card:#65b8dc;
  --cuentos-yellow:#ffd94b;
  --cuentos-orange:#f4b000;
  --cuentos-red:#d75b45;
  --cuentos-text:#18334a;
}

html,body{margin:0;padding:0;overflow-x:hidden;background:#eff8fb;}
body.cuentos-landing-full,
body.page-template-cuentos-landing-full{background:#eff8fb!important;}
body.cuentos-landing-full .site,
body.page-template-cuentos-landing-full .site,
body.cuentos-landing-full .site-content,
body.page-template-cuentos-landing-full .site-content,
body.cuentos-landing-full .ast-container,
body.page-template-cuentos-landing-full .ast-container,
body.cuentos-landing-full .content-area,
body.page-template-cuentos-landing-full .content-area,
body.cuentos-landing-full .site-main,
body.page-template-cuentos-landing-full .site-main,
body.cuentos-landing-full .entry-content,
body.page-template-cuentos-landing-full .entry-content{
  width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:#eff8fb!important;
}
body.cuentos-landing-full .entry-title,
body.page-template-cuentos-landing-full .entry-title,
body.cuentos-landing-full .post-navigation,
body.page-template-cuentos-landing-full .post-navigation,
body.cuentos-landing-full header.site-header,
body.page-template-cuentos-landing-full header.site-header,
body.cuentos-landing-full footer.site-footer,
body.page-template-cuentos-landing-full footer.site-footer{display:none!important;}

.entry-content > .wp-block-html,
.entry-content > .wp-block-group,
.cuentos-page > .wp-block-html,
.cuentos-page > .wp-block-group{margin-top:0!important;margin-bottom:0!important;}
.wp-block-group.cuentos-fullbleed,
.cuentos-fullbleed{
  width:100vw!important;
  max-width:none!important;
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;
  display:flex!important;
  justify-content:flex-start!important;
  align-items:flex-start!important;
  background:#eff8fb!important;
  overflow:visible!important;
  min-width:100vw!important;
  padding:0!important;
}
.wp-block-group.cuentos-scale-frame,
.cuentos-scale-frame{
  position:relative!important;
  width:100vw!important;
  max-width:none!important;
  height:auto;
  min-height:1px;
  overflow:visible!important;
  flex:0 0 100vw;
  padding:0!important;
  margin:0!important;
  display:block!important;
}
.wp-block-group.cuentos-page,
.cuentos-page,
.entry-content .cuentos-page{
  position:absolute;
  top:0;
  left:0;
  width:497px!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  background:#dff6f4;
  color:var(--cuentos-text);
  font-family:Georgia,'Times New Roman',serif;
  overflow:hidden;
  line-height:1.35;
  box-shadow:0 0 0 1px rgba(0,0,0,.04);
  transform:scale(var(--cuentos-scale, 1));
  transform-origin:top left;
}
.cuentos-page *{box-sizing:border-box;}
.cuentos-page p{margin:0;}
.cuentos-page a{text-decoration:none;}
.cuentos-page figure{margin:0;}
.cuentos-page img{display:block;max-width:100%;height:auto;image-rendering:auto;}

.cuentos-hero{position:relative;background:#36afe8;}
.cuentos-hero img{width:100%;height:auto;}
.cuentos-hero-cta{
  position:absolute;left:57.4%;top:80.2%;width:25.9%;height:8.8%;display:flex;align-items:center;justify-content:center;
  background:#fff;border:2px solid #176eaf;border-radius:999px;color:#176eaf!important;font-family:Georgia,'Times New Roman',serif;
  font-size:15px;font-weight:700;line-height:1;text-align:center;box-shadow:0 2px 0 rgba(20,91,155,.08), inset 0 1px 5px rgba(0,0,0,.05);z-index:5;
}
.cuentos-hero-cta:hover{background:#fff;color:#176eaf!important;filter:brightness(.98);}

.cuentos-top-strip{background:#00a3c2;color:#fff;text-align:center;font-weight:700;letter-spacing:.3px;font-size:15px;padding:13px 18px 14px;border-bottom:2px dashed #f7d33c;}
.cuentos-section{position:relative;padding:23px 28px;background:#dff6f4;}
.cuentos-section-title{margin:0 0 18px;color:#1476bd;text-align:center;font-weight:700;font-size:22px;line-height:1.15;letter-spacing:.2px;}
.cuentos-overview{padding-top:23px;padding-bottom:15px;background:#dff6f4;}
.cuentos-pill-title{background:#69bde0;border-radius:14px;color:#f7b600;text-shadow:0 1px 0 rgba(255,255,255,.38);font-size:18px;font-weight:700;line-height:1.15;text-align:center;padding:9px 12px;margin:0 0 11px;}
.cuentos-main-card{position:relative;background:#65b8dc;color:#fff;border-radius:12px;padding:13px 22px 17px;text-align:center;font-size:11px;font-weight:700;line-height:1.55;min-height:152px;}
.cuentos-main-card p + p{margin-top:8px;}
.cuentos-main-card:after,.cuentos-feature-card:after{content:"";position:absolute;right:-20px;top:38px;width:24px;height:24px;border:3px solid #ffc928;border-radius:50%;box-shadow:12px 16px 0 -10px #ffc928;}
.cuentos-main-card:before,.cuentos-feature-card:before{content:"";position:absolute;right:-23px;top:62px;width:39px;height:6px;background:#ffc928;transform:rotate(27deg);border-radius:10px;}
.cuentos-zigzag-left{position:absolute;left:0;bottom:3px;width:54px;height:15px;background:linear-gradient(135deg,transparent 0 40%,#f2b20c 41% 58%,transparent 59% 100%) 0 0/16px 16px repeat-x;}
.cuentos-inside-titlebar{background:#00a8c9;color:#fff;padding:18px 20px 14px;border-bottom:2px dashed #ffe15c;text-align:center;}
.cuentos-inside-titlebar h2{margin:0;color:#fff;font-size:22px;line-height:1.1;font-weight:700;}
.cuentos-inside{padding:28px 28px 23px;background:#dff6f4;position:relative;}
.cuentos-inside-grid{display:grid;grid-template-columns:1fr 136px;gap:28px;align-items:center;}
.cuentos-feature-card{position:relative;background:#65b8dc;border-radius:10px;color:#fff;padding:16px 15px;font-size:14px;line-height:1.65;min-height:178px;font-weight:500;}
.cuentos-feature-card ul{margin:0;padding:0;list-style:none;}
.cuentos-feature-card li{margin:0 0 2px;}
.cuentos-inside-photo img{border-radius:13px;width:136px;height:178px;object-fit:cover;}
.cuentos-zigzag-right{position:absolute;right:0;top:12px;width:70px;height:15px;background:linear-gradient(135deg,transparent 0 40%,#f2b20c 41% 58%,transparent 59% 100%) 0 0/16px 16px repeat-x;}

.cuentos-pages{background:#fff;padding:16px 19px 0;}
.cuentos-pages h2{margin:0 0 26px;color:#1476bd;text-align:center;font-size:21px;line-height:1.15;font-weight:700;}
.cuentos-pages-gallery{background:#ffde42;margin:0 -19px 0;padding:14px 18px 18px;display:grid;grid-template-columns:158px minmax(0,1fr);gap:16px;align-items:stretch;position:relative;}
.cuentos-pages-gallery:after{content:"✶";position:absolute;right:7px;top:0;color:#c55bff;font-size:31px;font-family:Arial,sans-serif;z-index:9;pointer-events:none;}
.cuentos-pages-gallery img{border-radius:7px;object-fit:cover;height:198px;width:100%;}
.cuentos-preview-page img{height:198px;object-fit:cover;background:#fff;}
.cuentos-pages-gallery .right-page img{object-position:center center;}
.cuentos-pages-gallery .left-collage img{object-position:center center;}
.cuentos-pages-squiggle{position:absolute;right:13px;bottom:10px;color:#b96dff;font-size:26px;font-family:Arial,sans-serif;line-height:1;z-index:9;pointer-events:none;}
.cuentos-pages-squiggle:before{content:"⌁";}

/* Video block: native playable video occupying the right two thirds of the yellow gallery. */
.cuentos-video-preview{position:relative;display:block;width:100%;height:198px;margin:0;border-radius:7px;overflow:hidden;background:#fff;grid-column:2;}
.cuentos-video-preview.video-wide-right{height:198px;}
.cuentos-inline-video{position:relative;display:block!important;width:100%!important;height:198px!important;min-height:198px!important;object-fit:cover;object-position:center center;border:0;outline:none;background:#fff;border-radius:7px;}
.cuentos-inline-video[poster]{background:#fff;}
.cuentos-inline-video::-webkit-media-controls-panel{background-color:rgba(255,255,255,.88);}

.cuentos-audience{background:#fff;padding:19px 28px 35px;border-top:2px dashed #f7c849;position:relative;}
.cuentos-audience h2{font-size:21px;margin:0 0 16px;color:#1476bd;text-align:center;}
.cuentos-audience:before{content:"";position:absolute;left:0;top:0;width:56px;height:38px;border:5px solid #37afe8;border-right:0;border-bottom:0;border-radius:50%;transform:translate(-23px,-18px) rotate(-12deg);}
.cuentos-audience:after{content:"✶";position:absolute;right:8px;bottom:8px;color:#ff744e;font-size:35px;font-family:Arial,sans-serif;}
.cuentos-cards{display:grid;grid-template-columns:1fr 1fr 1fr;gap:28px;align-items:start;}
.cuentos-target-card{border-radius:10px;min-height:164px;text-align:center;overflow:hidden;background:#fee79a;}
.cuentos-target-card.parents{background:#a9e3f1;}
.cuentos-target-card.teachers{background:#e2ad9d;}
.cuentos-card-label{color:#fff;font-size:18px;line-height:1;font-weight:700;padding:8px 8px 7px;border-radius:0 0 10px 10px;background:#d75b35;}
.cuentos-target-card.parents .cuentos-card-label{background:#1777bd;}
.cuentos-target-card.teachers .cuentos-card-label{background:#f5b800;}
.cuentos-card-text{font-size:11.5px;line-height:1.35;padding:11px 10px 14px;color:#111;font-weight:400;}
.cuentos-author{background:#dff6f4;padding:24px 28px 20px;border-top:2px dashed #ffc84b;position:relative;}
.cuentos-author h2{font-size:21px;margin:0 0 26px;color:#1476bd;text-align:center;}
.cuentos-author-grid{display:grid;grid-template-columns:1fr 160px;gap:24px;align-items:center;}
.cuentos-author-note h3{font-family:'Comic Sans MS','Segoe Print',cursive;color:#d75b45;font-size:19px;margin:0 0 17px;font-weight:700;}
.cuentos-author-note p{font-family:'Comic Sans MS','Segoe Print',cursive;color:#222;font-size:11.5px;line-height:1.75;text-align:center;}
.cuentos-author-photo img{width:160px;height:160px;object-fit:cover;border-radius:2px;}
.cuentos-author .star{position:absolute;left:281px;top:77px;color:#f4b000;font-size:39px;font-family:Arial,sans-serif;}
.cuentos-author .star:before{content:"✶";}
.cuentos-author .purple{position:absolute;right:17px;top:56px;color:#f38cff;font-size:31px;font-family:Arial,sans-serif;}
.cuentos-author .purple:before{content:"⌁";}
.cuentos-donation{background:#bdeeff;padding:24px 28px 74px;position:relative;overflow:hidden;border-top:2px dashed #f7c849;}
.cuentos-donation h2{font-size:21px;margin:0 0 26px;color:#d65e48;text-align:center;}
.cuentos-donation p{font-size:21px;line-height:1.35;text-align:center;color:#111;margin:0 0 30px;position:relative;z-index:2;}
.cuentos-donation:before{content:"";position:absolute;left:-16px;bottom:0;width:146px;height:128px;border:10px solid rgba(255,255,255,.78);border-right:0;border-radius:60% 0 0 0;transform:rotate(16deg);}
.cuentos-donation:after{content:"";position:absolute;right:-27px;bottom:8px;width:122px;height:122px;border:10px solid rgba(255,255,255,.78);border-radius:50%;}
.cuentos-scribble-a{position:absolute;left:28px;top:45px;width:76px;height:44px;border-top:4px solid rgba(79,186,231,.5);border-radius:50%;transform:rotate(-24deg);}
.cuentos-scribble-b{position:absolute;right:30px;top:48px;width:76px;height:44px;border-top:4px solid rgba(79,186,231,.5);border-radius:50%;transform:rotate(24deg);}
.cuentos-donation .star-one{position:absolute;right:25px;top:89px;color:#e8a500;font-size:29px;font-family:Arial,sans-serif;z-index:1;}
.cuentos-donation .star-one:before{content:"✶";}
.cuentos-donation .star-two{position:absolute;right:41px;bottom:103px;color:#31aee5;font-size:27px;font-family:Arial,sans-serif;z-index:1;}
.cuentos-donation .star-two:before{content:"✶";}
.cuentos-buttons{background:#fff;padding:16px 27px 17px;display:grid;grid-template-columns:1fr 1fr;gap:31px;}
.cuentos-btn{display:flex;align-items:center;justify-content:center;text-align:center;min-height:38px;border:1.8px solid #d75b45;border-radius:19px;color:#1476bd!important;font-size:12px;font-weight:700;line-height:1.15;background:#fff;padding:7px 10px;}
.cuentos-btn:hover{color:#1476bd!important;background:#fff7f4;}
.cuentos-footer-strip{height:24px;min-height:24px;background:#000;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:6px;padding:0 6px;font-family:Arial,sans-serif;font-size:12px;line-height:1;white-space:nowrap;overflow:hidden;}
.cuentos-footer-strip a,.cuentos-footer-strip span{color:#fff!important;font-size:12px!important;line-height:1;text-decoration:none;font-weight:400;}
.cuentos-footer-strip a:hover{text-decoration:underline;}
.cuentos-footer-links{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;}
.cuentos-footer-copy{opacity:.9;}

@media (max-width:430px){
  .cuentos-page{width:497px!important;max-width:none!important;}
  .cuentos-author .star,.cuentos-author .purple{display:none;}
}
