@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    /* Colors */
    --color-bg: #0f0f0f;
    --color-surface: #1a1a1a;
    --color-surface-glass: rgba(26, 26, 26, 0.8);
    --color-text-main: #f0f0f0;
    --color-text-muted: #b0b0b0;
    --color-brand-primary: #6a1b9a;
    --color-brand-secondary: #9d4edd;
    --color-brand-glow: #7b2cbf;
    --color-accent: #e0aaff;

    /* Compatibility Variables */
    --color-principal: #333;
    --color-secundario: #383737;
    --color-terciario: #000000c4;
    --color-otromorado: #991875;
    --color-acento: #5a189a;
    --color-hover: #7b2cbf;
    --color-oscuro: #49246F;
    --color-clarito: #D4A8FF;
    --color-text: #f0f0f0;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Fluid Typography Scale */
    --fs-h1: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    --fs-h2: clamp(2rem, 4vw + 1rem, 3rem);
    --fs-h3: clamp(1.5rem, 3vw + 0.5rem, 2rem);
    --fs-body: clamp(1rem, 1vw + 0.5rem, 1.125rem);

    /* Spacing System */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --spacing-container: max(2rem, 5vw);
    --width-content: 900px;

    /* UI Elements */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(123, 44, 191, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   STANDARD HEADER STYLES (Copied & Adapted)
   ========================================= */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-container);
    background-color: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    color: #fff;
    transition: all 0.4s ease;
}

.nav-links li {
    position: relative;
}

.nav-links li::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: var(--color-hover);
    transition: width 0.3s ease;
    position: absolute;
    bottom: -6px;
    left: 0;
}

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

.nav-links li a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--color-acento);
    cursor: pointer;
    transition: color 0.3s ease;
}

@media (max-width: 1000px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        background: linear-gradient(90deg, black, var(--color-acento));
        top: 90px;
        right: 0;
        width: 70%;
        padding: 2rem;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
        border-radius: 0 0 8px 8px;
        text-align: left;
        transition: all 0.5s ease;
        z-index: 99;
        align-items: center;
    }

    .nav-links li {
        margin-bottom: 1rem;
    }

    .menu-toggle {
        display: block;
    }
}

/* LOGO STYLES */
@font-face {
    font-family: 'New Brilliant';
    src: url('New Brilliant.otf') format('opentype');
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'New Brilliant', sans-serif;
}

.logo a {
    text-decoration: none;
}

.puertas,
.sirma,
.a-normal,
.a-inversa {
    font-size: 30px;
    color: white;
}

.puertas {
    font-size: 15px;
    color: white;
    margin-right: 70px;
}

.sirma {
    font-weight: bold;
    margin-top: -60px;
}

.a-normal,
.a-inversa {
    background: linear-gradient(to top right, #5a189a, #8c5abe, white);
    transform: translateY(-20px);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientAnimation 12s linear infinite;
    background-size: 300% 300%;
}

.a-inversa {
    transform: rotate(180deg) translateY(35px);
    margin-left: 197px;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 100%;
    }

    50% {
        background-position: 100% 0%;
    }

    100% {
        background-position: 0% 100%;
    }
}

/* MENU LAYOUT */
.main-nav {
    display: flex;
    margin-left: auto;
}

.hamburger-button {
    display: none;
}

.dropdown-menu {
    display: none;
}

.presupuestoboton {
    padding: 8px 6px;
    letter-spacing: 1px;
    font-size: 1rem;
    font-weight: 500;
    background-color: #59189a00;
    border: solid 2px;
    border-color: #6e11cb;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-left: 2em;
    font-weight: 500;
    margin-top: -5px;
}

.presupuestoboton:hover {
    background-color: #7c21d8;
    transform: translateX(-6px);
    color: #000000;
}

