/* ECLORE */
:root {
    --clr-accent-400: hsl(242, 74%, 70%); /* CTA buttons, links, title accent, icons */
    --clr-accent-300: hsl(236, 91%, 87%);
    --clr-accent-200: hsl(223, 100%, 94%);
    --clr-accent-100: hsl(223, 100%, 97%);

    --clr-yellow-400: hsl(48, 94%, 63%);
    --clr-yellow-100: hsl(52, 100%, 86%);

    --clr-pink-100: hsl(336, 100%, 97%);

    --clr-blue-100: hsl(206, 100%, 95%);

    --clr-green-100: hsl(154, 100%, 94%);

    --clr-neutral-500: hsl(0, 0%, 34%); /* Text body */
    --clr-neutral-900: hsl(0, 0%, 7%); /* Titles */

    --ff-primary: 'Raleway', sans-serif;
    --ff-body: var(--ff-primary);
    --fw-regular: 400;
    --fs-600: 1rem;
    --fs-body: var(--fs-600); /* 16px */
}

/* RESET */
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html {
    scroll-behavior: smooth;
}
  
/* Set core body defaults */
body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.6;
}
  
/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
    height: auto;
    vertical-align: middle;
    font-style: italic;
    background-repeat: no-repeat;
    background-size: cover;
    shape-margin: 1rem;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
  
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
}

/* Fieldset reset */
fieldset {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
}

input[type="submit"] {
    border: unset;
    border-color: unset;
    border-radius: unset;
    background: unset;
    color: unset;
    line-height: unset;
    padding: unset;
}

a:focus {
    outline: none;
}

a:focus-visible {
    outline-offset: 2px;
    outline: 2px dotted var(--clr-accent-400);
}

a:visited {
    color: #fff;
}


/* UTILITIES CLASSES */
.text-accent {
    color: var(--clr-accent-400);
}

.text-white {
    color: #fff;
}

.text-base {
    color: var(--clr-neutral-500);
}

.text-dark {
    color: var(--clr-neutral-900);
}

.text-center {
    text-align: center;
}

.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

.underline {
    text-decoration: underline !important;
}

.bold {
    font-weight: 600;
}

.regular {
    font-weight: 400;
}

.flex {
    display: flex;
}

.space-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.inline-auto {
    margin-inline: auto;
}

.w-50 {
    width: 50%;
}

.mt-48 {
    margin-top: 3rem;
}

.mt-64 {
    margin-top: 4rem;
}

.mb-8 {
    margin-bottom: 0.5rem;
}

.mb-16 {
    margin-bottom: 1rem;
}

.mb-24 {
    margin-bottom: 1.5rem;
}

.mb-32 {
    margin-bottom: 2rem;
}

.mb-48 {
    margin-bottom: 3rem;
}

.mb-64 {
    margin-bottom: 4rem;
}

.bg-light {
    background-color: var(--clr-accent-100);
}

.bg-accent {
    background-color: var(--clr-accent-300);
}

.bg-yellow {
    background-color: var(--clr-yellow-100);
}

/* GENERAL */
html {
    scroll-behavior: smooth;
}

html, body {
    height: 100% !important;
    margin: 0;
}

.site {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.main-content {
    flex: 1;
}

@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/Raleway-Regular.woff2) format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 600;
    src: url(../fonts/Raleway-SemiBold.woff2) format('woff2');
    font-display: swap;
}

body {
    margin: 0;
    font-size: var(--fs-body);
    font-family: var(--ff-body);
    font-weight: var(--fw-regular);
    color: var(--clr-neutral-500);
}

h1, h2, h3, h4 { 
    font-stretch: 100%;
    line-height: 1.1;
    color: var(--clr-neutral-900);
}

h3, h4 {
    line-height: 1.5;
}

section {
    padding-block: 6rem;
}

.main-column {
    --max-width: 1240px;
    --padding: 1.5rem;
    width: min(var(--max-width), 100% - (var(--padding) * 2)) !important;
    margin-inline: auto;
}

.header {
    padding-block: 5rem;
    background-color: var(--clr-accent-300);
}

