/* Estilos principales del frontend */
:root {
    /*--primary-color: #0d6efd;*/
    --primary-color: #bf00ff;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Transiciones SPA */
.page-transition {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Navegación */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    position: relative;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.bg-portolio {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%);  
  /*text-shadow:
        0 0 5px #fff,
        0 0 15px #bf00ff,
        0 0 30px #bf00ff;
    */
}

/*Boton Admin */
.btn-outline-admin {
  color: var(--primary-color); /* Primary Blue */
  background-color: transparent;
  border: 1px solid var(--primary-color);
  padding: 0.375rem 0.75rem;
  transition: all 0.2s ease-in-out;
}

.btn-outline-admin:hover {
  color: #fff;
  /*background-color: var(--primary-color);
  background-color: #212529;*/
  background-color: transparent;
  border-color: var(--primary-color);
  text-shadow:
        0 0 5px #fff,
        0 0 15px #bf00ff,
        0 0 30px #bf00ff;
}

/*Boton Primary */
.btn-outline-primary {
  color: var(--primary-color); /* Primary Blue */
  background-color: transparent;
  border: 1px solid var(--primary-color);
  padding: 0.375rem 0.75rem;
  transition: all 0.2s ease-in-out;
}

.btn-outline-primary:hover {
  color: #0b5ed7;
  background-color: transparent;
  border-color: #0b5ed7;
  text-shadow:
        0 0 5px #fff,
        0 0 10px #0b5ed7,
        0 0 20px #0b5ed7;
}

/* Icono base*/
.icon-primary{
    color: var(--primary-color);
}

.check {    
    color: var(--primary-color);
}

/*Logo website */
.logo-branding-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 35px;
    height: auto;
    margin-right: 5px;
    filter: drop-shadow(0 0 10px rgba(191, 0, 255, 0.5));
}

.logo-text-box {    
    display: flex;
    justify-content: center; /* Centrado horizontal */
    align-items: center;     /* Centrado vertical */
    /*height: 100vh;*/           /* Altura total de la pantalla */
}

.logo-main-title {
    font-size: 26px;
    /*font-weight: bold;*/
    color: #ffffff;
    /*text-transform: uppercase;*/
    margin: 0;
    /*line-height: 1;*/
    /*text-shadow:
        0 0 5px #fff,
        0 0 15px #bf00ff,
        0 0 30px #bf00ff;*/
}

.logo-main-title:hover {
  color: #fff;
  background-color: #212529;
  border-color: var(--primary-color);
  text-shadow:
        0 0 5px #fff,
        0 0 15px #bf00ff,
        0 0 30px #bf00ff;
}


.logo-sub-title {
    font-size: 12px;
    font-weight: normal;
    color: #ffffff;
    /*text-transform: uppercase;*/
    letter-spacing: 2px;
    margin-top: 1px;
    text-shadow:
        0 0 3px #fff,
        0 0 10px #9400d3;
}

/* --- RANGO 1: Móviles (Portrait) y Tablets pequeñas ---
    (min-width: 320px) and (max-width: 599px) */
@media only screen and (min-width: 320px) and (max-width: 599px) {
    
    .logo {        
        visibility: hidden;
    }

    .logo-main-title {
        font-size: 32px; /* Título mucho más pequeño */
        letter-spacing: 2px;
    }

    .logo-sub-title {
        font-size: 14px; /* Subtítulo muy pequeño */
        letter-spacing: 3px; /* Reducimos el espaciado para que quepa */
        margin-top: 8px;
    }
}

/* --- RANGO 2: Móviles (Landscape) y Tablets medianas ---
    (min-width: 600px) and (max-width: 767px) */
@media only screen and (min-width: 600px) and (max-width: 767px) {
    
    /* Mantenemos la disposición horizontal, pero ajustamos tamaños */
    .logo {
        width: 90px;
        margin-right: 15px;
    }

    .logo-main-title {
        font-size: 40px; /* Título intermedio */
        letter-spacing: 1px;
    }

    .logo-sub-title {
        font-size: 18px; /* Subtítulo intermedio */
        letter-spacing: 4px;
    }
}

