/* --- Color Palette Constants & Typography --- */
:root {
    --bg-black: #0a0a0a;
    --bg-card: #141414;
    --accent-red: #dc3545;
    --accent-red-hover: #b02a37;
    --text-white: #ffffff;
    --text-muted: #a0a0a0;
    
    /* Adobe Web Project Verified Typography Slugs */
    --title-font: "good-times", sans-serif; 
    --body-font: "all-round-gothic", sans-serif; 
}

/* --- Global Structural Rules --- */
html {
    scroll-behavior: smooth;
}
body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* --- Forzar Fuente de Títulos --- */
h1, h2, h3, h4, h5, h6, .navbar-brand, .lang-btn {
    font-family: var(--title-font) !important;
}

/* --- PNG Logo Sizing and Magnetic Perspective Hover Animation --- */
.brand-logo-img {
    display: inline-block !important;
    height: 45px !important; /* Forzamos altura limpia y visible */
    width: auto !important;  /* Mantiene la proporción original del logo */
    min-width: 40px;         /* Evita que se colapse a 0 píxeles */
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
    filter: drop-shadow(0 0 0px rgba(220, 53, 69, 0));
}
.navbar-brand:hover .brand-logo-img {
    transform: scale(1.1) perspective(100px) rotateX(4deg) rotateY(12deg);
    filter: drop-shadow(0 4px 10px rgba(220, 53, 69, 0.6));
}

/* --- Audited Architecture Display Rules --- */
#page-root.show-en .lang-es { display: none !important; }
#page-root.show-es .lang-en { display: none !important; }

/* Language Switcher Styling */
.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 4px 10px;
    font-size: 0.8rem;
    z-index: 1100;
    position: relative;
    transition: all 0.2s ease;
}
#page-root.show-en .btn-en,
#page-root.show-es .btn-es {
    background-color: var(--accent-red) !important;
    color: var(--text-white) !important;
    border-color: var(--accent-red) !important;
}

/* --- Safe Layout Entry Animations --- */
.fade-in-entry {
    animation: softFadeIn 0.8s ease-out forwards;
}
@keyframes softFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Layout Utilities & Core Classes --- */
.text-accent { color: var(--accent-red); }
.border-accent { border-color: var(--accent-red) !important; }
.text-muted-custom { color: var(--text-muted) !important; }

section {
    padding: 100px 0;
    border-bottom: 1px solid rgba(220, 53, 69, 0.2);
    position: relative;
    clear: both;
}

/* Navigation System Layout */
.navbar {
    background-color: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-red);
    z-index: 1050;
}
.navbar-brand, .nav-link {
    color: var(--text-white) !important;
    position: relative;
    z-index: 1060;
}
.nav-link:hover, .navbar-brand:hover {
    color: var(--accent-red) !important;
}

.btn-outline-accent {
    color: var(--text-white);
    border: 2px solid var(--accent-red);
    background: transparent;
    position: relative;
    z-index: 1060;
    transition: all 0.3s ease;
}
.btn-outline-accent:hover {
    background-color: var(--accent-red);
    color: var(--text-white);
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.5);
}

.custom-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.custom-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.media-placeholder {
    background: linear-gradient(45deg, #141414, #222);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--accent-red);
}

/* Footer Icon Hover Effects */
.footer-icon-link {
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-block;
}
.footer-icon-link:hover {
    color: var(--accent-red) !important;
    transform: translateY(-3px);
}

/* --- Forzar Color Blanco en los Números del Contador Animado --- */
.metric-container h3,
.metric-container .counter-value,
.metric-container .text-accent {
    color: #ffffff !important; /* Fuerza el color blanco sobre el fondo oscuro */
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1); /* Agrega un sutil reflejo premium */
}

