/* ==========================================================================
   Nopal Studio CSS Style - Minimalist, Organic & Modern
   ========================================================================== */

/* Design Tokens & Variables */
:root {
    /* Color Palette - Vintage Warm Organic */
    --clr-bone-white: #F4EFE6; /* Papel antiguo cálido */
    --clr-leaf-green-dark: #233621; /* Verde oliva/bosque profundo vintage */
    --clr-leaf-green-light: #4A6345; /* Verde oliva cálido */
    --clr-sage-green: #97AB8F; /* Sage retro */
    --clr-sage-light: #E7ECE3; /* Crema sage */
    --clr-terracotta: #B55D3F; /* Arcilla/Terracota retro */
    --clr-terracotta-light: #F6ECE8; /* Arcilla muy claro */
    --clr-terracotta-hover: #984428; /* Terracota profundo */
    --clr-charcoal: #1E251D;
    --clr-white: #FAF9F6; /* Blanco cálido vintage */
    
    /* Typography */
    --ff-title: 'Playfair Display', serif;
    --ff-body: 'Montserrat', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease-in-out;
    
    /* Border Radius - Retro rounded styles */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Shadows - Retro Solid flat shadows */
    --shadow-soft: 4px 4px 0px rgba(35, 54, 33, 0.8);
    --shadow-hover: 7px 7px 0px rgba(35, 54, 33, 0.95);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html, body, *, *::before, *::after {
    cursor: url('assets/cursor.png') 16 16, auto;
}

a, button, select, input, textarea, label, 
a:active, button:active, input:active, textarea:active, select:active {
    cursor: url('assets/cursor.png') 16 16, pointer !important;
}

body {
    font-family: var(--ff-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--clr-charcoal);
    background-color: var(--clr-bone-white);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 100 100'><path d='M50,15 C45,15 42,20 42,27 C42,35 47,40 50,40 C53,40 58,35 58,27 C58,20 55,15 50,15 Z M42,27 C39,27 37,30 37,35 C37,40 39,42 42,42 C45,42 45,40 45,35 C45,30 44,27 42,27 Z M58,25 C60,25 63,28 63,33 C63,38 60,40 58,40 C56,40 56,38 56,33 C56,28 57,25 58,25 Z' fill='none' stroke='%232B4527' stroke-width='0.4' opacity='0.04'/></svg>");
    background-repeat: repeat;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--ff-title);
    color: var(--clr-leaf-green-dark);
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img, svg {
    max-width: 100%;
    display: block;
}

/* Typography Helper Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--clr-bone-white);
}
::-webkit-scrollbar-thumb {
    background: var(--clr-sage-green);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--clr-leaf-green-light);
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #080907; /* Coincide con el fondo negro del logo para un acabado integrado */
    border-bottom: 1px solid rgba(250, 246, 240, 0.08);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.4rem 2rem; /* Más compacto para compensar el tamaño del logo */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen; /* Hace que el cuadro negro sea transparente y se difumine en el header */
    filter: contrast(1.1) brightness(1.1);
    transition: var(--transition-smooth);
    display: block;
}

.logo-container:hover .logo-img {
    transform: scale(1.03);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 9999;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--clr-bone-white);
    transition: var(--transition-fast);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--clr-bone-white);
    left: 0;
    transition: var(--transition-fast);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Navigation Links */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-bone-white);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-terracotta);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--clr-terracotta);
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 2rem;
    font-family: var(--ff-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid var(--clr-leaf-green-dark);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--clr-leaf-green-dark);
    color: var(--clr-bone-white);
    box-shadow: 3px 3px 0px var(--clr-charcoal);
}

.btn-primary:hover {
    background-color: var(--clr-terracotta);
    border-color: var(--clr-charcoal);
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--clr-charcoal);
}

.btn-whatsapp {
    background-color: var(--clr-terracotta);
    color: var(--clr-white);
    border-color: var(--clr-charcoal);
    box-shadow: 3px 3px 0px var(--clr-charcoal);
    font-weight: 600;
}

