/*-----------------------------------------------------------------------------------
    Description: Lauro Estudio (Cleaned & Optimized)
    Version: 3.3 (Final, Corrected Logic)
    NOTE: Header logic restored to the original, working mechanism using the
    custom script and the '.fixed' class. This resolves all conflicts.
-----------------------------------------------------------------------------------*/

/*--------------------------------------------------------------
Typography & Basic Styles
--------------------------------------------------------------*/
body {
  font-size: 15px;
  line-height: 1.8;
  font-weight: 400;
  color: #1e1e1e;
  font-family: 'Lato', sans-serif; /* Default to a web-safe font */
  background-color: #fff;
}

html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Custom Font Definitions */
@font-face {
  font-family: BorgesGris;
  src: url(Borges-Gris.otf);
}

@font-face {
  font-family: BorgesNegra;
  src: url(Borges-Negra.otf);
}

@font-face {
  font-family: BorgesBlanca;
  src: url(Borges-Blanca.otf);
}

.poppins-light {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
}

/* Font-family helper classes */
.borgesBlanca {
  font-family: BorgesBlanca, serif;
}
.lato-regular {
  font-family: "Lato", sans-serif;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  color: #151515;
  clear: both;
  line-height: 1.4;
  margin: 0;
}

h1 { font-size: 20px; }
h2 { font-size: 38px; }
h3 { font-size: 32px; font-family: 'Lato', sans-serif; }
h4 { font-size: 26px; }
h5 { font-size: 22px; }
h6 { font-size: 20px; }

p {
  font-size: 16px;
  line-height: 26px;
  margin: 0 0 20px;
  padding: 0;
  color: #1e1e1e;
}

a {
  color: #151515;
  transition: color 80ms ease-in;
  text-decoration: none;
}
a:hover {
  color: #151515;
  text-decoration: none;
}

strong {
  font-weight: bold;
  color: #151515;
}

img, video {
  height: auto;
  max-width: 100%;
}

figure {
  margin: 0;
}

/*--------------------------------------------------------------
Layout & Spacing Utilities
--------------------------------------------------------------*/
.site-content {
  overflow: hidden;
}
#page {
  position: relative;
  word-wrap: break-word;
}

/* Margin & Padding Helpers */
.m-t-15 { margin-top: 15px; }
.m-t-25 { margin-top: 25px; }
.m-t-32 { margin-top: 32px; }
.m-t-35 { margin-top: 35px; }
.m-t-40 { margin-top: 40px; }
.m-t-60 { margin-top: 60px; }
.m-b-12 { margin-bottom: 12px; }
.m-b-35 { margin-bottom: 35px; }
.m-b-60 { margin-bottom: 60px; }
.m-b-100 { margin-bottom: 100px; }
.no-padding { padding: 0 !important; }

/*--------------------------------------------------------------
Header & Navigation
--------------------------------------------------------------*/
#masthead.site-header {
  transition: all 0.3s ease;
  z-index: 9999 !important;
}
#masthead.site-header.transparent {
  background-color: transparent;
}
#masthead.site-header.no-padding {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
#masthead.site-header .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 2vw !important;
  padding-right: 20px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#site-branding .retina-logo {
  max-width: 50px;
}
#ham-trigger-wrap img#ham-trigger-logo {
  display: inline-block;
  height: auto;
  cursor: pointer;
  transition: all 0.3s ease;
}
#site-navigation {
  width: 350px; /* Increased width */
  height: 100%;
  background-color: #1e1e1e;
  position: fixed;
  top: 0;
  right: -350px; /* Adjusted for new width */
  padding: 55px 10px 40px 50px;
  z-index: 1001; /* Higher than header */
  transition: right 0.4s ease; /* Smooth transition */
}
#site-navigation .menu {
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
#site-navigation .menu > li {
  margin-bottom: 10px;
}
#site-navigation .menu > li > a {
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  line-height: 1.5; /* Added line-height for spacing */
}
#site-navigation .menu > li a:hover {
  color: #707070;
}
#site-navigation .menu > li ul {
  padding: 15px 0;
  display: none;
  list-style: none;
}
#site-navigation #hamburger-menu-close-trigger {
  cursor: pointer;
  position: absolute;
  top: 19px;
  right: 23px;
}
#hamburger-menu-close-trigger .hamburger-menu-close {
  display: inline-block;
  transform: translateY(-5px);
}
#hamburger-menu-close-trigger .hamburger-menu-close span {
  display: inline-block;
  position: relative;
  background-color: transparent !important;
}
#hamburger-menu-close-trigger .hamburger-menu-close span:before,
#hamburger-menu-close-trigger .hamburger-menu-close span:after {
  content: '';
  position: absolute;
  width: 21px;
  height: 2px;
  transition: all 0.3s;
  background-color: #fff;
}
#hamburger-menu-close-trigger .hamburger-menu-close span:before {
  top: -8px;
  transform: translateY(8px) rotateZ(-45deg);
}
#hamburger-menu-close-trigger .hamburger-menu-close span:after {
  top: 8px;
  transform: translateY(-8px) rotateZ(45deg);
}