/* MOBILE MENU */
@media (max-width: 1000px) {
    .a-inversa {
        transform: rotate(180deg) translateY(38px);
    }

    .dropdown-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #333;
        overflow: hidden;
        max-height: 0;
        transition: max-height 1.7s steps(6);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
        z-index: 20;
    }

    .dropdown-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .dropdown-menu li {
        padding: 15px;
        text-align: center;
        background: var(--color-terciario);
        margin-bottom: 4px;
    }

    .dropdown-menu li:hover {
        background: var(--color-acento);
    }

    .dropdown-menu ul a {
        text-decoration: none;
        text-transform: uppercase;
        color: #eaeaea;
        font-size: 18px;
    }

    .dropdown-menu ul a:hover {
        color: var(--color-clarito);
    }

    .dropdown-menu.active {
        max-height: 380px;
    }

    .main-nav {
        display: none;
    }

    .hamburger-button {
        display: flex;
        background: none;
        border: none;
        cursor: pointer;
        flex-direction: column;
        gap: 5px;
        padding: 10px;
        z-index: 2;
    }

    .hamburger-button .bar {
        width: 30px;
        height: 4px;
        background-color: var(--color-acento);
        transition: transform 0.3s, opacity 0.3s;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-brand-primary), var(--color-accent));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s;
    box-shadow: 0 0 10px var(--color-brand-glow);
}

/* Typography & Selection */
::selection {
    background: var(--color-brand-primary);
    color: white;
}

h1,
h2,
h3,
h4 {
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-tag {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--color-text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Hero Section - Cinematic */
.hero-suances {
    min-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('imagenes/Puerta futurista.png') no-repeat center center/cover;
    z-index: -2;
    transform: scale(1.1);
    animation: slowZoom 30s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9));
    z-index: -1;
}

@keyframes slowZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* Main Layout */
.content-wrapper {
    max-width: var(--width-content);
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding: 4rem 2rem;
}

/* Article Styling */
.article-intro {
    font-size: 1.3rem;
    line-height: 1.6;
    color: white;
    margin-bottom: 4rem;
    font-family: var(--font-heading);
    font-style: italic;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.article-body section {
    margin-bottom: 5rem;
}

.article-body h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    display: inline-block;
}

/* Drop Cap */
.article-body p:first-of-type::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    font-weight: 700;
    margin-right: 15px;
    color: var(--color-brand-secondary);
    font-family: var(--font-heading);
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--color-brand-primary);
}

.feature-card h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(90, 24, 154, 0.15), rgba(0, 0, 0, 0));
    border-left: 4px solid var(--color-brand-primary);
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 0 12px 12px 0;
}

.highlight-box h3 {
    color: white;
    margin-bottom: 0.5rem;
}

/* Images in content */
.article-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* TOC - Floating */
.toc-floating {
    position: fixed;
    left: max(20px, calc(50% - var(--width-content)/2 - 280px));
    top: 200px;
    width: 220px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.toc-floating:hover {
    opacity: 1;
}

.toc-floating h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--color-brand-secondary);
}

.toc-floating ul {
    list-style: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.toc-floating li a {
    display: block;
    padding: 8px 0 8px 15px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 2px solid transparent;
    margin-left: -2px;
}

.toc-floating li a:hover,
.toc-floating li a.active {
    color: white;
    border-left-color: var(--color-brand-primary);
}

/* CTA Section - Enhanced */
.cta-modern {
    background: linear-gradient(135deg, var(--color-surface) 0%, #240b36 100%);
    padding: 8rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.cta-modern h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(90, 24, 154, 0.5);
}

.cta-modern p {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--color-brand-primary), var(--color-brand-secondary));
    color: white;
    padding: 1.2rem 3.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(90, 24, 154, 0.6);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulseBtn 3s infinite;
}

