/* ==========================================================================
   1. ROOT & VARIABLES
   ========================================================================== */
:root {
    /* Colors */
    --color-primary: #ff4444;
    --color-primary-dark: #e03333;
    --color-primary-light: #ff6666;
    --color-text: #e0e0e0;
    --color-text-secondary: #b0b0b0;
    --color-background: #1a1a1a;
    --color-surface: #222222;
    --color-surface-light: #2a2a2a;
    --color-white: #fff;
    --color-black: #000;
    --color-success: #25d366;
    --color-success-dark: #128c7e;

    /* Fonts */
    --font-body: 'Roboto', sans-serif;
    --font-heading-1: 'UnifrakturMaguntia', cursive;
    --font-heading-other: 'MedievalSharp', cursive;

    /* Sizing */
    --nav-height: 70px;
}

/* ==========================================================================
   2. FONT-FACE DECLARATIONS
   ========================================================================== */
@font-face {
    font-family: 'UnifrakturMaguntia';
    src: url('fonts/UnifrakturMaguntia.woff2') format('woff2'),
         url('fonts/UnifrakturMaguntia.woff') format('woff'),
         url('fonts/UnifrakturMaguntia.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MedievalSharp';
    src: url('fonts/MedievalSharp.woff2') format('woff2'),
         url('fonts/MedievalSharp.woff') format('woff'),
         url('fonts/MedievalSharp.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Light.woff2') format('woff2'),
         url('fonts/Roboto-Light.woff') format('woff'),
         url('fonts/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Regular.woff2') format('woff2'),
         url('fonts/Roboto-Regular.woff') format('woff'),
         url('fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Bold.woff2') format('woff2'),
         url('fonts/Roboto-Bold.woff') format('woff'),
         url('fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===========================
   FONT AWESOME SELF-HOSTED
============================ */

/* Font Awesome Solid Icons */
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("fonts/fa-solid-900.woff2") format("woff2"),
         url("fonts/fa-solid-900.ttf") format("truetype");
}

/* Font Awesome Brand Icons */
@font-face {
    font-family: "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/fa-brands-400.woff2") format("woff2"),
         url("fonts/fa-brands-400.ttf") format("truetype");
}

/* Font Awesome Base Classes */
.fa,
.fas,
.far,
.fal,
.fad,
.fab {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    text-rendering: auto;
}

/* Solid Icons */
.fa-solid,
.fas {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Brand Icons */
.fa-brands,
.fab {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

/* Icon Definitions */
.fa-whatsapp:before {
    content: "\f232";
}

.fa-chevron-up:before {
    content: "\f077";
}

.fa-instagram:before {
    content: "\f16d";
}

.fa-tiktok:before {
    content: "\e07b";
}

.fa-images:before {
    content: "\f302";
}

.fa-universal-access:before {
    content: "\f29a";
}

.fa-font:before {
    content: "\f031";
}

.fa-adjust:before {
    content: "\f042";
}

.fa-sun:before {
    content: "\f185";
}

/* ==========================================================================
   3. MOBILE TAP HIGHLIGHT REMOVAL
   ========================================================================== */
/* Remove blue tap highlights on mobile */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Re-enable text selection where needed */
p, h1, h2, h3, h4, h5, h6, span, div:not(.hamburger-btn):not(.social-btn):not(.whatsapp-btn) {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Ensure inputs and textareas work properly */
input, textarea, select {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* ==========================================================================
   4. GENERAL & BODY STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    background-color: var(--color-background);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    animation: fadeIn 0.5s ease-in;
}

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    margin-top: 0;
}

h1 {
    font-family: var(--font-heading-other);
    font-size: 2.5em; /* Base size, can be overridden */
}

h2 {
    font-family: var(--font-heading-other);
    font-size: 2em; /* Base size for h2 */
    line-height: 1.3;
}

h3, h4, h5, h6 { 
    font-family: var(--font-body);
}

h3 { font-size: 1.75em; }
h4 { font-size: 1.5em; }

p {
    line-height: 1.7;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ==========================================================================
   5. LAYOUT & SECTIONS
   ========================================================================== */
section {
    padding: 60px 20px;
    text-align: center;
}

section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

/* Gallery sections with reduced padding */
#mis-trabajos {
    padding: 60px 20px 30px 20px; /* Reduced bottom padding from 60px to 30px */
}

#mis-disenos {
    padding: 30px 20px 30px 20px; /* Reduced top and bottom padding from 60px to 30px */
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ==========================================================================
   6. COMPONENTS
   ========================================================================== */

/* --- Navigation Bar --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--color-surface);
    z-index: 1000;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    height: var(--nav-height);
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-center .site-title {
    font-size: 38px;
    margin: 0;
    font-family: var(--font-heading-1);
    color: var(--color-primary);
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: var(--color-text);
    font-family: var(--font-heading-other);
    font-size: 20px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-links a:hover {
    background-color: rgba(255, 68, 68, 0.2);
    text-decoration: none;
}

/* --- Hamburger Menu --- */
.hamburger-btn {
    display: none; /* Hidden by default, shown in media queries */
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff !important;
    margin: 4px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: var(--color-background);
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--color-primary-dark);
    text-decoration: none;
}

.whatsapp-btn {
    background-color: var(--color-success);
    color: var(--color-background);
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading-other);
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.whatsapp-btn i {
    color: var(--color-white);
}

.whatsapp-btn:hover {
    background-color: var(--color-success-dark);
    text-decoration: none;
    color: var(--color-background);
}

.whatsapp-btn:hover i {
    color: var(--color-white);
}

/* --- Hero Section --- */
#home {
    min-height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 0.7s ease-in;
}

.hero-content h1 {
    font-size: 4.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px var(--color-black);
}

.hero-content p {
    font-size: 1.7em;
    margin-bottom: 30px;
}

/* Hero icon styling */
.hero-icon {
    width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-heading-1);
    font-size: 3rem;
    text-align: center;
    margin-top: -10px;
    position: relative;
    z-index: 1;
    -webkit-text-stroke: 0.3px black;
    text-shadow: 1px 1px 2px black;
}

