/* Página Calculadora de Precios */
.ctejidas-price-calculator-page .entry-header,
.ctejidas-price-calculator-page .page-header,
.ctejidas-price-calculator-page .featured-image,
.ctejidas-price-calculator-page .post-image {
	display: none !important;
}

.ctejidas-price-calculator-page #primary,
.ctejidas-price-calculator-page .content-area,
.ctejidas-price-calculator-page .site-main,
.ctejidas-price-calculator-page article,
.ctejidas-price-calculator-page .inside-article,
.ctejidas-price-calculator-page .entry-content {
	max-width: none !important;
	width: 100% !important;
}

.ctejidas-price-calculator-page .inside-article,
.ctejidas-price-calculator-page .entry-content {
	margin: 0 !important;
	padding-top: 0 !important;
}

.ct-price-page,
.ct-price-page * {
	box-sizing: border-box;
}

.ct-price-page {
	margin: 0 auto 42px;
	max-width: 920px;
	padding: 0 12px;
	width: 100%;
}

.ct-price-page__banner {
	margin: 0 auto 22px !important;
	max-width: 850px;
	padding: 0 !important;
}

.ct-price-page__banner img {
	display: block;
	height: auto;
	margin: 0 !important;
	max-width: 100%;
	width: 100%;
}

.ct-price-page__content {
	width: 100%;
}

