/* =============================================
   ESTILOS BASE (antes importados de ../style.css)
   ============================================= */

/* COLORS */
:root {
    --primary: #153A70;
    --secondary: #F38033;
    --secondary-background: #F9EFE8;
    --primary-dark: #1d509d;
    --black: #242424;
    --darkGrey: #606060;
}

* {
    color: var(--primary) !important;
    font-family: 'Fira Sans', sans-serif !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-black {
    color: var(--black) !important;
}

.text-darkgrey {
    color: var(--darkGrey) !important;
}

.text-white {
    color: white !important;
}

.title {
    font-size: 2.5rem;
    font-family: 'Lora', serif !important;
    line-height: 1.35;
}

.fira {
    font-family: 'Fira Sans', sans-serif !important;
}

.lora {
    font-family: 'Lora', serif !important;
}

.subTitle {
    font-size: 25px;
}

.header {
    font-size: 20px;
}

.label {
    font-size: 14px;
}

.interline-small {
    line-height: 1.2;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-secondary-light {
    background-color: var(--secondary-background) !important;
}

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

.btn-primary:active,
.btn-primary:focus,
.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    color: white !important;
}

.line {
    position: relative;
}

.line::after {
    content: "";
    background-color: var(--primary);
    width: 8px;
    height: 40px;
    position: absolute;
    top: 0px;
}

.line[line-position="left"] {
    border-left: 1px solid var(--primary);
}

.line[line-position="left"]::after {
    left: 0px;
}

.line[line-position="right"] {
    border-right: 1px solid var(--primary);
}

.line[line-position="right"]::after {
    right: 0px;
}

.line-small::after {
    width: 4px !important;
    height: 18px !important;
}

.fw-light {
    opacity: 0.7;
}

a {
    text-decoration: none !important;
}

input::placeholder,
textarea::placeholder {
    color: rgb(153, 153, 153) !important;
}

/* =============================================
   ESTILOS ESPECÍFICOS DE FUJI RECORDER
   ============================================= */

.store-link {
    text-decoration: none !important;
    transition: transform 0.3s ease;
}

.store-link:hover {
    transform: scale(1.05);
}

.store-badge {
    min-width: 200px;
    transition: all 0.3s ease;
    background-color: #000000 !important;
    border: 2px solid #000000;
}

.store-badge:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: scale(1.05);
}

.store-badge * {
    color: white !important;
}

/* Banner de Fuji */
.banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    min-height: 100vh;
    height: auto;
    position: relative;
}

/* Texto blanco en el banner */
.banner,
.banner * {
    color: white !important;
}

.banner .text-secondary {
    color: var(--secondary) !important;
}

.banner .line[line-position="right"] {
    border-right: 1px solid white;
}

.banner .line[line-position="right"]::after {
    background-color: white;
}

.banner i {
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
    color: white !important;
}

.banner i:hover {
    opacity: 1;
}

.app-logo {
    transition: transform 0.3s ease;
    border-radius: 20px;
}

.app-logo:hover {
    transform: scale(1.05);
}

.phone-frame {
    max-width: 300px;
    width: 100%;
}

.phone-screen {
    aspect-ratio: 9/16;
}

.gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: white !important;
    border: 1px solid #e0e0e0 !important;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.gallery-image {
    transition: opacity 0.3s ease;
    background: #f5f5f5 !important;
    background-image: 
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
        linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item:hover .gallery-image {
    opacity: 0.9;
}

/* Feature cards */
.feature-card {
    background: white !important;
    border: 1px solid #e8e8e8 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--primary) !important;
}

.feature-card * {
    color: inherit !important;
}

.feature-card .bg-primary i {
    color: white !important;
}

.feature-card .bg-primary {
    color: white !important;
}

/* Footer - RUTA LOCAL */
.footer {
    background-image: url('assets/footer.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

/* Fondo sección descarga - RUTA LOCAL */
.bg-img-2 {
    background-image: url('assets/fondo2.png');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    position: relative;
}

/* Overlay claro para mejor contraste en bg-img-2 */
.bg-img-2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.bg-img-2 > .container {
    position: relative;
    z-index: 1;
}

/* Contacto - RUTA LOCAL */
.contact {
    background-image: url('assets/contact.png');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    position: relative;
}

/* Overlay para mejor contraste en contacto */
.contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 0;
}

.contact > .container {
    position: relative;
    z-index: 1;
}

/* Navbar sobre banner - texto blanco por defecto en todas las pantallas */
.navbar {
    transition: background-color 0.3s ease;
}

.navbar:not(.scrolled) h2 {
    color: white !important;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled * {
    color: var(--primary) !important;
}

.navbar.scrolled .text-primary {
    color: var(--primary) !important;
}

@media (min-width: 768px) {
    .navbar-collapse {
        background-color: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    
    /* Navbar sobre banner - texto blanco por defecto */
    .navbar:not(.scrolled) .navbar-nav .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .navbar:not(.scrolled) .navbar-nav .nav-link:hover {
        color: white !important;
    }
}

@media (max-width: 600px) {
    .title {
        font-size: 25px;
        line-height: 1;
    }

    .store-badge {
        min-width: 100%;
    }
}
