/*
Theme Name: Truco Canino
Theme URI: https://trucocanino.com/
Description: Child theme de Hello Elementor para el proyecto Truco Canino.
Author: Carlos
Template: hello-elementor
Version: 1.0.0
Text Domain: truco-canino
*/

/*
 * Custom styles for Truco Canino go here.
 */
.tc-hero-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: min(50%, 680px) !important;
	text-align: left;
}

.tc-hero-content h1 {
	margin: 0;
	font-family: "Museo", "Zilla Slab", serif;
	font-size: 5.3rem;
	line-height: 5rem;
	font-weight: 600;
}

.tc-hero-content .elementor-widget-text-editor,
.tc-hero-content p {
	color: #333333;
	font-size: 1.25rem;
	line-height: 1.45;
}

.tc-hero-image {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.tc-hero-image .elementor-widget-container {
	position: relative;
	width: 100%;
	height: 100%;
}

.tc-hero-image img {
	display: block;
	position: absolute;
	left: 50%;
	top: 50%;
	width: auto;
	height: auto;
	min-width: 100%;
	min-height: 100%;
	max-width: none !important;
	transform: translate(-50%, -50%);
}

.tc-hero-image-mobile {
	display: none;
	position: relative;
	z-index: 1;
	width: min(100%, 520px);
	margin: 0 auto 24px;
}

.tc-hero-image-mobile img {
	display: block;
	width: 100%;
	height: auto;
	transform: translateY(-20px) scale(1.5);
	transform-origin: center center;
}

@media (max-width: 1199px) {
	.tc-hero-content h1 {
		font-size: 4.5rem;
		line-height: 4rem;
	}
}

@media (max-width: 959px) {
	.tc-hero-content {
		width: min(58%, 560px) !important;
	}

	.tc-hero-content h1 {
		font-size: 4rem;
		line-height: 3.5rem;
	}
}

@media (max-width: 639px) {
	.tc-hero-content {
		width: 100% !important;
		text-align: center;
		align-items: center;
	}

	.tc-hero-content h1 {
		font-size: 3.5rem;
		line-height: 3rem;
	}

	.tc-hero-image {
		display: none;
	}

	.tc-hero-image-mobile {
		display: block;
	}
}

@media (max-width: 479px) {
	.tc-hero-content h1 {
		font-size: 3.2rem;
		line-height: 3rem;
	}

	.tc-hero-content .elementor-widget-text-editor,
	.tc-hero-content p {
		font-size: 1.2rem;
		line-height: 1.2rem;
	}
}

/* El <p> que envuelve todo el formulario pasa a grid */
.wpcf7 form > p {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin: 0;
}

/* Quitar los <br> que mete CF7 */
.wpcf7 form > p > br {
  display: none;
}

/* Cada campo ocupa una celda */
.wpcf7 form > p > .wpcf7-form-control-wrap {
  display: block;
  margin: 0;
}

/* Campos que deben ocupar todo el ancho */
.wpcf7 form > p > .wpcf7-form-control-wrap[data-name="your-service"],
.wpcf7 form > p > .wpcf7-form-control-wrap[data-name="your-message"],
.wpcf7 form > p > .wpcf7-form-control-wrap[data-name="acceptance-privacy"],
.wpcf7 form > p > .wpcf7-submit,
.wpcf7 form > p > .wpcf7-spinner {
  grid-column: 1 / -1;
}

/* Inputs, select y textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7d7d7;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
}

/* Altura inputs */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select {
  height: 58px;
  padding: 0 22px;
}

/* Textarea */
.wpcf7 textarea {
  min-height: 150px;
  padding: 18px 22px;
  resize: vertical;
}

/* Placeholder */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #8b8b8b;
  opacity: 1;
}

/* Select */
.wpcf7 select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

/* Privacidad */
.wpcf7 .wpcf7-acceptance {
  display: block;
  margin-top: 2px;
}

.wpcf7 .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
  margin-top: 3px;
}

/* Botón */
.wpcf7 input[type="submit"] {
  min-height: 58px;
  padding: 0 28px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, #5b5ce6 0%, #b73df1 100%);
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
}

