/*
Theme Name: BCNLIP Template
Theme URI: https://bcnlip.com
Author: Elevaiti
Author URI: https://elevaiti.com
Description: Tema personalizado BCNLIP - Migración de React a WordPress Gutenberg
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: bcnlip
Requires at least: 6.4
Requires PHP: 8.0
*/

/* ============================================================
   CSS VARIABLES — BCNLIP Brand
   ============================================================ */
:root {
    /* Brand Colors */
    --bcnlip-teal:       #1C5263;
    --bcnlip-yellow:     #ebb524;
    --bcnlip-white:      #ffffff;

    /* Stone palette (Tailwind-compatible) */
    --stone-50:   #fafaf9;
    --stone-100:  #f5f5f4;
    --stone-200:  #e7e5e4;
    --stone-300:  #d6d3d1;
    --stone-400:  #a8a29e;
    --stone-500:  #78716c;
    --stone-600:  #57534e;
    --stone-700:  #44403c;
    --stone-800:  #292524;
    --stone-900:  #1c1917;

    /* Typography */
    --font-mono:  "Courier New", Courier, monospace;
    --font-sans:  "Inter", "Roboto", sans-serif;

    /* Spacing */
    --container-max:  1280px;
    --section-py:     5rem;
    --section-px:     1.5rem;

    /* Transitions */
    --transition: 0.3s ease;

    /* WordPress custom properties */
    --wp--preset--color--bcnlip-teal:   var(--bcnlip-teal);
    --wp--preset--color--bcnlip-yellow: var(--bcnlip-yellow);
    --wp--preset--color--stone-900:     var(--stone-900);
    --wp--preset--color--stone-50:      var(--stone-50);
    --wp--style--global--content-size:  var(--container-max);
    --wp--style--global--wide-size:     1400px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================================================
   BASE
   ============================================================ */
body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--stone-900);
    background-color: var(--bcnlip-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono);
    line-height: 1.2;
    font-weight: 700;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   CONTAINER UTILITY
   ============================================================ */
.bcnlip-container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--section-px);
}