.page-click-capture {
  position: fixed;
  width: 100%;
  height: 100vh;
  background-color: rgba(30, 30, 30, 0.8);
  z-index: 1000;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
}
.page-click-capture.page-overlay {
  opacity: 1;
  visibility: visible;
}

/*--------------------------------------------------------------
Header Initial & Sticky State (v3.3 - Original Working Logic)
--------------------------------------------------------------*/
/* This section restores the original, working logic using the '.fixed' class
   that is toggled by the custom script in index.html.
*/

/* 1) Initial State (Before Scroll / header does NOT have .fixed) */
#hero > #masthead:not(.fixed) {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0 !important;
}

#hero > #masthead:not(.fixed) .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#hero > #masthead:not(.fixed) #site-branding {
    display: none !important;
}

#hero > #masthead:not(.fixed) #ham-trigger-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

#hero > #masthead:not(.fixed) #ham-trigger-wrap img#ham-trigger-logo {
    display: block;
    width: 100vw !important;
    height: auto !important;
    transition: width 0.4s ease;
}

/* 2) Fixed State (After Scroll / header HAS .fixed) */
#hero > #masthead.fixed {
    position: fixed;
    top: 0;
    bottom: auto;
    background: #ffffff 0.1; /* White background for sticky state */
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#hero > #masthead.fixed #site-branding {
    display: flex !important;
    align-items: center;
}

#hero > #masthead.fixed #ham-trigger-wrap img#ham-trigger-logo {
    width: 100px !important;
    max-height: 40px !important;
}


/*--------------------------------------------------------------
Hero Section
--------------------------------------------------------------*/
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 1;
}
.overlay-text {
  position: absolute;
  z-index: 2;
  top: 10vh;
  left: 2vw;
}
.heading-block h1.block-size-1 {
  font-size: clamp(4.2em, 8vw, 5em);
  line-height: 1.5; 
  font-weight: 200;
  margin-top: 0.5em;
}

.heading-block h1.block-size-1G {
 font-size: clamp(4em, 13vw, 7em);
  line-height: 1.5; 
  font-weight: 200;
  margin-top: 0.5em;
}

/*.heading-block h1.block-size-2 {
  font-size: clamp(28px, 7vw, 50px);
  line-height: clamp(36px, 8vw, 65px);
  font-weight: 200;
} */


.heading-block h1.block-size-2 {
  font-size: clamp(10px, 10vw, 10px);
  line-height: clamp(36px, 8vw, 65px);
  font-weight: 200;
}

h2.block-size-2 {
  font-size: clamp(28px, 7vw, 50px);
  line-height: clamp(36px, 8vw, 65px);
}
img.disenamos {
  width: 35vw;
  max-width: 500px;
}
@media (max-width: 767px) {
  img.disenamos { width: 70vw; }
  .overlay-text { top: 27vh !important; left: 1vw !important; }
  .hero { height: 90vh; }
}

