/* ============================================
   ESABE VIGILANCIA S.A. - Professional Security Website
   Modern Security Theme Colors & Styles
   ============================================ */

/* CSS Variables - Modern Security Palette */
:root {
    --primary-color: #1a237e;      /* Deep Blue - Trust & Security */
    --primary-dark: #0d1442;       /* Darker Blue */
    --primary-light: #534bae;      /* Lighter Blue */
    --accent-color: #ff6f00;       /* Amber - Alert & Attention */
    --accent-hover: #e65100;       /* Darker Amber */
    --success-color: #2e7d32;      /* Green - Safety */
    --danger-color: #c62828;       /* Red - Emergency */
    --warning-color: #f9a825;      /* Yellow - Caution */
    --text-primary: #1a1a1a;       /* Dark Text */
    --text-secondary: #616161;     /* Gray Text */
    --text-light: #f5f5f5;         /* Light Text */
    --bg-primary: #ffffff;         /* White Background */
    --bg-secondary: #f5f5f5;       /* Light Gray Background */
    --bg-dark: #121212;            /* Dark Background */
    --border-color: #e0e0e0;       /* Light Border */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Three.js Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* ============================================
   MATERIAL ICONS
   ============================================ */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

/* Material Icons Sizes */
.material-icons.md-18 { font-size: 18px; }
.material-icons.md-24 { font-size: 24px; }
.material-icons.md-36 { font-size: 36px; }
.material-icons.md-48 { font-size: 48px; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 35, 126, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(13, 20, 66, 0.98);
}

.header__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
}

.logo__svg {
    width: 50px;
    height: 50px;
}

.logo__text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo__tagline {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav__link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--accent-color);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link.active {
    color: var(--accent-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: var(--transition);
    border-radius: 2px;
}

/* ============================================
   HERO SECTION & SLIDESHOW
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

/* Slideshow Container */
.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slideshow__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slideshow__slide.active {
    opacity: 1;
}

.slideshow__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.02) 0%, rgba(13, 20, 66, 0.9) 100%);
}

/* Hero Content */
.hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero__subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero__cta {
    display: inline-flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
}

.btn--primary {
    background: var(--accent-color);
    color: white;
}

.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn--secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Slideshow Indicators */
.slideshow__indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.slideshow__indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.slideshow__indicator.active {
    background: var(--accent-color);
    width: 35px;
    border-radius: 6px;
}

.slideshow__indicator:hover {
    background: rgba(255,255,255,0.7);
}

/* Slideshow Navigation Arrows */
.slideshow__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 25;
    color: white;
}

.slideshow__nav:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-50%) scale(1.1);
}

.slideshow__nav--prev {
    left: 30px;
}

.slideshow__nav--next {
    right: 30px;
}

.slideshow__nav .material-icons {
    font-size: 28px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 100px 20px;
}

.section--dark {
    background: var(--bg-dark);
    color: var(--text-light);
}

.section--light {
    background: var(--bg-secondary);
}

.section__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section--dark .section__title {
    color: white;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.section--dark .section__subtitle {
    color: rgba(255,255,255,0.7);
}

.section__line {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ============================================
   CARDS & SERVICES
   ============================================ */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-card__icon material-icon {
    font-size: 35px;
    color: white;
}

.service-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card__description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card__link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.service-card__link:hover {
    gap: 10px;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-item__number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-item__label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.section--dark .stat-item__label {
    color: rgba(255,255,255,0.8);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.contact-item__icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item__icon material-icon {
    font-size: 25px;
    color: white;
}

.contact-item__content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-item__content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 20px 30px;
}

.footer__container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer__logo {
    margin-bottom: 20px;
}

.footer__about p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 2.8rem;
    }

    .section__title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header__container {
        height: 70px;
    }

    .hero {
        margin-top: 70px;
        min-height: 500px;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav__list {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 30px;
        gap: 15px;
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .nav__list.active {
        transform: translateX(0);
    }

    .section {
        padding: 60px 20px;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__cta {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo__text {
        font-size: 1.2rem;
    }

    .logo__tagline {
        display: none;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    .stat-item__number {
        font-size: 2.5rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

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

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
