/* ================================================================
   ESTILOS PROFESIONALES Y ANIMACIONES AVANZADAS
   Electricá Solutions - Diseño Moderno y Sofisticado
   ================================================================ */

:root {
    --primary: #FFD700;
    --primary-dark: #FFC700;
    --dark-bg: #0f0f1e;
    --card-bg: #1a1a2e;
    --accent: #00d4ff;
    --accent-secondary: #00f2fe;
    --text-light: #e4e4e7;
    --text-muted: #a1a1a1;
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
    --gradient-neon: linear-gradient(135deg, #00d4ff 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.2);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

/* ================================================================
   RESET Y BASE
   ================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ================================================================
   ANIMACIONES GLOBALES
   ================================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
    }
    100% {
        transform: rotate(360deg);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
}

@keyframes slideUpStagger {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blinkBorder {
    0%, 100% {
        border-color: rgba(255, 215, 0, 0.3);
    }
    50% {
        border-color: rgba(255, 215, 0, 0.8);
    }
}

@keyframes morphing {
    0% {
        border-radius: 50%;
    }
    50% {
        border-radius: 10%;
    }
    100% {
        border-radius: 50%;
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ================================================================
   NAVBAR
   ================================================================ */

.navbar {
    background: rgba(15, 15, 30, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
    animation: fadeInDown 0.6s ease-out;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar:hover {
    background: rgba(15, 15, 30, 0.98) !important;
    box-shadow: 0 16px 40px rgba(255, 215, 0, 0.15);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
    margin: 0 10px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.nav-link:hover {
    color: var(--primary) !important;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 100%;
}

.badge {
    animation: pulse 2s ease-in-out infinite;
    border: 2px solid var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
}

/* ================================================================
   HERO SECTION
   ================================================================ */

.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    animation: fadeInUp 1s ease-out;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out 0.2s both;
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-section .lead {
    font-size: 1.4rem;
    color: var(--accent-secondary);
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.btn-lg {
    padding: 16px 40px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
}

.btn-lg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-lg:hover::before {
    left: 100%;
}

.btn-lg:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

/* ================================================================
   SECCIONES GENERALES
   ================================================================ */

section {
    padding: 80px 0;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

section h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

section h2 span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================================================
   TARJETAS DE SERVICIOS
   ================================================================ */

.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    border-color: var(--primary);
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2), var(--shadow-lg);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card .btn {
    align-self: flex-start;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: var(--transition);
}

.service-card .btn:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

/* ================================================================
   TARJETAS DE PORTAFOLIO
   ================================================================ */

.portfolio-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    height: 100%;
    min-height: 200px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    margin: 0 auto;
}

.portfolio-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.25), var(--shadow-lg);
    border-color: var(--primary);
}

.portfolio-card:hover::after {
    opacity: 1;
}

.portfolio-card h5,
.portfolio-card p {
    position: relative;
    z-index: 2;
    text-align: center;
}

.portfolio-card h5 {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.portfolio-card p {
    color: var(--accent);
    font-weight: 500;
}

/* ================================================================
   TARJETAS DE PRECIOS
   ================================================================ */

.pricing-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.pricing-card:hover::before {
    left: 100%;
}

.pricing-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 30px 60px rgba(255, 215, 0, 0.25), var(--shadow-lg);
    border-color: var(--primary);
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.pricing-card .display-4 {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: 2px;
}

.pricing-card ul li {
    transition: var(--transition);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.05);
}

.pricing-card:hover ul li {
    padding-left: 10px;
    background: rgba(255, 215, 0, 0.02);
}

/* ================================================================
   TARJETAS DE TESTIMONIOS
   ================================================================ */

.testimonial-card {
    background: rgba(15, 15, 30, 0.05) !important;
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -40px;
    left: 10px;
    font-size: 6rem;
    color: rgba(255, 215, 0, 0.1);
    font-weight: bold;
    transition: var(--transition);
}

.testimonial-card:hover::before {
    color: rgba(255, 215, 0, 0.2);
    transform: translateY(20px);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2), var(--shadow-lg);
    border-color: var(--primary);
}

.stars {
    margin-bottom: 15px;
    animation: fadeInUp 0.6s ease-out;
}

.stars i {
    color: var(--primary);
    margin-right: 3px;
    transition: var(--transition);
}

.testimonial-card:hover .stars i {
    transform: scale(1.2) rotate(15deg);
}

/* ================================================================
   FORMULARIO DE CONTACTO
   ================================================================ */

.form-control,
.form-select {
    background: transparent !important;
    border: 1px solid rgba(255, 215, 0, 0.03);
    color: var(--text-light);
    border-radius: 15px;
    transition: var(--transition);
    padding: 15px 20px;
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    background: transparent !important;
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.08);
    color: var(--text-light);
}

.form-label {
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

/* ================================================================
   INFORMACIÓN DE CONTACTO
   ================================================================ */

.contact-info {
    background: transparent !important;
    border: 1px solid rgba(255, 215, 0, 0.03);
    border-radius: 20px;
    backdrop-filter: blur(0px);
    transition: var(--transition);
}

.contact-info:hover {
    border-color: rgba(255, 215, 0, 0.15);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.1);
}

.contact-info h4 {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info .fa-map-marker-alt,
.contact-info .fa-phone,
.contact-info .fa-envelope,
.contact-info .fa-clock {
    transition: var(--transition);
}

.contact-info:hover .fa-map-marker-alt,
.contact-info:hover .fa-phone,
.contact-info:hover .fa-envelope,
.contact-info:hover .fa-clock {
    transform: scale(1.2) rotate(-10deg);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

/* ================================================================
   MODALES
   ================================================================ */

.modal-content {
    background: var(--card-bg);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    animation: fadeInUp 0.5s ease-out;
}

.modal-header {
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.modal-body {
    color: var(--text-light);
}

.modal-body h6 {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 20px;
}

.modal-body ul li {
    transition: var(--transition);
    padding: 8px 0;
    padding-left: 10px;
    border-left: 3px solid transparent;
}

.modal-body ul li:hover {
    border-left-color: var(--primary);
    padding-left: 20px;
}

/* ================================================================
   FOOTER
   ================================================================ */

footer {
    background: linear-gradient(135deg, rgba(15, 15, 30, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

footer h5 {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: 1px;
}

footer p {
    color: var(--text-muted);
    font-weight: 500;
}

footer ul li {
    transition: var(--transition);
}

footer ul li:hover {
    padding-left: 8px;
    color: var(--primary);
}

/* ================================================================
   ELEMENTOS UTILITARIOS
   ================================================================ */

.bg-light {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.5) 0%, rgba(22, 33, 62, 0.5) 100%) !important;
}

.rounded-lg {
    border-radius: 20px;
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* ================================================================
   RESPONSIVA
   ================================================================ */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .service-card,
    .portfolio-card,
    .pricing-card {
        border-radius: 15px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    section {
        padding: 50px 0;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }
}

/* ================================================================
   ANIMACIONES AVANZADAS ADICIONALES
   ================================================================ */

@keyframes slideInScale {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes flipIn {
    0% {
        opacity: 0;
        transform: perspective(400px) rotateY(90deg);
    }
    100% {
        opacity: 1;
        transform: perspective(400px) rotateY(0deg);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(20px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes neonGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.1);
    }
}

@keyframes slideRight {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes revealText {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

/* CLASES DE ANIMACIÓN APLICABLES */

.animate-slideInScale {
    animation: slideInScale 0.6s ease-out;
}

.animate-flipIn {
    animation: flipIn 0.8s ease-out;
}

.animate-bounceIn {
    animation: bounceIn 0.7s ease-out;
}

.animate-neonGlow {
    animation: neonGlow 2s ease-in-out infinite;
}

.animate-heartbeat {
    animation: heartbeat 1.2s ease-in-out infinite;
}

/* EFECTO DE HOVER AVANZADO EN TARJETAS */

.card-hover {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.card-hover:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
}

/* EFECTO DE ONDAS EXPANDIBLES */

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

/* DEGRADADO ANIMADO */

.gradient-animated {
    background: linear-gradient(
        270deg,
        #FFD700,
        #00d4ff,
        #FFD700
    );
    background-size: 300% 300%;
    animation: gradientShift 15s ease infinite;
}

/* TEXTO CON EFECTO SHADOW DINÁMICO */

.text-glow {
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.3),
        0 0 40px rgba(0, 212, 255, 0.2);
    color: #FFD700;
    font-weight: 900;
    letter-spacing: 2px;
}

/* SCROLLBAR PERSONALIZADO */

::-webkit-scrollbar {
    width: 12px;
    background: rgba(15, 15, 30, 0.5);
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FFD700 0%, #00d4ff 100%);
    border-radius: 10px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FFC700 0%, #00f2fe 100%);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* ELEMENTO FLOTANTE CON SOMBRA DINÁMIVA */

.float-shadow {
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.float-shadow:hover {
    filter: drop-shadow(0 15px 30px rgba(255, 215, 0, 0.4));
}

/* BOTONES MEJORADOS CON EFECTO 3D */

.btn-3d {
    transform: perspective(1000px) rotateX(0deg);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-3d:hover {
    transform: perspective(1000px) rotateX(-5deg) translateY(-5px);
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.3),
        inset 0 -2px 5px rgba(255, 255, 255, 0.2);
}

.btn-3d:active {
    transform: perspective(1000px) rotateX(0deg) translateY(0);
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* CONTENEDOR CON BORDE ANIMADO */

.border-animated {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(rgba(15, 15, 30, 0.1), rgba(15, 15, 30, 0.1)) padding-box,
                linear-gradient(135deg, #FFD700, #00d4ff) border-box;
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* CARGA TIPO SKELETON */

@keyframes skeleton {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton-loading {
    background: linear-gradient(
        90deg,
        rgba(255, 215, 0, 0.1) 0%,
        rgba(255, 215, 0, 0.3) 50%,
        rgba(255, 215, 0, 0.1) 100%
    );
    background-size: 1000px 100%;
    animation: skeleton 2s infinite;
}

/* EFECTO DE VIDRIO ESMERILADO MEJORADO */

.glassmorphism {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.37),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.glassmorphism:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 
        0 8px 32px rgba(255, 215, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* ELEMENTO CON ENFOQUE SELECTIVO */

.focus-overlay {
    position: relative;
}

.focus-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, #FFD700, #00d4ff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.focus-overlay:hover::before {
    opacity: 1;
}

/* ANIMACIÓN DE ENTRADA ESCALONADA */

.stagger-animation > * {
    animation: slideUpStagger 0.6s ease-out backwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(n+6) { animation-delay: 0.6s; }

/* ================================================================
   ESTILOS PROFESIONALES PARA FORMULARIO DE CONTACTO
   ================================================================ */

/* CONTENEDOR DEL FORMULARIO */
.contact-form-container {
    background: linear-gradient(135deg, rgba(15, 15, 30, 0.8) 0%, rgba(22, 33, 62, 0.6) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(0, 212, 255, 0.3), rgba(255, 215, 0, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* INPUTS, SELECTS Y TEXTAREAS */
.form-control,
.form-select {
    background: linear-gradient(135deg, rgba(26, 26, 45, 0.9) 0%, rgba(30, 30, 55, 0.9) 100%) !important;
    color: #FFFFFF !important;
    border: 2px solid rgba(255, 215, 0, 0.25) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 3px rgba(255, 255, 255, 0.05);
    letter-spacing: 0.3px;
    position: relative;
}

/* PLACEHOLDER TEXT */
.form-control::placeholder,
.form-select::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    font-style: italic;
    font-weight: 400;
}

/* FOCUS STATE - EFECTO NEON */
.form-control:focus,
.form-select:focus {
    background: linear-gradient(135deg, rgba(26, 26, 45, 1) 0%, rgba(30, 30, 55, 1) 100%) !important;
    color: #FFD700 !important;
    border-color: #FFD700 !important;
    box-shadow: 
        0 0 25px rgba(255, 215, 0, 0.4),
        0 0 40px rgba(0, 212, 255, 0.2),
        inset 0 1px 3px rgba(255, 215, 255, 0.1),
        0 8px 20px rgba(255, 215, 0, 0.15) !important;
    outline: none !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* HOVER STATE */
.form-control:hover:not(:focus),
.form-select:hover:not(:focus) {
    border-color: rgba(255, 215, 0, 0.5) !important;
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.2),
        inset 0 1px 3px rgba(255, 255, 255, 0.08),
        0 0 15px rgba(0, 212, 255, 0.1) !important;
    transform: translateY(-2px);
}

/* TEXTAREA ESPECÍFICO */
.form-control[type="textarea"],
textarea.form-control {
    resize: vertical;
    min-height: 120px;
    max-height: 250px;
    line-height: 1.6;
}

textarea.form-control:focus {
    animation: none;
}

/* LABELS MEJORADOS */
.form-label {
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    color: #FFD700 !important;
    margin-bottom: 10px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-label::before {
    content: '';
    width: 3px;
    height: 16px;
    background: linear-gradient(180deg, #FFD700 0%, #00D4FF 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

.form-label:hover::before {
    height: 24px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

/* GRUPOS DE FORMULARIO CON ESPACIADO */
.mb-1 {
    margin-bottom: 1.8rem !important;
    animation: slideInLeft 0.6s ease-out backwards;
}

.mb-1:nth-child(1) { animation-delay: 0.1s; }
.mb-1:nth-child(2) { animation-delay: 0.2s; }
.mb-1:nth-child(3) { animation-delay: 0.3s; }
.mb-1:nth-child(4) { animation-delay: 0.4s; }
.mb-1:nth-child(5) { animation-delay: 0.5s; }
.mb-1:nth-child(6) { animation-delay: 0.6s; }

/* BOTÓN DE ENVÍO MEJORADO */
.btn-submit-form {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #000000 !important;
    border: none !important;
    font-weight: 900 !important;
    letter-spacing: 1.5px !important;
    padding: 14px 32px !important;
    border-radius: 12px !important;
    font-size: 1.05rem !important;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 
        0 10px 30px rgba(255, 215, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2),
        inset 0 -2px 5px rgba(0, 0, 0, 0.2) !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
}

.btn-submit-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-submit-form:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(255, 215, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.3),
        inset 0 -2px 5px rgba(0, 0, 0, 0.3) !important;
}

.btn-submit-form:hover::before {
    left: 100%;
}

.btn-submit-form:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 
        0 5px 15px rgba(255, 215, 0, 0.2),
        inset 0 3px 8px rgba(0, 0, 0, 0.3) !important;
}

/* MENSAJE DE RESPUESTA */
#formMessage {
    border-radius: 12px;
    padding: 16px 20px;
    font-weight: 600;
    animation: slideInScale 0.5s ease-out;
    border-left: 5px solid;
}

#formMessage.success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(56, 142, 60, 0.15) 100%);
    border-left-color: #4CAF50;
    color: #81C784;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.2);
}

#formMessage.error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2) 0%, rgba(211, 47, 47, 0.15) 100%);
    border-left-color: #F44336;
    color: #EF5350;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.2);
}

/* VALIDACIÓN DE FORMULARIO */
.form-control.is-valid,
.form-select.is-valid {
    border-color: #4CAF50 !important;
    box-shadow: 
        0 0 15px rgba(76, 175, 80, 0.3),
        inset 0 1px 3px rgba(255, 255, 255, 0.05) !important;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #F44336 !important;
    box-shadow: 
        0 0 15px rgba(244, 67, 54, 0.3),
        inset 0 1px 3px rgba(255, 255, 255, 0.05) !important;
}

/* EFECTO DE ENFOQUE SELECTIVO EN EL FORMULARIO */
#contactForm:has(.form-control:focus),
#contactForm:has(.form-select:focus) {
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.2));
}

/* INFORMACIÓN DE CONTACTO MEJORADA */
.contact-info {
    background: linear-gradient(135deg, rgba(26, 107, 143, 0.15) 0%, rgba(0, 212, 255, 0.08) 100%) !important;
    border: 2px solid rgba(0, 212, 255, 0.25);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 10px 30px rgba(0, 212, 255, 0.1),
        inset 0 1px 1px rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.contact-info:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 
        0 15px 40px rgba(0, 212, 255, 0.2),
        inset 0 1px 1px rgba(0, 212, 255, 0.15);
    transform: translateY(-5px);
}

.contact-info h4 {
    background: linear-gradient(135deg, #00D4FF 0%, #00F2FE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900 !important;
    font-size: 1.5rem !important;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-info i {
    color: #FFD700;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

.contact-info:hover i {
    color: #00D4FF;
    filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.6));
    transform: scale(1.1);
}

/* ENLACES SOCIALES */
.contact-info .btn-sm {
    border-radius: 8px !important;
    padding: 10px 14px !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    font-weight: 700 !important;
}

.contact-info .btn-sm:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3) !important;
}

/* ESTILOS PARA INFORMACIÓN DE CONTACTO - HACE MÁS VISIBLE */
.contact-info h6 {
    font-size: 1.2rem !important;
    letter-spacing: 0.5px !important;
}

.contact-info .mb-4 p {
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 2rem !important;
        min-height: auto;
    }
    
    .form-control,
    .form-select {
        padding: 10px 14px !important;
        font-size: 0.95rem !important;
    }
    
    .btn-submit-form {
        padding: 12px 24px !important;
        font-size: 1rem !important;
    }
    
    .form-label {
        font-size: 1rem !important;
    }
}

/* ================================================================
   ANIMACIONES PARA COLLAPSE (DESPLEGABLES)
   ================================================================ */

.collapse {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.collapse.show {
    animation: slideInScale 0.5s ease-out;
}

/* ESTILOS ESPECÍFICOS PARA COLLAPSE DE INFORMACIÓN */
#contactInfoCollapse .contact-info,
#contactFormCollapse .contact-form-container {
    animation: slideInScale 0.6s ease-out;
}

/* EFECTO DE BRILLO EN COLLAPSE AL ABRIRSE */
.collapse.show {
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.15));
}

/* TRANSICIÓN SUAVE DEL COLLAPSE */
.collapse:not(.show) {
    display: none;
}

.collapsing {
    overflow: hidden;
    transition: height 0.35s cubic-bezier(0.23, 1, 0.320, 1);
}