/*--------------------------------------------------------------
Content Blocks & Components
--------------------------------------------------------------*/
.content-box-wrap .content-box {
  margin-bottom: 40px;
}
.content-box-wrap .content-box h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 7px;
}
.content-box-wrap .content-box p {
  font-size: 15px;
  line-height: 23px;
  width: 85%;
  margin-bottom: 0;
}
.content-box.nomargin {
    margin-left: -15px;
}
.separador {
  margin-top: 20vh;
  margin-bottom: 0px;
  border-top: #ccc 1px solid;
}
#unicorn-canvas {
  width: 100vw;
  aspect-ratio: 16 / 10;
  max-height: 100vh;
}
@media (max-width: 767px) {
  #unicorn-canvas { aspect-ratio: 4 / 5; }
}

/* Ticker */
.ticker-wrapper {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #58E989 0%, #46BBAD 100%);
  transform: rotate(-3deg);
  transform-origin: left;
  padding: 20px 0;
}

/* Ticker */
.ticker-wrapper2 {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #46BBAD 0%, #E194D1 100%);
  transform: rotate(1deg);
  transform-origin: left;
  padding: 20px 0;
  margin-bottom:-60px;
  z-indez:0;
}

.ticker-wrapper2 {
  transform-origin: center center; /* Asegura que escale desde el centro */
}

.ticker-wrapper-title {
  width: 100%;
  overflow: hidden;
  background: none;
  transform: rotate(-2deg);
  transform-origin: left;
  padding: 0px;
  padding-left:6vw;
}

.ticker-wrapper-title p {
  font-family: monospace;
 font-size:15px;
}


.ticker {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  font-size: 1.5rem;
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  will-change: transform; /* Le avisa al navegador que esta propiedad va a cambiar */
  transform: translateZ(0); /* El truco que fuerza la aceleración por hardware */

}

.ticker2 {
  display: inline-block;
  white-space: nowrap;
  font-size: 1.1rem;
  font-family: monospace;
  font-weight: 500;
  padding-left:3vw;
}