/* Hero content link styling (Explorar Diseños button) */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.hero-content .explore-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: var(--color-background);
    border-radius: 5px;
    font-family: var(--font-heading-other);
    font-size: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.hero-content .explore-btn:hover {
    background-color: var(--color-primary-dark);
    text-decoration: none;
}

.hero-content .hero-whatsapp {
    padding: 12px 24px;
    font-size: 20px;
    font-weight: bold;
}

/* --- Gallery & Previews --- */
.gallery-grid, .gallery-preview-grid {
    display: grid;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    aspect-ratio: 1 / 1;
    background-color: var(--color-surface-light);
    animation: fadeIn 0.5s ease-in;
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.thumbnail:hover {
    transform: scale(1.1);
}

.gallery-link {
    text-align: center;
    margin-top: 10px;
}

/* Gallery button styling (Ver Galería Completa) */
.gallery-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: var(--color-background);
    border-radius: 5px;
    font-family: var(--font-heading-other);
    font-size: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.gallery-btn:hover {
    background-color: var(--color-primary-dark);
    text-decoration: none;
}

/* --- Filter Buttons --- */
.gallery-filter {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Full Gallery Page Styling */
#full-gallery {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
}

#full-gallery h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: var(--color-primary);
}

.filter-btn {
    background-color: var(--color-primary);
    color: var(--color-background);
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: var(--font-heading-other);
    text-transform: uppercase;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

.filter-btn::before {
    content: '✔';
    margin-right: 8px;
    font-size: 14px;
    display: none;
}

.filter-btn.active::before {
    display: inline;
}

.filter-btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* --- Lightbox --- */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

#lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 5px;
    animation: fadeIn 0.3s ease-in;
}

.lightbox-nav, .close {
    position: absolute;
    color: var(--color-white);
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease, transform 0.2s ease;
}

