:root {
    --primary-color: #1a365d;
    --secondary-color: #2d3748;
    --accent-color: #4299e1;
    --dark-color: #1a202c;
    --light-color: #f7fafc;
    --gradient: linear-gradient(135deg, #1a365d 0%, #2d3748 50%, #4299e1 100%);
}

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

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

.hero-section {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 30%, #4299e1 70%, #63b3ed 100%);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

.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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.section-padding {
    padding: 80px 0;
}

/* Efectos mejorados para tarjetas de servicios */
.service-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.1),
        0 1px 8px rgba(0,0,0,0.06);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.8);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 153, 225, 0.1), transparent);
    transition: left 0.6s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.2),
        0 10px 25px rgba(26, 54, 93, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.8);
    border-color: rgba(66, 153, 225, 0.3);
}

/* Efectos mejorados para iconos de servicios */
.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 2rem;
    position: relative;
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(26, 54, 93, 0.4);
}

.service-card:hover .service-icon::before {
    transform: rotate(45deg) translateX(100%);
}

.stats-section {
    background: var(--dark-color);
    color: white;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
}

.portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.contact-form {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    padding: 12px 15px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.footer {
    background: var(--dark-color);
    color: white;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

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

/* Efectos mejorados para formas flotantes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(66, 153, 225, 0.1));
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 
        0 8px 32px rgba(255,255,255,0.1),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    animation-duration: 8s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 7s;
}

/* Agregar más formas para mayor dinamismo */
.shape:nth-child(4) {
    width: 40px;
    height: 40px;
    top: 10%;
    right: 30%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.shape:nth-child(5) {
    width: 100px;
    height: 100px;
    bottom: 30%;
    right: 20%;
    animation-delay: 3s;
    animation-duration: 5s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% { 
        transform: translateY(-30px) translateX(10px) rotate(90deg);
        opacity: 1;
    }
    50% { 
        transform: translateY(-20px) translateX(-10px) rotate(180deg);
        opacity: 0.8;
    }
    75% { 
        transform: translateY(-40px) translateX(5px) rotate(270deg);
        opacity: 0.9;
    }
}

/* Mejoras visuales adicionales */
.card {
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Panel destacado con relieve especial */
.destacado-panel {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(66, 153, 225, 0.1);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.15), 
        0 10px 25px rgba(26, 54, 93, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.8),
        inset 0 -1px 0 rgba(0,0,0,0.05);
    position: relative;
}

.destacado-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    border-radius: 15px 15px 0 0;
}

.destacado-panel:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.2), 
        0 15px 35px rgba(26, 54, 93, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.9),
        inset 0 -1px 0 rgba(0,0,0,0.1);
}

/* Título destacado del portfolio */
.portfolio-title-destacado {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px !important;
    border: 1px solid rgba(26, 54, 93, 0.1);
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.1),
        0 2px 4px rgba(26, 54, 93, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.7);
    position: relative;
    transition: all 0.3s ease;
}

.portfolio-title-destacado::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--gradient);
    border-radius: 0 0 8px 8px;
}

.portfolio-title-destacado:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(0,0,0,0.15),
        0 3px 6px rgba(26, 54, 93, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

/* Estilos para la sección de clientes */
.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

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

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

.clients-grid .row {
    margin-bottom: 0;
}

.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin: 0.25rem;
}

/* Efectos visuales mejorados para imágenes del hero */
.hero-section img {
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    border-radius: 20px !important;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.1) contrast(1.1);
}

.hero-section img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.03);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    filter: brightness(1.2) contrast(1.2);
}

/* Efecto de resplandor para imagen del hero */
.hero-section img::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes shine {
    0% { transform: rotate(45deg) translateX(-200%); }
    50% { transform: rotate(45deg) translateX(0%); }
    100% { transform: rotate(45deg) translateX(200%); }
}

.service-card ul li {
    margin-bottom: 0.5rem;
}

/* Efectos mejorados para imágenes de la sección About */
.section-padding img {
    border-radius: 15px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.section-padding img:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    filter: brightness(1.05) saturate(1.1);
}

/* Efecto glass morphism para contenedores de imagen */
.img-container {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
}

.portfolio-item img {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    filter: brightness(0.95) contrast(1.05);
}

.portfolio-item:hover img {
    transform: scale(1.05) rotate(1deg);
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Overlay gradiente para imágenes */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.1) 0%, rgba(66, 153, 225, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.portfolio-item:hover::before {
    opacity: 1;
}

/* Mejoras para móviles */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: 60px 0;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}
#footerWhatsapp {
	    position:fixed;
	    bottom:5px;
	    right:100px;
	    z-index:999999
	}

/* Estilos para validación visual de formularios */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
    animation: fadeIn 0.3s ease-in;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #198754;
    animation: fadeIn 0.3s ease-in;
}

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

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* Estilos para botones en estado de loading */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animaciones de entrada en scroll */
.service-card, .client-logo, .portfolio-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.animate-in, .client-logo.animate-in, .portfolio-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Efectos adicionales para el hero */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, rgba(247, 250, 252, 0.8) 70%, #f7fafc 100%);
    z-index: 2;
}

/* Efecto de resplandor en botones */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Efectos de cristal para elementos destacados */
.destacado-panel {
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
}

/* Mejoras en gradientes */

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}