/* --- RANGO 3: Tablets (Portrait/Landscape) y Laptops pequeñas ---
    (min-width: 768px) and (max-width: 1024px) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    
    /* Ajustes sutiles, casi como el diseño base pero un poco más compacto */
    .logo {
        width: 110px;
        margin-right: 20px;
    }

    .logo-main-title {
        font-size: 50px;
    }

    .logo-sub-title {
        font-size: 20px;
        letter-spacing: 5px;
    }
}

/*  Piensa, innova y transforma */
.pit{
    font-size: 20px;
    color: #ffffff !important;
    text-shadow:
        0 0 3px #fff,
        0 0 10px #9400d3;
}

/* Hero Section */
.hero {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%);
    position: relative;
    overflow: hidden;
    background-size: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800"><path fill="rgba(255,255,255,0.05)" d="M400,0C179,0,0,179,0,400s179,400,400,400s400-179,400-400S621,0,400,0z"/></svg>') no-repeat;
    background-size: cover;
    opacity: 0.1;
}

.hero .hero-img {
    /*width: 65%;*/
    height: auto;
    align-items:end;
}

.hero h1 {
    font-size: 60px;
}

.hero p {
    font-size: 22px;
}

/* Tarjetas */
.card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.hover-shadow:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
}

/* Servicios */
.services .card {
    border: none;
    background: white;
}

.services .card-body {
    padding: 2rem;
}

/* Portfolio */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* Testimonios */
.carousel-item {
    padding: 2rem 0;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

/* Formulario de contacto */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Footer */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: white !important;
}

.hover-text-white:hover {
    color: white !important;
}

/* Botones */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 1rem 2rem;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
}

/* Placeholder */
.placeholder {
    border-radius: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero {
        text-align: center;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
}

/* Animaciones */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}


.newsletter-section {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(15deg);
    pointer-events: none;
}

.newsletter-wrapper {
    position: relative;
    z-index: 2;
}

.newsletter-form .form-control {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.newsletter-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.newsletter-form .input-group-text {
    border-radius: 0.5rem 0 0 0.5rem;
}

.newsletter-form .form-control {
    border-radius: 0 0.5rem 0.5rem 0;
}
/*
.newsletter-form .btn-light {
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.newsletter-form .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
*/
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-label a {
    color: white;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.form-check-label a:hover {
    opacity: 0.8;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 2rem;
}

.modal-body h4 {
    color: #0d6efd;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p {
    line-height: 1.6;
    color: #495057;
}

@media (max-width: 768px) {
    .newsletter-form .btn-light {
        margin-top: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/*newsletter-section*/

/* Estilos para la sección FAQ */
/*
.faq-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.faq-accordion .accordion-button::after {
    transition: transform 0.3s ease;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.faq-image-container {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.faq-accordion {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Estilo para el hover en las preguntas - BLOQUE-2*/
/*
.faq-accordion .accordion-button:hover {
    background-color: #f0f0f0;
}
*/

/* Animación de acordeón */
/*
.accordion-collapse {
    transition: all 0.3s ease;
}
*/

/* Badges de categoría en el frontend */
/*
.faq-category-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
}
*/

/* faq tabs */
/* Estilos adicionales para las pestañas FAQ */
/*
.faq-nav-tabs .nav-link {
    position: relative;
    overflow: hidden;
}

.faq-nav-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.faq-nav-tabs .nav-link:hover::before {
    left: 100%;
}
*/

/* Efecto ripple para las preguntas */
/*
.faq-question {
    position: relative;
    overflow: hidden;
}

.faq-question::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.faq-question:active::after {
    width: 300px;
    height: 300px;
}
*/

/* Transiciones suaves */
/*
.faq-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
*/

/* Personalización del scrollbar para las tabs */
/*
.faq-tab-content::-webkit-scrollbar {
    width: 8px;
}

.faq-tab-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.faq-tab-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

.faq-tab-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46a0);
}
*/