/* =========================================================
   Página: Contacto (/contacto/)
   Se carga solo en esta página desde functions.php
   ========================================================= */

/* Colores, íconos y barra superior: assets/css/tc-nuevo.css */

/* ---------- Banner ---------- */
.tc-contacthero {
	position: relative;
	overflow: hidden;
	padding: 72px 0 76px;
	background: linear-gradient(135deg, var(--tc-pet-900) 0%, var(--tc-pet-800) 55%, var(--tc-pet-700) 100%);
	color: #ffffff;
}
/* Luces de fondo */
.tc-contacthero::before,
.tc-contacthero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}
.tc-contacthero::before {
	right: -120px;
	top: -160px;
	width: 560px;
	height: 560px;
	background: radial-gradient(circle, rgba(185, 21, 27, .45) 0%, transparent 65%);
	animation: tc-orb1 9s ease-in-out infinite alternate;
}
.tc-contacthero::after {
	left: -160px;
	bottom: -220px;
	width: 520px;
	height: 520px;
	background: radial-gradient(circle, rgba(56, 189, 248, .22) 0%, transparent 65%);
	animation: tc-orb2 11s ease-in-out infinite alternate;
}
@keyframes tc-orb1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-60px, 40px) scale(1.15); } }
@keyframes tc-orb2 { 0% { transform: translate(0, 0); } 100% { transform: translate(50px, -30px); } }

