/*
Theme Name: Twentyseventeen-child_EN
Theme URI: http://example.com/your-child-theme
Description: Twenty Seventeen Child
Author: SEEG
Author URI: http://tallerhibrido.eco
Template: twentyseventeen
Version: 1.0.0
*/

/* Import Parent Theme's Stylesheet */
@import url("../twentyseventeen/style.css");

/* START Cookie Consent */

/* To prevent interactions with the underlying content */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 9998; /* Slightly below the banner */
    display: none; /* Hidden by default, shown when banner is active */
}

/* Banner message style */
.cookie-banner-message {
    margin-bottom: 15px;
}

.cookie-consent-text {
    font-size: 1rem !important;
    text-align: left !important;
}


/* Button styles */
.btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    margin: 5px;
    cursor: pointer;
    border-radius: 4px;
}

.btn:hover {
    background-color: #0056b3;
}

/* Accept All Button */
#acceptAll {
    background-color: #28a745;
}

#acceptAll:hover {
    background-color: #218838;
}

/* Reject All Button */
#rejectAll.btn {
    background-color: transparent !important;
    color: #A3FB66 !important;
}

#rejectAll:hover {
    background-color: #c82333;
}

/* Manage Preferences Button */
#managePreferences.btn {
    background-color: transparent !important;
    color: #A3FB66 !important;
}

#managePreferences:hover {
    background-color: #e0a800;
}

/* END Cookie Consent */


/* START not .home */
body:not(.home) .custom-header-media,
body:not(.home) .site-branding {
    display: none !important;
}

body:not(.home) .site-content {
    padding-top: 0 !important;
}
/* END not .home */