/* También en estado disabled */
.wpcf7 input[type="submit"]:disabled,
.wpcf7 input[type="submit"][disabled] {
  color: #fff !important;
  opacity: 1;
  cursor: not-allowed;
}

/* Spinner más pegado al botón */
.wpcf7 .wpcf7-spinner {
  margin: 8px 0 0 0;
}

/* Errores */
.wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 767px) {
  .wpcf7 form > p {
    grid-template-columns: 1fr;
  }
}

/* ===== BLOG POSTS ===== */
.single-post #content.tc-single-post {
  max-width: 100%;
  margin: 0;
  padding: 130px 0 72px;
}

.tc-post-shell {
  color: #333333;
}

.tc-post-header,
.tc-post-content,
.single-post .comments-area {
  width: min(100% - 40px, 920px);
  margin-left: auto;
  margin-right: auto;
}

.tc-post-header {
  padding-top: 0;
  margin-bottom: 28px;
}

.tc-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #6c6c6c;
  font-size: 0.95rem;
  line-height: 1.4;
}

.tc-post-categories a,
.tc-post-tags a {
  color: #307ae3;
  text-decoration: none;
}

.tc-post-categories a:hover,
.tc-post-tags a:hover {
  color: #6852ed;
}

.tc-post-title {
  margin: 0;
  font-family: "Museo", "Zilla Slab", serif;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #333333;
  text-wrap: balance;
}

.tc-post-excerpt {
  max-width: 760px;
  margin-top: 22px;
  color: #4a4a4a;
  font-size: 1.2rem;
  line-height: 1.6;
}

.tc-post-excerpt p:last-child {
  margin-bottom: 0;
}

.tc-post-featured {
  width: min(100% - 40px, 1240px);
  margin: 0 auto 44px;
}

.tc-post-featured-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 340px;
  max-height: 620px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(24, 42, 84, 0.14);
}

.tc-post-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.tc-post-content > * + * {
  margin-top: 1.15em;
}

.tc-post-content p,
.tc-post-content ul,
.tc-post-content ol,
.tc-post-content blockquote {
  margin-bottom: 0;
}

.tc-post-content h2,
.tc-post-content h3,
.tc-post-content h4,
.tc-post-content h5 {
  margin-top: 1.8em;
  margin-bottom: 0.45em;
  font-family: "Museo", "Zilla Slab", serif;
  line-height: 1.1;
  color: #333333;
}

.tc-post-content h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.tc-post-content h3 {
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
}

.tc-post-content h4 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.tc-post-content ul,
.tc-post-content ol {
  padding-left: 1.4em;
}

.tc-post-content li + li {
  margin-top: 0.5em;
}

.tc-post-content a {
  color: #307ae3;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.tc-post-content a:hover {
  color: #6852ed;
}

.tc-post-content blockquote {
  padding: 22px 24px;
  border-left: 5px solid #6852ed;
  border-radius: 0 18px 18px 0;
  background: linear-gradient(90deg, rgba(104, 82, 237, 0.08), rgba(255, 255, 255, 0));
}

.tc-post-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 22px;
}

.tc-post-tags {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(51, 51, 51, 0.1);
  font-size: 0.98rem;
}

.single-post .comments-area {
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid rgba(51, 51, 51, 0.1);
}

.single-post .comments-area h2,
.single-post .comments-area h3 {
  margin-bottom: 22px;
  font-family: "Museo", "Zilla Slab", serif;
  color: #333333;
}

