/*
Theme Name: Hello Elementor Child
Theme URI: https://cultureomedia.com
Description: Child theme de Hello Elementor
Author: Tomás Díaz - AltoValleIT - www.altovalleit.com
Template: hello-elementor
Version: 1.0.0
*/

/*===============================
=         GENERAL STYLES        =
===============================*/

body {
    margin-top: -50px;
}

.entry-title {
    display: none !important;
}

.site-header,
.site-footer {
    display: none !important;
}

.about-me-section {
	box-sizing:border-box;
}

/*===============================
=       FLOATING BUTTONS         =
===============================*/

.floating-buttons {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999999;
}

.floating-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #CAB8A5;
  border-radius: 50%;
  text-decoration: none;
  font-size: 20px;
  color: #fff;
  transition: all 0.3s ease;
}

.floating-buttons a:hover {
  transform: scale(1.1);
}

@media (max-width: 600px) {
    
  .floating-buttons {
    right: 1em;
	gap: 8px;
  }
    
  .floating-buttons a {
	  font-size: 16px;
	  width: 25px;
      height: 25px;
  }
}

/*===============================
=            Popup UAE          =
===============================*/

.cultureo-popup {
	font-family: 'Poppins';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: .35s ease;
    z-index: 99999;
}

.cultureo-popup.active {
    opacity: 1;
    visibility: visible;
}

.cultureo-popup-inner {
    width:100%;
    max-width: 600px;
	padding: 4rem 2rem;
	gap: 2em;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,.25);
}

.cultureo-popup-image img {
    width: 100%;
    height: 100%;
    
}

.cultureo-popup-content {
    position: relative;
}

.cultureo-popup-tag {
	font-size:0.6rem;
	color:#000;
}

.cultureo-popup-title {
	max-width: 75%;
	font-weight: 700;
	font-size: 1.8rem;
	color:#000;
}

.cultureo-popup-title a {
    color:#000;
    text-decoration: underline;
}

.cultureo-popup-subtitle {
	font-size: 0.8rem;
	color:#000;
}

.cultureo-popup-close {
    position: absolute;
    top: -40px;
    right: -10px;
    background: none;
    border: 2px solid #000;
	border-radius: 100%;
	color:#000;
	padding: 0.1rem 0.4rem;
    font-size: 12px;
    cursor: pointer;
}

@media (max-width: 768px){

    .cultureo-popup-inner {
        max-width: 95%;
        padding: 2rem 1.2rem;
        gap: 1.2rem;
        align-items: center;
    }

    .cultureo-popup-image img {
        height: auto;
        max-height: 260px;
        object-fit: cover;
    }

    .cultureo-popup-title {
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.3;
    }

    .cultureo-popup-subtitle {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .cultureo-popup-tag {
        font-size: 0.55rem;
    }

    .cultureo-popup-close {
        top: -30px;
        right: 0;
        font-size: 10px;
        padding: 0.05rem 0.35rem;
    }

}

/*===============================
=       NAVBAR / HEADER         =
===============================*/

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: transparent;
    opacity: 0;
    transform: translateY(-20px);
    transition: 
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}

.header.is-scrolled {
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    opacity: 1;
    transform: translateY(0);
}

/* Logo */
.header .site-logo {
    transition: opacity 0.3s ease;
}

.header.is-scrolled .site-logo {
    opacity: 1;
}

/* Menú */
.hfe-nav-menu-icon {
    padding: 0 !important;
}

.menu-item:last-child a.hfe-menu-item {
    padding-right: 0 !important;
}

/*===============================
=           LOGOS               =
===============================*/

/* Navbar logo */
.site-logo h2.elementor-heading-title a {
    color: #000;
    text-decoration: none;
}

.site-logo h2.elementor-heading-title a:hover {
    color: #000;
}

/* Footer logo */
.footer-width-fixer {
    margin-top: -0.6em;
}

.footer-width-fixer .elementor-element-d4da247 h2.elementor-heading-title a {
    color: #fff;
}

.footer-width-fixer .elementor-element-d4da247 h2.elementor-heading-title a:hover {
    color: #fff;
}

/*===============================
=           FOOTER LINKS         =
===============================*/

.footer-inline-links {
	display:flex;
}

.footer-bar .footer-inline-links {
	justify-content: flex-end;
}

.footer-inline-links a {
    margin-right: 30px;
    text-decoration: none;
}

.footer-inline-links a:last-child {
    margin-right: 0;
}