.close {
    top: 20px;
    right: 30px;
    font-size: 40px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    font-size: 30px;
    padding: 15px;
    border-radius: 5px;
}

.lightbox-nav:hover, .close:hover {
    color: var(--color-primary);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.9);
}

.prev { left: 20px; }
.next { right: 20px; }

/* --- Mobile Lightbox Navigation --- */
.mobile-lightbox-nav {
    display: none; /* Hidden by default, shown on mobile */
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 20px;
    z-index: 2001;
}

.mobile-nav-btn {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.mobile-nav-btn:active,
.mobile-nav-btn.touch-active {
  color: var(--color-white);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* Prevent persistent focus state on mobile */
.mobile-nav-btn:focus {
  outline: none;
}

/* Explicit normal state to override any persistent states */
.mobile-nav-btn:not(:active):not(.touch-active) {
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.mobile-nav-btn:disabled,
.mobile-nav-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Desktop hover effect for mobile buttons (tablets/larger screens) */
@media (hover: hover) {
    .mobile-nav-btn:hover {
        background-color: var(--color-primary);
    }
}

/* --- About Me Section --- */
#about {
    max-width: 800px;
    margin: 0 auto;
}

#about p {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: left;
}

/* --- Testimonials Section --- */
#testimonios {
    background-color: var(--color-surface);
}

.custom-reviews-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--color-surface-light);
    border-radius: 10px;
    padding: 30px;
}

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

.review-item {
    background-color: var(--color-surface);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-image img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.reviewer-name { font-weight: bold; }
.review-date { font-size: 14px; color: #aaa; }
.review-rating { margin: 10px 0; color: var(--color-primary); }
.review-text { flex-grow: 1; font-size: 16px; line-height: 1.5; }

/* Reviews footer and write review button */
.reviews-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    text-align: center;
}

.write-review-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.write-review-btn:hover {
    background-color: var(--color-primary-dark);
    text-decoration: none;
}

.google-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    border-radius: 50%;
    padding: 5px;
    margin-right: 8px;
    width: 24px;
    height: 24px;
    box-sizing: content-box;
}

.google-icon-button svg {
    width: 18px;
    height: 18px;
}

.powered-by {
    font-size: 14px;
    color: #aaa;
    text-align: center;
}

/* Reviews summary styling */
.reviews-summary {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.rating-value {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--color-text);
}

.rating-stars {
    font-size: 24px;
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.star {
    color: var(--color-primary);
}

.rating-count {
    font-size: 16px;
    color: #aaa;
    margin-bottom: 15px;
}

.google-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.google-icon svg {
    width: 24px;
    height: 24px;
}

/* --- Social Media Buttons --- */
.social-media {
    padding: 40px 0;
    background-color: var(--color-surface);
    text-align: center;
}

.social-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    font-size: 26px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin: 0 10px;
}

.social-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
    text-decoration: none;
}

.social-btn.instagram { background-color: #e4405f; }
.social-btn.tiktok { background-color: var(--color-black); }

/* --- Cookie Banner & Modal --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(34, 34, 34, 0.95);
    color: var(--color-text);
    padding: 20px;
    z-index: 3000;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2);
    display: none; /* Managed by JS */
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p { margin: 0; }

.cookie-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-content a:hover {
    color: var(--color-primary-light);
}

.cookie-buttons { display: flex; gap: 10px; }

.cookie-btn,
.cookie-accept,
.cookie-reject {
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-heading-other);
    font-size: 16px;
    transition: all 0.3s ease;
}

#accept-cookies,
.cookie-accept {
    background-color: var(--color-primary);
    color: var(--color-background);
}
#accept-cookies:hover,
.cookie-accept:hover { background-color: var(--color-primary-dark); }

#reject-cookies,
.cookie-reject {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}
#reject-cookies:hover,
.cookie-reject:hover { background-color: rgba(255, 255, 255, 0.1); }

/* Cookie banner mobile responsiveness */
@media (max-width: 1199px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-accept,
    .cookie-reject {
        font-size: 14px;
        padding: 10px 20px;
    }
}

