/**
 * Custom styles for Trepal Child Theme
 * Este archivo contiene estilos personalizados adicionales
 */
/* ==========================================================================
   cookies banner styles
   ========================================================================== */
.cky-notice-group {
    display: flex
;
    justify-content: space-between;
    align-items: flex-start !important;
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
    flex-direction: column;
    gap: 20px;
}
.cky-consent-bar .cky-notice {
    width: 1200px;
    margin: 0 auto;
}
.cky-notice-btn-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 0 !important;
}

.cky-btn-preferences {
    border: none !important;
}
/* Estilo general */
.cky-consent-bar {
    background-color: #fff;
    border: 1px solid #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
}

/* Título con icono */
.cky-title, .cky-preference-title {
    font-size: 18px;
    font-weight: bold;
    color: #212121;
    position: relative;
    padding-left: 30px; /* espacio para el icono */
}

.cky-title::before, .cky-preference-title::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f563"; /* Código del icono fa-cookie-bite */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 22px;
    color: #dc2626;
}

/* Botones */
.cky-btn {
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
}

/* Aceptar todas */
.cky-btn-accept {
    background-color: #dc2626;
    color: #fff;
}

.cky-btn-accept::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f00c"; /* fa-check */
    margin-right: 8px;
}

/* Rechazar todas */
.cky-btn-reject {
    background-color: #e5e7eb;
    color: #000;
}


/* Personalizar */
.cky-btn-customize {
    background-color: transparent;
    color: #070707;
    border: 1px solid #e5e7eb;
}

.cky-btn-customize::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f013"; /* fa-gear */
    margin-right: 8px;
}
/* Contenedor general */
.cky-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: Arial, sans-serif;
}

/* Cada acordeón */
.cky-accordion {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Header */
.cky-accordion-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 16px;
    position: relative;
    padding-left: 32px; /* espacio para el icono */
}

/* Descripción */
.cky-accordion-header-des p {
    font-size: 14px;
    color: #212121;
    margin: 0;
}

/* Estado "Siempre activas" */
.cky-always-active {
    background: #d1fae5;
    color: #065f46;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: auto;
}

/* === ICONOS POR CSS === */
.cky-accordion-btn::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    font-size: 18px;
}

/* Cookies Necesarias */
#ckyDetailCategorynecessary .cky-accordion-btn::before {
    content: "\f3ed"; /* fa-shield-alt */
    color: #059669;
}

/* Cookies de Análisis */
#ckyDetailCategoryanalytics .cky-accordion-btn::before {
    content: "\f080"; /* fa-chart-bar */
    color: #2563eb;
}

/* Cookies de Marketing */
#ckyDetailCategoryperformance .cky-accordion-btn::before {
    content: "\f1ea"; /* fa-bullhorn */
    color: #7c3aed;
}

/* Cookies de Preferencias */
#ckyDetailCategoryfunctional .cky-accordion-btn::before {
    content: "\f06e"; /* fa-eye */
    color: #ea580c;
}

/* Advertisement (opcional) */
#ckyDetailCategoryadvertisement .cky-accordion-btn::before {
    content: "\f641"; /* fa-ad */
    color: #dc2626;
}
/* ==========================================================================
   Hero Slider Enhancements
   ========================================================================== */
.carousel-section {
    position: relative;
    height: 504px;
    overflow: hidden;
}

.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.4), transparent);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hero-text {
    text-align: center;
    color: white;
    max-width: 1280px;
    padding: 0 1.5rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 300;
    line-height: 1.8;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow-left {
    left: 1.5rem;
}

.hero-arrow-right {
    right: 1.5rem;
}

.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 20;
}

.hero-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-indicator.active {
    background: white;
    transform: scale(1.25);
}
/* ==========================================================================
  popup styles
   ========================================================================== */
.popup {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}
.popup-content {
    background: #fff;
    width: 50%;
    max-height: 80%;
    overflow-y: auto;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-family: Arial, sans-serif;
}
.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

/* ==========================================================================
   Brand Cards
   ========================================================================== */
/***------------------------------****/
.brand-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    position: absolute;
    border: none;
    background: transparent;
}

.brand-arrow-left {
    left: 1.5rem;
}

.brand-arrow-right {
    right: 1.5rem;
}