.ticker span {
  display: inline-block;
  margin: 0 2em;
  color: #111;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/*--------------------------------------------------------------
Portfolio Grid (Cube Portfolio)
--------------------------------------------------------------*/
.portfolio-wrap {
    /* Wrapper for the grid */
}
.cbp {
    /* Main CBP container styles if any */
}
.cbp-caption-ribbon.cbp-caption-fadeIn {
  margin-left: -15px;
  width: calc(100% + 30px);
}
.cbp-caption-ribbon.cbp-caption-fadeIn .cbp-item-wrapper {
  overflow: visible;
  padding-left: 15px;
  padding-right: 15px;
}
.cbp-caption-ribbon.cbp-caption-fadeIn .cbp-caption {
  overflow: visible;
}
.cbp-caption-defaultWrap {
    position: relative; /* Needed for absolute positioning of rotating images */
}
.cbp-item {
    /* Individual grid item styles */
}

.cbp-item:hover {
  transform: rotate(1deg) scale(1.02); 
}
/* Override for Masonry image rotation */
.cbp-caption-defaultWrap img:first-child {
  position: relative !important;
  width: 100%;
  height: auto;
}
.cbp-caption-defaultWrap img:not(:first-child) {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
@media (max-width: 767px) {
  .ph { display: none; } /* Hide placeholder on mobile */
}

/*--------------------------------------------------------------
Contact Form
--------------------------------------------------------------*/
.kraftcf-form .contact-form-main > p:last-of-type {
    text-align: center;
}
.kraftcf-form .contact-form-fields-wrap {
  margin-left: -15px;
  margin-right: -15px;
  margin-bottom: 30px;
}
.kraftcf-form .contact-form-fields-wrap::after, .kraftcf-form .contact-form-fields-wrap::before {
  content: "";
  display: table;
  table-layout: fixed;
}
.kraftcf-form input, .kraftcf-form textarea {
  background-color: #fafafa;
  border: 1px solid #e6e6e6;
  padding: 12px 15px;
  width: 100%;
  color: #151515;
}
.kraftcf-form textarea {
  height: 150px;
  resize: none;
}
.kraftcf-form .contact-form-fields {
  display: inline-block;
  width: 33.3333%;
  float: left;
  padding: 0 15px;
}
.kraftcf-form .kraftcf-form-control-wrap {
  display: block;
  width: 100%;
}
.kraftcf-form .kraftcf-submit {
  background: linear-gradient(90deg, #58E989 0%, #46BBAD 100%);
  transform: rotate(-2deg);
  color: #1e1e1e;
  border: 0;
  border-radius:6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  padding: 14px 28px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 80ms ease-in;
  display: inline-block; 
  width: auto; 
}

.kraftcf-form .kraftcf-submit:hover {
  opacity: 0.9; 
  transform: rotate(-3deg); 
}

.kraftcf-form span.kraftcf-not-valid-tip {
  display: none;
  color: #e8252e;
  margin-top: 10px;
}
.kraftcf-response-output {
  display: none;
  border: 0;
  text-align: center;
  margin-top: 15px;
}
@media (max-width: 767px) {
  .kraftcf-form .contact-form-fields {
    float: none;
    width: 100%;
    display: block;
    margin-top: 30px;
  }
  .kraftcf-form .contact-form-fields:first-of-type {
    margin-top: 0;
  }
}
::-webkit-input-placeholder { color: #909090; }
:-moz-placeholder { color: #909090; }
::-moz-placeholder { color: #909090; opacity: 1; }
:-ms-input-placeholder { color: #909090; }


/* --- Efecto Hover para Logo y Menú Hamburguesa --- */

/* 1. Se define la transición para que la animación sea suave */
#site-branding .logo-brand img,
#ham-trigger-logo {
  transition: all 0.3s ease-in-out;
}

/* 2. Se definen los cambios que ocurrirán en el estado :hover */
#site-branding .logo-brand:hover img,
#ham-trigger-logo:hover {
  opacity: 0.9; 
  transform: rotate(1deg) scale(1.05); 
}
/*--------------------------------------------------------------
Footer
--------------------------------------------------------------*/
.site-footer {
  padding: 35px 0 34px;
  border-top: 1px solid rgba(175, 175, 175, 0.2);
}
.site-footer ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.site-footer ul li {
  display: inline-block;
}
.site-footer:not(.centered) .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-footer .copyright {
  color: #707070;
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 0;
}
.site-footer .copyright span {
  padding-left: 15px;
  padding-right: 15px;
}
.site-footer .social-links-menu li {
  margin: 0 6px;
}
.site-footer .social-links-menu li a {
  color: #151515;
  text-decoration: none;
  font-size: 14px;
}
.site-footer .social-links-menu li i {
  color: #151515;
  font-size: 14px;
}
.site-footer .social-links-menu li a:hover i {
  color: rgba(21, 21, 21, 0.6);
}

/*--------------------------------------------------------------
Responsive Utilities
--------------------------------------------------------------*/
.mobile-only { display: none; }
@media (max-width: 767px) {
  .desktop-only { display: none !important; }
  .mobile-only  { display: block !important; }
}


/*--------------------------------------------------------------
Header Hamburger
--------------------------------------------------------------*/
#masthead.site-header.hamburger-side {
  background-color: #f5f5f5;
}
#masthead.site-header.hamburger-side #site-navigation {
  width: 300px;
  height: 100%;
  background-color: #1e1e1e;
  position: fixed;
  top: 0;
  right: -300px;
  padding: 55px 10px 40px 50px;
  z-index: 9999 !important;
}
#masthead.site-header.hamburger-side #site-navigation .menu {
  max-height: calc(100vh - 80px);
  overflow-y: scroll;
  margin-right: -80px;
}
#masthead.site-header.hamburger-side #site-navigation .menu a {
  color: #fff;
}
#masthead.site-header.hamburger-side #site-navigation .menu > li {
  margin-bottom: 10px;
}
#masthead.site-header.hamburger-side #site-navigation .menu > li:last-of-type {
  margin-bottom: 0;
}
#masthead.site-header.hamburger-side #site-navigation .menu > li > a {
  font-size: 28px;
  font-weight: 500;
}
#masthead.site-header.hamburger-side #site-navigation .menu > li ul {
  padding: 15px 0;
  display: none;
}
#masthead.site-header.hamburger-side #site-navigation .menu > li ul > li {
  margin-bottom: 8px;
}
#masthead.site-header.hamburger-side #site-navigation .menu > li ul > li:last-of-type {
  margin-bottom: 0;
}
#masthead.site-header.hamburger-side #site-navigation .menu > li ul > li > a {
  font-size: 18px;
  font-weight: 400;
}
#masthead.site-header.hamburger-side #site-navigation .menu > li ul ul > li > a {
  font-size: 16px;
}
#masthead.site-header.hamburger-side #site-navigation .menu > li.current-menu-parent > a, #masthead.site-header.hamburger-side #site-navigation .menu > li.current-menu-ancestor > a {
  color: #707070;
}
#masthead.site-header.hamburger-side #site-navigation .menu > li:hover > a {
  color: #707070;
}
#masthead.site-header.hamburger-side #site-navigation .menu > li > a {
  color: #fff;
}
#masthead.site-header.hamburger-side #site-navigation .menu > li a:hover {
  color: #707070;
}
#masthead.site-header.hamburger-side #site-navigation #hamburger-menu-close-trigger {
  cursor: pointer;
  position: absolute;
  top: 19px;
  right: 23px;
}
#masthead.site-header.hamburger-side #site-navigation #hamburger-menu-close-trigger .hamburger-menu-close {
  display: inline-block;
  transform: translateY(-5px);
}
#masthead.site-header.hamburger-side #site-navigation #hamburger-menu-close-trigger .hamburger-menu-close span {
  display: inline-block;
  position: relative;
  background-color: transparent !important;
}
#masthead.site-header.hamburger-side #site-navigation #hamburger-menu-close-trigger .hamburger-menu-close span:before, #masthead.site-header.hamburger-side #site-navigation #hamburger-menu-close-trigger .hamburger-menu-close span:after {
  content: '';
  position: absolute;
}
#masthead.site-header.hamburger-side #site-navigation #hamburger-menu-close-trigger .hamburger-menu-close span:before {
  top: -8px;
  -webkit-transform: translateY(8px) rotateZ(-45deg);
  -ms-transform: translateY(8px) rotateZ(-45deg);
  transform: translateY(8px) rotateZ(-45deg);
}
#masthead.site-header.hamburger-side #site-navigation #hamburger-menu-close-trigger .hamburger-menu-close span:after {
  top: 8px;
  -webkit-transform: translateY(-8px) rotateZ(45deg);
  -ms-transform: translateY(-8px) rotateZ(45deg);
  transform: translateY(-8px) rotateZ(45deg);
}
#masthead.site-header.hamburger-side #site-navigation #hamburger-menu-close-trigger .hamburger-menu-close span:before, #masthead.site-header.hamburger-side #site-navigation #hamburger-menu-close-trigger .hamburger-menu-close span:after, #masthead.site-header.hamburger-side #site-navigation #hamburger-menu-close-trigger .hamburger-menu-close span {
  width: 21px;
  height: 2px;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  background-color: #fff;
}

