/* Variables CSS */
:root {
    --primary: #4e54c8;
    --primary-dark: #3a3fa0;
    --secondary: #8f94fb;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --black: #000000;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-gradient {
    background: linear-gradient(180deg, gray, white);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

[class*="col-"] {
    padding-right: 15px;
    padding-left: 15px;
}

.col-12 { width: 100%; }
.col-lg-6 { width: 50%; }
.col-lg-4 { width: 33.333%; }
.col-lg-3 { width: 25%; }
.col-md-6 { width: 50%; }
.col-md-3 { width: 25%; }

@media (max-width: 991.98px) {
    .col-lg-6, 
    .col-lg-4, 
    .col-lg-3 {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .col-md-6,
    .col-md-3 {
        width: 100%;
    }
}

/* Botones */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(78, 84, 200, 0.3);
}

.btn-outline-light {
    color: var(--white);
    border-color: var(--white);
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Secciones */
.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--primary);
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.section-description {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.preloader-inner {
    text-align: center;
}

.tech-circle {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.tech-circle .circle {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: rotate 2s linear infinite;
}

.tech-circle .circle:nth-child(1) {
    width: 100%;
    height: 100%;
    border-top-color: var(--primary);
    animation-delay: 0.1s;
}

.tech-circle .circle:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: var(--secondary);
    animation-delay: 0.2s;
}

.tech-circle .circle:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: var(--primary);
    animation-delay: 0.3s;
}

.tech-circle .circle:nth-child(4) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-top-color: var(--secondary);
    animation-delay: 0.4s;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
}

/* Header */
/* Header */
.tech-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.tech-header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-brand-container {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    transition: all 0.3s ease;
    height: 45px;
    width: auto;
}

.scrolled .navbar-brand img {
    height: 35px;
}

.navbar-toggler {
    border: none;
    background: none;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: var(--dark);
    display: none;
    cursor: pointer;
    order: 3;
}

/* Estilos para el toggler activo */
.navbar-toggler.active .navbar-toggler-icon i::before {
    content: '\f00d'; /* Icono de cerrar (X) de Font Awesome */
}

/* Transición suave para el header */
.tech-header {
    transition: all 0.4s ease;
}

/* Mejora visual para el menú móvil */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    }
    
    .nav-link {
        border-radius: 8px;
        margin: 0.2rem 0;
    }
    
    .nav-link:hover {
        background: rgba(78, 84, 200, 0.1);
    }
}

.navbar-collapse {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
}

.navbar-nav {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin: 0 0.5rem;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--dark);
    padding: 0.5rem 0.8rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:after {
    content: '';
    position: absolute;
    left: 0.8rem;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
    width: calc(100% - 1.6rem);
}

.navbar-cta {
    margin-left: 1.5rem;
}

