/* ============================================
   eQuis - Soporte y Desarrollo Informático
   Public Landing Page Styles
   ============================================ */

/* ----- CSS Variables ----- */
:root {
    --primary-color: #ff8c00;
    --primary-dark: #e07b00;
    --primary-light: #ffab40;
    --secondary-color: #1a1a2e;
    --accent-color: #16213e;
    --text-dark: #0f0f23;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(255, 140, 0, 0.3);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* ----- Base Styles ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ----- Navbar ----- */
.navbar-public {
    background: var(--bg-gradient);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.navbar-public.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light) !important;
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar-brand-custom img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover {
    color: var(--text-light) !important;
    background: var(--glass-bg);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Navbar Buttons */
.btn-navbar {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.btn-webmail,
.btn-asistente {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-light);
}

.btn-webmail:hover,
.btn-asistente:hover {
    background: var(--glass-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-intranet {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: var(--text-light);
}

.btn-intranet:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Mobile Toggle */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 140, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ----- Hero Section ----- */
.hero-section {
    min-height: 100vh;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 20px 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 140, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 171, 64, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-logo {
    width: 300px;
    max-width: none;
    height: auto;
    margin-bottom: 0;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(255, 140, 0, 0.3));
}

.hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero-brand-text {
    font-size: 12rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -2px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 30px rgba(255, 140, 0, 0.4);
}

.hero-cta:hover {
    background: var(--primary-dark);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 140, 0, 0.5);
}

.hero-cta i {
    transition: transform var(--transition-fast);
}

.hero-cta:hover i {
    transform: translateX(5px);
}

/* ----- Section Commons ----- */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ----- Services Section ----- */
.services-section {
    background: var(--bg-light);
}

.service-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.25);
}

.service-icon i {
    font-size: 1.75rem;
    color: var(--text-light);
}

.service-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.service-list li i {
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-top: 5px;
    flex-shrink: 0;
}

/* ----- Contact Section ----- */
.contact-section {
    background: var(--bg-gradient);
    color: var(--text-light);
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: var(--text-light);
}

.contact-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.contact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--text-light);
}

.contact-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
}

.contact-value a {
    color: var(--text-light);
}

.contact-value a:hover {
    color: var(--primary-light);
}

/* ----- Footer ----- */
.footer-public {
    background: #0a0a15;
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
    text-align: center;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.footer-brand span {
    color: var(--primary-color);
}

.footer-text {
    font-size: 0.875rem;
    margin: 0;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* ----- Page Header (for subpages) ----- */
.page-header {
    background: var(--bg-gradient);
    padding: 140px 0 80px;
    text-align: center;
    color: var(--text-light);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* ----- Content Section (for subpages) ----- */
.content-section {
    padding: 80px 0;
    background: var(--bg-light);
}

/* ----- Responsive ----- */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-collapse {
        background: rgba(26, 26, 46, 0.98);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: var(--border-radius);
    }

    .navbar-nav {
        margin-bottom: 1rem;
    }

    .d-flex.gap-2 {
        flex-direction: column;
        width: 100%;
    }

    .btn-navbar {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 100px 15px 50px;
    }

    .hero-logo {
        width: 150px;
    }

    .hero-brand {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-brand-text {
        font-size: 5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

/* ----- Utilities ----- */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.mb-6 {
    margin-bottom: 4rem !important;
}