/*
 Theme Name:   Extendable Child
 Theme URI:    https://brandthinker.com.mx/
 Description:  Tema hijo para Extendable
 Author:       Mao Madrazo
 Author URI:   https://brandthinker.com.mx/
 Template:     extendable
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  extendable-child
*/

/* Regular 400 */
@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Italic 400 */
@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/Poppins-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Medium 500 */
@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* SemiBold 600 */
@font-face {
  font-family: "Poppins";
  src: url("./assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


body a.wp-block-navigation-item__content span {
    font-size: 20px;
}

body .wp-block-social-links .wp-social-link svg {
    height: 24px;
    width: 24px;
}

footer p.has-text-align-center.wp-block-site-title.has-medium-font-size a {
    font-size: 25px;
}

body footer .wp-block-social-links .wp-social-link svg {
    height: 25px;
    width: 25px;
}

.wp-block-navigation__container {
    display: flex;
    gap: 20px;
}

/* Ocultar widget de accesibilidad en checkout */
.uwpmc-widget-container,
.upw-mc-theme-4 {
    display: none !important;
}

/*Plantilla sin header ni footer*/
body.page-template-page-with-title header.wp-block-template-part,
body.page-template-page-with-title div.wp-block-group.alignfull.has-tertiary-background-color.has-background.has-global-padding.is-content-justification-center.is-layout-constrained.wp-container-core-group-is-layout-6986bb0d.wp-block-group-is-layout-constrained,
body.page-template-page-with-title footer.wp-block-template-part{
    display: none;
}


/*New template*/
body.page-template-page-with-title .wp-container-core-group-is-layout-7febb0d5 > figure > img {
    width: 350px;
}


/*Effect buttons*/
.wp-block-buttons>.wp-block-button.wp-block-button__width-50.cta-neon-orange{
    width: 100% ;
}



.wp-block-button.cta-neon-orange > a{ 
  --neon: #ed4824; 
  --bg:   #1a2530; 
 
  position: relative; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
 
  padding: 18px 35px; 
  border-radius: 18px; 
 
  background: var(--bg); 
  color: #fff !important; 
  text-decoration: none; 
  font-weight: 800; 
 
  border: 0; 
  isolation: isolate; 
  overflow: hidden; 
 
  box-shadow: 0 0 10px rgba(237,72,36,.18); 
  transition: transform .15s ease, box-shadow .15s ease; 
  
  max-width: 400px;
  width: auto !important;
  white-space: nowrap;
  font-size: clamp(1.25rem, 1.10rem + 0.9vw, 1.65rem) !important;
  line-height: 1.1;
} 
 

.cta-neon-orange > a::before{ 
  content:"";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(
    120deg,
    #ed4824 0%,        /* naranja intenso */
    #ed4824 15%,       /* mantiene intenso */
    #ff6b35 25%,       /* naranja brillante */
    #ffb366 35%,       /* naranja claro (solo en el centro) */
    #ff6b35 45%,       /* vuelve a brillante */
    #ed4824 50%,       /* PEAK naranja intenso */
    #ff6b35 55%,       /* naranja brillante */
    #ffb366 65%,       /* naranja claro (solo en el centro) */
    #ff6b35 75%,       /* vuelve a brillante */
    #ed4824 85%,       /* mantiene intenso */
    #ed4824 100%       /* naranja intenso */
  );
  filter: blur(24px);
  opacity: 0.4;
  animation: glow 6s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

@keyframes glow {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: rotate(180deg) scale(1.1);
    opacity: 0.75;
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 0.4;
  }
}

.cta-neon-orange > a::after{ 
  content:""; 
  position:absolute; 
  inset: 2px;
  border-radius: inherit; 
  background: var(--bg); 
  z-index: -1; 
} 
 

@keyframes spinBorderSlow{
  0%   { transform: rotate(0deg); }
  75%  { transform: rotate(180deg); } /* gira normal */
  85%  { transform: rotate(180deg); } /* pausa */
  100% { transform: rotate(180deg); } /* sigue en 360 para NO saltar */
}

.center-btn > .wp-block-button, .wp-block-buttons>.wp-block-button.cta-neon-orange {
    display: flex;
    justify-content: center;
}
 
/* Hover: respira */ 
.cta-neon-orange > a:hover{ 
  animation: breatheGlow 1.6s ease-in-out infinite; 
  transform: scale(1.02); 
} 
 
@keyframes breatheGlow{ 
  0%,100%{ 
    box-shadow: 
      0 0 25px rgba(237,72,36,.20), 
      0 0 0px  rgba(237,72,36,0); 
  } 
  50%{ 
    box-shadow: 
      0 0 25px rgba(237,72,36,.35), 
      0 0 40px rgba(237,72,36,.22); 
  } 
}

/* Card dinamicos */
.reveal-card{
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  padding: 2.5rem;
  margin-bottom: 5rem;
}

@media (max-width: 768px){
    body .reveal-card{
        padding: 1rem;
    }
}

/* estado oculto (antes de entrar al viewport) */
.reveal-card{
  opacity: 0 !important;
  transform: translate3d(0,18px,0) scale(.96) !important;
  filter: blur(2px) !important;

  transition:
    transform .70s cubic-bezier(.2,.8,.2,1),
    opacity   .70s cubic-bezier(.2,.8,.2,1),
    filter    .70s cubic-bezier(.2,.8,.2,1),
    border-color .70s cubic-bezier(.2,.8,.2,1),
    box-shadow  .70s cubic-bezier(.2,.8,.2,1);
  will-change: transform, opacity, filter;
}

.reveal-card h3 {
    font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem);
}
/* cuando entra en pantalla */
.reveal-card.is-inview{
  opacity: 1 !important;
  transform: translate3d(0,0,0) scale(1) !important;
  filter: blur(0) !important;

  /* “borde vivo” + glow sutil como axis */
  border-color: rgba(237,72,36,.35);
  box-shadow:
    0 16px 45px rgba(0,0,0,.45),
    0 0 0 1px rgba(237,72,36,.18),
    0 0 26px rgba(237,72,36,.12);
}

/* accesibilidad */
@media (prefers-reduced-motion: reduce){
  .reveal-card{
    opacity: 0 !important;
    transform: translate3d(0,18px,0) scale(.96) !important;
    filter: blur(2px) !important;
    transition: none !important;
  }
}


/*Form aplicar al programa*/
.wp-container-core-group-is-layout-48e9c06c iframe {
    min-width: 100% !important;
    max-width: 100% !important;
    display: block;
    height: 2000px;
}


@media (max-width: 768px){
    .padding-zero {
        padding: 0% !important;
    }
}


/*Mobile optimization*/
@media (max-width: 768px){
  .wp-block-heading, h1, h2{
    hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  /*.wp-block-heading{
    white-space: normal;
  }*/
}

@media (max-width: 768px){
  .reveal-card{
    filter: none !important;
    transition: transform .35s ease, box-shadow .35s ease !important;
  }

  .reveal-card.is-inview{
    transform: scale(1.02) !important; /* sutil */
    box-shadow: 0 12px 28px rgba(0,0,0,.30) !important;
  }
}