.btn-whatsapp:hover {
    background-color: var(--clr-terracotta-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(208, 123, 92, 0.35);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Alinea el contenido a la derecha */
    position: relative;
    padding: 8rem 8% 4rem; /* Más espacio a la derecha */
    text-align: right;
    background-color: #080907;
    overflow: hidden;
}

/* Degradado oscuro para lectura del texto nítido */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(8, 9, 7, 0.9) 0%, rgba(8, 9, 7, 0.45) 50%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.85; /* Video bien nítido */
    pointer-events: none;
}

.hero-content {
    max-width: 600px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alinea botones a la derecha */
    text-align: right; /* Justifica texto a la derecha */
    transition: var(--transition-smooth);
}

.hero-tagline {
    font-size: 0.9rem;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--clr-terracotta);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 4.8rem);
    font-weight: 400;
    color: var(--clr-white); /* Texto blanco para resaltar sobre el degradado oscuro */
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    color: var(--clr-sage-light); /* Verde claro para contraste */
    max-width: 650px;
    margin: 0 0 3rem; /* Margen alineado */
    font-weight: 300;
}

/* Hero Background Shapes */
.hero-background-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background-color: rgba(90, 126, 84, 0.1);
    top: 20%;
    left: 15%;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background-color: rgba(208, 123, 92, 0.05);
    bottom: 10%;
    right: 10%;
}

/* About Section / Filosofía */
.about-section {
    padding: 10rem 2rem;
    background-color: var(--clr-bone-white);
    position: relative;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-title {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.about-text {
    font-size: 1.05rem;
    color: var(--clr-charcoal);
    opacity: 0.85;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.why-us {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--clr-white);
    border-left: 3px solid var(--clr-terracotta);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-soft);
}

.why-us h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.why-us p {
    font-size: 0.95rem;
    color: var(--clr-leaf-green-light);
    line-height: 1.6;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.organic-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-image:hover .organic-img {
    transform: scale(1.03);
}

/* Services Section */
.services-section {
    padding: 8rem 2rem;
    background-color: var(--clr-white);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--clr-terracotta);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--clr-leaf-green-light);
    font-weight: 300;
}

/* Services Grid & Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--clr-bone-white);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--clr-leaf-green-dark);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--clr-sage-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-fast);
}

.service-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--clr-leaf-green-dark);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2rem;
    color: var(--clr-leaf-green-light);
    margin-bottom: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(90, 126, 84, 0.06);
    border-radius: 50%;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-description {
    font-size: 0.95rem;
    color: var(--clr-charcoal);
    opacity: 0.8;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-price {
    font-size: 1.8rem;
    font-family: var(--ff-body);
    font-weight: 600;
    color: var(--clr-leaf-green-dark);
    border-top: 1px solid rgba(43, 69, 39, 0.08);
    padding-top: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--clr-leaf-green-light);
}

/* Premium Card Highlights */
.service-card.premium {
    background-color: var(--clr-terracotta-light);
    border: 2px solid var(--clr-terracotta);
}

.service-card.premium::before {
    background-color: var(--clr-terracotta);
}

.service-card.premium .card-icon {
    background-color: rgba(208, 123, 92, 0.1);
    color: var(--clr-terracotta);
}

.service-card.premium .card-price {
    color: var(--clr-terracotta);
    border-top-color: rgba(208, 123, 92, 0.15);
}

.premium-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0.25rem 0.75rem;
    background-color: var(--clr-terracotta);
    color: var(--clr-white);
    border-radius: 50px;
}

/* Contact / Footer Section */
.contact-section {
    padding: 8rem 2rem;
    background-color: var(--clr-bone-white);
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--clr-leaf-green-light);
    margin-bottom: 3rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--clr-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(43, 69, 39, 0.02);
}

.contact-link-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(208, 123, 92, 0.1);
}

.contact-link-item i {
    font-size: 1.8rem;
    color: var(--clr-terracotta);
}