.whatsapp-btn {
    background-color: #25D366;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block;
    }
    
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        z-index: 998;
    }
    
    .navbar-collapse.show {
        left: 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .nav-item {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .nav-link {
        padding: 0.8rem 1rem;
        display: block;
        width: 100%;
    }
    
    .nav-link:after {
        left: 1rem;
    }
    
    .nav-link:hover:after,
    .nav-link.active:after {
        width: calc(100% - 2rem);
    }
    
    .navbar-cta {
        margin-left: 0;
        width: 100%;
    }
    
    .whatsapp-btn {
        width: 100%;
        justify-content: center;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .scrolled .navbar-brand img {
        height: 30px;
    }
}

@media (max-width: 575.98px) {
    .tech-header {
        padding: 0.6rem 0;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .scrolled .navbar-brand img {
        height: 28px;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    margin-bottom: 2.5rem;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.feature-item i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-link {
    display: block;
    text-align: center;
    color: var(--white);
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 12px;
    display: inline-block;
    position: relative;
    margin-bottom: 5px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 5px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--white);
    border-right: 2px solid var(--white);
    transform: rotate(45deg);
    margin: -5px auto 0;
    animation: arrow 2s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes arrow {
    0% { opacity: 0; transform: rotate(45deg) translate(-10px, -10px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(10px, 10px); }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 8rem 0 4rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-features {
        justify-content: center;
    }
}

/* Clients Section */
.clients-section {
    padding: 4rem 0;
    background: var(--light);
}

.section-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.clients-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
}

.client-logo {
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    max-width: 150px;
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.client-logo img {
    max-height: 60px;
    width: auto;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: var(--white);
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-features {
    margin-bottom: 1.5rem;
    list-style: none;
}

.service-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.service-features i {
    color: var(--primary);
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

.service-link {
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.service-link i {
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: var(--light);
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-box .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(78, 84, 200, 0.1), rgba(143, 148, 251, 0.1));
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.25rem;
}

.feature-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-box p {
    color: var(--gray);
    font-size: 0.9rem;
}

.about-cta {
    margin-top: 2rem;
}

/* Portfolio Section */
.portfolio-section {
    padding: 6rem 0;
    background: var(--white);
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.portfolio-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(45deg);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    color: var(--white);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h4 {
    margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.testimonial-card {
    height: 100%;
}

.testimonial-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quote-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0.1;
    font-size: 4rem;
    color: var(--white);
}

.testimonial-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.client-info {
    display: flex;
    align-items: center;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.client-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-details h5 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.client-details span {
    font-size: 0.9rem;
    opacity: 0.8;
    display: block;
    margin-bottom: 0.25rem;
}

.rating {
    color: #ffc107;
    font-size: 0.9rem;
}

/* Stats Section */
.stats-section {
    padding: 5rem 0;
    background: var(--light);
}

.stat-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.stat-title {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: var(--white);
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(78, 84, 200, 0.1), rgba(143, 148, 251, 0.1));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-size: 1.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-details p, 
.contact-details a {
    color: var(--gray);
    transition: all 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(78, 84, 200, 0.1), rgba(143, 148, 251, 0.1));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    transform: translateY(-5px);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark);
    background-color: var(--white);
    background-clip: padding-box;
    border: 1px solid var(--light-gray);
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(78, 84, 200, 0.25);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.alert {
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.d-none {
    display: none !important;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 5rem 0 0;
}

.footer-about img {
    margin-bottom: 1.5rem;
}

.footer-about p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4:after,
.footer-services h4:after,
.footer-contact h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-links ul,
.footer-services ul {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-services li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 1rem;
    color: var(--primary);
    font-size: 1.125rem;
    margin-top: 0.25rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateY(-5px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.legal-links {
    text-align: right;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.legal-links a:hover {
    color: var(--white);
}

@media (max-width: 767.98px) {
    .footer-bottom .row > div {
        text-align: center !important;
        margin-bottom: 1rem;
    }
    
    .legal-links {
        text-align: center !important;
    }
    
    .legal-links a {
        margin: 0 0.5rem;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    box-shadow: 0 5px 20px rgba(78, 84, 200, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: var(--white);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 999;
}

.floating-whatsapp a {
    display: flex;
    align-items: center;
    background: #25D366;
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.floating-whatsapp a:hover {
    background: #128C7E;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.floating-whatsapp span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

@media (max-width: 575.98px) {
    .floating-whatsapp {
        bottom: 1.5rem;
        left: 1.5rem;
    }
    
    .floating-whatsapp a span {
        display: none;
    }
    
    .floating-whatsapp a i {
        margin-right: 0;
    }
}

/* Animaciones personalizadas */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.fade-in-up {
    animation: fadeInUp 1s ease-in-out;
}

.fade-in-left {
    animation: fadeInLeft 1s ease-in-out;
}

.fade-in-right {
    animation: fadeInRight 1s ease-in-out;
}

.zoom-in {
    animation: zoomIn 1s ease-in-out;
}

/* Efectos de aparición al hacer scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}