/* EQUIPO START */
:root {
  --height: calc( 80vh - 50px );
  --width: 450px;
}
.carousel {
  display: grid;
  transform: translate3d(0,0,0.1px);
}
.carousel__list {
  display: flex;
  overflow: hidden;
  list-style: none;
  padding: 2em 0 3em;
  margin: 0;
  contain: layout;
  isolation: isolate;
}
.carousel__item {
  display: grid;
  position: relative;
  align-content: start;
  margin: 0 10px;
  padding: 0;
  flex: 1 1 10%;
  height: var(--height);
  overflow: hidden;
  background: rgba(255,255,255,0.2);
  border-radius: 16px;
  transform: translate3d(0,0,0.1px);
  box-shadow: rgba(0, 0, 0, 0.4) 0px 3px 15px 2px, rgba(0, 0, 0, 0.2) 0px 12px 28px 0px, rgba(0, 0, 0, 0.1) 0px 2px 4px 0px, rgba(255, 255, 255, 0.05) 0px 0px 0px 1px inset;
  contain: layout;
  isolation: isolate;
}
.carousel__item,
.carousel__item * {
  transition: all .6s cubic-bezier(.55,.24,.18,1);
  user-select: none;
}
.carousel__image,
.carousel__contents {
  width: var(--width);
  height: auto;
}
.carousel__item:hover {
  flex-basis: calc( var(--width) / 2 );
  transition: all 0.3s ease;
}
.carousel__item[data-active] {
  flex-basis: var(--width);
  flex-grow: 0;
}
@media screen and (max-width: 800px) {
  .carousel__item {
      flex-basis: 15%;
  }
}
@media screen and (max-width: 600px) {
  
  .carousel__item {
      flex-basis: 10%;
      margin: 0 5px;
      border-radius: 8px;
      font-size: 3vw;
  }
  
  .carousel__item[data-active] {
      flex-basis: 45%;
      flex-grow: 0;
  }
  .carousel__item:nth-child(3),
  .carousel__item:nth-child(7) {
      flex: 0 0 10px;
  }
  .carousel__item:nth-child(2),
  .carousel__item:nth-child(8) {
      flex: 0 0 5px;
      transform: translateX(-50px);
  }
  .carousel__item:nth-child(8) {
      transform: translateX(50px);
  }
  .carousel__item:nth-child( 1 ),
  .carousel__item:nth-child( n + 9 ) {
      flex: 0 0 0px;
      margin: 0;
      box-shadow: none;
      opacity: 0!important;
  }
  .carousel__item:not(:nth-child( n + 5 )) img,
  .carousel__item:nth-child( n + 7 ) img {
      opacity: 0.8;
  }
  .carousel__item:not(:nth-child( n + 4 )) *,
  .carousel__item:nth-child( n + 7 ) * {
      opacity: 0!important;
  }
  
}
@media screen and (min-width: 600px) {
  .carousel__item:nth-child(3),
  .carousel__item:nth-child(10) {
      flex: 0 0 10px;
  }
  .carousel__item:nth-child(2),
  .carousel__item:nth-child(11) {
      flex: 0 0 5px;
      transform: translateX(-50px);
  }
  .carousel__item:nth-child(11) {
      transform: translateX(50px);
  }
  .carousel__item:nth-child( 1 ),
  .carousel__item:nth-child( n + 12 ) {
      flex: 0 0 0px;
      margin: 0;
      box-shadow: none;
      opacity: 0!important;
  }
  .carousel__item:not(:nth-child( n + 5 )) img,
  .carousel__item:nth-child( n + 9 ) img {
      opacity: 0.8;
  }
  .carousel__item:not(:nth-child( n + 4 )) *,
  .carousel__item:nth-child( n + 10 ) * {
      opacity: 0!important;
  }
  
}
.carousel__item img {
  display: block;
  position: absolute;
  width: var(--width);
  height: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  aspect-ratio: 2/3;
  object-fit: cover;
  filter: saturate(0.2) contrast(0.75) brightness(1.1);
}
.carousel__item::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 1;
  background: linear-gradient(160deg, rgba(2,0,36,0) 40%, rgba(118,221,136,.5) 70%, rgba(0,255,246,.6) 100%);
  transition: all .66s cubic-bezier(.55,.24,.18,1);
}
.carousel__item[data-active]::after {
  transform: translateY(100%);
}
.carousel__item[data-active],
.carousel__item[data-active] * {
  opacity: 1;
  filter: none;
}
.carousel__contents {
  display: flex;
  flex-direction: column-reverse;
  justify-content: start;
  min-height: 200px;
  padding: 1em;
  z-index: 2;
  background-image: radial-gradient( ellipse at 0px 0px, rgba(0,0,0,0.4) 20%, transparent 50% );
  background-size: 170% 200px;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  left: 0;
}
.carousel__contents .user__name, .user__name a {
  color: #e8eff4;
  font-size: 1.3em;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .8px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
  font-family: 'Barlow', sans-serif;
}
.carousel__contents .user__name.th-user-grey-text, .user__name.th-user-grey-text a {
  color: #2c3a4e !important;
  font-size: 1.3em;
  font-weight: 600;
  letter-spacing: .8px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
  font-family: 'Barlow', sans-serif;
}
.carousel__contents .user__title {
  font-family: 'Barlow', sans-serif;
  font-size: .875em;
  letter-spacing: 1.25px;
  font-weight: 500;
  text-transform: uppercase;
  color: #F5F5F5 !important;
  background: linear-gradient( 270deg, rgb(67, 255, 0), rgb(0, 255, 247) );
  background-clip: text;
  -webkit-background-clip: text;
  opacity: 0.85;
  text-wrap: balance;
  margin-bottom: 0.5em;
}
.carousel__contents .user__title,
.carousel__contents .user__name, .user__name a {
  margin: 0.5em 0 0 0;
  line-height: 1.1;
  opacity: 0;
  transform: translateX(-200px);
  transition-duration: 1s;
  max-width: 18em;
}
@media screen and (max-width: 800px) {
  .carousel__item img {
      width: calc(var(--width) * .5);
  }
  .carousel__contents {
      transform: translateX(-100%) rotate(90deg);
      transform-origin: bottom right;
      align-items: end;
      justify-content: end;
      background-image: radial-gradient( ellipse at 100% 100%, rgba(0, 0, 0,.4) 0%, transparent 50% );
      background-position: -100% 100%;
      flex-direction: column;
      position: absolute;
      bottom: 0;
      left: 0;
      text-align: right;
  }
  [data-active] .carousel__contents {
      background-position: 100% 100%;
  }
  .carousel__contents .user__title,
  .carousel__contents .user__name, .user__name a {
      max-width: 70vh;
      transform: translateX(200px);
  }
}
[data-active] .carousel__contents * {
  transform: translateX(0px); 
  transition-duration: 0.66s;
  opacity: 1;
}
[data-active] .carousel__contents .user__name {
  transition-delay: 0.1s;
}
[data-active] .carousel__contents .user__title {
  opacity: 0.85; 
  transition-delay: 0.05s;
}

.th-icon-wrapper {
    width: 1.5vw !important; 
    height: 1.5vw !important;
}

.th-div-wrapper {
    float: left !important;
    margin-right: 95%;
    margin-top: 2vw;
}