.contact-link-item h4 {
    font-family: var(--ff-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-leaf-green-dark);
}

.contact-link-item p {
    font-size: 0.95rem;
    color: var(--clr-leaf-green-light);
}

.contact-cta-box {
    background-color: var(--clr-white);
    padding: 4rem 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(43, 69, 39, 0.03);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-cta-box h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

.cta-box-desc {
    font-size: 0.95rem;
    color: var(--clr-leaf-green-light);
    margin-bottom: 1rem;
}

/* Subpages General Layout */
.page-container {
    padding-top: 80px; /* Evita que el contenido quede oculto bajo el header fijo */
}

/* Active navigation link */
.nav-link.active {
    color: var(--clr-terracotta);
}

.nav-link.active::after {
    width: 100%;
}

/* Button variations & Enhanced Transitions */
.btn {
    box-shadow: 3px 3px 0px var(--clr-charcoal);
    will-change: transform, box-shadow, background-color;
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-leaf-green-dark);
    border: 2px solid var(--clr-leaf-green-dark);
}

.btn-secondary:hover {
    background-color: var(--clr-leaf-green-dark);
    color: var(--clr-bone-white);
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--clr-charcoal);
}

.btn-whatsapp-secondary {
    background-color: transparent;
    color: var(--clr-terracotta);
    border: 2px solid var(--clr-terracotta);
}

.btn-whatsapp-secondary:hover {
    background-color: var(--clr-terracotta);
    color: var(--clr-white);
    border-color: var(--clr-charcoal);
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--clr-charcoal);
}

.hero-ctas {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.hero-section .btn-secondary {
    color: var(--clr-bone-white);
    border-color: var(--clr-bone-white);
}

.hero-section .btn-secondary:hover {
    background-color: var(--clr-bone-white);
    color: var(--clr-charcoal);
}

.banner-ctas {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Home Banner CTA */
.home-cta-banner {
    padding: 8rem 2rem;
    background-color: var(--clr-leaf-green-dark);
    color: var(--clr-bone-white);
    text-align: center;
}

.banner-container {
    max-width: 800px;
    margin: 0 auto;
}

.banner-title {
    color: var(--clr-bone-white);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.banner-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

/* Projects Page Grid & Cards */
.projects-page-section {
    padding: 6rem 2rem;
    background-color: var(--clr-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--clr-bone-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--clr-leaf-green-dark);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--clr-leaf-green-dark);
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--clr-leaf-green-dark);
    color: var(--clr-bone-white);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
}

.project-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.project-desc {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-terracotta);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link i {
    transition: var(--transition-fast);
}

.project-link:hover i {
    transform: translateX(5px);
}

/* Contact Page Grid & Form */
.contact-page-section {
    padding: 6rem 2rem;
    background-color: var(--clr-white);
}

.contact-form-box {
    background-color: var(--clr-white);
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(43, 69, 39, 0.03);
    width: 100%;
}

.contact-form-box h3 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    text-align: center;
}

.organic-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-leaf-green-dark);
    text-align: left;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(43, 69, 39, 0.15);
    background-color: var(--clr-bone-white);
    border-radius: var(--radius-sm);
    font-family: var(--ff-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    color: var(--clr-charcoal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-terracotta);
    background-color: var(--clr-white);
}

.form-divider {
    text-align: center;
    margin: 1.25rem 0;
    position: relative;
    color: var(--clr-sage-green);
    font-size: 0.9rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background-color: rgba(43, 69, 39, 0.1);
}

.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

.w-100 {
    width: 100%;
}

/* Services page overrides */
.services-page-section {
    padding: 6rem 2rem;
    background-color: var(--clr-white);
}

/* Blog Page Layout */
.blog-page-section {
    padding: 6rem 2rem;
    background-color: var(--clr-white);
}

.blog-layout {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 2rem;
}

.featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: center;
    background-color: var(--clr-bone-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(43, 69, 39, 0.02);
}

