/* Variables CSS */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --black: #000000;
    --gradient-primary: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --gradient-secondary: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 5px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 10px 30px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
}

.navbar-brand img {
    transition: var(--transition);
    height: 60px !important;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #00d4ff !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00d4ff;
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Dropdown styles */
.dropdown-menu {
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin-top: 0.5rem;
    z-index: 1002;
}

.dropdown-item {
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border-radius: 5px;
    margin: 0.25rem;
}

.dropdown-item:hover {
    background: rgba(0, 212, 255, 0.2) !important;
    color: #00d4ff !important;
    transform: translateX(5px);
}

.dropdown-item:active {
    background: rgba(0, 212, 255, 0.3) !important;
    color: var(--white) !important;
}

/* Mobile dropdown improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1rem;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 5px;
        margin: 0;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(0, 212, 255, 0.1);
    }
    
    .dropdown-menu {
        background: rgba(0, 0, 0, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0.5rem;
        margin-left: 1rem;
        border-radius: 5px;
        box-shadow: none;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
        margin: 0.125rem;
        font-size: 0.9rem;
        color: var(--white) !important;
        background: transparent !important;
    }
    
    .dropdown-item:hover {
        background: rgba(0, 212, 255, 0.2) !important;
        color: #00d4ff !important;
        transform: translateX(5px);
    }
    
    .dropdown-toggle::after {
        margin-left: 0.5rem;
    }
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-content .text-primary {
    color: var(--primary-color) !important;
}

.hero-title .text-primary {
    color: var(--primary-color) !important;
}

.hero-content h1 .text-primary {
    color: var(--primary-color) !important;
}

.vision-digital-highlight {
    color: var(--primary-color) !important;
}

/* Regla con máxima especificidad para el texto "Visión Digital" */
.hero-section .hero-content .hero-title .vision-digital-highlight {
    color: #007bff !important;
}

/* Regla alternativa usando el color directamente */
.vision-digital-highlight {
    color: #007bff !important;
}

/* Regla con selector de atributos para máxima especificidad */
span.vision-digital-highlight {
    color: #007bff !important;
}

/* Regla para cualquier elemento con esta clase */
*[class*="vision-digital-highlight"] {
    color: #007bff !important;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Animaciones */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.animate-slide-in {
    animation: slideInRight 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 3rem;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-heavy);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Experience Section */
.experience-section {
    background: var(--light-color);
}

.experience-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--secondary-color);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer Styles - Main */
.footer {
    background: #1a1a1a;
    color: #ffffff;
    position: relative;
    z-index: 1000;
    padding: 3rem 0 2rem 0;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .container {
    position: relative;
    z-index: 1001;
}

.footer h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    z-index: 1002;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1002;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1002;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
    display: inline-block;
}

.footer ul li a:hover {
    color: #00d4ff;
    text-decoration: none;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0;
    position: relative;
    z-index: 1002;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: #00d4ff;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem 0;
    position: relative;
    z-index: 1002;
}

.footer .btn-success {
    background: #25d366;
    border: none;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
}

.footer .btn-success:hover {
    background: #128c7e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    transition: all 0.3s ease;
    z-index: 99999 !important;
    border: 3px solid #ffffff;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    background: #128c7e;
    color: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.8);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    }
    50% {
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.8), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    }
}

/* Buttons */
.btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    position: relative;
    z-index: 3;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    border: none;
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0099cc 0%, #007399 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--white);
}

.btn-outline-primary {
    border: 2px solid #00d4ff;
    color: #00d4ff;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #00d4ff;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--dark-color);
    transform: translateY(-2px);
}

.btn-outline-success {
    border: 2px solid #00d4ff;
    color: #00d4ff;
    background: transparent;
}

.btn-outline-success:hover {
    background: #00d4ff;
    color: var(--white);
    transform: translateY(-2px);
}