/* HEADER FLOTANTE */

/* Oculta el trigger original por spans */
#masthead.site-header #ham-trigger-wrap .ham-trigger {
  display: none !important;
}

/* Estilos para tu nuevo logo como trigger */
#masthead.site-header #ham-trigger-wrap img#ham-trigger-logo {
  display: inline-block;
  width: 100px;      /* ajústalo al tamaño que necesites */
  height: auto;
  cursor: pointer;
}


#masthead.site-header .container, #masthead.site-header .container-fluid {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

/* Hacer que el header ocupe todo el ancho */
#masthead.site-header .container {
  max-width: 100% !important;
  width: 100%     !important;
  padding-left: 2vw; !important;
  padding-right: 20px !important;
  margin-left: 0 !important;
  margin-right:0 !important;
}

#masthead.site-header .container:after, #masthead.site-header .container-fluid:after {
  content: initial;
}
#masthead.site-header .container-fluid {
  padding-left: 0px !important;
  padding-right: 0px !important;
}
#masthead.site-header.transparent {
  position: absolute;
  width: 100%;
  background-color: transparent;
}
#masthead.site-header.no-padding {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#masthead.site-header.standard, #masthead.site-header.hamburger-side {
  padding-top: 20px;
  padding-bottom: 20px;
}

.site-header.is-stuck {
  -webkit-box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.08);
  box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.08);
  padding: 0 !important;
  margin: 0 !important;
}
.site-header.is-stuck #site-branding a {
  padding: 10px  0 !important;
}