.featured-img-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: var(--shadow-soft);
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.featured-post:hover .featured-img {
    transform: scale(1.03);
}

.featured-post-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.post-category {
    font-weight: 600;
    color: var(--clr-terracotta);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-date {
    color: var(--clr-leaf-green-light);
}

.featured-post-title {
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    line-height: 1.3;
}

.featured-post-title a:hover {
    color: var(--clr-terracotta);
}

.featured-post-excerpt {
    font-size: 1.05rem;
    font-weight: 300;
    opacity: 0.85;
}

.read-more-btn {
    font-weight: 600;
    color: var(--clr-leaf-green-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.read-more-btn i {
    transition: var(--transition-fast);
}

.read-more-btn:hover {
    color: var(--clr-terracotta);
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background-color: var(--clr-bone-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(43, 69, 39, 0.02);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(43, 69, 39, 0.08);
}

.blog-img-wrapper {
    overflow: hidden;
    aspect-ratio: 16/10;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.blog-card-title {
    font-size: 1.3rem;
    line-height: 1.4;
}

.blog-card-title a:hover {
    color: var(--clr-terracotta);
}

.blog-card-excerpt {
    font-size: 0.95rem;
    font-weight: 300;
    opacity: 0.85;
    flex-grow: 1;
}

.blog-card-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-terracotta);
}

.blog-card-link:hover {
    text-decoration: underline;
}

/* Footer */
.main-footer {
    padding: 3rem 2rem;
    background-color: var(--clr-leaf-green-dark);
    color: var(--clr-bone-white);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.9;
}



/* Responsive Media Queries (Mobile First) */
@media (max-width: 968px) {
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .mobile-nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        inset: 0 0 0 30%;
        background-color: var(--clr-white);
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><path d='M50,15 C45,15 42,20 42,27 C42,35 47,40 50,40 C53,40 58,35 58,27 C58,20 55,15 50,15 Z M42,27 C39,27 37,30 37,35 C37,40 39,42 42,42 C45,42 45,40 45,35 C45,30 44,27 42,27 Z M58,25 C60,25 63,28 63,33 C63,38 60,40 58,40 C56,40 56,38 56,33 C56,28 57,25 58,25 Z' fill='none' stroke='%232B4527' stroke-width='0.3' opacity='0.08'/></svg>");
        background-repeat: no-repeat;
        background-position: bottom 20px right 20px;
        background-size: 150px;
        z-index: 999;
        padding: 8rem 2rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        transform: translateX(100%);
        transition: var(--transition-smooth);
    }

    .nav-menu[data-visible="true"] {
        transform: translateX(0);
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1.2rem;
        color: var(--clr-leaf-green-dark); /* Color oscuro para legibilidad en menú desplegable claro */
    }

    /* Mobile Hamburger Animation when active */
    .mobile-nav-toggle[aria-expanded="true"] .hamburger {
        background: transparent;
    }
    .mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    .mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
    
    /* Adjust spacing */
    .hero-section {
        padding-top: 7rem;
    }
    
    .about-section,
    .services-section, 
    .contact-section,
    .services-page-section,
    .projects-page-section,
    .contact-page-section {
        padding: 4rem 1.5rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-cta-box,
    .contact-form-box {
        padding: 2.5rem 1.5rem;
    }

    .home-cta-banner {
        padding: 5rem 1.5rem;
    }
}

/* ==========================================================================
   Comunidad / Twitter-like Feed Styles
   ========================================================================== */
.community-layout {
    display: grid;
    grid-template-columns: 240px 1fr 300px;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 3rem auto;
    align-items: start;
    padding: 0 2rem;
}

/* Left Sidebar Navigation */
.community-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: sticky;
    top: 110px;
}

.community-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    color: var(--clr-leaf-green-dark);
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.community-nav-item:hover, .community-nav-item.active {
    background-color: rgba(90, 126, 84, 0.1);
    color: var(--clr-leaf-green-dark);
    font-weight: 600;
}

.community-nav-item i {
    font-size: 1.2rem;
    width: 24px;
}

/* Feed Column */
.community-feed {
    border: 1px solid rgba(43, 69, 39, 0.1);
    background-color: var(--clr-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.feed-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(43, 69, 39, 0.1);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 80px;
    z-index: 10;
}

.feed-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--clr-leaf-green-dark);
}

/* Create Post Box */
.create-post-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 8px solid rgba(43, 69, 39, 0.04);
    background-color: #FAF9F6;
}

