/* Color Palette for Intrivision PRO Dark Theme */
:root {
    --primary: #c90a18; /* Rojo principal de Óptica Intrivision */
    --primary-dark: #91050e; /* Rojo oscuro para sombras y degradados */
    --secondary: #0b111e; /* Fondo oscuro elegante para resaltar el rojo y blanco */
    --secondary-card: #141d2e; /* Tarjetas y paneles */
    --accent: #00a8e8; /* Azul cyan del ojo del logo (letra O de Intrivision) */
    --accent-hover: #0080b3;
    --white: #ffffff;
    --dark: #05080f;
    --text-primary: #f8f9fa;
    --text-secondary: #a0b2c6;
    --glass-bg: rgba(20, 29, 46, 0.65);
    --glass-border: rgba(255, 255, 255, 0.12);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--secondary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    letter-spacing: -0.5px;
    font-weight: 800;
}

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

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

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

.bg-dark-section {
    background-color: #0e1626 !important;
}

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

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Button Customizations */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: #ffffff;
    border-radius: 30px;
    padding: 14px 40px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(201, 10, 24, 0.4);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #e61020 0%, var(--primary) 100%);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(201, 10, 24, 0.6) !important;
}

.btn-outline-primary {
    color: #ffffff;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(201, 10, 24, 0.5);
}

.divider {
    max-width: 5rem;
    border-width: 0.25rem;
    border-radius: 2rem;
    border-color: var(--primary) !important;
    background-color: var(--primary) !important;
}

/* Navbar Modernization */
.navbar {
    padding: 1.2rem 0;
    transition: all 0.4s ease;
    background-color: transparent !important;
}

/* Logo Text Brand Design */
.logo-text-brand {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none !important;
    user-select: none;
}

.logo-text-brand .brand-optica {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 5px;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.logo-text-brand .brand-intrivision {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--white);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

/* O con el Ojo azul y pupila negra */
.brand-eye-o {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent); /* Circulo azul cyan de la O */
    color: transparent;
    font-size: 0;
    margin: 0 1px;
    box-shadow: 0 0 10px rgba(0, 168, 232, 0.6);
    vertical-align: middle;
}

/* Pupila negra dentro del ojo */
.brand-eye-o::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #05080f;
    position: absolute;
}

/* Destello blanco del ojo */
.brand-eye-o::after {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: #ffffff;
    position: absolute;
    top: 5px;
    right: 5px;
}

.logo-text-brand-lg .brand-optica {
    font-size: 0.85rem;
    letter-spacing: 6px;
}

.logo-text-brand-lg .brand-intrivision {
    font-size: 1.8rem;
}

.logo-text-brand-lg .brand-eye-o {
    width: 26px;
    height: 26px;
}

.logo-text-brand-lg .brand-eye-o::before {
    width: 12px;
    height: 12px;
}

.logo-text-brand-lg .brand-eye-o::after {
    width: 4px;
    height: 4px;
    top: 6px;
    right: 6px;
}

.navbar-scrolled {
    background-color: rgba(11, 17, 30, 0.92) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.6) !important;
    padding: 0.6rem 0;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient mapping to merge with blueish generated images */
    background: radial-gradient(circle at center, rgba(10, 15, 26, 0.6) 0%, rgba(10, 15, 26, 0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    letter-spacing: -1px;
}

.hero span.highlight {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

/* Service Cards */
.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-12px);
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 255, 0.15) !important;
}

.service-card img {
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.8s ease;
    opacity: 0.85;
    filter: contrast(1.1) brightness(0.9);
}

.service-card:hover img {
    transform: scale(1.08);
    opacity: 1;
    filter: contrast(1.1) brightness(1);
}

/* About Us */
.about-img-container {
    position: relative;
}

.about-img-container::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 16px;
    z-index: -1;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
    transition: all 0.5s ease;
}

.about-img-container:hover::after {
    top: 15px;
    left: 15px;
    background: rgba(0, 229, 255, 0.05);
}

.about-img-container img {
    border-radius: 16px;
    filter: brightness(0.85);
    transition: all 0.5s ease;
}

.about-img-container:hover img {
    filter: brightness(1);
    transform: translate(-5px, -5px);
}

/* Contact Infos */
.contact-info {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.contact-info:hover {
    border-color: var(--accent) !important;
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 20px rgba(0, 229, 255, 0.15);
}

.icon-circle {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, rgba(0, 119, 182, 0.3) 100%);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--accent);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.contact-info:hover .icon-circle {
    background: var(--accent) !important;
    color: var(--dark) !important;
    transform: rotateY(180deg) scale(1.15);
    box-shadow: 0 0 25px var(--accent);
}

/* Form Styling */
.form-control {
    background-color: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.1);
    color: white !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-control:focus {
    background-color: rgba(255,255,255,0.06) !important;
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(0, 229, 255, 0.25);
}

select.form-control option {
    background-color: var(--secondary);
    color: white;
}

/* Footer Section */
footer {
    background-color: #05080f !important;
    border-top: 1px solid var(--glass-border);
}

footer .footer-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.version-badge {
    background: rgba(0, 168, 232, 0.1);
    border: 1px solid rgba(0, 168, 232, 0.3);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-block;
}

footer .btn-outline-light {
    border-color: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    transition: all 0.3s ease;
}

footer .btn-outline-light:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(201, 10, 24, 0.6);
    transform: translateY(-3px);
}

/* Animations */
@keyframes slideInUp {
    from { transform: translateY(60px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.slide-in-up {
    animation: slideInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: rgba(10, 15, 26, 0.95);
        backdrop-filter: blur(10px);
        padding: 15px;
        border-radius: 8px;
        border: 1px solid var(--glass-border);
        margin-top: 10px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}