/*
  Carousel Controls
*/
.carousel__nav {
  padding: 1em;
  justify-self: end;
  grid-row: 1;
  display: flex;
  justify-content: space-between;
  gap: 1em;
}
button {
  display: flex;
  gap: .5em;
  padding: 0.5em 1.5em;
}
button span,
button svg {
  margin: 0;
  padding: 0;
  fill: none;
}
button path {
  fill: currentColor;
}
body, html {
  padding: 0;
  align-items: start;
}

/* EQUIPO END */

/* ###GENERAL - START### */ 

/* Set text font-size */
p {
font-size: 1.125rem !important;
}

/* Enable smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
} 

/* Hide the element on screens smaller than 768px (mobile) */
@media (max-width: 768px) {
    .custom-header {
        display: none;
    }
}

/* Show the element on screens 768px and larger (desktop) */
@media (min-width: 768px) {
    .custom-header {
        display: block;
    }
}



/* Customize the text highlight color */
::selection {
    background-color: #54958A; /* Change to your desired highlight background color */
    color: #fff; /* Optional: Change the text color when highlighted */
}

/* Webkit-based browsers (Chrome, Safari, etc.) */
::-moz-selection {
    background-color: #54958A; /* Firefox-specific highlight background color */
    color: #fff; /* Optional: Firefox-specific text color */
}

/* Cursor */
body {
    cursor: url('http://tallerhibrido.eco/en/wp-content/uploads/sites/5/2025/06/THMX_cursor36-e1749720924848.png'), auto; /* Custom cursor for the entire page */
}


/* Hide the default logo */
.custom-logo-link img {
    display: none !important; /* Hide the existing logo image */
}

/* Use the SVG as logo */
.custom-logo-link {
    display: inline-block; /* Make sure it's inline-block for proper sizing */
    width: 300px; /* Adjust the width as necessary */
    height: 100px; /* Adjust the height as necessary */
    background-image: url('https://tallerhibrido.eco/wp-content/uploads/2024/10/logo.svg'); /* Set the SVG as background */
    background-size: contain; /* Ensure the SVG scales correctly */
    background-repeat: no-repeat; /* Prevent repeating */
    background-position: center; /* Center the background image */
}

/* Wrap to 100% */
.wrap {
  max-width: 100%;
}

@media screen and (min-width: 48em) {
  .wrap {
    max-width: 100%;
  }
}

.page.page-one-column:not(.twentyseventeen-front-page) #primary {
  max-width: 80% !important;
}

@media screen and (min-width: 30em) {
  .page-one-column .panel-content .wrap {
    max-width: 80% !important;
  }
}

/* Align the site branding text (title and description) to the right for larger screens */
.site-branding {
    text-align: left; /* Default alignment for the branding container */
}

/* Align site branding text to the right for larger screens */
.site-branding-text {
    text-align: right; /* Align the branding text to the right */
    max-width: 50% !important;
}

/* Media query for devices smaller than or equal to 768px */
    .site-branding {
        display: inline-block !important; /* Hide the entire branding container (logo and text) */
    }

    /* Specifically hide the site title and description */
    .site-description {
        font-size: 1rem !important;
	width: 90% !important;
    }

    /* Ensure the logo link is not displayed on mobile */
    .custom-logo-link {
        display: inline-block !important; /* Ensure the logo link is not displayed on mobile */
    }

/* Set the color of the site title and description */
@media (min-width: 768px) {
.site-description {
    color: #A3FB66!important;
    text-align: right; /* Align title and description text to the right */
    display: inline-block; /* Keep them inline */
    font-size: 1.3rem !important;
    margin: 0; /* Remove default margins */
    width: 75%; /* Limit width for larger screens */
    text-shadow: 0px 4px 3px rgba(0,0,0,0.4),
             0px 8px 13px rgba(0,0,0,0.1),
             0px 18px 23px rgba(0,0,0,0.1);
    }
} 

/* Set background color for the domain tallerhibrido.eco */
body,
.site-content-contain,
#page {
    background-color: #2C3A4E !important;
}

/* Set background color for the domain blog.tallerhibrido.eco */
.blog {
    background-color: #fff !important; /* Example styling for the blog subdomain */
}


/* Global button styles */
button, 
input[type="button"], 
input[type="submit"], 
input[type="reset"], 
.button, 
.wp-block-button__link {
    background-color: #A3FB66 !important;    /* Green button background */
    color: #2C3A4E !important;               /* Grey button text */
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

/* Hover effect for buttons */
button:hover, 
input[type="button"]:hover, 
input[type="submit"]:hover, 
input[type="reset"]:hover, 
.button:hover, 
.wp-block-button__link:hover {
    background-color: #54958A !important;
    color: #fff !important;  
}

/* Adjust the button's styling */
.wp-block-button__link {
    padding: 15px 30px;
    background-color: #A3FB66; /* Button color */
    color: #0e1525; /* Text color */
    font-weight: bold;
    text-transform: uppercase;
}

/* Set default font-family for the entire theme */
body, p, h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow', sans-serif;
}