.user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--clr-leaf-green-dark);
}

.post-input-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-input {
    width: 100%;
    border: none;
    resize: none;
    font-family: inherit;
    font-size: 1.05rem;
    color: var(--clr-charcoal);
    background: transparent;
    padding-top: 0.5rem;
}

.post-input:focus {
    outline: none;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(43, 69, 39, 0.05);
    padding-top: 0.75rem;
}

.post-tools {
    display: flex;
    gap: 1.25rem;
    color: var(--clr-leaf-green-light);
}

.post-tools i {
    cursor: url('assets/cursor.png') 16 16, pointer !important;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.post-tools i:hover {
    color: var(--clr-terracotta);
}

/* Post Card */
.feed-post {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(43, 69, 39, 0.08);
    transition: var(--transition-smooth);
}

.feed-post:hover {
    background-color: rgba(250, 246, 240, 0.3);
}

.post-main {
    flex: 1;
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.post-author-name {
    font-weight: 600;
    color: var(--clr-leaf-green-dark);
    text-decoration: none;
}

.post-author-name:hover {
    text-decoration: underline;
}

.post-author-handle {
    color: var(--clr-leaf-green-light);
    font-size: 0.85rem;
}

/* ==========================================================================
   Carrusel Animado en Página Nosotros
   ========================================================================== */
.nosotros-carousel-section {
    padding: 4rem 0;
    background-color: #FAF6F0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(43, 69, 39, 0.04);
    border-bottom: 1px solid rgba(43, 69, 39, 0.04);
}

.nosotros-carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    display: flex;
}

.nosotros-carousel-track {
    display: flex;
    gap: 2rem;
    animation: scrollMarquee 30s linear infinite;
    width: max-content;
    padding: 1rem 0;
}

.nosotros-carousel-track:hover {
    animation-play-state: paused;
}

.nosotros-carousel-img-wrapper {
    width: 320px;
    height: 220px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(43, 69, 39, 0.05);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.nosotros-carousel-img-wrapper:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.nosotros-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

/* ==========================================================================
   Modal de Registro y Widget de Comunidad
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(8, 9, 7, 0.7);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background-color: var(--clr-white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 440px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 30px 60px rgba(8, 9, 7, 0.25);
    border: 1px solid rgba(250, 246, 240, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--clr-leaf-green-light);
    cursor: url('assets/cursor.png') 16 16, pointer !important;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--clr-terracotta);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--clr-leaf-green-dark);
    margin-top: 1rem;
    font-weight: 600;
}

.modal-header p {
    font-size: 0.9rem;
    color: var(--clr-leaf-green-light);
    margin-top: 0.5rem;
    font-weight: 300;
    line-height: 1.4;
}

.modal-form .form-group {
    margin-bottom: 1.25rem;
}

.modal-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-leaf-green-dark);
    margin-bottom: 0.5rem;
}

.modal-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(43, 69, 39, 0.15);
    border-radius: var(--radius-md);
    background-color: var(--clr-white);
    color: var(--clr-charcoal);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.modal-form input:focus {
    outline: none;
    border-color: var(--clr-leaf-green-dark);
    box-shadow: 0 0 0 3px rgba(90, 126, 84, 0.1);
}

.avatar-color-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: url('assets/cursor.png') 16 16, pointer !important;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.color-option.active {
    border-color: var(--clr-leaf-green-dark);
    transform: scale(1.1);
}

/* User Register Card Widget */
.widget-box.register-widget {
    background-color: #FAF9F6;
    border: 1px dashed var(--clr-leaf-green-light);
    text-align: center;
    transition: var(--transition-smooth);
}

.register-widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-leaf-green-dark);
    margin-bottom: 0.5rem;
}