.hero {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.overlay {
    border-image: linear-gradient(hsl(0 0 0 / 0.4), hsl(0 0 0 / 0.4)) fill 1;
}

.row {
    display: grid;
}

.one-col {
    width: 60%;
    margin-inline: auto;
}

.two-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.three-cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blob {
    transform: translatey(0px);
}

.blob-1 {
    animation: float 6s ease-in-out infinite;
}
.blob-2 {
    animation: float 4s ease-in-out infinite;
}
  
.blob-3 {
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
	0% {
		transform: translatey(0px);
	}
	50% {
		transform: translatey(-20px);
	}
	100% {
		transform: translatey(0px);
	}
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0px 0px 8px rgba(0,0,0,.6);
}

.main-navigation {
    width: auto;

    ul {
        display: flex;
        gap: 1.5rem;
    }

    a {
        padding: 0.5rem 1rem;
        border-bottom: 2px solid transparent;
        color: var(--clr-accent-400);
        text-decoration: none;

        &:hover {
            border-color: var(--clr-neutral-900);
            transition: all .3s;
            color: var(--clr-neutral-900);
        }
    }

    .current_page_item a {
        border-color: var(--clr-neutral-900);
        color: var(--clr-neutral-900);
    }
}

.main-title {
    font-size: clamp(2rem, calc(1rem + 5vw), 5rem);
    font-weight: 600;
}

.secondary-title {
    font-size: clamp(1.5rem, 0.9718rem + 2.2535vw, 3rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.link {
    color: var(--clr-accent-400) !important;
    text-decoration: underline;
}

.link-arrow .arrow {
    transition: transform 0.3s ease;
}

.link-arrow:hover {
    color: #000 !important;
}

.link-arrow:hover .arrow {
    transform: translateX(0.5rem);
}

.btn,
.forminator-button,
.menu li:last-child a,
.menu li:nth-child(3) a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 30px !important;
    padding: 0.5rem 1.5rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all .3s;
}

.btn-primary,
.forminator-button,
.menu li:last-child a {
    background-color: var(--clr-accent-400);
    color: #fff;

    &:hover {
        background-color: #000;
        color: #fff;
    }
}

.btn-ghost,
.menu li:nth-child(3) a {
    border-color: var(--clr-accent-400);
    color: var(--clr-accent-400);

    &:hover {
        background-color: var(--clr-accent-400);
        color: #fff;
    }
}

.btn-w {
    border-color: #fff;
    color: #fff;

    &:hover {
        background-color: var(--clr-accent-400);
    }
}

.btn-group {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    gap: 0.5rem;
}

/* WP button */
.wpcf7-submit {   
    display: block !important;
    border: 1px solid transparent !important;
    border-radius: 30px !important;
    padding: 0.5rem 1.5rem !important;
    font-weight: bold !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    margin-top: 1.5rem !important;

    background-color: var(--clr-accent-400) !important;
    color: #fff !important;
    transition: all .3s !important;

    &:hover {
        background-color: #000 !important;
    }
}

/* Form */
.custom-field input,
.custom-field textarea {
    width: 100%;
    border-radius: 4px;
    margin-top: 0;
    padding: 1rem;
    border: 1px solid #ccc;
}

.custom-field textarea {
    resize: vertical;
}

.wpcf7-response-output {
    border-radius: 10px;
    padding: 2rem !important;
}

.wpcf7 form.sent .wpcf7-response-output {
    color: #46b450;
}

.map {
    border-top: 1px solid silver;

    iframe {
        display: block;
        width: 100%;
    }
}

.items {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
}

.items .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: calc(100% / 3 - 1rem);
    gap: 0.5rem;
}

.page-intro {
    padding-top: 10rem;
}

/* Servicios */
.section-services .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

/* Terapia */
.section-therapy .card {
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
}

.section-therapy .card h2{
    margin-bottom: 0.6rem;
}

.section-therapy .thumbnail {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.section-therapy .text {
    flex: 1;
    padding: 2rem 2rem 1rem;
}

.section-therapy .card .link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-inline: 2rem;
    margin-bottom: 3rem;
}

.section-therapy .card .btn-primary {
    margin-inline: 2rem;
    margin-bottom: 3rem;
}

.section-therapy .row article:nth-child(1) {
    background-color: var(--clr-accent-100);
}

.section-therapy .row article:nth-child(2) {
    background-color: var(--clr-pink-100);
}

.section-therapy .row article:nth-child(3) {
    background-color: var(--clr-green-100);
}

.section-therapy .row article:nth-child(4) {
    background-color: var(--clr-yellow-100);
}

.section-therapy .row article:nth-child(5) {
    background-color: var(--clr-blue-100);
}

.section-therapy .row article:nth-child(6) {
    background-color: var(--clr-accent-300);
}

.section-therapy .row article:nth-child(1) .btn,
.section-therapy .row article:nth-child(2) .btn,
.section-therapy .row article:nth-child(3) .btn,
.section-therapy .row article:nth-child(4) .btn,
.section-therapy .row article:nth-child(5) .btn {
    display: none;
}

.section-therapy .row article:nth-child(6) .link {
    display: none;
}

/* Team */
.picture-2 {
    align-self: end;
}

.picture-5 {
    align-self: end;
}

.picture-6 {
    align-self: center;
}

/* Prices */
.section-prices .main-column {
    padding-block: 100px;
}

.section-prices p.secondary-title {
    margin-bottom: 0;
    line-height: 1;
}

.section-prices .secondary-title {
    color: var(--clr-neutral-900);
    margin-bottom: 0;
}

.section-prices h2.secondary-title {
    margin-bottom: 1.5rem;
}

.section-prices .btn {
    margin-top: 2rem;
}

/* Contact */
.section-contact .form-wrapper {
    width: 60%;
}

.section-contact .wpcf7-list-item-label,
.section-contact .link {
    color: #fff !important;
}

/* Poll */
.poll {
    width: 70%;
    padding: 4rem 3rem;
    margin-inline: auto;
    border-radius: 1rem;
    background-color: #fff;
    box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.05);
}

