:root {
    --primary-color: #0a1a4f;
    --secondary-color: #1e3a8a;
    --accent-color: #3b82f6;
    --light-blue: #e0f2fe;
    --very-light: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #f1f5f9;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1.2rem 0;
    box-shadow: 0 4px 20px rgba(10, 26, 79, 0.15);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text-light) !important;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 600;
    margin: 0 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::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 1000 1000"><defs><pattern id="tech-pattern" x="0" y="0" width="50" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.15)"/><rect x="20" y="20" width="60" height="2" fill="rgba(255,255,255,0.1)"/><rect x="20" y="78" width="60" height="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23tech-pattern)"/></svg>') repeat;
    opacity: 0.2;
}

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

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

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

.hero-logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    width: 100%;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.hero-image {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    opacity: 0.8;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10,26,79,0.75), rgba(30,58,138,0.7));
    border-radius: 20px;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(10,26,79,0.25);
    backdrop-filter: blur(2px);
}

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

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.btn-custom {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3), 0 1.5px 6px rgba(10,26,79,0.10);
    position: relative;
    overflow: hidden;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
}

.btn-custom::after {
    content: '';
    position: absolute;
    left: -75%;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.01) 100%);
    transform: skewX(-20deg);
    transition: left 0.5s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}

.btn-custom:hover::after {
    left: 120%;
}

.btn-custom:hover, .btn-custom:focus {
    transform: scale(1.06);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4), 0 2px 8px rgba(10,26,79,0.15);
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    color: #fff;
}

.btn-custom i {
    font-size: 1.2em;
    margin-right: 0.2em;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--very-light);
    position: relative;
    z-index: 1;
    margin-top: -3rem;
    padding-top: 3rem;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(10, 26, 79, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 26, 79, 0.12);
}

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

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.8rem;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.service-card h4 {
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    font-weight: 700;
    font-size: 1.4rem;
}

.service-card p {
    color: #64748b;
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 100px 0;
    background: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.certification-badge {
    background: var(--light-blue);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    margin: 0.5rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.certification-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
}

/* About Section Styles */
.team-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.team-image-container img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.team-image-container:hover img {
    transform: scale(1.02);
}

.stats-section {
    margin-top: 4rem;
    padding: 2rem 0;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.stat-card p {
    color: #666;
    font-size: 1.2rem;
    margin: 0;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.contact::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 1000 1000"><defs><pattern id="contact-pattern" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/><rect x="20" y="20" width="60" height="2" fill="rgba(255,255,255,0.05)"/><rect x="20" y="78" width="60" height="2" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23contact-pattern)"/></svg>') repeat;
    opacity: 0.1;
}

.contact-info {
    background: rgba(255,255,255,0.1);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.contact-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
}

.contact-item i {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    background: var(--accent-color);
    transform: scale(1.1);
}

.contact-item div {
    flex: 1;
}

.contact-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-light);
}

.contact-item p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.4;
}

.contact-item i.fa-phone {
    font-size: 1.1rem;
}

.contact-item i.fa-envelope {
    font-size: 1.1rem;
}

.contact-item i.fa-map-marker-alt {
    font-size: 1.2rem;
}

.contact-item i.fa-clock {
    font-size: 1.1rem;
}

/* Footer Styles */
.footer {
    background: var(--primary-color);
    color: #fff;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

.footer h4 {
    color: #fff;
    font-weight: 600;
}

.footer p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.footer-info p {
    line-height: 1.6;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: var(--accent-color);
    width: 20px;
}

.footer-hours p {
    display: flex;
    align-items: center;
}

.footer-hours i {
    color: var(--accent-color);
    width: 20px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.developer-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }

    .contact-info {
        padding: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tech Banner Animation */
.tech-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Clients Section */
.clients {
    padding: 80px 0;
    background: var(--very-light);
    position: relative;
    overflow: hidden;
}

.clients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.clients-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2rem 0;
}

.client-logo {
    flex: 0 0 auto;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(10, 26, 79, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.client-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(30, 58, 138, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(10, 26, 79, 0.1);
}

.client-logo:hover::before {
    opacity: 1;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Responsive adjustments for clients section */
@media (max-width: 768px) {
    .clients-slider {
        gap: 2rem;
    }

    .client-logo {
        width: 140px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .clients-slider {
        gap: 1.5rem;
    }

    .client-logo {
        width: 120px;
        height: 70px;
    }
}

/* Partners Section Styles */
.partners {
    background-color: #f8f9fa;
    position: relative;
    padding-bottom: 6rem;
    margin-bottom: 2rem;
    z-index: 2;
}

.partners::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    z-index: 1;
}

.partners-slider {
    position: relative;
    z-index: 3;
}

.partner-logo {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    max-width: 250px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo:hover {
    transform: translateY(-5px);
}

.partner-logo img {
    max-height: 100px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 576px) {
    .hero .fade-in {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .hero .btn-custom,
    .hero .btn-outline-light {
        width: 100%;
        font-size: 1rem;
        padding: 12px 0;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
    }
    .hero-image-container {
        margin-top: 2rem;
    }
    .hero-image-wrapper {
        max-width: 320px;
    }
    .hero-logo-overlay {
        max-width: 220px;
    }
}

/* Botón flotante volver arriba */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  background: var(--primary-color, #0a1a4f);
  color: #fff;
  border: none;
  outline: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.7rem;
  box-shadow: 0 4px 16px rgba(59,130,246,0.18), 0 1.5px 6px rgba(10,26,79,0.10);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px) scale(0.95);
}
#scrollTopBtn.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1.05);
  animation: bounceIn 0.4s;
}
#scrollTopBtn:focus {
  outline: 2px solid var(--accent-color, #3b83f66e);
}
#scrollTopBtn:hover {
  background: var(--accent-color, #3b82f6);
  transform: scale(1.12);
}
#scrollTopBtn i {
  pointer-events: none;
  margin-top: 2px;
}
@keyframes bounceIn {
  0% { opacity: 0; transform: translateY(40px) scale(0.9);}
  60% { opacity: 1; transform: translateY(-10px) scale(1.08);}
  100% { opacity: 1; transform: translateY(0) scale(1.05);}
} 