.single-post .comment-list {
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.single-post .comment-body {
  padding: 22px 24px;
  border: 1px solid rgba(51, 51, 51, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(24, 42, 84, 0.06);
}

.single-post .comment-list li + li {
  margin-top: 18px;
}

.single-post .comment-metadata,
.single-post .comment-metadata a {
  color: #707070;
  font-size: 0.92rem;
}

.single-post .comment-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.single-post .comment-form input[type="text"],
.single-post .comment-form input[type="email"],
.single-post .comment-form input[type="url"],
.single-post .comment-form textarea {
  width: 100%;
  border: 1px solid #d7d7d7;
  border-radius: 16px;
  background: #ffffff;
  box-sizing: border-box;
  box-shadow: none;
  font-size: 16px;
  line-height: 1.5;
}

.single-post .comment-form input[type="text"],
.single-post .comment-form input[type="email"],
.single-post .comment-form input[type="url"] {
  height: 54px;
  padding: 0 18px;
}

.single-post .comment-form textarea {
  min-height: 180px;
  padding: 16px 18px;
  resize: vertical;
}

.single-post .comment-form .submit {
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #5b5ce6 0%, #b73df1 100%);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 959px) {
  .tc-post-featured {
    width: min(100% - 32px, 1240px);
    margin-bottom: 36px;
  }

  .tc-post-featured-image {
    border-radius: 24px;
    min-height: 280px;
  }
}

@media (max-width: 639px) {
  .single-post #content.tc-single-post {
    padding-top: 100px;
  }

  .tc-post-header,
  .tc-post-content,
  .single-post .comments-area {
    width: min(100% - 24px, 920px);
  }

  .tc-post-title {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .tc-post-excerpt,
  .tc-post-content {
    font-size: 1.02rem;
    line-height: 1.75;
  }

  .tc-post-featured {
    width: min(100% - 24px, 1240px);
  }

  .tc-post-featured-image {
    min-height: 220px;
    border-radius: 20px;
  }
}

/* ===== BLOG ARCHIVE ===== */
.blog #content.tc-blog-archive,
.archive #content.tc-blog-archive {
  max-width: 100%;
  margin: 0;
  padding: 130px 0 64px;
}

.tc-archive-header,
.tc-archive-grid,
.tc-archive-pagination {
  width: min(100% - 40px, 1240px);
  margin-left: auto;
  margin-right: auto;
}

.tc-archive-header {
  margin-bottom: 34px;
}

.tc-archive-header-inner {
  max-width: 760px;
}

.tc-archive-title {
  margin: 0;
  font-family: "Museo", "Zilla Slab", serif;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #333333;
  text-wrap: balance;
}

.tc-archive-description {
  max-width: 700px;
  margin-top: 18px;
  color: #505050;
  font-size: 1.1rem;
  line-height: 1.7;
}

.tc-archive-description p:last-child {
  margin-bottom: 0;
}

.tc-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.tc-archive-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(51, 51, 51, 0.08);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(24, 42, 84, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.tc-archive-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 92, 230, 0.16);
  box-shadow: 0 26px 54px rgba(24, 42, 84, 0.12);
}

.tc-archive-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.tc-archive-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.tc-archive-card:hover .tc-archive-card-image {
  transform: scale(1.04);
}

.tc-archive-card-image-placeholder {
  background:
    radial-gradient(circle at 20% 20%, rgba(48, 122, 227, 0.18), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(187, 64, 255, 0.14), transparent 35%),
    linear-gradient(135deg, #f7f9ff, #eef3ff);
}

.tc-archive-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 24px 24px 26px;
}

.tc-archive-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #727272;
  font-size: 0.92rem;
  line-height: 1.4;
}

.tc-archive-card-cats a {
  color: #307ae3;
  text-decoration: none;
}

.tc-archive-card-cats a:hover {
  color: #6852ed;
}

.blog .tc-archive-card-title,
.archive .tc-archive-card-title {
  margin: 0;
  font-family: "Museo", "Zilla Slab", serif;
  font-size: clamp(1.5rem, 1.8vw, 1.95rem) !important;
  line-height: 1.14 !important;
  font-weight: 600 !important;
}

.blog .tc-archive-card-title a,
.archive .tc-archive-card-title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  color: #333333;
  text-decoration: none;
  transition: color 0.25s ease;
}

.tc-archive-card-title a:hover {
  color: #307ae3;
}

.tc-archive-card-excerpt {
  margin-top: 14px;
  color: #505050;
  font-size: 1rem;
  line-height: 1.75;
}