@media (max-width: 1200px) {
  #masthead.site-header .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
}
@media (max-width: 991px) {
  #masthead.site-header:not(.hamburger-side) #site-navigation {
    position: absolute;
    top: 100%;
    width: 100%;
    z-index: 10;
    -webkit-transition: all .4s ease;
    -o-transition: all .4s  ease;
    -o-transition: all .4s ease;
    transition: all .4s ease;
    opacity: 0;
    visibility: hidden;
    padding: 0 15px;
    margin-left: -15px;
  }
  #masthead.site-header:not(.hamburger-side) #site-navigation.display-menu {
    opacity: 1;
    visibility: visible;
  }
  #masthead.site-header:not(.hamburger-side) #site-navigation .menu {
    background-color: #101010;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
  }
  #masthead.site-header:not(.hamburger-side) #site-navigation .menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
  }
  #masthead.site-header:not(.hamburger-side) #site-navigation .menu li:last-of-type {
    border-bottom: 0;
  }
  #masthead.site-header:not(.hamburger-side) #site-navigation .menu a {
    font-size: 12px;
    letter-spacing: .4px;
    font-weight: 500;
    display: block;
    padding: 15px 20px;
    text-transform: uppercase;
    color: #fff;
  }
  #masthead.site-header:not(.hamburger-side) #site-navigation .menu a:hover {
    color: rgba(225, 225, 225, 0.7);
  }
  #masthead.site-header:not(.hamburger-side) #site-navigation .menu > li ul {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  #masthead.site-header:not(.hamburger-side) #site-navigation .menu > li ul a {
    margin-left: 12px;
  }
  #masthead.site-header:not(.hamburger-side) #site-navigation .menu > li ul ul a {
    margin-left: 24px;
  }
  #masthead.site-header:not(.hamburger-side) #site-navigation .menu > li.current-menu-parent > a, #masthead.site-header:not(.hamburger-side) #site-navigation .menu > li.current-menu-ancestor > a, #masthead.site-header:not(.hamburger-side) #site-navigation .menu > li:hover > a {
    color: rgba(225, 225, 225, 0.7);
  }
  #masthead.site-header:not(.hamburger-side) #site-navigation .menu > li:hover > a {
    color: rgba(225, 225, 225, 0.7);
  }
}
@media (max-width: 767px) {
  #masthead.site-header.standard, #masthead.site-header.hamburger-side {
    margin: 0 !important;
    padding: 0  !important;
  }

  #masthead.site-header #site-branding a {
    padding: 25px 0;
  }
}
@media (-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3 / 2), (min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx) {
  #masthead.site-header #site-branding .retina-logo {
    display: block;
  }
  #masthead.site-header #site-branding .logo {
    display: none;
  }
}
#masthead.site-header #site-branding .retina-logo {
  max-width: 50px;
}

/* Anular cualquier z-index que ponga el plugin en los items */
.cbp-item,
.cbp-item-wrapper,
#portfolio-container-grid {
  z-index: 0 !important;
}

.buleteado {
  margin-top:10px;
  margin-left:12px;
  font-size:0.9em;
}

.kraftcf-form input:focus,
.kraftcf-form textarea:focus {
  border-color: #58E989; /* Cambia el color del borde a tu verde */
  outline: 0; /* Elimina el resplandor azul por defecto del navegador */
  box-shadow: 0 0 5px rgba(88, 233, 137, 0.5); /* Añade un resplandor suave de tu color (opcional) */
}