@keyframes pulseBtn {
    0% {
        box-shadow: 0 0 0 0 rgba(123, 44, 191, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(123, 44, 191, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(123, 44, 191, 0);
    }
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 40px rgba(123, 44, 191, 0.8);
    background: linear-gradient(90deg, var(--color-brand-glow), var(--color-brand-primary));
}

/* Related Articles Slider */
.related-articles-section {
    padding: 4rem 2rem;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.related-container h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
}

.slider-wrapper {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-surface);
}

.slider-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer Styles */
.footer {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    color: #fff;
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-oscuro), var(--color-acento), var(--color-hover));
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    animation: fadeIn 0.8s ease-out backwards;
}

.footer-section h3 {
    color: #f9f5fa;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-acento);
}

.footer-info p {
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
}

.footer-info a {
    color: var(--color-hover);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-info a:hover {
    color: #ba68c8;
    transform: translateX(5px);
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.footer-nav a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-nav a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: var(--color-hover);
    transform: translateX(5px);
}

.footer-nav a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    background: var(--color-oscuro);
    color: var(--color-clarito);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #9e9e9e;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.powered-by {
    color: #9c27b0;
    font-weight: 600;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .social-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .hero-suances h1 {
        font-size: clamp(2rem, 10vw, 3.5rem);
        line-height: 1.2;
        margin-bottom: 2rem;
    }

    .cta-modern {
        padding: 6rem 1.5rem;
        background: linear-gradient(135deg, #240b36 0%, #6615a0 100%);
    }

    .cta-modern h2 {
        font-size: 2.2rem;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .cta-btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    }

    .content-wrapper {
        padding: 3rem 1.5rem;
    }

    .article-intro {
        font-size: 1.1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    header {
        width: 100%;
        top: 0;
        border-radius: 0;
        padding: 15px;
    }

    .slider-wrapper {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .toc-floating {
        display: none;
    }
}

/* =========================================
   Landing Page Styles (Migrated from Styles.css)
   ========================================= */

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem;
    padding-top: 150px;
    margin-top: -80px;
    background-image: url(imagenes/Puerta\ futurista.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.863);
    background-blend-mode: darken;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    gap: 2rem;
}

#text-change {
    color: var(--color-hover);
    font-weight: bold;
    white-space: nowrap;
    display: inline-block;
    overflow: hidden;
    animation: blinkCursor 0.5s steps(2) infinite;
    width: 12.2ch;
    height: 1.25em;
    transform: translateY(5px);
}

.hero-section {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero-section #texto {
    margin-top: -20px;
}

.hero-content,
.hero-form {
    flex: 1;
    padding: 2rem;
    border-radius: 12px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0rem;
    color: #dbd8d8;
    font-weight: 700;
}

.hero-content {
    height: 318.6px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #a3a3a3;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-content button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    color: #fff;
    background-color: #5a189a;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(90, 10, 138, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-content button:hover {
    background-color: var(--color-hover);
    transform: translateY(-2px);
}

.hero-form form {
    display: flex;
    flex-direction: column;
}

.hero-form input,
.hero-form textarea,
.hero-form button {
    margin-bottom: 1rem;
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-form {
    background-color: var(--color-text);
}

.hero-form input:focus,
.hero-form textarea:focus {
    border-color: var(--color-acento);
    box-shadow: 0 0 5px var(--color-hover);
    outline: none;
}

.hero-form button {
    background-color: var(--color-acento);
    color: #fff;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 8px var(--color-principal);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-form button:hover {
    background-color: var(--color-hover);
    transform: translateY(2px);
    box-shadow: 0 2px 8px var(--color-principal);
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem;
        padding-top: 100px;
        background: linear-gradient(180deg, #000, var(--color-acento) 70%, #000 100%);
    }

    .hero-content,
    .hero-form {
        width: 100%;
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

.form-message .error {
    color: red;
    text-align: center;
}

.form-message .success {
    color: #1F6123;
    text-align: center;
}

/* Testimonials */
.testimonials-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #000, var(--color-acento) 50%, #000 100%);
    position: relative;
}

.testimonials-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 3rem;
    position: relative;
}

.testimonials-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--color-acento), var(--color-hover));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.testimonial-item {
    border-radius: 12px;
    padding: 2rem;
    color: var(--color-secundario);
    box-shadow: 0 0px 15px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.testimonial-item:hover {
    transform: translateY(-5px);
}

.testimonial-avatar {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.client-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rating {
    color: #ffd900c4;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.testimonial-content {
    margin: 0;
    position: relative;
    z-index: 1;
}

.testimonial-text {
    color: var(--color-text);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-name {
    font-weight: 600;
    color: var(--color-clarito);
    font-style: normal;
}

.client-location {
    color: var(--color-text);
    font-size: 0.9rem;
}

@media screen and (max-width: 768px) {
    .testimonials-section {
        padding: 3rem 1rem;
    }

    .testimonials-section h2 {
        font-size: 2rem;
    }

    .testimonial-item {
        padding: 1.5rem;
    }
}

/* Services */
.services-section {
    position: relative;
    padding: 6rem 2rem;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(imagenes/herramientas.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.6);
    background-blend-mode: darken;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--color-secundario);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-clarito), var(--color-acento));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 8px 12px rgba(0, 0, 0, 0.1),
        0 15px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(105, 24, 170, 0.445);
    border-radius: 50%;
    z-index: -1;
    left: -5px;
    top: -5px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon::after {
    transform: scale(1.5);
}

.service-title {
    font-size: 1.5rem;
    color: var(--color-clarito);
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.service-description {
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-clarito);
    text-decoration: none;
    font-weight: 500;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.service-link:hover {
    gap: 0.8rem;
    color: var(--color-hover);
}

.service-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.service-card:hover .service-link::after {
    transform: translateX(5px);
}

@media screen and (max-width: 768px) {
    .services-section {
        padding: 4rem 1.5rem;
    }

    .services-container {
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        font-size: 2rem;
    }

    .service-title {
        font-size: 1.25rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* CTA Banner Mobile */
.cta-banner-movil {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(98, 31, 241, 0.892);
    color: #fff;
    z-index: 9999;
    text-align: center;
    padding: 6px 30px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.cta-banner-movil.visible {
    opacity: 1;
    pointer-events: auto;
}

.cta-banner-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-banner-icon {
    font-size: 1.5em;
    margin-right: 4px;
}

.cta-banner-btn {
    margin-left: 12px;
    background: rgb(238, 238, 238);
    color: #652ae4ff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-weight: bold;
    cursor: pointer;
}

/* Why Choose Us */
.why-choose-us {
    padding: 5rem 2rem;
    background: linear-gradient(var(--color-terciario)20%, var(--color-acento) 45%, var(--color-terciario)80%);
    position: relative;
}

.why-choose-us h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.why-choose-us h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--color-clarito), var(--color-acento));
    border-radius: 2px;
}

.cards-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.card {
    background: var(--color-secundario);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 0px 21px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    display: inline-block;
    background: var(--color-principal);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.card-icon:hover {
    background: var(--color-hover);
}

.card h3 {
    font-size: 1.5rem;
    color: var(--color-text);
    padding: 15px 15px;
    border-radius: 10px;
}

.card h3 em {
    font-style: normal;
    color: var(--color-clarito);
}

.card p {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-features li {
    padding: 0.5rem 0;
    color: var(--color-clarito);
    display: flex;
    align-items: center;
}

.card-features li::before {
    content: '✓';
    color: var(--color-text);
    margin-right: 0.5rem;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .why-choose-us {
        padding: 3rem 1rem;
    }

    .why-choose-us h2 {
        font-size: 2rem;
    }

    .cards-container {
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }
}

/* About (Acerca) */
.acerca {
    padding: 5rem 2rem;
    background: linear-gradient(var(--color-terciario), var(--color-principal), var(--color-terciario));
    overflow: hidden;
}

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

.about-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.about-row.reverse {
    flex-direction: row-reverse;
}

.about-column {
    flex: 1;
    min-width: 0;
}

.image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover .about-image {
    transform: scale(1.05);
}

.experience-badge,
.projects-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(3, 3, 3, 0.692);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.years,
.number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-clarito);
    line-height: 1;
}

.text {
    font-size: 0.9rem;
    color: var(--color-text);
}

.content-wrapper {
    padding: 2rem;
}

.about-subtitle {
    font-size: 2rem;
    color: var(--color-clarito);
    margin-bottom: 1.5rem;
    position: relative;
}

.about-subtitle::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--color-clarito), var(--color-acento));
    margin-top: 0.5rem;
    border-radius: 2px;
}

