/*
 * Camero Painting — estilos auxiliares (texturas swatch, FAQ, header)
 * Añadido encima del CSS compilado (main.css).
 */

html {
    scroll-behavior: smooth;
}

.site-header {
    transition: box-shadow .3s ease, background-color .3s ease;
}

/* FAQ acordeón */
.faq-panel {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height .5s ease, padding .5s ease;
}

.faq-panel.open {
    max-height: 96rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.faq-chevron {
    transition: transform .3s ease;
}

/* --- Texturas de swatch (aplicadas sobre el color base) --- */
#swatch-preview .texture-overlay {
    opacity: 0;
    transition: opacity .5s ease;
}

/* Cloud Wash: gradiente suave radial (estética original) */
#swatch-preview[data-texture="texture-cloud"] .texture-overlay.cloud {
    opacity: .35;
    background-image: radial-gradient(ellipse at top, rgba(255, 255, 255, .3), rgba(0, 0, 0, .1) 45%, rgba(0, 0, 0, .05) 70%, transparent);
    mix-blend-mode: multiply;
}

/* Cross-Hatch: patrón de trazos diagonal fino */
#swatch-preview[data-texture="texture-crosshatch"] .texture-overlay.crosshatch {
    opacity: .45;
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .18) 0 2px, transparent 2px 10px),
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, .10) 0 2px, transparent 2px 9px);
    mix-blend-mode: multiply;
}

/* Imagen de textura personalizada subida desde el admin */
#swatch-preview[data-texture="texture-image"] .texture-overlay.image {
    opacity: .5;
    mix-blend-mode: multiply;
}

#swatch-preview[data-texture="texture-image"] .texture-overlay.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Lightbox de portfolio --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(12, 14, 19, .88);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-fig {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    margin: 0;
}

.lightbox-fig img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}

.lightbox-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 48px 26px 22px;
    border-radius: 0 0 6px 6px;
    color: #FFFFFF !important;
    background: linear-gradient(to top, rgba(10, 12, 16, 0.95) 0%, rgba(10, 12, 16, 0.75) 60%, transparent 100%);
}

.lightbox-strap {
    margin: 0 0 6px !important;
    color: #C89D5C !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .14em !important;
}

.lightbox-title,
.lightbox-cap h3.lightbox-title,
h3#lightbox-title {
    margin: 0 0 4px !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.lightbox-loc {
    margin: 0 !important;
    color: #E2E8F0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, .22);
    transform: rotate(90deg);
}

/* --- Utilidad faltante de Tailwind en el build compilado (formulario) --- */
@media (min-width: 768px) {
    .md\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

/* --- Utilidades faltantes de Tailwind usadas por el formulario --- */
.py-2\.5 {
    padding-top: .625rem;
    padding-bottom: .625rem;
}

.focus\:border-brandNavy:focus {
    border-color: #1b1d22;
}

/* --- Utilidades Tailwind ausentes en el build del diseñador (v2) --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cursor-zoom-in {
    cursor: zoom-in;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.list-disc {
    list-style-type: disc;
}

.pl-5 {
    padding-left: 1.25rem;
}

.mb-5 {
    margin-bottom: 1.25rem;
}

.space-y-1> :not([hidden])~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}

.group:hover .group-hover\:scale-102 {
    --tw-scale-x: 1.02;
    --tw-scale-y: 1.02;
    scale: var(--tw-scale-x) var(--tw-scale-y);
}

.peer:checked~.peer-checked\:bg-brandNavy {
    background-color: var(--color-brandNavy, #1b1d22);
}

.peer:checked~.peer-checked\:text-brandCream {
    color: var(--color-brandCream, #f7f3ed);
}

.peer:checked~.peer-checked\:shadow-sm {
    --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
    box-shadow: var(--tw-shadow);
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Alertas de estado del formulario (exito / error) */
.bg-emerald-50 {
    background-color: #ecfdf5;
}

.text-emerald-800 {
    color: #065f46;
}

.border-emerald-600\/40 {
    border-color: rgb(5 150 105 / .4);
}

.bg-rose-50 {
    background-color: #fff1f2;
}

.text-rose-700 {
    color: #be123c;
}

.border-rose-600\/40 {
    border-color: rgb(225 29 72 / .4);
}

.border-2 {
    border-width: 2px;
}

/* Prosa rica (bio de fundador, notas de portfolio) */
.prose {
    max-width: 72ch;
}

.prose p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.prose p:last-child {
    margin-bottom: 0;
}

.prose strong {
    font-weight: 600;
}

/* Base de texto de Tailwind para el formulario al no compilarse la utilidad */
.text-xs {
    font-size: .75rem;
    line-height: 1rem;
}

/* --- Swatch Studio utilities --- */
.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}
.mix-blend-color {
    mix-blend-mode: color;
}
.mix-blend-multiply {
    mix-blend-mode: multiply;
}
.opacity-55 {
    opacity: 0.55;
}
.opacity-50 {
    opacity: 0.5;
}
.gap-3\.5 {
    gap: 0.875rem;
}
@media (min-width: 640px) {
    .sm\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* --- Portfolio filter button active/inactive states --- */
.port-filter {
    background-color: #FAFAF7;
    color: #383D47;
    border: 1px solid #E5DFD5;
    transition: all 0.3s ease-in-out;
}
.port-filter:hover {
    border-color: #1B1D22;
    color: #1B1D22;
}
.port-filter.active {
    background-color: #1B1D22 !important;
    color: #F7F3ED !important;
    border-color: #1B1D22 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* --- Navigation Header Utilities --- */
#site-header {
    transition: box-shadow .3s ease, background-color .3s ease;
}

@media (min-width: 768px) {
    .md\:hidden {
        display: none !important;
    }
    .md\:flex {
        display: flex !important;
    }
}

@media (min-width: 1024px) {
    .lg\:flex {
        display: flex !important;
    }
}

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.border-rawPlaster\/50 {
    border-color: rgba(236, 230, 222, 0.5);
}

.bg-chalkPure\/90 {
    background-color: rgba(250, 250, 247, 0.9);
}