.register-widget-desc {
    font-size: 0.85rem;
    color: var(--clr-leaf-green-light);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

/* Profile display style when logged in */
.profile-card-widget {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.profile-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.profile-card-info {
    display: flex;
    flex-direction: column;
}

.profile-card-name {
    font-weight: 600;
    color: var(--clr-leaf-green-dark);
    font-size: 0.95rem;
}

.profile-card-handle {
    font-size: 0.8rem;
    color: var(--clr-leaf-green-light);
}

.post-dot {
    color: var(--clr-leaf-green-light);
    font-size: 0.4rem;
}

.post-time {
    color: var(--clr-leaf-green-light);
    font-size: 0.85rem;
}

.post-content {
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--clr-charcoal);
    margin-bottom: 0.75rem;
}

.post-content-image {
    width: 100%;
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    max-height: 350px;
    object-fit: cover;
    border: 1px solid rgba(43, 69, 39, 0.05);
}

/* Engagement Toolbar */
.post-engagement {
    display: flex;
    justify-content: space-between;
    max-width: 400px;
    color: var(--clr-leaf-green-light);
    margin-top: 0.5rem;
}

.engagement-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 0.85rem;
    padding: 0.35rem 0.5rem;
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: url('assets/cursor.png') 16 16, pointer !important;
}

.engagement-btn:hover {
    background-color: rgba(90, 126, 84, 0.08);
    color: var(--clr-leaf-green-dark);
}

.engagement-btn.btn-like:hover, .engagement-btn.btn-like.active {
    color: #e0245e;
    background-color: rgba(224, 36, 94, 0.1);
}

.engagement-btn.btn-repost:hover, .engagement-btn.btn-repost.active {
    color: #17bf63;
    background-color: rgba(23, 191, 99, 0.1);
}

.engagement-btn.btn-comment:hover {
    color: #1da1f2;
    background-color: rgba(29, 161, 242, 0.1);
}

/* Right Sidebar (Widgets) */
.community-widgets {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 110px;
}

.widget-box {
    background-color: var(--clr-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(43, 69, 39, 0.08);
    box-shadow: var(--shadow-soft);
}

.widget-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--clr-leaf-green-dark);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(43, 69, 39, 0.05);
    padding-bottom: 0.5rem;
}

.trend-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trend-item {
    text-decoration: none;
    display: block;
    transition: var(--transition-smooth);
}

.trend-item:hover .trend-name {
    text-decoration: underline;
}

.trend-category {
    font-size: 0.75rem;
    color: var(--clr-leaf-green-light);
}

.trend-name {
    font-weight: 600;
    color: var(--clr-leaf-green-dark);
    font-size: 0.9rem;
    margin: 0.15rem 0;
}

.trend-posts {
    font-size: 0.75rem;
    color: var(--clr-leaf-green-light);
}

.who-to-follow-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.follow-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.follow-user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.follow-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--clr-leaf-green-dark);
}

.follow-name-box {
    display: flex;
    flex-direction: column;
}

.follow-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--clr-leaf-green-dark);
}

.follow-name:hover {
    text-decoration: underline;
}

.follow-handle {
    font-size: 0.75rem;
    color: var(--clr-leaf-green-light);
}

.btn-follow {
    background-color: var(--clr-leaf-green-dark);
    color: var(--clr-bone-white);
    border: none;
    border-radius: 50px;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: url('assets/cursor.png') 16 16, pointer !important;
}

.btn-follow:hover {
    background-color: var(--clr-terracotta);
}