/* Set color for all header elements */
h1, h2, h3, h4, h5, h6 {
    color: #a6cc5e !important; /* Green */
}

/* Center the masthead content */
#masthead .wrap {
    position: relative;
    text-align: center;
}

/* Remove entry header */
.page .entry-header, .site-title { 
display: none !important; 
}

/* Color text on white background */
.th-text{
    color: #2C3A4E !important;
}

/* Color text on grey background */
.th-text-white{
    color: #f5f5f5 !important;
}


/* Make the cover block span the full width of the viewport */
.wp-block-cover {
    position: relative;
    width: 100vw; /* Full viewport width */
    left: 50%; /* Shift to compensate for the full-width */
    right: 50%;
    margin-left: -50vw; /* Adjust to cover the full width */
    margin-right: -50vw; /* Adjust to cover the full width */
    overflow: hidden;
    z-index: 1;
}

/* Ensure the background image spans 100% of the viewport width */
.wp-block-cover__image-background {
    width: 100%;
    background-size: cover; /* Cover the full area */
    background-position: center center;
}

/* Optional: Center the text and button content inside */
.wp-block-cover__inner-container {
    max-width: 1200px; /* You can adjust the width according to your layout */
    margin: 0 auto;
    padding: 50px 20px; /* Adjust padding for spacing */
    text-align: center;
}

/* Remove top margin from heading button */
.wp-block-button__link.wp-element-button {
    margin-top: 1vw !important; /* Eliminate top margin */
}

/* Make the block group with the white background 100% width */
.wp-block-group.has-white-background-color.has-background {
    width: 100vw;  /* Full viewport width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;  /* Center the full-width background */
    margin-right: -50vw;
    background-color: #ffffff; /* White background color */
}

/* Keep the inner container constrained */
.wp-block-group__inner-container {
    max-width: 1000px; /* Based on site width */
    margin: 0 auto; /* Center the content */
    padding-left: 20px; /* Maintain some padding for inner content */
    padding-right: 20px;
}

/* Adjustments for inner elements */
.wp-block-column {
    padding: 20px 0; /* Add some vertical padding if needed */
}

/* Change text-color in footer */
.site-info {
    color: #cccccc;
}


/* ###GENERAL - END### */ 



/* ###NAVIGATION - START### */ 

/* Set Navigation specification */
.navigation-top,.menu {
    font-size: 1rem !important;
    background: #2c3a4e !important;
}

/* ###NAVIGATION - END### */ 



/* ###TH-FORMATS - START### */ 
/* Eliminate margins */
.th-nomargin {
    margin: 0 !important; /* Set all margins to 0 */
}

/* Set color white for Product headings and text */
.wp-block-heading.th-wp-block-heading.th-white-heading, .th-white-text, .wp-block-heading.has-text-align-center.th-nomargin.th-white-text {
    color: #f5f5f5 !important;
}

/* Set color green for specific texts */
.wp-block-heading.th-green-heading, .th-text strong, .wp-block-heading.has-text-align-center.th-nomargin.th-white-text strong, .th-text-grey-background strong {
    color: #a6cc5e !important;
}

/* Set color bright-green for specific texts */
.th-bright-green-heading {
    color: #a3fb66 !important;
}

/* Set color green for specific texts */
strong.th-green-text, .th-green-text {
    color: #a6cc5e !important;
}

/* Set color grey for specific texts */
.th-grey-text, strong.th-grey-text, .th-grey-text a {
    color: #2c3a4e !important;
}