.policy-modal {
    display: none; /* Managed by JS */
    position: fixed;
    z-index: 3001;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.policy-content {
    background-color: var(--color-surface);
    color: var(--color-text);
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #444;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 5px;
    position: relative;
}

.policy-content h2 {
    color: var(--color-text);
    margin-top: 0;
}

.policy-text {
    line-height: 1.6;
}

.policy-text p {
    margin-bottom: 15px;
}

.policy-text ul {
    margin: 15px 0;
    padding-left: 20px;
}

.policy-text li {
    margin-bottom: 8px;
}

.policy-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.policy-close:hover { color: var(--color-primary); }

/* --- FAQ Page --- */
#faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding-top: calc(var(--nav-height) + 40px);
    text-align: left; /* Override section center alignment for FAQ */
}

.faq-title {
    text-align: center; /* Keep the main title centered */
    margin-bottom: 40px;
}

.faq-question {
    background-color: var(--color-surface-light);
    padding: 15px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s ease;
    gap: 20px;
    position: relative;
    border: 1px solid transparent;
}

.faq-question:hover { 
    background-color: #3a3a3a;
    border-color: var(--color-primary);
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1em;
    color: var(--color-text);
    flex: 1;
    padding-right: 10px;
    text-align: left;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.faq-question::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.2em;
    color: var(--color-primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    line-height: 1;
    margin-top: 2px;
}

.faq-question.active {
    background-color: #3a3a3a;
    border-color: var(--color-primary);
    margin-bottom: 0;
}

.faq-question.active::after {
    transform: rotate(-180deg);
}

.faq-question.active h4 {
    color: var(--color-primary);
}

.faq-answer {
    background-color: var(--color-surface);
    border-radius: 0 0 5px 5px;
    margin-top: -5px;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 20px;
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 15px;
    border: 1px solid var(--color-primary);
    border-top: none;
}

/* --- Blog Article --- */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 40px) 20px 40px;
}

.article-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: var(--color-primary);
    width: 0%;
    z-index: 1001;
    transition: width 0.2s linear;
}

/* Article Header */
.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-category {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-background);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 20px;
}