@media (min-width: 640px)  { .bcnlip-container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .bcnlip-container { padding-inline: 2rem; } }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left  { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
    opacity: 1;
    transform: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: 2px solid var(--bcnlip-yellow);
    background: var(--bcnlip-yellow);
    color: var(--stone-900);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary:hover {
    background: transparent;
    color: var(--bcnlip-yellow);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: 2px solid white;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* ============================================================
   SECTION DEFAULTS
   ============================================================ */
.section-py   { padding-block: var(--section-py); }
.bg-dark      { background-color: var(--stone-900); }
.bg-light     { background-color: var(--stone-50); }
.bg-yellow    { background-color: var(--bcnlip-yellow); }
.text-yellow  { color: var(--bcnlip-yellow); }

/* ============================================================
   KEN BURNS ANIMATION (used in hero)
   ============================================================ */
@keyframes kenBurns {
    0%   { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-ken-burns {
    animation: kenBurns 10s ease-out forwards;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-400 { animation-delay: 0.4s; }

/* ============================================================
   CONTAINER VARIANTS
   ============================================================ */
.bcnlip-container-xl {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

@media (min-width: 640px)  { .bcnlip-container-xl { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .bcnlip-container-xl { padding-inline: 2rem; } }

.bcnlip-container-md {
    max-width: 64rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

@media (min-width: 640px)  { .bcnlip-container-md { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .bcnlip-container-md { padding-inline: 2rem; } }

/* ============================================================
   ACCENT COLOR SPAN
   ============================================================ */
.bcnlip-accent {
    color: #ebb524;
}

/* ============================================================
   HEADER — Pixel-perfect from React reference
   ============================================================ */
.bcnlip-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: #ffffff;
    border-bottom: 1px solid #f5f5f4;
    transition: all 0.3s;
}

.bcnlip-header__inner {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

@media (min-width: 640px)  { .bcnlip-header__inner { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .bcnlip-header__inner { padding-inline: 2rem; height: 5rem; } }

.bcnlip-header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    text-decoration: none;
}

.bcnlip-header__logo img {
    height: 3rem;
    width: auto;
    border-radius: 50%;
}

@media (min-width: 768px) {
    .bcnlip-header__logo img { height: 3.5rem; }
}

.bcnlip-header__logo-text {
    display: none;
    flex-direction: column;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .bcnlip-header__logo-text { display: flex; }
}

.bcnlip-header__logo-name {
    font-weight: 700;
    font-size: 0.875rem;
    color: #1c1917;
    letter-spacing: -0.025em;
    font-family: "Courier New", Courier, monospace;
}

.bcnlip-header__logo-tagline {
    font-size: 0.625rem;
    color: #78716c;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.bcnlip-header__nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .bcnlip-header__nav { display: flex; }
}

.bcnlip-nav__menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bcnlip-nav__menu a,
.bcnlip-nav__menu li > a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #57534e;
    font-family: "Courier New", Courier, monospace;
    text-decoration: none;
    transition: color 0.2s;
}

.bcnlip-nav__menu a:hover { color: #1c1917; }

.bcnlip-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bcnlip-header__phone {
    display: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: #57534e;
    font-family: "Courier New", Courier, monospace;
}

@media (min-width: 1024px) {
    .bcnlip-header__phone { display: block; }
}

.bcnlip-header__cta {
    background-color: #ebb524;
    color: #1c1917 !important;
    font-weight: 700;
    padding: 0.625rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    font-family: "Courier New", Courier, monospace;
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.bcnlip-header__cta:hover {
    background-color: #d9a520;
    color: #1c1917 !important;
}

.bcnlip-header__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

@media (min-width: 768px) {
    .bcnlip-header__toggle { display: none; }
}

.bcnlip-header__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1c1917;
    transition: all 0.3s;
}

/* Mobile menu */
.bcnlip-mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: #ffffff;
    border-top: 1px solid #f5f5f4;
}

.bcnlip-mobile-menu.is-open {
    display: flex;
}

.bcnlip-mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bcnlip-mobile-menu__list a {
    display: block;
    padding: 0.75rem 0;
    font-family: "Courier New", Courier, monospace;
    color: #1c1917;
    border-bottom: 1px solid #f5f5f4;
}

/* ============================================================
   FOOTER — Pixel-perfect from React reference
   ============================================================ */
.bcnlip-footer {
    background-color: #1C5263;
    color: #ffffff;
}

.bcnlip-footer__inner {
    padding-block: 4rem;
}

.bcnlip-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

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

@media (min-width: 1024px) {
    .bcnlip-footer__grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.bcnlip-footer__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.bcnlip-footer__logo-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background-color: #ebb524;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: #1c1917;
    flex-shrink: 0;
}

.bcnlip-footer__logo-name {
    font-weight: 700;
    font-size: 1.25rem;
    font-family: "Courier New", Courier, monospace;
}

.bcnlip-footer__logo-tagline {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
}

.bcnlip-footer__desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.bcnlip-footer__social {
    display: flex;
    gap: 0.75rem;
}

.bcnlip-footer__social-link {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.2s;
}

.bcnlip-footer__social-link:hover {
    background-color: #ebb524;
    color: #1c1917;
}

.bcnlip-footer__col-title {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.bcnlip-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bcnlip-footer__links a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-family: "Courier New", Courier, monospace;
    transition: color 0.2s;
}

.bcnlip-footer__links a:hover {
    color: #ffffff;
}

.bcnlip-footer__contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    font-family: "Courier New", Courier, monospace;
}

.bcnlip-footer__contact a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.bcnlip-footer__contact a:hover { color: #ffffff; }

.bcnlip-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.bcnlip-footer__contact-icon {
    color: #ebb524;
    flex-shrink: 0;
}

.bcnlip-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .bcnlip-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.bcnlip-footer__copy {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    font-family: "Courier New", Courier, monospace;
}

.bcnlip-footer__legal {
    display: flex;
    gap: 1.5rem;
}

.bcnlip-footer__legal a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    font-family: "Courier New", Courier, monospace;
    text-decoration: none;
    transition: color 0.2s;
}

.bcnlip-footer__legal a:hover { color: #ffffff; }

/* ============================================================
   PAGE CONTENT OFFSET (for fixed header)
   ============================================================ */
#page-content {
    padding-top: 0;
}