.about-text {
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-features,
.about-services {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.about-features li,
.about-services li {
    padding: 0.5rem 0;
    color: var(--color-text);
    display: flex;
    align-items: center;
}

.about-features li::before,
.about-services li::before {
    content: '✓';
    color: var(--color-hover);
    margin-right: 0.75rem;
    font-weight: bold;
}

@media screen and (max-width: 968px) {
    .about-row {
        flex-direction: column;
        gap: 2rem;
    }

    .about-row.reverse {
        flex-direction: column;
    }

    .image-wrapper {
        margin: 0 auto;
        max-width: 600px;
    }

    .content-wrapper {
        padding: 1rem 0;
    }
}

@media screen and (max-width: 480px) {
    .acerca {
        padding: 3rem 2rem;
    }

    .about-subtitle {
        font-size: 1.75rem;
    }

    .experience-badge,
    .projects-badge {
        padding: 0.75rem;
    }

    .years,
    .number {
        font-size: 1.5rem;
    }
}

/* Slider & CTA */
.slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 50px;
    overflow: hidden;
}

.slider {
    position: relative;
    height: 500px;
    margin: 10px;
    background-color: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 4px;
    background-color: var(--color-acento);
    cursor: ew-resize;
    z-index: 2;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 8px rgba(156, 39, 176, 0.5);
    border-radius: 3px;
    transform: translateX(-50%);
}

.slider-handle:hover {
    background-color: var(--color-hover);
    box-shadow: 0 0 12px rgba(172, 5, 238, 0.7);
}

.slider-handle::before {
    content: '⇆';
    padding: 0 5px;
    background: var(--color-hover);
    border-radius: 50px;
    color: #ffffff;
    font-size: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

.slider-section {
    background: linear-gradient(var(--color-terciario), var(--color-secundario));
    padding-bottom: 15px;
    padding: 1rem;
}

.cta-section {
    background-color: #333;
    padding: 3rem 1rem;
    border-radius: 12px;
    text-align: center;
    margin: auto;
    max-width: 900px;
    border: solid #7d0bc9;
    box-shadow: 0 0px 22px rgba(127, 55, 221, 0.8);
    margin-top: 20px;
}

.cta-content h2 {
    font-size: 2rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section h3 {
    color: #ffffff;
    letter-spacing: 1px;
    font-size: 24px;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgb(189, 186, 186);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cta-button {
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-size: 1.1rem;
    color: #fff;
    background-color: var(--color-acento);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(90, 10, 138, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--color-hover);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .cta-section {
        padding: 2rem 2rem;
        margin: 0px 10px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .slider {
        height: 300px;
    }
}

/* Gallery */
.section-galeria {
    padding: 4rem 2rem;
    background: linear-gradient(var(--color-secundario), var(--color-terciario));
}

.section-galeria p {
    text-align: center;
    color: var(--color-clarito)
}

.section-galeria h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0px;
    text-align: center;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
    vertical-align: middle;
}

.gallery-item:hover img {
    transform: scale(1.1);
    opacity: 0.7;
}

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0) 100%);
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.close-lightbox {
    color: #991875;
    padding: 5px;
}

.lightbox-caption {
    text-align: center;
    color: var(--color-clarito);
    font-size: 1.5rem;
    font-weight: 600;
}

.gallery-item:hover figcaption {
    transform: translateY(0);
}

.gallery-item h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: #fff;
}

.gallery-item span {
    font-size: 1rem;
    display: block;
}

@media screen and (max-width: 768px) {
    .section-galeria {
        padding: 2rem 1rem;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .gallery-item img {
        height: 250px;
    }

    .gallery-item h3 {
        font-size: 1.25rem;
    }
}

@media screen and (max-width: 480px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 200px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .gallery-item img,
    .gallery-item figcaption {
        transition: none;
    }

    .gallery-item:hover img {
        transform: none;
    }
}

/* FAQ */
.faq {
    padding: 4rem 2rem;
    background: linear-gradient(var(--color-terciario), #1a1a1a);
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    background: none;
}

.faq-container h2 {
    text-align: center;
    color: var(--color-text);
    padding-bottom: 2rem;
    font-size: 2rem;
}

.faq-title {
    color: var(--color-text);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.faq-item {
    border: solid #701bb69d;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 10px;
    border-radius: 5px;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.faq-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.faq-question {
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 600;
    margin-right: 2rem;
    flex: 1;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-hover);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--color-text);
    line-height: 1.6;
    padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 1.5rem;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
    background: #7d0bc9;
}

@media (max-width: 640px) {
    .faq {
        padding: 2rem 2rem;
    }

    .faq-title {
        font-size: 2rem;
    }

    .faq-question {
        font-size: 1rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item.open .faq-answer {
    animation: slideDown 0.2s ease-out;
}

/* Blog */
.section.blog {
    padding: 40px 20px;
    text-align: center;
    color: var(--color-text);
}

.section-header {
    margin-bottom: 60px;
}

.section.blog h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: var(--color-text);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 30px;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.stat-badge {
    background: var(--color-secundario);
    padding: 15px 25px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #e8c458;
}

.stat-label {
    font-size: 0.9rem;
    color: #fff;
}

.blog-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.blog-post {
    background-color: #2c2c2c;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 320px;
    flex: 1 1 300px;
    overflow: hidden;
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.post-image {
    height: 200px;
    background-image: url('imagenes/Corredera\ Aluminio\ Marron.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.post-image2 {
    height: 200px;
    background-image: url('imagenes/Seccional-blanca-cuarteron.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.post-image3 {
    height: 200px;
    background-image: url('imagenes/Seccional\ imitacion\ madera.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-hover);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.post-content {
    padding: 20px;
}

.snippet-title {
    font-size: 1.3rem;
    color: var(--color-clarito);
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
}

.feature-list li {
    color: var(--text-color);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: "•";
    color: var(--color-hover);
    position: absolute;
    left: 0;
}

.post-excerpt {
    color: #a3a3a3;
    margin: 15px 0;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    color: var(--color-clarito);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.cta-container {
    margin-top: 50px;
}

@media (max-width: 768px) {
    .section.blog h1 {
        font-size: 2rem;
    }

    .stats-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .blog-post {
        flex: 1 1 100%;
    }

    .stat-badge {
        width: 80%;
    }
}

/* Contact */
.contact-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #9c27b0, #ba68c8);
    border-radius: 2px;
}

.contact-subtitle {
    color: #9e9e9e;
    font-size: 1.1rem;
    margin-top: 20px;
}

.buttons-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.contact-button {
    position: relative;
    padding: 20px 15px;
    border-radius: 12px;
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    color: white;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(156, 39, 176, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-button:hover {
    transform: translateY(-5px);
    border-color: rgba(156, 39, 176, 0.3);
    box-shadow: 0 10px 20px rgba(156, 39, 176, 0.2);
}

.button-icon {
    font-size: 24px;
    color: #9c27b0;
    margin-bottom: 8px;
}

.button-text {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
}

.button-description {
    font-size: 0.85rem;
    color: #9e9e9e;
    margin-top: 5px;
}

.hours-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hours-title {
    color: var(--color-text);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.hours-item {
    padding: 15px;
    background: rgba(13, 7, 19, 0.151);
    border-radius: 10px;
    text-align: center;
}

.day {
    color: var(--color-clarito);
    font-weight: 600;
    margin-bottom: 5px;
}

.time {
    color: #fff;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 30px 20px;
        margin: 30px 15px;
    }

    .buttons-container {
        grid-template-columns: 1fr;
    }

    .contact-title {
        font-size: 2rem;
    }

    .hours-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-section {
    animation: fadeIn 0.8s ease-out;
}

.contact-button {
    animation: fadeIn 0.8s ease-out backwards;
}

.contact-button:nth-child(1) {
    animation-delay: 0.2s;
}

.contact-button:nth-child(2) {
    animation-delay: 0.4s;
}

.contact-button:nth-child(3) {
    animation-delay: 0.6s;
}

/* =========================================
   Carousel Styles (Migrated from carrousel-styles.css)
   ========================================= */

:root {
    --card-width: 300px;
    --card-height: 400px;
    --gap: 20px;
    --color-accent: #5a189a;
    --color-accent-hover: #7b2cbf;
}

.carousel-container {
    width: 100%;
    height: 600px;
    /* Adjusted height for better fit */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.carousel {
    display: flex;
    gap: var(--gap);
    padding: 20px 50px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.article {
    min-width: var(--card-width);
    height: var(--card-height);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
    transition: background 0.3s;
}

.article:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(90, 24, 154, 0.4);
    border-color: var(--color-accent);
}

.article:hover::before {
    background: linear-gradient(to top, rgba(90, 24, 154, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.article-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.4s;
}

.article:hover .article-content {
    transform: translateY(0);
}

.category-tag {
    background: var(--color-accent);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.article h3 {
    margin: 10px 0;
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.article p {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s 0.1s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article:hover p {
    opacity: 1;
    transform: translateY(0);
}

.read-more {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transition: all 0.4s 0.2s;
}

.article:hover .read-more {
    opacity: 1;
}

/* Buttons */
.prev-button,
.next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-button:hover,
.next-button:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

@media (max-width: 768px) {
    .article {
        min-width: 260px;
        height: 350px;
    }

    .article p,
    .read-more {
        opacity: 1;
        transform: none;
    }

    .article-content {
        transform: none;
    }

    .carousel-container {
        height: 500px;
    }
}

/* =========================================
   GALLERY STYLES
   ========================================= */
.gallery-section {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    background: var(--color-surface-glass);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    scroll-margin-top: 120px;
}

.gallery-section-title {
    padding: var(--spacing-md);
    margin: -2rem -2rem 2rem -2rem;
    /* Negative margin to stretch to edges */
    background: linear-gradient(90deg, rgba(106, 27, 154, 0.2), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--color-brand-primary);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--spacing-md);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay-text {
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    color: var(--color-text-main);
    margin-top: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

.close-lightbox {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--color-text-muted);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .gallery-section-title {
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    }

    .gallery-section {
        padding: 1.5rem;
    }
}

/* =========================================
   MOBILE CTA BANNER STYLES (Added for Accessibility)
   ========================================= */
.cta-banner-movil {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-brand-primary);
    padding: 1rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.cta-banner-movil.visible {
    transform: translateY(0);
}

.cta-banner-link {
    text-decoration: none;
    color: var(--color-text-main);
    flex: 1;
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.cta-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.cta-banner-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cta-banner-text {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    flex: 1;
}

.cta-banner-btn {
    background: var(--color-brand-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    display: none;
    /* Often hidden on very small screens if text is long, but kept for now */
}

@media (min-width: 400px) {
    .cta-banner-btn {
        display: block;
    }
}

.cta-banner-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-main);
    width: 48px;
    /* Accessible touch target (>44px) */
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
    padding: 0;
    /* Reset default padding */
}

.cta-banner-close:hover,
.cta-banner-close:active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

/* Hide on desktop */
@media (min-width: 769px) {
    .cta-banner-movil {
        display: none !important;
    }
}