.tc-archive-card-excerpt p:last-child {
  margin-bottom: 0;
}

.tc-archive-card-excerpt p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.tc-archive-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 54px;
  margin-top: 28px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5b5ce6 0%, #b73df1 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.tc-archive-card-button:hover {
  color: #fff;
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow: 0 12px 24px rgba(91, 92, 230, 0.25);
}

.tc-archive-empty {
  grid-column: 1 / -1;
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(135deg, #f8faff, #ffffff);
  border: 1px solid rgba(51, 51, 51, 0.08);
}

.tc-archive-empty h2 {
  margin: 0 0 12px;
  font-family: "Museo", "Zilla Slab", serif;
}

.tc-archive-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.tc-archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(51, 51, 51, 0.12);
  border-radius: 999px;
  color: #333333;
  background: #ffffff;
  text-decoration: none;
}

.tc-archive-pagination .page-numbers.current,
.tc-archive-pagination .page-numbers:hover {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(90deg, #5b5ce6 0%, #b73df1 100%);
}

@media (min-width: 1200px) {
  .tc-archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .blog #content.tc-blog-archive,
  .archive #content.tc-blog-archive {
    padding-top: 100px;
  }

  .tc-archive-header,
  .tc-archive-grid,
  .tc-archive-pagination {
    width: min(100% - 24px, 1240px);
  }

  .tc-archive-card {
    border-radius: 22px;
  }

  .tc-archive-card-body {
    padding: 20px 18px 22px;
  }

  .tc-archive-title {
    font-size: clamp(2.3rem, 12vw, 3.4rem);
  }

  .tc-archive-description {
    font-size: 1rem;
    line-height: 1.65;
  }

  .blog .tc-archive-card-title,
  .archive .tc-archive-card-title {
    font-size: clamp(1.35rem, 5.4vw, 1.7rem) !important;
  }

  .tc-archive-card-excerpt {
    font-size: 0.98rem;
  }

  .tc-archive-card-excerpt p {
    -webkit-line-clamp: 5;
  }
}

/* ===== HEADER NAV ===== */
.elementor-location-header .elementor-nav-menu--main .elementor-item.highlighted:not(.elementor-item-active):not(:hover):not(:focus) {
  color: var(--e-global-color-a47bcaa) !important;
  fill: var(--e-global-color-a47bcaa) !important;
}

.elementor-location-header .elementor-nav-menu--main.e--pointer-underline .elementor-item::before,
.elementor-location-header .elementor-nav-menu--main.e--pointer-underline .elementor-item::after {
  transition-duration: 0.08s !important;
}

.elementor-location-header .elementor-nav-menu--main .elementor-item.highlighted:not(.elementor-item-active):not(:hover):not(:focus)::before,
.elementor-location-header .elementor-nav-menu--main .elementor-item.highlighted:not(.elementor-item-active):not(:hover):not(:focus)::after {
  opacity: 0 !important;
}

/* ===== COOKIEYES ===== */
.cky-notice-btn-wrapper {
  gap: 14px !important;
}

.cky-btn {
  min-height: 54px !important;
  padding: 0 28px !important;
  border-radius: 999px !important;
  border-width: 1px !important;
  border-style: solid !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  box-shadow: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease !important;
}

.cky-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(104, 82, 237, 0.18) !important;
}

.cky-btn-customize,
.cky-btn-reject {
  color: #307ae3 !important;
  background: rgba(104, 82, 237, 0.12) !important;
  border-color: rgba(104, 82, 237, 0.28) !important;
}

.cky-btn-accept,
.cky-btn-preferences {
  color: #ffffff !important;
  background: #6852ed !important;
  border-color: #6852ed !important;
}

.cky-btn-accept:hover,
.cky-btn-preferences:hover {
  filter: saturate(1.06);
}

body.tc-footer-in-view .cky-btn-revisit-wrapper {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(12px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

@media (max-width: 639px) {
  .cky-notice-btn-wrapper {
    gap: 10px !important;
  }

  .cky-btn {
    min-height: 50px !important;
    padding: 0 22px !important;
  }
}
