/* Glassmorphism Premium Design - Electrocarp WOW */

:root {
    --color-primario: #234171;
    --color-acento: #f2ed5c;
    --color-verde: #569b43;
    --color-texto-claro: #FFFFFF;
    --color-texto-oscuro: #0A2342;
    --fuente-titulos: 'Montserrat', sans-serif;
    --fuente-cuerpo: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--fuente-cuerpo);
    color: var(--color-texto-oscuro);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(242, 237, 92, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(86, 155, 67, 0.1) 0%, transparent 50%), radial-gradient(circle at 40% 20%, rgba(35, 65, 113, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fuente-titulos);
    font-weight: 700;
    color: var(--color-texto-oscuro);
}

.display-4, .display-5, .display-6 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.navbar {
    background: rgba(35, 65, 113, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar:hover {
    background: rgba(35, 65, 113, 1) !important;
}

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

.navbar-brand:hover img {
    transform: scale(1.1) rotate(5deg);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-acento);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--color-acento) !important;
    transform: translateY(-2px);
}

#heroCarousel .carousel-item {
    transition: transform 1s ease, opacity 1s ease;
    position: relative;
}

#heroCarousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(35, 65, 113, 0.7) 0%, rgba(86, 155, 67, 0.5) 100%);
    z-index: 1;
}

#heroCarousel .carousel-caption {
    z-index: 2;
    animation: fadeInUp 1s ease;
}

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

#heroCarousel .carousel-caption h1 {
    color: var(--color-texto-claro);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
    animation: slideInLeft 1s ease 0.3s both;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

#heroCarousel .carousel-caption p {
    color: var(--color-texto-claro);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
    animation: slideInRight 1s ease 0.5s both;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

#heroCarousel .btn {
    animation: bounceIn 1s ease 0.7s both;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.info-box {
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--color-texto-claro);
    background: rgba(35, 65, 113, 0.9);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(242, 237, 92, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.info-box:hover::before {
    opacity: 1;
    animation: rotate 10s linear infinite;
}

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

.info-box:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 70px rgba(242, 237, 92, 0.4);
    border-color: var(--color-acento);
}

.info-box .icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--color-acento);
    z-index: 1;
    transition: transform 0.3s ease;
}

.info-box:hover .icon {
    transform: scale(1.2) rotate(10deg);
}

.info-box h2 {
    color: var(--color-texto-claro);
    margin-bottom: 1.5rem;
    z-index: 1;
}

.info-box p {
    flex-grow: 1;
    z-index: 1;
    line-height: 1.8;
}

.info-box-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-texto-oscuro);
}

.info-box-light h2 {
    color: var(--color-primario);
}

.info-box-light:hover {
    box-shadow: 0 25px 70px rgba(86, 155, 67, 0.4);
}

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--color-acento) 0%, #e1db4a 100%);
    border: none;
    color: var(--color-primario);
    box-shadow: 0 5px 20px rgba(242, 237, 92, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(242, 237, 92, 0.6);
    color: var(--color-primario);
}

.btn-outline-light, .btn-outline-secondary {
    border-width: 2px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--color-acento);
    border-color: var(--color-acento);
    color: var(--color-primario);
    transform: translateY(-3px);
}

.card {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(242, 237, 92, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: 1;
}

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

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(35, 65, 113, 0.3);
    border-color: var(--color-acento);
}

.card img {
    transition: transform 0.5s ease;
    z-index: 0;
}

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

.card-body {
    position: relative;
    z-index: 2;
}

.card-title {
    color: var(--color-primario);
    font-weight: 700;
}

.value-prop-card {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    height: 100%;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.value-prop-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-acento), var(--color-verde), var(--color-primario));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.value-prop-card:hover::before {
    opacity: 1;
}

.value-prop-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 20px 50px rgba(35, 65, 113, 0.3);
}

.value-prop-card h4 {
    color: var(--color-primario);
    font-weight: 700;
    transition: color 0.3s ease;
}

.value-prop-card:hover h4 {
    color: var(--color-verde);
}

.service-row, .feature-row {
    margin: 4rem 0;
    opacity: 0;
    animation: fadeInUpRow 0.8s ease forwards;
}

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

.service-row img, .feature-row img {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.service-row:hover img, .feature-row:hover img {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 25px 60px rgba(35, 65, 113, 0.4);
}

.service-row h2::after, .feature-row h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-acento), var(--color-verde));
}

.footer {
    background: linear-gradient(135deg, var(--color-primario) 0%, #1a2f52 100%);
    color: var(--color-texto-claro);
    padding: 2rem 0;
    margin-top: 5rem;
}

.footer a {
    transition: all 0.3s ease;
}

.footer a:hover {
    transform: translateY(-3px);
    color: var(--color-acento) !important;
}

.page-content {
    animation: pageLoad 0.8s ease;
}

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

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-primario), var(--color-verde));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--color-verde), var(--color-acento));
}

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(35, 65, 113, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 1);
    border-color: var(--color-acento);
    box-shadow: 0 0 0 0.25rem rgba(242, 237, 92, 0.25);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: var(--color-primario);
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(35, 65, 113, 0.4);
}

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

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

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 10;
    color: white;
}

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

.container, .container-fluid {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .info-box {
        margin-bottom: 2rem;
    }
    #heroCarousel .carousel-item {
        height: 50vh !important;
    }
}
