/* ===================================
   ELECOM - Estilos del Sitio Web Público
   =================================== */

:root {
    --color-primary: #0096C7;
    --color-secondary: #00B4D8;
    --color-dark: #023E8A;
    --color-light: #90E0EF;
    --color-success: #48C774;
    --color-warning: #FFE66D;
    --color-danger: #FF6B6B;
}

/* ===================================
   General
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Para compensar navbar fijo */
body {
    padding-top: 76px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--color-dark);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ===================================
   Navbar
   =================================== */

.navbar {
    transition: all 0.3s ease;
    background: white !important;
    border-bottom: 1px solid #e0e0e0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: #555 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary) !important;
}

.nav-link.active {
    color: var(--color-primary) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* Botón Acceso al Sistema */
.btn-elecom {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white !important;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 150, 199, 0.3);
    transition: all 0.3s ease;
}

.btn-elecom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 150, 199, 0.4);
}

/* ===================================
   WhatsApp Floating Button
   =================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8);
    }
}

/* ===================================
   Hero Section
   =================================== */

.hero-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
    color: white;
    padding: 120px 0 100px 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.08)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 180, 216, 0.15), transparent 50%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-section p.lead {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.7;
}

.hero-section .btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    margin: 0.5rem;
}

.btn-light-elecom {
    background: white;
    color: var(--color-primary);
    font-weight: 600;
    border: none;
}

.btn-light-elecom:hover {
    background: #f8f9fa;
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-outline-light-elecom {
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.btn-outline-light-elecom:hover {
    background: white;
    color: var(--color-primary);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* ===================================
   Section Styles
   =================================== */

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1.5rem auto 0;
}

/* Fondo alternado para secciones */
.section:nth-child(even) {
    background: #f8f9fa;
}

/* ===================================
   Servicios Cards
   =================================== */

.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 150, 199, 0.15);
    border-color: var(--color-primary);
}

.service-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
}

.service-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.service-card p {
    color: #666;
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.service-card ul li {
    padding: 0.5rem 0;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.service-card ul li:last-child {
    border-bottom: none;
}

.service-card ul li i {
    color: var(--color-primary);
    margin-right: 0.5rem;
}

/* ===================================
   Stats Section
   =================================== */

.stats-section {
    background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
    color: white;
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-item .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ===================================
   Contact Form
   =================================== */

.contact-form {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 150, 199, 0.15);
}

.contact-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2.5rem;
}

.contact-info-item {
    display: flex;
    align-items: start;
    margin-bottom: 2rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.contact-info-item .content h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.contact-info-item .content p {
    margin: 0;
    color: #666;
}

.contact-info-item .content a {
    color: var(--color-primary);
    font-weight: 500;
}

.contact-info-item .content a:hover {
    color: var(--color-secondary);
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: #1a1a1a;
    color: white;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer .text-light-gray {
    color: #b0b0b0;
    transition: all 0.3s ease;
}

.footer a.text-light-gray:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p.lead {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 70px;
    }

    .hero-section {
        padding: 60px 0 50px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .section {
        padding: 50px 0;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }
}

/* ===================================
   Animaciones
   =================================== */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* ===================================
   About Section Image Slider
   =================================== */

.about-image-container {
    position: relative;
}

.about-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.about-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.about-slide.active {
    position: relative;
    opacity: 1;
    z-index: 1;
}

.about-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.about-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
}

.about-badge {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.about-badge h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.about-badge span {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.95;
}

/* ===================================
   Client Cards
   =================================== */

.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 150, 199, 0.2) !important;
}

.hover-card img {
    transition: transform 0.3s ease;
}

.hover-card:hover img {
    transform: scale(1.1);
}

/* ===================================
   Gallery Section
   =================================== */

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--color-primary);
    background: white;
    color: var(--color-primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 150, 199, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: 0 5px 15px rgba(0, 150, 199, 0.4);
}

.filter-btn i {
    font-size: 1.1rem;
}

/* Gallery Carousel */
.gallery-carousel-container {
    position: relative;
    max-width: 100%;
}

.gallery-carousel {
    margin-bottom: 40px;
    animation: fadeIn 0.6s ease;
}

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

.carousel-title {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
}

.carousel-wrapper {
    position: relative;
    padding: 0 60px;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: 15px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    padding: 10px 0;
}

.carousel-slide {
    min-width: calc(25% - 15px);
    flex-shrink: 0;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    height: 280px;
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 150, 199, 0.3);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

/* Carousel Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 150, 199, 0.4);
}

.carousel-nav:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 7px 25px rgba(0, 150, 199, 0.6);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-indicator.active {
    background: var(--color-primary);
    width: 30px;
    border-radius: 5px;
}

/* Responsive Design for Carousel */
@media (max-width: 1200px) {
    .carousel-slide {
        min-width: calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        min-width: calc(50% - 10px);
    }

    .carousel-wrapper {
        padding: 0 50px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .gallery-card {
        height: 220px;
    }

    .carousel-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .carousel-slide {
        min-width: calc(100% - 0px);
    }

    .carousel-wrapper {
        padding: 0 45px;
    }

    .carousel-track {
        gap: 15px;
    }

    .gallery-card {
        height: 250px;
    }
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(2, 62, 138, 0.7), rgba(0, 150, 199, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    color: white;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.gallery-info p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

/* Hide watermarks in images */
.gallery-card img {
    clip-path: inset(0 0 40px 0);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 10000;
    max-width: 90vw;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-image-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 25px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 1.1rem;
    text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
}

.lightbox-prev {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.lightbox-next {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) translateX(-5px);
}

.lightbox-next:hover {
    transform: translateY(-50%) translateX(5px);
}

.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .filter-btn i {
        font-size: 1rem;
    }

    .gallery-card {
        height: 200px;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .gallery-info h5 {
        font-size: 1.1rem;
    }

    .gallery-info p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .filter-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .gallery-card {
        height: 180px;
    }
}

/* ===================================
   Service Card Button
   =================================== */
.btn-ver-galeria {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 3px 10px rgba(0, 150, 199, 0.3);
}

.btn-ver-galeria:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 150, 199, 0.5);
    color: white;
}

.service-card {
    display: flex;
    flex-direction: column;
}

.service-card ul {
    flex-grow: 1;
}