/* Trama de puntos + línea inferior (petróleo oscuro) */
.tc-contacthero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: 48px;
	align-items: center;
	max-width: var(--tc-ancho);
	margin-inline: auto;
	padding-inline: 24px;
	box-sizing: border-box;
}
.tc-contacthero-inner::before {
	content: "";
	position: absolute;
	inset: -72px -100vw -76px;
	z-index: -1;
	background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
	        mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
	pointer-events: none;
}
.tc-contacthero { border-bottom: 4px solid #04090C; }

.tc-contacthero .tc-kicker {
	margin-bottom: 16px;
	font-size: 16px;
	letter-spacing: .12em;
	color: var(--tc-acento-suave);
}
.tc-contacthero .tc-kicker::before { width: 38px; background: var(--tc-acento-suave); }
:is(.entry-content, .is-root-container) .tc-contacthero-title {
	margin: 0 0 16px;
	font-size: 50px;
	line-height: 1.06;
	font-weight: 400;
	color: #ffffff;
}
.tc-contacthero-title strong {
	font-weight: 600;
	background: linear-gradient(90deg, #E8323A, #FF5A3C);
	-webkit-background-clip: text;
	        background-clip: text;
	color: transparent;
}
:is(.entry-content, .is-root-container) .tc-contacthero-intro {
	margin: 0 0 26px;
	max-width: 560px;
	font-size: 17px;
	line-height: 1.65;
	color: rgba(255, 255, 255, .75);
}

/* Las 3 etiquetas: en una sola línea */
.tc-contacthero-features { display: flex; flex-wrap: nowrap; gap: 8px; }
:is(.entry-content, .is-root-container) .tc-contacthero-feature {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 8px 12px;
	white-space: nowrap;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 999px;
	-webkit-backdrop-filter: blur(6px);
	        backdrop-filter: blur(6px);
	font-size: 13px;
	font-weight: 500;
	color: #ffffff;
}
.tc-contacthero-feature::before {
	content: "";
	width: 16px;
	height: 16px;
	flex: none;
	background: var(--tc-acento-suave);
	-webkit-mask: var(--tc-ico) center / contain no-repeat;
	        mask: var(--tc-ico) center / contain no-repeat;
}

/* Tarjeta "Habla directo con nosotros" */
.tc-contacthero-card {
	padding: 28px;
	background: #F2F2F2;
	border: 1px solid rgba(13, 39, 48, .10);
	border-radius: 24px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
	color: var(--tc-pet-800);
	animation: tc-floaty 6s ease-in-out infinite;
}
@keyframes tc-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
:is(.entry-content, .is-root-container) .tc-contacthero-card p { margin: 0; }
:is(.entry-content, .is-root-container) .tc-contacthero-card .tc-hcard-kicker {
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tc-acento);
}
:is(.entry-content, .is-root-container) .tc-contacthero-card .tc-hcard-title {
	margin: 0 0 18px;
	font-family: var(--tc-fuente-titulos);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -.015em;
	color: var(--tc-pet-800);
}
:is(.entry-content, .is-root-container) .tc-contacthero-card .tc-hcard-btn + .tc-hcard-btn { margin-top: 12px; }
.tc-hcard-btn a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 48px 0 20px;
	border-radius: 14px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	box-sizing: border-box;
	transition: transform .15s ease, box-shadow .15s ease;
}
.tc-hcard-btn a::before {
	content: "";
	width: 20px;
	height: 20px;
	flex: none;
	background: currentColor;
	-webkit-mask: var(--tc-ico) center / contain no-repeat;
	        mask: var(--tc-ico) center / contain no-repeat;
}
.tc-hcard-btn a::after {
	content: "";
	position: absolute;
	right: 20px;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tc-hcard-btn a:hover { transform: translateY(-2px); }
:is(.entry-content, .is-root-container) .tc-hcard-btn--wa a,
:is(.entry-content, .is-root-container) .tc-hcard-btn--wa a:hover,
:is(.entry-content, .is-root-container) .tc-hcard-btn--wa a:focus { color: #ffffff; }
.tc-hcard-btn--wa a { background: var(--tc-wa-oscuro); box-shadow: 0 10px 24px rgba(18, 140, 69, .30); }
.tc-hcard-btn--wa a:hover { background: #0F7A3C; }
:is(.entry-content, .is-root-container) .tc-hcard-btn--call a,
:is(.entry-content, .is-root-container) .tc-hcard-btn--call a:hover,
:is(.entry-content, .is-root-container) .tc-hcard-btn--call a:focus { color: var(--tc-pet-800); }
.tc-hcard-btn--call a { background: #ffffff; border: 2px solid var(--tc-pet-800); }
:is(.entry-content, .is-root-container) .tc-contacthero-card .tc-hcard-hours {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px !important;
	font-size: 13px;
	color: #4B5B62;
}
.tc-hcard-hours::before {
	content: "";
	width: 15px;
	height: 15px;
	flex: none;
	background: var(--tc-acento);
	-webkit-mask: var(--tc-ico) center / contain no-repeat;
	        mask: var(--tc-ico) center / contain no-repeat;
}

/* ---------- Datos + formulario ---------- */
.tc-contact-section { background: linear-gradient(180deg, #F3F6F8 0%, #FFFFFF 100%); }
.tc-contact {
	display: grid;
	grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
	gap: 44px;
	align-items: start;
	max-width: var(--tc-ancho);
	margin: 0 auto;
	padding: 64px 24px 72px;
	box-sizing: border-box;
}
.tc-contact .tc-eyebrow { margin-bottom: 8px; font-size: 15px; letter-spacing: .12em; color: var(--tc-acento); }
:is(.entry-content, .is-root-container) .tc-contact-title {
	margin: 0 0 12px;
	font-size: 34px;
	line-height: 1.15;
	font-weight: 600;
	color: var(--tc-c-navy);
}
:is(.entry-content, .is-root-container) .tc-contact-intro {
	margin: 0 0 26px;
	font-size: 15.5px;
	line-height: 1.65;
	color: var(--tc-c-texto);
}
.tc-contact-items { display: grid; gap: 12px; }
:is(.entry-content, .is-root-container) .tc-contact-items .tc-contact-item { margin: 0; }
.tc-contact-item {
	position: relative;
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 16px 18px;
	background: #ffffff;
	border: 1px solid #E5E7EB;
	border-radius: 18px;
	box-shadow: 0 6px 20px rgba(17, 24, 39, .05);
	transition: transform .2s ease, box-shadow .2s ease;
}
.tc-contact-item:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(17, 24, 39, .09); }
/* Ícono relleno: cuadro con degradado rojo e ícono blanco */
.tc-contact-item::before {
	content: "";
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: var(--tc-acento-grad);
	box-shadow: 0 8px 18px var(--tc-acento-sombra);
}
.tc-contact-item::after {
	content: "";
	position: absolute;
	left: 33px;
	top: 50%;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	background: #ffffff;
	-webkit-mask: var(--tc-ico) center / contain no-repeat;
	        mask: var(--tc-ico) center / contain no-repeat;
}
:is(.entry-content, .is-root-container) .tc-contact-item-content p { margin: 0; }
:is(.entry-content, .is-root-container) .tc-contact-item-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tc-acento);
}
:is(.entry-content, .is-root-container) .tc-contact-item-value {
	margin-top: 3px !important;
	font-family: var(--tc-fuente-titulos);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--tc-c-navy);
}
:is(.entry-content, .is-root-container) .tc-contact-item-value a { color: var(--tc-c-navy); text-decoration: none; }
:is(.entry-content, .is-root-container) .tc-contact-item-value a:hover { color: var(--tc-acento); }
:is(.entry-content, .is-root-container) .tc-contact-item-note { margin-top: 4px !important; font-size: 14px; color: var(--tc-c-texto); }
:is(.entry-content, .is-root-container) .tc-contact-item-note a { color: #16A34A; font-weight: 700; text-decoration: none; }

/* Tarjeta del formulario */
.tc-contact-form-card {
	position: relative;
	background: #ffffff;
	border: 1px solid #E5E7EB;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(17, 24, 39, .10);
}
.tc-contact-form-card::before { content: ""; display: block; height: 5px; background: var(--tc-acento); }
.tc-contact-form-top {
	position: relative;
	padding: 22px 28px 6px 90px;
	min-height: 48px;
}
.tc-contact-form-top::before {
	content: "";
	position: absolute;
	left: 28px;
	top: 22px;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--tc-acento-tinte);
}
.tc-contact-form-top::after {
	content: "";
	position: absolute;
	left: 41px;
	top: 35px;
	width: 22px;
	height: 22px;
	background: var(--tc-acento);
	-webkit-mask: var(--tc-ico) center / contain no-repeat;
	        mask: var(--tc-ico) center / contain no-repeat;
}
:is(.entry-content, .is-root-container) .tc-contact-form-top p { margin: 0; }
:is(.entry-content, .is-root-container) .tc-contact-form-kicker {
	font-family: var(--tc-fuente-titulos);
	font-size: 20px;
	font-weight: 600;
	color: var(--tc-c-navy);
}
:is(.entry-content, .is-root-container) .tc-contact-form-text { margin-top: 2px !important; font-size: 14.5px; color: var(--tc-c-texto); }
.tc-contact-form-body { padding: 18px 28px 28px; }

/* Estilos del formulario Contact Form 7: assets/css/tc-nuevo.css */

/* =========================================================
   RESPONSIVO (≤380 · ≤767 · 768–1024 · 1025–1366 · ≥1367)
   ========================================================= */
@media (max-width: 1366px) {
	:is(.entry-content, .is-root-container) .tc-contacthero-title { font-size: 46px; }
}
@media (min-width: 1025px) and (max-width: 1200px) {
	.tc-contacthero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; }
	.tc-contacthero-features { gap: 6px; }
	:is(.entry-content, .is-root-container) .tc-contacthero-feature { padding: 7px 10px; gap: 6px; font-size: 12.5px; }
	.tc-contacthero-card { padding: 24px; }
}
@media (max-width: 1024px) {
	.tc-contacthero-inner,
	.tc-contact { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.tc-contacthero-card { max-width: 520px; }
}
@media (max-width: 767px) {
	.tc-contacthero { padding: 48px 0 52px; }
	:is(.entry-content, .is-root-container) .tc-contacthero-title { font-size: 36px; }
	.tc-contacthero-features { flex-wrap: wrap; }
	:is(.entry-content, .is-root-container) .tc-contacthero-feature { padding: 7px 10px; font-size: 12.5px; }
	.tc-contacthero-card { padding: 22px; }
	.tc-contact { padding: 52px 24px 56px; }
	:is(.entry-content, .is-root-container) .tc-contact-title { font-size: 28px; }
	.tc-contact-form-top { padding: 20px 20px 6px 82px; }
	.tc-contact-form-top::before { left: 20px; top: 20px; }
	.tc-contact-form-top::after { left: 33px; top: 33px; }
	.tc-contact-form-body { padding: 16px 20px 22px; }
}
@media (max-width: 380px) {
	.tc-contacthero-inner, .tc-contact { padding-inline: 16px; }
	:is(.entry-content, .is-root-container) .tc-contacthero-title { font-size: 30px; }
	.tc-contacthero-card { padding: 18px; }
	.tc-hcard-btn a { font-size: 15px; padding-left: 16px; }
	.tc-contact-item { padding: 14px; gap: 12px; }
	.tc-contact-item::before { width: 46px; height: 46px; border-radius: 14px; }
	.tc-contact-item::after { left: 26px; }
	:is(.entry-content, .is-root-container) .tc-contact-item-value { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
	.tc-contacthero::before, .tc-contacthero::after, .tc-contacthero-card { animation: none; }
	.tc-contact-item, .tc-hcard-btn a, .tc-cf7-field input, .tc-cf7-field select, .tc-cf7-field textarea { transition: none; }
	.tc-contact-item:hover, .tc-hcard-btn a:hover { transform: none; }
}