/* Responsive grid for community */
@media (max-width: 968px) {
    .community-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        margin-top: 1rem;
        margin-bottom: 2rem;
    }
    
    .community-widgets {
        display: none;
    }
    
    .community-nav {
        display: flex !important;
        position: sticky !important;
        top: 92px; /* Se pega justo debajo del header fijo de Nopal Studio (92px de alto) */
        left: 0;
        right: 0;
        background-color: var(--clr-white);
        border-bottom: 2px solid var(--clr-leaf-green-dark);
        border-top: none !important;
        z-index: 999;
        flex-direction: row !important;
        justify-content: space-around;
        padding: 0.75rem 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        gap: 0.5rem;
        margin-bottom: 1rem;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
    
    .community-nav-item {
        flex: 1;
        text-align: center;
        justify-content: center;
        padding: 0.6rem 0.25rem !important;
        font-size: 0.85rem !important;
        flex-direction: row !important; /* Icono y texto al lado en móviles */
        gap: 0.5rem !important;
        border-radius: var(--radius-sm);
        border: 1px solid transparent !important;
    }

    .community-nav-item.active {
        background-color: rgba(90, 126, 84, 0.1);
        border: 1px solid var(--clr-leaf-green-dark) !important;
        color: var(--clr-leaf-green-dark);
    }
    
    .community-nav-item i {
        font-size: 1.1rem !important;
    }
    
    .community-profile-widget {
        display: none !important; /* Ocultamos el widget flotante del menú lateral en móviles */
    }

    /* Rediseño de chat en móvil: contactos en horizontal arriba, chat abajo */
    .chat-layout {
        grid-template-columns: 1fr !important;
        grid-template-rows: 85px 1fr !important;
        height: 520px !important;
    }

    .chat-inbox-list {
        display: flex !important;
        flex-direction: row !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(43, 69, 39, 0.08) !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

    .chat-inbox-item {
        flex: 0 0 180px !important;
        border-bottom: none !important;
        border-right: 1px solid rgba(43, 69, 39, 0.05) !important;
        padding: 0.6rem 0.8rem !important;
    }

    .chat-inbox-item.active {
        border-left: none !important;
        border-bottom: 3px solid var(--clr-leaf-green-dark) !important;
    }

    /* Reducimos tamaños de textos en móvil para evitar apretado */
    .create-post-box {
        padding: 1rem !important;
    }
    .feed-post {
        padding: 1rem !important;
        gap: 0.75rem !important;
    }
    .post-author-name {
        font-size: 0.9rem !important;
    }
}

/* ==========================================================================
   Mensajería y Edición de Perfil en Comunidad
   ========================================================================== */
.chat-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    height: 550px;
    background-color: var(--clr-white);
    border-top: 1px solid rgba(43, 69, 39, 0.1);
    overflow: hidden;
}

.chat-inbox-list {
    border-right: 1px solid rgba(43, 69, 39, 0.08);
    background-color: #FAF9F6;
    overflow-y: auto;
}

.chat-inbox-item {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(43, 69, 39, 0.05);
    cursor: url('assets/cursor.png') 16 16, pointer !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.chat-inbox-item:hover {
    background-color: rgba(90, 126, 84, 0.05);
}

.chat-inbox-item.active {
    background-color: rgba(90, 126, 84, 0.1);
    border-left: 3px solid var(--clr-leaf-green-dark);
}

.chat-inbox-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--clr-leaf-green-dark);
}

.chat-inbox-info {
    flex: 1;
    overflow: hidden;
}

.chat-inbox-name {
    font-weight: 600;
    color: var(--clr-leaf-green-dark);
    font-size: 0.85rem;
    display: block;
}

.chat-inbox-preview {
    font-size: 0.75rem;
    color: var(--clr-leaf-green-light);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Chat Pane */
.chat-pane {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--clr-white);
}

.chat-pane-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(43, 69, 39, 0.08);
    font-weight: 600;
    color: var(--clr-leaf-green-dark);
    background-color: #FAF9F6;
}

.chat-messages-log {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: none;
}