/* Estilo para los inputs con error de validación */
.input-error {
  border-color: #FF473A !important; /* Borde rojo para destacar */
}

/* Estilo para el placeholder de los inputs con error */
.input-error::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #FF473A !important;
  opacity: 1; /* Firefox necesita esto */
}

.input-error:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #FF473A !important;
}

.input-error::-ms-input-placeholder { /* Microsoft Edge */
  color: #FF473A !important;
}



/* --- Animación de Entrada al Hacer Scroll --- */

/* 1. Estado inicial de los elementos que quieres animar:
      Están ocultos y ligeramente desplazados hacia abajo. */
.fade-in-section > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 2. Estado final (cuando el elemento es visible):
      La clase 'is-visible' se añadirá con JavaScript. */
.fade-in-section.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* 3. (Opcional) Añadir un retraso escalonado a cada elemento para un efecto más dinámico */
.fade-in-section.is-visible > *:nth-child(1) { transition-delay: 0.1s; }
.fade-in-section.is-visible > *:nth-child(2) { transition-delay: 0.2s; }
.fade-in-section.is-visible > *:nth-child(3) { transition-delay: 0.3s; }
.fade-in-section.is-visible > *:nth-child(4) { transition-delay: 0.4s; }


/* --- Estilo para el Botón Flotante de Contacto (Versión Texto) --- */

#floating-contact-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 90px;  /* Ancho ajustado para el texto */
  height: 90px; /* Alto ajustado para mantenerlo redondo */
  /* --- INICIO DE LOS NUEVOS ESTILOS --- */
  background: rgba(255, 255, 255, 0.15); /* Fondo blanco con 15% de opacidad */
  backdrop-filter: blur(12px);          /* El desenfoque del fondo, esta es la clave */
  -webkit-backdrop-filter: blur(12px);  /* Para compatibilidad con Safari */
  border: 1px solid rgba(255, 255, 255, 0.2); /* Un borde sutil para definir la forma */
  color: #FFFFFF;                         /* Cambiamos el color del texto a blanco para contraste */
  /* --- FIN DE LOS NUEVOS ESTILOS --- */
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 999;

  /* Estilos para el texto */
  color: #1e1e1e;
  font-size: 16px;
  font-weight: 700; /* Letra en negrita */
  text-decoration: none;
  
  /* Visibilidad y animación (se mantienen igual) */
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

#floating-contact-btn.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Regla para el hover (opcional, pero recomendada) */
#floating-contact-btn:hover {
  opacity: 0.9;
  transform: rotate(2deg) scale(1.02); 
}

/* --- Estilos para la Sección de Perfil Centrado --- */

.profile-section {
  display: flex;  
  padding: 100px 20px; 
  flex-direction: column; /* Apila los elementos verticalmente */
  align-items: center;    /* Centra los elementos horizontalmente */
  text-align: center;     /* Centra el texto dentro del párrafo */
  margin: 40vh 0;        /* 100px de margen superior e inferior, 0 en los lados */
}

.profile-image-wrapper .profile {
  max-width: 100%; /* Se asegura de que la imagen no sea más ancha que su contenedor */
  height: auto;
}

.profile-caption {
  margin-top: 20px; /* Espacio entre la imagen y el texto */
  max-width: 13vw; /* Un ancho máximo para que el párrafo no sea demasiado largo */
  color: #707070;   /* Un color de texto gris para el párrafo */
  font-size: clamp(1em, 1vw, 1.5em);
  line-height: 1.6;
}

.prb {
    background: url('img2/trama02.svg');
  background-size: cover; /* Asegura que la imagen cubra toda la sección */
  background-position: center center; /* Centra la imagen */
  background-attachment: fixed; /* Crea un efecto parallax al hacer scroll */
}

.profile {
  width:13vw;

}



/* --- Estilos para la Animación de Perfiles dentro de .prb --- */