.brand-arrow {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.brand-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}
/****-------------------------------***/
.brands-grid {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.brand-card {
    width: 228px;
    height: 405px;
    background: #e8e7e7;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.brand-card:hover {
    background: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.brand-logo-container {
    height: 192px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.3s;
}

.brand-card:hover .brand-logo {
    filter: brightness(0);
}

.brand-info {
    padding: 1.5rem;
    text-align: center;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #808080;
    transition: color 0.3s;
}

.brand-card:hover .brand-name {
    color: #000000;
}

.brand-category {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.375rem;
    font-style: italic;
    margin-bottom: 0.75rem;
    color: #808080;
    transition: color 0.3s;
}

.brand-card:hover .brand-category {
    color: #000000;
}

.brand-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    color: #808080;
    transition: color 0.3s;
}

.brand-card:hover .brand-description {
    color: #000000;
}

/* ==========================================================================
   Home page
   ========================================================================== */
   p.footer-description {
        font-family: 'Inter', 'sans-serif';
        font-weight: 100;
    }
   .footer-logo {
        margin-bottom: 2rem;
    }
   .footer-background {
    inset: 0;
    background-image: url(https://trepal.es/wp-content/uploads/2025/10/ico-bg-footer.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 0;
}
a.glink.gt-current-lang {
    font-weight: bold;
    color: #dc2626;
}
a.glink.nturl.notranslate{
    color: #dc2626;
}
.w-28 {
    width: 7rem;
}
.h-28 {
    height: 7rem;
}
.font-playfair{
   font-family: 'Playfair Display', serif;
}
.font-inter{
   font-family: 'Inter', serif;
}
.fs-72{
   font-size: 4.5rem;
}
.fs-60{
    font-size: 3.75rem;
}
.fs-48{
    font-size: 3rem;
}
.font-cormorant{
    font-family: 'Cormorant Garamond', serif;
}
.bg-image{
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
.w-8{
    width: 32px;
}
.h-8{
    height: 32px;
} 
.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.bg-gray-200 {
    --tw-bg-opacity: 1;
    background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}
.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}
    .page-banner {
        position: relative;
        height: 100vh;
        overflow: hidden;
    }

    .banner-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .banner-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5), transparent);
    }

    .banner-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .banner-text {
        max-width: 64rem;
        margin: 0 auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .banner-subtitle {
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.3em;
        color: rgba(255, 255, 255, 0.8);
        font-weight: 300;
        margin-bottom: 1rem;
    }

    .banner-title {
        font-size: 4.5rem;
        font-weight: 100;
        color: white;
        margin-bottom: 1.5rem;
        line-height: 0.85;
        letter-spacing: -0.025em;
    }

    @media (min-width: 1024px) {
        .banner-title {
            font-size: 9rem;
        }
    }

    .banner-title-accent {
        font-weight: 300;
        font-style: italic;
        color: #d1d5db;
    }

    .banner-divider {
        width: 6rem;
        height: 0.125rem;
        background: linear-gradient(to right, #d1d5db, transparent);
        margin-bottom: 2rem;
    }

    .banner-heading {
        font-size: 1.875rem;
        color: white;
        margin-bottom: 1rem;
        font-weight: 300;
        letter-spacing: 0.025em;
    }

    @media (min-width: 1024px) {
        .banner-heading {
            font-size: 2.25rem;
        }
    }

    .banner-description-text {
        font-size: 1.25rem;
        color: #d1d5db;
        margin-bottom: 1rem;
        font-weight: 300;
        font-style: italic;
    }

    @media (min-width: 1024px) {
        .banner-description-text {
            font-size: 1.5rem;
        }
    }

    .banner-description-detail {
        font-size: 1.125rem;
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.625;
        font-weight: 300;
        max-width: 48rem;
        margin: 0 auto;
    }
    .gallery-section {
        margin-top: 6rem;
    }

    .gallery-header {
        text-align: center;
        margin-bottom: 3rem;
    }

    .gallery-title {
        font-size: 2.5rem;
        font-weight: 300;
        color: #1f2937;
        margin-bottom: 1rem;
        letter-spacing: -0.025em;
    }

    .gallery-description {
        font-size: 1.125rem;
        color: #6b7280;
        max-width: 48rem;
        margin: 0 auto;
        font-weight: 300;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    @media (min-width: 768px) {
        .gallery-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 1024px) {
        .gallery-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    .gallery-item {
        position: relative;
        cursor: pointer;
        overflow: hidden;
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .gallery-item:hover {
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    }

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

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

    .gallery-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1rem;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
        color: white;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

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

    .gallery-overlay h4 {
        font-weight: 500;
        margin: 0;
    }

    /* Lightbox */
    .lightbox-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.9);
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }

    .lightbox-container {
        position: relative;
        max-width: 80rem;
        width: 100%;
    }

    .lightbox-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 10;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(4px);
        color: white;
        padding: 0.5rem;
        border-radius: 50%;
        border: none;
        cursor: pointer;
        transition: background 0.3s ease;
        font-size: 1.5rem;
        width: 3rem;
        height: 3rem;
    }

    .lightbox-close:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(4px);
        color: white;
        padding: 0.75rem;
        border-radius: 50%;
        border: none;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .lightbox-nav:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    .lightbox-nav i {
        font-size: 1.5rem;
    }

    #lightbox-image {
        width: 100%;
        height: auto;
        max-height: 80vh;
        object-fit: contain;
        border-radius: 0.5rem;
    }

    .lightbox-counter {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(4px);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 1rem;
        font-size: 0.875rem;
    }
/* Colores para los pasos */
.step-number { color: #9a958e; }
.color-ocre { color: #9a958e; }
.color-ocre .step-number { color: #9a958e; }
/* ==========================================================================
   Mobile Menu
   ========================================================================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 1.5rem;
    height: 2px;
    background: var(--color-gray-700);
    transition: all 0.3s;
}

.menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translateY(6px);
}

.menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translateY(-6px);
}

@media (max-width: 768px) {
    
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .language-selector {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--color-gray-300);
        padding-top: 1rem;
        margin-top: 1rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.section {
    padding: 6rem 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Responsive Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--color-gray-700);
    color: var(--color-gray-700);
}

.btn-secondary:hover {
    background: var(--color-gray-700);
    color: white;
}

/* Cards */
.card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* Prose (Content Styling) */
.prose {
    color: var(--color-gray-700);
    max-width: 65ch;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.prose h2 {
    font-size: 1.875rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.prose h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

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

.prose a:hover {
    color: var(--color-primary-dark);
}

.prose ul,
.prose ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose img {
    border-radius: 0.5rem;
    margin: 2rem 0;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .nav-fixed,
    .footer,
    .cookie-banner {
        display: none;
    }
}
