/*
Theme Name: VIBA Theme
Theme URI: https://vivirbienahora.com
Author: BambuSoftware
Author URI: https://bambusoftware.com
Description: Tema personalizado para el proyecto inmobiliario VIBA — landings Preact (Vite) con CMS WordPress, preventa y captación de leads.
Version: 2.0.85
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-colors, custom-logo, one-column, portfolio
Text Domain: viba
*/

/* Global Intl-Tel-Input Styles */
.iti { width: 100%; display: block; }
.iti__selected-dial-code { font-weight: 600; margin-left: 4px; color: inherit; }
.iti input[type="tel"] { padding-left: 52px !important; }
.iti__country-list { background-color: #fff; color: #000; font-family: sans-serif; }

/* Century Gothic Pro - fuente de marca local */
@font-face {
    font-family: 'Century Gothic Pro';
    src: url('assets/fonts/Century_Gothic_Pro.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Century Gothic Pro';
    src: url('assets/fonts/Century_Gothic_Pro_Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Century Gothic Pro';
    src: url('assets/fonts/Century_Gothic_Pro_Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Century Gothic Pro';
    src: url('assets/fonts/Century_Gothic_Pro_Bold_Italic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Century Gothic Pro';
    src: url('assets/fonts/Century_Gothic_Pro_Bold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Century Gothic Pro';
    src: url('assets/fonts/Century_Gothic_Pro_Bold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Century Gothic Pro';
    src: url('assets/fonts/Century_Gothic_Pro_Bold.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Century Gothic Pro';
    src: url('assets/fonts/Century_Gothic_Pro_Bold_Italic.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

/* Brand tokens used by app utilities in assets/dist/viba.css */
:root {
  --background: #dad6c8;
  --foreground: #454139;
  --primary: #454139;
  --primary-foreground: #dad6c8;
  --secondary: #c0b5a5;
  --secondary-foreground: #454139;
  --accent: #c0b5a5;
  --accent-foreground: #dad6c8;
  --border: rgba(69, 65, 57, 0.15);
  --card: #dad6c8;
  --muted: #c0b5a5;
  --muted-foreground: #977a5c;
  --viba-btn-bg: #454139;
  --viba-btn-fg: #dad6c8;
  --viba-btn-border: #454139;
  --viba-h1: clamp(2.625rem, 8vw, 5rem);
  --viba-h2: clamp(2rem, 4.5vw, 3.25rem);
  --viba-h3: clamp(1.5rem, 3vw, 2.25rem);
  --viba-h4: clamp(1.25rem, 2vw, 1.75rem);
  --viba-h5: clamp(1.125rem, 1.4vw, 1.25rem);
  --viba-h6: 1rem;
}

html[data-viba-scheme="dark"] {
  --background: #454139;
  --foreground: #dad6c8;
  --primary: #dad6c8;
  --primary-foreground: #454139;
  --secondary: #454139;
  --secondary-foreground: #dad6c8;
  --accent: #454139;
  --accent-foreground: #dad6c8;
  --border: rgba(218, 214, 200, 0.18);
  --card: #454139;
  --muted: #454139;
  --muted-foreground: #c0b5a5;
  --viba-btn-bg: #dad6c8;
  --viba-btn-fg: #454139;
  --viba-btn-border: #dad6c8;
}

body {
  background-color: var(--background) !important;
  color: var(--foreground) !important;
  font-family: var(--font-secondary, "Alegreya Sans", "Century Gothic Pro", system-ui, sans-serif) !important;
}

h1, h2, h3, h4, h5, h6, .font-display, .font-italic-display {
  font-family: "Century Gothic Pro", "Century Gothic", "Avant Garde", system-ui, sans-serif !important;
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  font-size: var(--viba-h1);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--viba-h2);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--viba-h3);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h4 {
  font-size: var(--viba-h4);
  line-height: 1.25;
}

h5 {
  font-size: var(--viba-h5);
  line-height: 1.35;
}

h6 {
  font-size: var(--viba-h6);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.kicker {
  color: var(--foreground) !important;
  font-family: "Century Gothic Pro", "Century Gothic", "Avant Garde", system-ui, sans-serif !important;
}

/* Glassmorphism utility */
.viba-glass {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Stagger Animation */
@keyframes viba-stagger-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}
.stagger-item {
    opacity: 0;
    animation: viba-stagger-up 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.stagger-delay-1 { animation-delay: 0.2s; }
.stagger-delay-2 { animation-delay: 0.5s; }
.stagger-delay-3 { animation-delay: 0.8s; }
.stagger-delay-4 { animation-delay: 1.1s; }
.stagger-delay-5 { animation-delay: 1.4s; }

@media (prefers-reduced-motion: reduce) {
    .stagger-item {
        opacity: 1;
        animation: none;
        filter: none;
        transform: none;
    }
}

/* Info image - tilt depth effect */
.viba-info-col-image-wrap {
    position: relative;
    transform-style: preserve-3d;
    --tilt-x: 50%;
    --tilt-y: 50%;
}

@media (hover: hover) {
    .viba-info-col-image-wrap {
        transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: transform;
    }
    .viba-info-col-image-wrap:hover .viba-tilt-shimmer {
        opacity: 1;
    }
}

.viba-tilt-shimmer {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--tilt-x) var(--tilt-y),
        rgba(255, 255, 255, 0.16) 0%,
        rgba(255, 255, 255, 0.05) 38%,
        transparent 62%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 3;
    border-radius: var(--info-col-image-border-radius, 5px);
}
