/*
==================================================================
Theme Name: 958tattoo
Version: 1.0
Author: MrPedu
Author URI: https://mrpedu.com
==================================================================
*/

:root {
    --contrast: var(--wp--preset--color--contrast);   /* #4B0C1A - color oscuro principal */
    --primary: var(--wp--preset--color--primary);    /* #6A0F24 - tu "primary" */
    --accento: var(--wp--preset--color--accento);  /* #FFD700 - acento (hover, etc.) */
    --texto: var(--wp--preset--color--texto);     /* #F8F4E3 - tono claro para fondos/detalles */

    --black: var(--wp--preset--color--black);     /* #1A1A1A */
    --white: var(--wp--preset--color--white);     /* #FFFFFF */
    --light: var(--wp--preset--color--light);     /* #f9fafb */
    --grey: var(--wp--preset--color--grey);       /* #CCCCCC */

    --font: var(--wp--preset--font-family--inter);
    --wp--preset--spacing--40: 45px;
}

::selection {
    background-color: var(--accento);
    text-shadow: none;
    color: rgb(0, 0, 0);
}
::placeholder {
    color: var(--grey);
}

.wp-block-group {
    --wp--style--block-gap-horizontal: 20px;
    --wp--style--block-gap-vertical: 50px;
}

body, p, li, span {
    font-family: var(--font);
}

p {
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

b, strong {
    font-weight: bold;
}

a img{
    transition: all 250ms ease;
}

a:hover img{
    opacity: 0.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 600;
    margin-top: 3rem;
}

body {
    font-size: var(--wp--preset--font-size--medium);
    line-height: normal;
    color: var(--black);
}

main{
    padding-top: 80px;
}

body.home main{
    padding-top: 0;
}

.post-type-post .editor-visual-editor__post-title-wrapper > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.post-type-post .block-editor-block-list__layout.is-root-container > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 950px;
}

.content{
    max-width: var(--wp--style--global--content-size);
    width: 100%;
}

img{
    max-width: 100%;
}

.wp-admin :where(.editor-styles-wrapper) .alignfull{
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    width: 100% !important;
}
.wp-block-post-content{
    margin-top: 80px;
}
.wp-block-post-content,
.alignfull {
    padding-left: var(--wp--preset--spacing--40);
    padding-right: var(--wp--preset--spacing--40);
}

.wp-block-post-content > *:not(p):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(ul):not(ol),
.alignfull > *:not(p):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(ul):not(ol) {
    padding-top: var(--wp--preset--spacing--40);
    padding-bottom: var(--wp--preset--spacing--40);
}

:root :where(.is-layout-constrained) > * {
    margin-block-end: 0;
}

.wp-block-columns, .wp-block-column{
    overflow: hidden;
}

.wp-block-column.is-vertically-aligned-stretch figure{
    height: 100%;
}

.wp-block-column.is-vertically-aligned-stretch figure div,
.wp-block-column.is-vertically-aligned-stretch figure img{
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

.wp-block-post-content > .wp-block-group,
.wp-block-post-content > .wp-block-columns {
    padding-top: 4vw;
    padding-bottom: 4vw;
}

.wp-block-post-content > :where(.wp-block-group):first-of-type,
.wp-block-post-content > :where(.wp-block-columns):first-of-type {
    padding-top: 0;
}

.wp-block-post-content > :where(:not(.alignwide):not(.alignfull)) {
    width: 100%;
    max-width: var(--wp--style--global--content-size);
    margin-left: auto !important;
    margin-right: auto !important;
}

.alignwide {
    width: 100%;
    max-width: var(--wp--style--global--wide-size);
    margin-left: auto !important;
    margin-right: auto !important;
}

.alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    position: relative;
}

.wp-block-latest-posts__featured-image{
    margin-bottom: 1em;
}

/* Botones */

.btn, .wp-block-button__link {
	background-color: var(--accento);
	color: var(--contrast);
	border-radius: 15px;
	border: none;
	padding: 1vw 2vw;
	font-size: var(--has-medium-font-size);
	transition: all 250ms ease;
}

.btn:hover,
.wp-block-button__link:hover {
  background-color: #ffd900a6;
  cursor: pointer;
}

.btnop {
	background-color: var(--contrast);
	color: var(--accento);
	border-radius: 15px;
	border: none;
	padding: 1vw 2vw;
	font-size: var(--has-medium-font-size);
	transition: all 250ms ease;
}

.btnop:hover {
  background-color: #4b0c1a9c;
  cursor: pointer;
}
/* Enlaces */

a {
    color: currentColor;
    text-decoration: none;
    transition: all 250ms ease;
}
a:hover {
    text-decoration: none;
}
p a:hover, form a:hover{
    color: var(--accento);
}

.overflow-hidden{
    overflow: hidden;
}

/*Header*/

header {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--contrast);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9;
    padding: 20px var(--wp--preset--spacing--40);
    box-shadow: 0 10px 30px 0 rgba(82,63,105,.05);
    transition: all 250ms ease;
}

header .content{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

header #logo{
    width: 3vw;
}

header .menu-principal-container{
    display: flex;
    justify-content: end;
    align-items: center;
    width: fit-content;
}

header .menu {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 35px;
    margin: 0;
    padding: 0;
}

header li a{
    color: var(--texto);
}

header li {
    list-style: none;
    font-size: 18px;
    position: relative;
}

header .menu li a:hover,
header li.current-menu-item a{
    color: var(--accento);
}

header #btn-menu{
    display: none;
}

header .btn{
    font-size: 20px;
    padding: 6px 15px 10px 15px !important;
}

/*Blog*/

.post-blog{
    display: flex;
    gap: 100px; 
}

.post-blog .post-content{
    width: 100%;
}