/* Set background image for white background */
.wp-block-group.has-white-background-color.has-background {
    background-image: url(https://tallerhibrido.eco/wp-content/uploads/2024/11/fondo-hoja-azul.png);
    background-repeat: no-repeat;
    background-color: #f5f5f5 !important;
    background-attachment: fixed;
}

/* Set white background color */
.th-white-background {
    background-color: #f5f5f5 !important;
}

/* Set green background color */
.th-green-background {
    background-color: #a6cc5e !important;
}

/* Set grey background color */
.th-grey-background {
    background-color: #2c3a4e !important;
}

/* Set grey background color */
.th-width-70 {
    width: 70% !important;
}

/* Set mirrored background image for white background */
.wp-block-group.th-mirror-background.has-white-background-color.has-background {
    background-image: url(https://tallerhibrido.eco/wp-content/uploads/2024/11/fondo-hoja-invertido.png);
    background-repeat: no-repeat;
    background-color: #f5f5f5 !important;
    background-attachment: fixed;
    background-position: right top;
}

/* Remove border from linked images */
.th-linked-image a, .th-linked-image img {
    text-decoration: none !important; /* Remove underline */
    box-shadow: none !important;      /* Remove any box shadow */
}


/* Adjust the button's styling for white background*/
.th-grey-button .wp-block-button__link {
    padding: 15px 30px;
    background-color: #2c3a4e !important; /* Button color grey */
    color: #a6cc5e !important; /* Text color green */
    font-weight: bold;
    text-transform: uppercase;
}

/* Adjust the button's styling for grey background*/
.th-white-button .wp-block-button__link {
    padding: 15px 30px;
    background-color: #f5f5f5 !important; /* Button color white */
    color: #2c3a4e !important; /* Text color grey */
    font-weight: bold;
    text-transform: uppercase;
}

/* Hover effect for green buttons over white background */
.th-grey-button .wp-block-button__link:hover {
    background-color: #a6cc5e !important;
    color: #2c3a4e!important;  
}

/* Hover effect for white buttons over white background */
.th-white-button .wp-block-button__link:hover {
    background-color: #a3fb66 !important;
    color: #2c3a4e !important;  
}

/* Hover effect for white buttons over grey background */
.th-white-button .wp-block-button__link:hover {
    background-color: #a6cc5e !important;
    color: #2c3a4e!important;  
}

/* Add lower margin */
.th-lower-margin {
    margin-bottom: 10rem;
    margin-top: 10rem;
}

/* Remove heading top-padding */
.wp-block-heading.th-wp-block-heading {
    padding-top: 0 !important;  /* Remove top padding */
    margin-top: 0 !important;   /* Remove top margin */
}

/* Eliminate margin for th-nomargin class */
.th-nomargin {
    margin: 0 !important;
}

/* Add top and bottom margins */
.th-heading-padding {
    padding-top: 120px;  /* Set top margin to 120 pixels */
    padding-bottom: 120px; /* Set bottom margin to 120 pixels */
}

/* Top margin for Category Pages */
.th-padding-top {
    padding-top: 15vw !important;
}

/* Top margin for "Encuentra la solución perfecta..." */
.th-footer-padding-top {
    padding-top: 5vw !important;
}


/* Spacing between blocks */
.th-block-padding-top {
    padding-top: 5vw !important;
}


/* Remove all paddings */
.th-nopadding {
    padding: 0 !important;
}

/* Category heading color */
.th-category-heading {
    color: #54958A !important;
}

/* Add padding between columns */
.wp-block-column.is-layout-flow.wp-block-column-is-layout-flow {
    padding: 1rem;
}

/* Reduce the gap between columns */
.wp-block-columns.is-layout-flex.th-3-column {
    gap: 1rem; /* Adjust this value to control the spacing */
}




/* ###TH-FORMATS - END### */ 


/* ###TH-CONTACT - START### */ 

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 8px;
}

.contact-form h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-form p {
    margin-bottom: 15px;
}

label.th-form {
    display: block;
    font-weight: bold;
    color: #2c3a4e !important;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="checkbox"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

.contact-form input[type="submit"]:hover {
    background-color: #45a049;
}

/* Privacy Text */
.privacy-text {
    font-size: 14px;
    margin: 10px 0;
    color: #2c3a4e !important;
}

.privacy-text a {
    color: #a6cc5e !important;
    text-decoration: none;
}

.privacy-text a:hover {
    text-decoration: underline;
}

.th-switch {
    height: 0;
    width: 0;
    visibility: hidden;
}

.th-switch + label {
    cursor: pointer;
    text-indent: -9999px;
    width: 50px; /* Reduced from 100px */
    height: 25px; /* Reduced from 50px */
    background: grey;
    display: block;
    border-radius: 25px; /* Reduced proportionally */
    position: relative;
}

.th-switch + label:after {
    content: '';
    position: absolute;
    top: 2px; /* Adjusted for smaller size */
    left: 2px; /* Adjusted for smaller size */
    width: 20px; /* Reduced from 45px */
    height: 20px; /* Reduced from 45px */
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.th-switch:checked + label {
    background: #bada55;
}

.th-switch:checked + label:after {
    left: calc(100% - 2px); /* Adjusted for smaller size */
    transform: translateX(-100%);
}

.th-switch + label:active:after {
    width: 30px; /* Reduced from 65px */
}
/* ###TH-CONTACT - END### */ 