/* Estilos globales para botones de WhatsApp */
.btn-success[href*="wa.me"],
.btn-success[href*="whatsapp"] {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.btn-success[href*="wa.me"]:hover,
.btn-success[href*="whatsapp"]:hover {
    background: #128c7e !important;
    border-color: #128c7e !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 2rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
    
    .navbar-brand img {
        height: 50px !important;
    }
    
    .footer {
        padding: 2rem 0 1rem 0;
    }
    
    .footer .col-lg-4,
    .footer .col-md-6 {
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-logo {
        height: 25px;
    }
    
    .footer-brand {
        align-items: center !important;
        text-align: center !important;
    }
    .footer-logo {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }
    .social-links {
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .footer .col-lg-2 {
        width: 50% !important;
        float: left !important;
        display: inline-block !important;
        text-align: left !important;
    }
    .footer .row {
        flex-wrap: wrap !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .navbar-brand img {
        height: 40px !important;
    }
    
    .footer {
        padding: 1.5rem 0 1rem 0;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer .col-lg-4,
    .footer .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    .whatsapp-button {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        bottom: 15px;
        right: 15px;
    }
    
    .footer-logo {
        height: 20px;
    }
    
    .footer .col-lg-2 {
        width: 50% !important;
        float: left !important;
        display: inline-block !important;
        text-align: left !important;
    }
}

/* AOS Animations */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Elementos de éxito y checklists con mejor contraste */
.text-success {
    color: #00d4ff !important;
}

.bg-success {
    background-color: #00d4ff !important;
}

.fa-check-circle.text-success {
    color: #00d4ff !important;
}

.fa-check-circle {
    color: #00d4ff !important;
}

/* Ajustar colores de elementos específicos */
.hero-content .feature-item i {
    color: #00d4ff !important;
}

.contact-hero-features .feature-item i {
    color: #00d4ff !important;
}

/* Particles Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 20s linear infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.particle:nth-child(odd) {
    background: rgba(0, 212, 255, 0.8);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.9);
}

.particle:nth-child(even) {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.particle:nth-child(3n) {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(255, 255, 255, 1);
}

@keyframes particleFloat {
    0% {
        transform: translateY(-10vh) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) translateX(100px);
        opacity: 0;
    }
}

/* Ajustar partículas para diferentes tamaños */
.particle:nth-child(3n) {
    width: 6px;
    height: 6px;
    animation-duration: 25s;
}

.particle:nth-child(4n) {
    width: 3px;
    height: 3px;
    animation-duration: 15s;
}

.particle:nth-child(5n) {
    width: 8px;
    height: 8px;
    animation-duration: 30s;
}

.particle:nth-child(6n) {
    width: 2px;
    height: 2px;
    animation-duration: 12s;
}

.particle:nth-child(7n) {
    width: 5px;
    height: 5px;
    animation-duration: 18s;
}

/* Rectángulo girando para otras páginas */
.rotating-rectangle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    transform: translate(-50%, -50%);
    animation: rotateRectangle 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.rotating-rectangle::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    animation: rotateRectangle 15s linear infinite reverse;
}

.rotating-rectangle::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    bottom: 40px;
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    animation: rotateRectangle 25s linear infinite;
}

@keyframes rotateRectangle {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Asegurar que todas las secciones tengan z-index positivo */
section {
    position: relative;
    z-index: 2;
}

.container {
    position: relative;
    z-index: 3;
}

/* Asegurar que el contenido de servicios esté por encima del rectángulo */
.service-details,
.service-features,
.work-process,
.technologies,
.strategy-section,
.comparison-card,
.services-detail-section,
.process-section,
.benefits-section,
.projects-card,
.tools-card {
    position: relative;
    z-index: 3;
}

/* Hero section específico para servicios */
.service-hero-section {
    position: relative;
    z-index: 2;
}

.service-hero-section .container {
    position: relative;
    z-index: 3;
}

.service-hero-content {
    position: relative;
    z-index: 3;
}

.service-hero-image {
    position: relative;
    z-index: 3;
}

/* Asegurar que el contenido esté por encima del overlay */
.service-hero-section .hero-overlay {
    z-index: 1;
}

.service-hero-section .hero-content,
.service-hero-section .hero-image {
    z-index: 3;
}

/* Corregir z-index para todas las cards y elementos de contenido */
.service-detail-card,
.project-type-card,
.tool-card,
.benefit-card,
.process-step,
.comparison-card,
.projects-card,
.tools-card {
    position: relative;
    z-index: 3;
    background: var(--white);
}

/* Asegurar que las imágenes estén por encima */
.service-image {
    position: relative;
    z-index: 3;
}

.service-image img {
    position: relative;
    z-index: 3;
}

/* Corregir el navbar para que esté siempre por encima */
.navbar {
    z-index: 1000;
}

.navbar .container {
    z-index: 1001;
}

/* Asegurar que el dropdown esté por encima */
.dropdown-menu {
    z-index: 1002;
}

/* Corregir el footer */
.footer {
    position: relative;
    z-index: 3;
}

/* Asegurar que los botones estén por encima */
.btn {
    position: relative;
    z-index: 3;
}

/* Corregir las partículas para que no interfieran */
.particles-container {
    z-index: 1;
}

.particle {
    z-index: 1;
}

/* Dropdown de servicios - Estilo completamente limpio */
.navbar-nav .dropdown-toggle::after,
.dropdown-toggle::after {
    display: none !important;
}

.navbar-nav .dropdown-toggle::before,
.dropdown-toggle::before {
    display: none !important;
}

/* Crear nuevo indicador limpio */
.navbar-nav .dropdown-toggle::after {
    content: " ▼" !important;
    display: inline-block !important;
    font-size: 0.8em !important;
    color: #00d4ff !important;
    margin-left: 5px !important;
    transition: transform 0.3s ease !important;
    border: none !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
}

.navbar-nav .dropdown-toggle:hover::after {
    transform: rotate(180deg) !important;
}

/* Eliminar cualquier borde o línea de Bootstrap */
.navbar-nav .dropdown-toggle {
    border: none !important;
    background: none !important;
}

/* Eliminar cualquier pseudo-elemento de Bootstrap */
.navbar-nav .dropdown-toggle::after,
.navbar-nav .dropdown-toggle::before,
.dropdown-toggle::after,
.dropdown-toggle::before {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Solo mostrar nuestra flecha personalizada */
.navbar-nav .dropdown-toggle::after {
    content: " ▼" !important;
    display: inline-block !important;
    font-size: 0.8em !important;
    color: #00d4ff !important;
    margin-left: 5px !important;
    transition: transform 0.3s ease !important;
    border: none !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* Eliminar cualquier efecto hover extraño */
.navbar-nav .dropdown-toggle:hover,
.dropdown-toggle:hover {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Footer Styles */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.footer-logo {
    height: 30px;
    width: auto;
    display: block;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer-logo {
        height: 130px;
    }
}

@media (max-width: 576px) {
    .footer-logo {
        height: 110px;
    }
}

/* Tecnologías Carrusel */
.technologies-carousel-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    position: relative;
}

.technologies-carousel {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    align-items: center;
    animation: scroll 60s linear infinite;
    width: max-content;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 80px;
    margin: 0 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.tech-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.tech-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.tech-item:hover .tech-logo {
    transform: scale(1.1);
}

.tech-name {
    font-size: 9px;
    font-weight: 500;
    color: #333;
    text-align: center;
    line-height: 1.1;
    margin-top: 4px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.tech-item:hover .tech-name {
    opacity: 1;
    color: #007bff;
    font-weight: 600;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .technologies-carousel {
        height: 140px;
        padding: 25px 0;
    }
    
    .tech-item {
        min-width: 100px;
        height: 80px;
        margin: 0 10px;
        padding: 10px;
    }
    
    .tech-logo {
        width: 35px;
        height: 35px;
        margin-bottom: 6px;
    }
    
    .tech-name {
        font-size: 8px;
        margin-top: 3px;
    }
    
    .carousel-track {
        animation-duration: 40s;
    }
}

@media (max-width: 576px) {
    .technologies-carousel {
        height: 120px;
        padding: 20px 0;
    }
    
    .tech-item {
        min-width: 80px;
        height: 70px;
        margin: 0 8px;
        padding: 8px;
    }
    
    .tech-logo {
        width: 30px;
        height: 30px;
        margin-bottom: 5px;
    }
    
    .tech-name {
        font-size: 7px;
        margin-top: 2px;
    }
    
    .carousel-track {
        animation-duration: 35s;
    }
}

/* Pausar animación en hover */
.technologies-carousel:hover .carousel-track {
    animation-play-state: paused;
}

.text-warning {
    color: #ffc107 !important;
}

@media (max-width: 768px) {
    .rotating-rectangle {
        width: 70vw !important;
        height: 70vw !important;
        max-width: 270px !important;
        max-height: 270px !important;
    }
    .rotating-rectangle::before {
        top: -2px !important;
        left: -2px !important;
        right: -2px !important;
        bottom: -2px !important;
    }
    .rotating-rectangle::after {
        top: 15px !important;
        left: 15px !important;
        right: 15px !important;
        bottom: 15px !important;
    }
}

@media (max-width: 480px) {
    .rotating-rectangle {
        width: 80vw !important;
        height: 80vw !important;
        max-width: 160px !important;
        max-height: 160px !important;
    }
    .rotating-rectangle::after {
        top: 7px !important;
        left: 7px !important;
        right: 7px !important;
        bottom: 7px !important;
    }
}

.back-to-top {
    position: fixed !important;
    bottom: 115px !important; /* 65px (whatsapp) + 20px de espacio + 30px original */
    right: 30px !important; /* Alineado con WhatsApp */
    width: 65px !important;
    height: 65px !important;
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 1.8rem !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15) !important;
    pointer-events: auto !important;
}

.back-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.back-to-top:hover {
    background: var(--dark-color);
    transform: translateY(-3px);
}

.back-to-top:focus,
.back-to-top:active {
    outline: none;
    background: var(--primary-color) !important;
    color: var(--white) !important;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 90px !important; /* 50px (whatsapp) + 20px de espacio + 20px original */
        right: 20px !important; /* Alineado con WhatsApp */
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }
}

@media (max-width: 576px) {
    .back-to-top {
        bottom: 70px !important; /* 45px (whatsapp) + 20px de espacio + 5px extra */
        right: 15px !important; /* Alineado con WhatsApp */
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
    }
} 