.article-title {
    font-family: var(--font-heading-other);
    font-size: 2.5em;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Blog Article Page - Roboto for better readability */
[data-page="blog-article"] .article-title {
    font-family: var(--font-body);
    font-weight: 700;
}

[data-page="blog-article"] .article-toc-title {
    font-family: var(--font-body);
    font-weight: 600;
}

[data-page="blog-article"] .article-content h2 {
    font-family: var(--font-body);
    font-weight: 700;
}

[data-page="blog-article"] .article-content h3 {
    font-family: var(--font-body);
    font-weight: 600;
}

[data-page="blog-article"] .article-cta h3 {
    font-family: var(--font-body);
    font-weight: 700;
}

[data-page="blog-article"] .article-cta .whatsapp-btn {
    font-family: var(--font-body);
    font-weight: 600;
}

[data-page="blog-article"] .gallery-btn {
    font-family: var(--font-body);
    font-weight: 600;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.95em;
    margin-bottom: 30px;
}

.article-author, .article-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Featured Image */
.article-featured-image {
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 500px;
    object-fit: cover;
    object-position: center 70%;
    border-radius: 12px;
    margin-bottom: 40px;
    display: block;
}

/* Figure and figcaption styling */
.article-container figure {
    margin: 15px 0;
}

/* Reduce margin for figures that have captions - more compatible approach */
.article-content figure {
    margin: 10px 0 8px 0;
}

.article-container figcaption {
    margin-top: 2px;
    padding: 3px 6px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    font-size: 14px;
    color: var(--color-text-secondary);
    font-style: italic;
    text-align: left;
    border-left: 2px solid var(--color-primary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Content images within the article */
.article-content figure {
    margin: 20px 0;
}

.article-content figure img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Table of Contents */
.article-toc {
    background-color: var(--color-surface);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    border-left: 4px solid var(--color-primary);
}

.article-toc-title {
    font-family: var(--font-heading-other);
    color: var(--color-primary);
    font-size: 1.4em;
    margin-bottom: 20px;
}

.article-toc-list {
    list-style: none;
    padding: 0;
}

.article-toc-list li {
    margin-bottom: 8px;
}

.article-toc-list a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.article-toc-list a:hover {
    color: var(--color-primary);
}

.article-toc-subitem {
    margin-left: 20px;
    font-size: 0.95em;
}

.article-toc-subitem a {
    font-weight: 400;
}

/* Article Content */
.article-content-wrapper {
    margin-bottom: 50px;
}

.article-content {
    line-height: 1.8;
    font-size: 1.1em;
}

.article-content h2 {
    font-family: var(--font-heading-other);
    color: var(--color-primary);
    font-size: 1.8em;
    line-height: 1.3;
    margin: 25px 0 15px 0;
    padding-top: 15px;
    border-top: 2px solid var(--color-surface);
}

.article-content h2:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.article-content h3 {
    font-family: var(--font-heading-other);
    color: var(--color-text);
    font-size: 1.5em;
    margin: 30px 0 15px 0;
}

/* Article Images */
.article-content picture {
    display: block;
    margin: 30px auto;
    max-width: 100%;
}

.article-content picture img {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* Article Callouts */
.article-callout {
    background-color: var(--color-surface);
    border-left: 4px solid var(--color-primary);
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.article-callout p {
    margin: 0;
    font-style: italic;
    color: var(--color-text);
}

/* Related Articles */
.related-articles {
    background-color: var(--color-surface);
    border-radius: 12px;
    padding: 40px;
    margin-top: 50px;
}

.related-articles h3 {
    font-family: var(--font-heading-other);
    color: var(--color-primary);
    font-size: 1.6em;
    margin-bottom: 30px;
    text-align: center;
}

.related-posts {
    display: grid;
    gap: 30px;
}

.related-post {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: var(--color-surface-light);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.related-post-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content {
    flex: 1;
}

.related-post-title {
    font-family: var(--font-heading-other);
    color: var(--color-text);
    font-size: 1.2em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.related-post-excerpt {
    color: var(--color-text-muted);
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.related-post-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.related-post-link:hover {
    color: var(--color-primary-dark);
}

/* Mobile Styles for Articles */
@media (max-width: 768px) {
    .article-container {
        padding: calc(var(--nav-height) + 20px) 15px 20px;
    }

    .article-title {
        font-size: 2em;
    }

    .article-meta {
        flex-direction: column;
        gap: 15px;
    }

    .article-content {
        font-size: 1.05em;
    }

    .article-content h2 {
        font-size: 1.6em;
        line-height: 1.3;
        margin: 20px 0 12px 0;
        padding-top: 12px;
    }

    .article-content h3 {
        font-size: 1.3em;
    }

    .article-toc {
        padding: 20px;
    }

    .related-post {
        flex-direction: column;
        text-align: center;
    }

    .related-post-image {
        width: 100%;
        height: 150px;
        align-self: center;
    }
}

/* Article CTA Section */
.article-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 50px 0;
    color: var(--color-white);
}

.article-cta h3 {
    color: var(--color-white);
    font-family: var(--font-heading-other);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.article-cta p {
    color: var(--color-white);
    font-size: 1.1em;
    margin-bottom: 25px;
    opacity: 0.9;
}

.article-cta-button {
    display: inline-block;
    background-color: var(--color-white);
    color: var(--color-primary);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.article-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: var(--color-primary-dark);
}

/* Article Gallery CTA - Subtle inline promotion */
.article-gallery-cta {
    background-color: var(--color-surface-light);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 30px 0;
    border-left: 4px solid var(--color-primary);
}

/* Review CTA - Subtle call to action for Google reviews */
.review-cta {
    background-color: var(--color-surface-light);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 30px 0 0 0;
    border-top: 1px solid var(--color-border);
}

.review-cta p {
    color: var(--color-text-muted);
    font-size: 0.95em;
    margin: 0;
    line-height: 1.6;
}

.review-cta a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.review-cta a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ==========================================================================
   7. ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   8. MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1199px) {
    :root {
        --nav-height: 60px;
    }

    body {
        font-size: 16px;
    }

    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    .hero-content h1 { font-size: 3em; }

    /* --- Mobile Site Title --- */
    .nav-center .site-title {
        font-size: 32px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 250px;
    }

    /* --- Mobile Navigation --- */
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background-color: var(--color-surface);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        padding: 40px 20px;
        box-sizing: border-box;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        max-width: 300px;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 18px 24px;
        background-color: var(--color-surface-light);
        border-radius: 12px;
        border: 1px solid var(--color-primary);
        font-family: var(--font-heading-other);
        font-size: 18px;
        font-weight: 500;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .nav-links a:hover {
        background-color: var(--color-primary);
        color: var(--color-white);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
        text-decoration: none;
    }

    .hamburger-btn {
        display: block;
    }

    .nav-right {
        display: flex; /* Keep nav-right visible for desktop WhatsApp button */
        align-items: center;
    }

    /* Hide desktop WhatsApp button text on mobile */
    .nav-right .whatsapp-btn:not(.mobile-nav-whatsapp) {
        display: none;
    }

    /* Show mobile menu WhatsApp button */
    .mobile-menu-whatsapp {
        display: block !important;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--color-primary);
    }

    /* Show floating WhatsApp button only on mobile */
    .floating-whatsapp {
        display: flex !important;
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }

    /* --- Gallery --- */
    .gallery-preview-grid, .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    /* --- FAQ Section Mobile Fixes --- */
    #faq-section {
        text-align: left; /* Override the section center alignment */
    }

    .faq-question {
        padding: 12px 16px; /* Slightly reduce padding on mobile */
        gap: 15px; /* Reduce gap slightly for mobile */
    }

    .faq-question h4 {
        font-size: 1.05em; /* Slightly smaller than desktop but still readable */
        line-height: 1.3; /* Tighter line height for mobile */
    }

    /* --- Lightbox --- */
    .lightbox-nav { display: none; } /* Hide desktop arrows on mobile */
    .mobile-lightbox-nav { display: flex; } /* Show mobile navigation */
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.5em; }
    .hero-content p { font-size: 1.2em; }

    /* --- Very Small Screens Site Title --- */
    .nav-center .site-title {
        font-size: 24px;
        max-width: 180px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Additional media query for mobile phones */
@media (max-width: 768px) {
    /* --- Mobile Phone Site Title --- */
    .nav-center .site-title {
        font-size: 28px;
        max-width: 200px;
    }
}

/* --- Mobile WhatsApp Button Styles --- */
/* Mobile menu WhatsApp button */
.mobile-menu-whatsapp {
    display: none; /* Hidden by default, shown in mobile media query */
}

.mobile-menu-whatsapp-btn {
    background-color: var(--color-success) !important;
    border-color: var(--color-success) !important;
    color: var(--color-background) !important;
    font-weight: bold !important;
}

.mobile-menu-whatsapp-btn i {
    color: var(--color-white) !important;
}

.mobile-menu-whatsapp-btn:hover {
    background-color: var(--color-success-dark) !important;
    border-color: var(--color-success-dark) !important;
    color: var(--color-background) !important;
}

.mobile-menu-whatsapp-btn:hover i {
    color: var(--color-white) !important;
}

/* ==========================================================================
   7. FLOATING BUTTONS
   ========================================================================== */

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background-color: var(--color-primary);
    color: var(--color-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 998;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.1);
    text-decoration: none;
    color: var(--color-white);
}

.back-to-top.visible {
    display: flex;
}

/* Floating WhatsApp button - Mobile only */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--color-success);
    color: var(--color-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none; /* Hidden by default, shown only on mobile */
    align-items: center;
    justify-content: center;
    font-size: 26px;
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    background-color: var(--color-success-dark);
    transform: scale(1.1);
    text-decoration: none;
    color: var(--color-white);
}