.chat-msg {
    max-width: 70%;
    padding: 0.75rem 1.1rem;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.chat-msg.received {
    background-color: #FAF6F0;
    color: var(--clr-charcoal);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg.sent {
    background-color: var(--clr-leaf-green-dark);
    color: var(--clr-bone-white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-bar {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(43, 69, 39, 0.08);
    display: flex;
    gap: 1rem;
    align-items: center;
    background-color: #FAF9F6;
}

.chat-input-bar input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(43, 69, 39, 0.12);
    border-radius: 30px;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--clr-charcoal);
    background-color: var(--clr-white);
    transition: var(--transition-smooth);
}

.chat-input-bar input:focus {
    outline: none;
    border-color: var(--clr-leaf-green-dark);
    box-shadow: 0 0 0 3px rgba(90, 126, 84, 0.1);
}

/* User Profile Info on Left Sidebar */
.community-profile-widget {
    background-color: var(--clr-white);
    border: 1px solid rgba(43, 69, 39, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.profile-widget-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-widget-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.15rem;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--clr-leaf-green-dark);
}

.profile-widget-names {
    display: flex;
    flex-direction: column;
}

.profile-widget-name {
    font-weight: 600;
    color: var(--clr-leaf-green-dark);
    font-size: 0.92rem;
}

.profile-widget-handle {
    font-size: 0.78rem;
    color: var(--clr-leaf-green-light);
}

.profile-widget-bio {
    font-size: 0.82rem;
    color: var(--clr-charcoal);
    line-height: 1.4;
    font-style: italic;
}

.profile-widget-socials {
    font-size: 0.8rem;
    color: var(--clr-terracotta);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.profile-widget-socials:hover {
    text-decoration: underline;
}

.btn-edit-profile {
    background: transparent;
    border: 1px solid var(--clr-leaf-green-light);
    color: var(--clr-leaf-green-dark);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.4rem;
    border-radius: 20px;
    cursor: url('assets/cursor.png') 16 16, pointer !important;
    transition: var(--transition-smooth);
    width: 100%;
    text-align: center;
}

.btn-edit-profile:hover {
    background-color: rgba(90, 126, 84, 0.05);
    border-color: var(--clr-leaf-green-dark);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover) !important;
    border-color: var(--clr-leaf-green-light) !important;
}

/* Exposición de Cuadros de Museo */
.museum-painting {
    transform: perspective(800px) rotateY(2deg);
}

.museum-painting:hover {
    transform: perspective(800px) scale(1.03) translateY(-10px) rotateY(0deg) rotate(0.5deg) !important;
    box-shadow: 0 35px 70px rgba(0,0,0,0.85) !important;
}

.museum-painting img {
    transition: transform 0.5s ease;
}

.museum-painting img:hover {
    transform: scale(1.06);
}

/* Brand Logo Carousel (Marquee) */
.brand-carousel-section {
    padding: 5rem 0 3rem;
    background-color: var(--clr-bone-white);
    text-align: center;
    overflow: hidden;
    width: 100%;
}

.brand-carousel-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--clr-leaf-green-dark);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.brand-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1.5rem 0;
    display: flex;
}

.brand-carousel-track {
    display: flex;
    gap: 8rem;
    align-items: center;
    animation: scroll-brand-logos 25s linear infinite;
    width: max-content;
}

.brand-logo-wrapper {
    width: 250px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply; /* Elimina cualquier fondo blanco o claro al mezclarse con el fondo sólido */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.brand-logo-wrapper img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll-brand-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 4rem)); /* Ajuste a la mitad de la separación de 8rem */
    }
}

/* Responsividad para móviles y tablets */
@media (max-width: 768px) {
    .brand-carousel-section {
        padding: 3.5rem 0 2rem;
    }
    .brand-carousel-title {
        margin-bottom: 1.5rem;
        padding: 0 1.5rem;
    }
    .brand-carousel-track {
        gap: 4rem; /* Menor espacio entre logos en celulares */
    }
    .brand-logo-wrapper {
        width: 150px; /* Logos más proporcionados en pantalla móvil */
        height: 75px;
    }
}