.index {
    width: 80%;
    margin-inline: auto;
}

.index .card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.index .col-1 {
    width: 56px;
}

.index .col-2 {
    flex: 1;
}

.index .small {
    font-size: 0.8rem;
}

/* Forminator */
.forminator-title {
    font-size: 1rem !important;
    color: var(--clr-neutral-500);
}

.forminator-subtitle {
    font-size: 1.8rem !important;
}

.forminator-label {
    margin-bottom: 1rem !important;
    font-size: 1.4rem !important;
    line-height: 1.5 !important;
}

.forminator-checkbox-label {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
}

/* Blog */
.site-main.page-blog .wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 25rem), 1fr));
    gap: 1rem;
    padding-block: 5rem;
}

.site-main.page-blog .wrapper header {
    display: none;
}

.section-blog article img,
.section-blog .post img,
.blog .page-blog .post img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.post-template-default .blog .post img {
    height: 400px;
    object-fit: cover;
    width: 100%;
}

.section-blog article a,
.section-blog .post a,
.blog .post a {
    display: block;
    text-decoration: none;
    color: var(--clr-accent-400);
}

.section-blog article h1,
.section-blog .post h1,
.blog .post h1,
.section-blog article h,
.section-blog .post h2,
.blog .post h2 {
    padding-inline: 2rem;
    margin-top: 1.5rem;
    line-height: 1.2;
}

.section-blog article .posted-on,
.section-blog .post .posted-on,
.blog .post .posted-on {
    display: flex;
    gap: 0.5rem;
    padding-inline: 2rem;
    margin-bottom: 2rem;
}

.section-blog article p,
.section-blog .post p,
.blog .post p {
    padding: 1rem 2rem 2rem;
    color: var(--clr-neutral-500);
}

.section-blog article, 
.section-blog .post, 
.blog .post {
    flex: 1;
    background-color: var(--clr-neutral-100);
    box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.single main .main-column {
    --max-width: 840px;
}

.single .blog .post {
    padding-block: 3rem;
    border-radius: 1rem;
    background-color: #fff;
}

.single-post .entry-title {
    color: var(--clr-neutral-900);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.single-post .site-main,
.blog .page-blog {
    background-color: #F1F2F4;
}

.blog .page-blog .post {
    background-color: #fff;
    border-radius: 0.5rem;
}

.blog .page-blog .post:hover {
    box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.1);
}

.blog .page-blog .post:hover a {
   color: #000;
}

.blog .page-blog .post img {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.single-post .entry-meta {
    font-size: 0.9rem;
}

.single-post .entry-meta .author,
.single-post .entry-meta .byline {
    display: none;
}

.single-post .entry-content h3,
.legal h3 {
    margin-bottom: 3rem;
    color: var(--clr-neutral-900);
}

.single-post .entry-content h2,
.legal h2 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--clr-neutral-900);
}

.legal h1 {
    margin-bottom: 2rem;
}

.single-post .entry-content p,
.legal p {
    margin-bottom: 1rem;
}

.single-post .entry-content li,
.legal li {
    margin-bottom: 1rem;
}