/* 1. Contenedor principal que se va a 'fijar' */
.prb {
  margin-top:60px;
  position: relative; /* Necesario para posicionar los perfiles dentro */
  min-height: 100vh;  /* Le damos una altura mínima para que la animación tenga espacio */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 2. Wrapper para los perfiles */
#profile-wrapper {
  position: relative;
  width: 100%;
  height: 50vh; /* Altura del área de la animación */
}

/* 3. Estilo de cada perfil (imagen + texto) */
.profile-item {
  position: absolute; /* Todos los perfiles uno encima del otro */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centrado perfecto */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  width: 100%;
  opacity: 0; /* Ocultos por defecto */
}

/* 4. Estilo de la imagen de perfil (como pediste) */
.profile-item .profile {
  width: 13vw;
  height: 10vw; /* Mantenemos la proporción cuadrada */
  object-fit: cover;
}

/* 5. Estilo del texto debajo de la imagen */
.profile-item .profile-caption {
  margin-top: 25px;
  max-width: 13vw; /* Ancho máximo para el texto */
  color: #1e1e1e; /* Texto blanco para que contraste con el fondo */
    font-size: clamp(1em, 1vw, 1.5em);
  line-height: 1.5;
}

/* --- Estilos para la animación del Mate --- */

/* #mate-animation {
  position: absolute;
  bottom: -24vh;  
  right: 10vw;   
  width: 30vw;  
  max-width: 200px;
  z-index: 10;  
  transform-origin: bottom right;  
} */

#mate-animation {
    position: fixed;
  bottom: -12vh;
  right: 2vw;
  will-change: transform, background-position; /* Optimización para el navegador */

  width: 718px; /* Ancho de un solo fotograma */
  height: 700px; /* Alto de un solo fotograma */
  background-image: url('img2/sprite-700-min.png');
  background-repeat: no-repeat;
  background-position: 0 0; /* Empezamos mostrando el primer fotograma */
  will-change: transform, background-position;

}

#mate-animation img {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {

  /* Aumenta el tamaño de la imagen de perfil en mobile */
  .profile-item .profile {
    width: 40vw;  /* Usamos un 40% del ancho de la pantalla */
    height: 31vw; /* Mantenemos la proporción cuadrada */
  }

  /* Aumenta el ancho del texto y el tamaño de la fuente en mobile */
  .profile-item .profile-caption {
    max-width: 31vw; /* Le damos al texto un 65% del ancho para que no se corte */
    margin-top: 20px;
    font-size: clamp(1.1em, 4vw, 1.5em); /* Hacemos la fuente un poco más grande y legible */
  }

  /* Reducimos el margen de la sección para que no ocupe tanto espacio vertical */
  .profile-section {
    margin: 20vh 0;
  }
}

/* --- Language Switcher Styles --- */

/* Contenedor principal para posicionar los botones y controlar la visibilidad */
.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;    /* Usamos flexbox para alinear los botones fácilmente */
    gap: 10px;        /* Espacio entre los dos botones */
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Clase para ocultar el contenedor al hacer scroll */
.lang-switcher.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Estilo base para cada botón de idioma (EN y ES) */
.lang-btn {
    display: inline-block;
    padding: 6px 12px;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #1e1e1e;
    text-decoration: none;
    border-radius: 8px; 
    background: rgba(0, 0, 0, 0.15);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);    
    transition: transform 0.2s ease-in-out, background-color 0.3s ease;
}

/* Animación de rotación al pasar el mouse sobre cualquier botón */
.lang-btn:hover {
    transform: scale(1.1) rotate(3deg);
}

.lang-btn:nth-of-type(2):hover {
    transform: scale(1.1) rotate(-3deg);
}

/* Estilo específico para el botón que está ACTIVO */
.lang-btn.active {
    font-weight: 700;
    background: rgba(30, 215, 96, 0.5); /* Verde con 50% de opacidad */}

/* --- Optimización Mobile */
@media (max-width: 767px) {
  
  .fade-in-section > * {
    opacity: 0.6;  
    transform: none;  
    transition: opacity 0.5s ease-out;  

  .fade-in-section.is-visible > * {
    opacity: 1;
  }

}