.post-blog .post-sidebar{
    position: relative;
    max-width: 400px;
    width: 100%;
}

.post-blog .post-sidebar .sidebar-content{
    position: sticky;
    top: 10rem;
}

.post-blog h1{
    font-size: clamp(28px, 2.5vw, 60px);
}

.wp-block-post-content p, .wp-block-post-content li {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--black);
    filter: contrast(1);
}

.wp-block-post-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.wp-block-post-content table th,
.wp-block-post-content table td {
    padding: 12px 16px;
    border: 1px solid #e2e2e2;
}

.wp-block-post-content table th {
    background: #f7f7f7;
    font-weight: 600;
    text-align: left;
}

.wp-block-post-content table tr:nth-child(even) {
    background: #fafafa;
}

.wp-block-post-content thead {
    border-bottom: 2px solid #e2e2e2;
}

.wp-block-post-content ul,
.wp-block-post-content ol {
    margin: 20px 0;
    padding-left: 28px;
    font-size: 15px;
}

.wp-block-post-content ul li,
.wp-block-post-content ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.wp-block-post-content ul li::marker {
    color: var(--accento);
}

.wp-block-post-content ol {
    counter-reset: lista;
}

.wp-block-post-content ol li {
    counter-increment: lista;
}

.wp-block-post-content ol li::marker {
    color: var(--accento);
    font-weight: 600;
}


/*Formulario*/

.wpcf7 form{
    transition: all 280ms ease;
}

.wpcf7 form br{
    display: none;
}

.wpcf7 form input:not([type="checkbox"]):not([type="button"]):not([type="radio"]):not([type="submit"]), .wpcf7 form textarea, .wpcf7 form select, .select2-container--default .select2-selection--single {
    font-size: var(--wp--preset--font-size--small);
    font-weight: normal;
    width: 100%;
    border: 1px solid var(--grey);
    border-radius: 5px;
    padding: 8px 16px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.wpcf7 form textarea{
    height: auto;
    padding: 16px;
}

.select2-container{
    width: 100%;
    max-width: 100%;
}

.select2-container--default .select2-selection--single .select2-selection__rendered{
    padding: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    width: auto;
    top: auto;
    right: auto;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    margin: 0;
    position: relative;
    left: auto;
    top: auto;
}

.wpcf7 form > p{
    transition: all 280ms ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.wpcf7 form .last > p{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.wpcf7 form .wpcf7-form-control-wrap{
    width: 100%;
}

.wpcf7 form .wpcf7-acceptance > span{
    margin-left: 0;
}

.wpcf7 form .wpcf7-acceptance > span label {
    font-size: var(--wp--preset--font-size--small);
    line-height: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpcf7 form .wpcf7-acceptance > span label a{
    color: var(--blue);
}

.wpcf7 form input[type="checkbox"]{
    width: 20px !important;
    height: 20px !important;
}

.wpcf7 form input[type="submit"]:disabled{
    pointer-events: none;
    opacity: 0.5;
}

.wpcf7 form.submitting > p{
    opacity: 0.2;
}

.wpcf7 form .wpcf7-spinner {
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    margin: 0;
}

.wpcf7 form .wpcf7-response-output {
    background-color: #6fd5df;
    color: white;
    margin: 25px 0 0 0;
    border: none;
    padding: 15px 20px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

.wpcf7 form.sent .wpcf7-response-output {
    background-color: green;
}

.wpcf7 form.invalid .wpcf7-response-output {
    background-color: red;
}

.wpcf7-not-valid{
    border-color: red !important;
}

.wpcf7-not-valid-tip{
    display: none !important;
}

/* Slider */

.galery {
    padding: 0;
    margin: 0;
}
.galery .swiper-wrapper {
    display: flex;
    gap: 20px;
}

.galery .swiper-slide {
    width: 10vw !important;
    height: 5vw;
}

.galery .swiper-slide img {
    object-fit: contain !important;
}

.swiper-button-next::after, .swiper-button-prev::after {
    color: var(--blue);
}

.swiper-button-next, .swiper-button-prev {
    top: var(--swiper-navigation-top-offset,95%) !important;
}

/*SLIDER REVIEWS*/

.reviews .swiper-wrapper {
    display: flex;
    gap: 50px;
}

.reviews .swiper-slide {
    width: 30vw !important;
}

.swiper-button-next::after, .swiper-button-prev::after {
    color: var(--white);
}

.swiper-button-next, .swiper-button-prev {
    top: var(--swiper-navigation-top-offset,90%) !important;
}

/*Utilidades*/

.faqs h3 {
    font-size: 45px;
    text-align: center;
}

.item_faq {
    border-bottom: 1px solid var(--blue);
    padding: 20px 5px;
}

.faq-title {
    font-size: 30px;
}

.card, .card2 {
    color: var(--texto);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 10px 29px -13px rgba(0,0,0,0.75);
    -webkit-box-shadow: 10px 10px 29px -13px rgba(0,0,0,0.75);
    -moz-box-shadow: 10px 10px 29px -13px rgba(0,0,0,0.75);
}

.card:hover {
	transform: translateY(-2px);
	color: var(--accento);
	border: 1px solid;
	border-color: var(--accentos) !important;
	box-shadow: 0px 13px 39px -10px rgba(255, 230, 0, 0.15);
}

.space p{
    margin: 0px;
}

.img-rdn img{
    border-style: solid !important;
}

.cta-float{
    position: relative;
    color: var(--contrast);
}

.cta-content {
	position: fixed;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	bottom: 0;
	background-color: var(--accento);
	padding: 0.5vw 2vw;
}

.footer {
	background-color: var(--contrast);
	color: #F8F4E396;
	padding: 1vw 2vw;
	margin-top: 0vw;
	height: 15vh;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 20px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
}