.single-post .entry-footer {
    padding-inline: 2rem;
}

.post-navigation .nav-links a {
    color: var(--clr-accent-400);
    text-decoration: underline;
}

/* Footer */
.site-footer {
    padding-top: 3rem;
    background-color: var(--clr-accent-400);
    color: #fff;
}

.site-footer .row-1 {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #fff;
}

.site-footer .row-1 a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer .row-2 p {
    font-size: 0.8rem;
}

.site-footer nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer ul {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-links {
    display: flex;
    gap: 0.2rem;
}

/* Error 404, Not found */
.error-404,
.not-found {
    min-height: 75svh;
}

.error-404 .icon,
.not-found .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-block: 4rem 2rem;
}

.error-404 .icon img,
.not-found .icon img {
    width: 4.5rem;
}

.menu-mobile {
    position: absolute;
    background: white;
    right: -60%;
    top: 6rem;
    height: 100svh;
    width: 60%;
    padding-top: 2rem;
    transition: all .2s ease-in;

    ul {
        list-style-type: none;
    }

    a {
        text-decoration: none;
        color: var(--clr-primary-400);
        margin-bottom: 1rem;
        display: block;
    }
}

#page-default {
    min-height: 100svh;
}

.animation {
    scale: 0.8;
    opacity: 0;
    animation: fade-in linear forwards;
    animation-timeline: view();
    animation-range: 250px 500px;
}

@keyframes fade-in {
    to { scale: 1; opacity: 1;}
}

/* Breakpoint Tablet */
@media (max-width: 769.98px) {
    section {
        padding-block: 4rem;
    }

    .site-header ul {
        gap: 0.5rem;

        li {
            text-wrap: nowrap;
        }
    }

    .hero {
        min-height: 50dvh;
    }
}

/* Breakpoint Mobile */
@media (max-width: 575.98px) {

    section {
        padding-block: 3rem;
    }

    .btn-primary {
        display: block;
        width: 80%;
        margin-inline: auto;
        padding: 1rem;
        font-size: 0.8rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .items {
        flex-direction: column;
        gap: 2rem;
    }

    .items article,
    .items .item {
        max-width: 100%;
    }

    .one-col {
        width: 90%;
    }

    .two-cols,
    .three-cols,
    .four-cols {
        grid-template-columns: 1fr;
    }

    .custom-field input,
    .custom-field textarea {
        width: -webkit-fill-available;
    }

    .wpcf7-submit {
        width: 90%;
        margin-inline: auto;
    }

    .section-contact .form-wrapper {
        width: 100%;
    }

    .poll {
        width: 90%;
        padding: 3rem 2rem;
    }

    .page-intro {
        padding-top: 5rem;
    }

    .page-intro .main-column {
        display: flex;
        flex-direction: column;
    }

    .page-intro .img-group {
        order: 0;
        margin-bottom: 2rem;
    }

    .page-intro .box {
        order: 1;
    }

    .blob {
        animation: none;
    }

    .blob-2, .blob-3 {
        display: none;
    }

    .site-footer nav,
    .site-footer ul {
        flex-direction: column;
    }

    .site-footer ul,
    .site-footer li {
        width: 100%;
        text-align: center;
    }

    .mobile-only .menu {
        flex-direction: column;
        padding-inline: 2rem
    }

    .mobile-only .menu a {
        width: 100%;
    }
    
}

/* General styles */
.main-navigation {
    position: relative;
}

/* Desktop-only styles */
.desktop-only {
    display: block;
}

/* Mobile-only styles */
.mobile-only {
    display: none;
    position: fixed;
    top: 0;
    right: -100%; /* Ocultar fuera de la pantalla */
    width: 80%; /* Ancho del menú móvil */
    max-width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    z-index: 9999;
    transition: right 0.3s ease; /* Animación deslizante */
}

/* Toggle button styles */
#menu-toggle {
    display: none;
    position: absolute;
    top: -20px;
    right: 0px;
    z-index: 10000;
    background-color: var(--clr-accent-400);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
}

/* Responsive styles */
@media (max-width: 768px) {
    .desktop-only {
        display: none; /* Ocultar menú de escritorio */
    }

    #menu-toggle {
        display: block; /* Mostrar botón toggle */
    }

    .mobile-only {
        display: block;
    }

    .mobile-only.open {
        right: 0; /* Mostrar el menú móvil */
    }
}