@media (max-width: 768px) {

  .footer-inline-links p {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

}

/*===============================
=       SECTION BACKGROUNDS      =
===============================*/

.section-grid {
    background-color: #fff;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

/*===============================
=        PAGE SPECIFIC: BLOG     =
===============================*/

/* Blog post main */
.single-post {
    font-family: 'Poppins', sans-serif;
}

.single-post .post-title {
    font-family: Helvetica, Arial, sans-serif;
}

/* Blog post content */
.blog-post-content {
    width: 100%;
    max-width: 800px;
    margin: 3em auto;
    line-height: 1.8;
    font-size: 18px;
}

/* Blog post disclaimer */
.blog-post-disclaimer {
    width: 100%;
    max-width: 800px;
    padding: 0.8em 1em;
    margin: 2em auto;
    background-color: #d2b48c;
    color: #3a2e25;
    font-size: 0.9em;
    border-radius: 6px;
    text-align: center;
    line-height: 1.4;
}

/*===============================
=          HERO SECTION          =
===============================*/

/* Contenedor general con padding lateral */
.container-padding {
    width: 100%;
    padding-left: 8em;
    padding-right: 8em;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Hero principal */
.blog-post-hero-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 4em;
    align-items: center;
}

/* Hero izquierda */
.hero-left {
    flex: 1;
    min-width: 280px;
}

.hero-left .post-category {
    font-size: 0.9em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 0.5em;
}

.hero-left .post-title {
    font-size: 2.5em;
    margin: 0.2em 0;
	font-weight: 700;
}

.hero-left .post-date {
    font-size: 0.9em;
    color: #aaa;
}

/* Hero derecha */
.hero-right {
    flex: 1;
    min-width: 280px;
}

.hero-right img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/*===============================
=          CTA SECTION           =
===============================*/

.blog-post-cta {
    width: 100%;
    max-width: 800px;  /* igual que blog content */
    margin: 3em auto 4em auto;
    padding: 2em 1.5em;
    background-color: #fdfdfd; /* fondo muy sutil */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
}

.blog-post-cta .cta-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1em;
    color: #333;
}

.blog-post-cta .cta-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
}

.blog-post-cta input[type="email"] {
    padding: 0.5em 1em;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1 1 220px;
    max-width: 300px;
}

.blog-post-cta button {
    padding: 0.5em 1em;
    font-size: 14px;
    background-color: #d2b48c;
    color: #3a2e25;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.blog-post-cta button:hover {
    background-color: #c19f7a;
}

/*===============================
=      CTA SECTION: MOBILE       =
===============================*/

@media (max-width: 576px) {
    .blog-post-cta {
        padding: 1.5em 1em;
    }

    .blog-post-cta .cta-title {
        font-size: 16px;
    }

    .blog-post-cta input[type="email"],
    .blog-post-cta button {
        font-size: 12px;
        padding: 0.5em;
    }

    .blog-post-cta .cta-form {
        flex-direction: column;
        gap: 0.5em;
    }
}



/*===============================
=      RELATED POSTS GRID        =
===============================*/

.related-posts-container {
    width: 100%;
    max-width: 800px;
    margin: 4em auto 2em auto;
    box-sizing: border-box;
}

.related-posts-title {
    font-size: 1.8em;
    margin-bottom: 1.5em;
    font-weight: 600;
    text-align: left;
}

.related-posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: flex-start;
}

.related-post-item {
    flex: 0 1 calc(33.333% - 1em);
    max-width: 300px;
    background-color: #f9f9f9;
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease;
    margin: 0 auto;
}

.related-post-item:hover {
    transform: translateY(-4px);
}

.related-post-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.related-post-title {
    background-color: #fff;
    padding: 0.8em 0em;
    font-size: 1em;
    text-align: left;
    text-decoration: underline;
    color: #333;
    font-weight: 500;
}

/* Responsive related posts */
@media (max-width: 992px) {
    .related-post-item {
        flex: 0 1 calc(50% - 1em);
        max-width: 45%;
    }

    .related-posts-title {
        font-size: 1.4em;
    }
}

@media (max-width: 576px) {
    .related-posts-container {
        margin: 3em auto 1em auto;
    }

    .related-posts-title {
        font-family: 'Poppins', sans-serif;
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 1em;
    }

    .related-post-item {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .related-post-title {
        font-size: 14px;
        font-weight: 600;
        padding: 0.8em;
    }
}

/*===============================
=     BLOG POST: MOBILE ONLY     =
===============================*/

@media (max-width: 576px) {
	
	.blog-post-hero-columns {
		gap:1em;
	}

    /* Contenedor general padding reducido */
    .container-padding {
        padding-left: 1em;
        padding-right: 1em;
    }

    /* Hero izquierda: titulos grandes pero adaptados */
    .hero-left .post-title {
        font-size: 20px; /* grande para lectura */
        line-height: 1.3;
    }

    .hero-left .post-category,
    .hero-left .post-date {
        font-size: 12px;
    }

    /* Blog post content: párrafos más pequeños */
    .blog-post-content {
        font-size: 12px;
        line-height: 1.5;
        margin: 2em auto;
    }

    /* Disclaimer */
    .blog-post-disclaimer {
        font-size: 11px;
        padding: 0.6em 0.8em;
    }

    /* Related posts responsive */
    .related-posts-container {
        margin: 3em auto 1em auto;
    }

    .related-posts-title {
        font-size: 16px;
        margin-bottom: 1em;
    }

    .related-post-item {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .related-post-title {
        font-size: 14px;
        padding: 0.6em 0.4em;
    }
}

/*===============================
=   BLOG POST CTA: MOBILE ONLY   =
===============================*/

@media (max-width: 576px) {
    .blog-post-cta {
        width: 100%;
        max-width: 100%;
        margin: 2em auto 3em auto;
        padding: 1em;
        border-radius: 6px;
    }

    .blog-post-cta .cta-title {
        font-size: 16px;
        margin-bottom: 0.8em;
        text-align: center;
    }

    .blog-post-cta .cta-form {
        flex-direction: column;
        gap: 0.5em;
        justify-content: center;
    }

    .blog-post-cta input[type="email"] {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 0.5em;
        font-size: 12px;
    }

    .blog-post-cta button {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 0.5em;
        font-size: 12px;
    }
}