#ctp-precio-widget {
    max-width: 850px;
    margin: 30px auto;
    padding: 28px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    font-family: 'Nunito', Arial, sans-serif;
    color: #5f6470;
    box-shadow: 0 4px 16px rgba(0,0,0,0.035);
  }

  #ctp-precio-widget,
  #ctp-precio-widget * {
    box-sizing: border-box;
  }

  #ctp-precio-widget h1 {
    margin: 0 0 12px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #eeeeee;
    color: #050505;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.3px;
  }

  #ctp-precio-widget p.ctp-intro {
    color: #5f6470;
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 17px;
  }

  #ctp-precio-widget strong {
    color: #4f525b;
    font-weight: 800;
  }

  #ctp-precio-widget .ctp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  #ctp-precio-widget .ctp-campo {
    display: flex;
    flex-direction: column;
  }

  #ctp-precio-widget .ctp-campo label {
    font-weight: 800;
    margin-bottom: 7px;
    color: #050505;
    font-size: 15px;
  }

  #ctp-precio-widget .ctp-campo input,
  #ctp-precio-widget .ctp-campo select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    font-size: 16px;
    background: #ffffff;
    color: #5f6470;
    font-family: 'Nunito', Arial, sans-serif;
    outline: none;
    transition: all 0.2s ease;
  }

  #ctp-precio-widget .ctp-campo input::placeholder {
    color: #a8abb3;
  }

  #ctp-precio-widget .ctp-campo input:focus,
  #ctp-precio-widget .ctp-campo select:focus {
    border-color: #ff5c93;
    box-shadow: 0 0 0 3px rgba(255,92,147,0.12);
  }

  #ctp-precio-widget .ctp-ayuda {
    font-size: 13px;
    color: #7b7f89;
    line-height: 1.5;
    margin-top: 6px;
  }

  #ctp-precio-widget .ctp-botones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 24px;
  }

  #ctp-precio-widget .ctp-boton {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: #ff5c93;
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    font-family: 'Nunito', Arial, sans-serif;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  #ctp-precio-widget .ctp-boton:hover {
    background: #f24885;
    transform: translateY(-1px);
  }

  #ctp-precio-widget .ctp-boton-secundario {
    width: 100%;
    padding: 15px;
    border: 1px solid #ff5c93;
    border-radius: 14px;
    background: #ffffff;
    color: #ff5c93;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    font-family: 'Nunito', Arial, sans-serif;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  #ctp-precio-widget .ctp-boton-secundario:hover {
    background: #fff1f7;
    transform: translateY(-1px);
  }

  #ctp-precio-widget .ctp-resultado {
    display: none;
    margin-top: 26px;
    padding: 24px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    color: #5f6470;
    line-height: 1.7;
  }

  #ctp-precio-widget .ctp-resultado h3 {
    color: #050505;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -0.2px;
  }

  #ctp-precio-widget .ctp-precio-principal {
    margin: 16px 0 20px;
    padding: 18px;
    border-radius: 14px;
    background: #fff6fa;
    border: 1px solid #ffe1ed;
    text-align: center;
  }

  #ctp-precio-widget .ctp-precio-principal span {
    display: block;
    font-size: 15px;
    color: #5f6470;
    margin-bottom: 4px;
    font-weight: 700;
  }

  #ctp-precio-widget .ctp-precio-principal strong {
    display: block;
    font-size: 34px;
    line-height: 1.2;
    color: #ff5c93;
    font-weight: 900;
  }

  #ctp-precio-widget .ctp-resultado-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 16px;
  }

  #ctp-precio-widget .ctp-tarjeta {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    padding: 15px;
  }

  #ctp-precio-widget .ctp-tarjeta small {
    display: block;
    color: #7b7f89;
    font-size: 13px;
    margin-bottom: 5px;
  }

  #ctp-precio-widget .ctp-tarjeta strong {
    display: block;
    color: #050505;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 900;
  }

  #ctp-precio-widget .ctp-nota {
    font-size: 15px;
    color: #5f6470;
    margin-top: 18px;
    background: #fff6fa;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #ffe1ed;
  }

  #ctp-precio-widget .ctp-resumen {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.7;
    color: #5f6470;
  }

  #ctp-precio-widget .ctp-busqueda {
    margin-top: 22px;
    padding: 20px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #eeeeee;
  }

  #ctp-precio-widget .ctp-busqueda h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #050505;
    font-size: 22px;
    font-weight: 900;
  }

  #ctp-precio-widget .ctp-busqueda p {
    margin: 0 0 15px;
    color: #5f6470;
    font-size: 15px;
    line-height: 1.7;
  }

  #ctp-precio-widget .ctp-busqueda-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  #ctp-precio-widget .ctp-search-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: #111111;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    font-family: 'Nunito', Arial, sans-serif;
    text-decoration: none !important;
    text-align: center;
    display: inline-block;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  #ctp-precio-widget .ctp-search-btn:hover {
    background: #333333;
    transform: translateY(-1px);
  }

  #ctp-precio-widget .ctp-copiar {
    width: 100%;
    margin-top: 18px;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: #ff5c93;
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    font-family: 'Nunito', Arial, sans-serif;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  #ctp-precio-widget .ctp-copiar:hover {
    background: #f24885;
    transform: translateY(-1px);
  }

  #ctp-precio-widget .ctp-tutoriales {
    margin-top: 22px;
    padding: 20px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #eeeeee;
  }

  #ctp-precio-widget .ctp-tutoriales h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #050505;
    font-size: 22px;
    font-weight: 900;
  }

  #ctp-precio-widget .ctp-tutoriales p {
    margin: 0 0 15px;
    color: #5f6470;
    font-size: 15px;
    line-height: 1.7;
  }

  #ctp-precio-widget .ctp-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 14px;
  }

  #ctp-precio-widget .ctp-post-card {
    border: 1px solid #eeeeee;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.035);
  }

  #ctp-precio-widget .ctp-post-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    background: #fff1f7;
    image-rendering: auto;
  }

  #ctp-precio-widget .ctp-post-card-content {
    padding: 12px;
  }

  #ctp-precio-widget .ctp-post-card h4 {
    margin: 0 0 10px;
    color: #050505;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 900;
  }

  #ctp-precio-widget .ctp-post-card a {
    display: inline-block;
    color: #ff5c93;
    font-weight: 900;
    font-size: 14px;
    text-decoration: none;
  }

  #ctp-precio-widget .ctp-post-card a:hover {
    text-decoration: underline;
  }

  #ctp-precio-widget .ctp-cargando-posts,
  #ctp-precio-widget .ctp-error-posts {
    grid-column: 1 / -1;
    color: #5f6470;
    background: #fff6fa;
    border: 1px solid #ffe1ed;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
  }

  #ctp-precio-widget .ctp-error-posts a {
    color: #ff5c93;
    font-weight: 900;
    text-decoration: none;
  }

  #ctp-precio-widget .ctp-post-placeholder {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #fff1f7, #ffe1ed);
  }

  @media (max-width: 650px) {
    #ctp-precio-widget {
      padding: 20px;
    }

    #ctp-precio-widget h1 {
      font-size: 25px;
    }

    #ctp-precio-widget p.ctp-intro {
      font-size: 16px;
    }

    #ctp-precio-widget .ctp-grid,
    #ctp-precio-widget .ctp-botones,
    #ctp-precio-widget .ctp-resultado-grid,
    #ctp-precio-widget .ctp-busqueda-grid,
    #ctp-precio-widget .ctp-posts-grid {
      grid-template-columns: 1fr;
    }

    #ctp-precio-widget .ctp-post-card img,
    #ctp-precio-widget .ctp-post-placeholder {
      height: 190px;
    }

    #ctp-precio-widget .ctp-precio-principal strong {
      font-size: 29px;
    }
  }

/* Ajustes nativos para WordPress */
#ctp-precio-widget h1 {
	font-family: "League Spartan", Nunito, sans-serif;
	font-size: clamp(28px, 4vw, 34px);
	letter-spacing: -0.03em;
	line-height: 1.12;
}

#ctp-precio-widget button:focus-visible,
#ctp-precio-widget a:focus-visible,
#ctp-precio-widget input:focus-visible,
#ctp-precio-widget select:focus-visible {
	outline: 3px solid rgba(255, 92, 147, .35);
	outline-offset: 2px;
}

@media (max-width: 700px) {
	.ct-price-page { padding: 0 5px; }
	#ctp-precio-widget { margin-top: 18px; padding: 20px 16px; }
}
