/* 
* Kube Agency - Estilos personalizados
* Paleta de colores: 
* - Negro: #000000
* - Blanco: #ffffff
* - Gris: #6c757d
*/

/* Estilos generales */
:root {
    --primary-color: #000000;
    --secondary-color: #6c757d;
    --white: #ffffff;
    --dark: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--white);
    color: #333;
    overflow-x: hidden;
    padding-top: 76px; /* Para compensar la navbar fija */
    position: relative;
}

/* Elementos de fondo con square.png */
body::before,
body::after {
    content: "";
    position: fixed;
    background-image: url('/kube2/assets/img/visible_square.png');
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.2; /* Reducimos la opacidad para hacerlo más sutil */
}

body::before {
    width: 250px;
    height: 250px;
    top: 15%;
    left: 5%;
    transform: rotate(15deg);
    background-size: contain;
}

body::after {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 7%;
    transform: rotate(-20deg);
    background-size: contain;
}

.square-bg-1,
.square-bg-2,
.square-bg-3,
.square-bg-4,
.square-bg-5 {
    position: fixed;
    background-image: url('/kube2/assets/img/visible_square.png');
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -1;
    opacity: 0.2; /* Reducimos la opacidad para hacerlo más sutil */
}

.square-bg-1 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 25%;
    transform: rotate(45deg);
}

.square-bg-2 {
    width: 250px;
    height: 250px;
    bottom: 35%;
    left: 20%;
    transform: rotate(-10deg);
}

.square-bg-3 {
    width: 180px;
    height: 180px;
    top: 60%;
    left: 40%;
    transform: rotate(30deg);
}

.square-bg-4 {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 15%;
    transform: rotate(-25deg);
}

.square-bg-5 {
    width: 220px;
    height: 220px;
    bottom: 15%;
    left: 10%;
    transform: rotate(5deg);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #333333;
    border-color: #333333;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 40px;
}

.navbar .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar .nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    position: relative;
}

.hero-image {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Tarjetas de servicios */
.service-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.icon-wrapper i {
    font-size: 28px;
    color: white;
}

/* Quitar los estilos antiguos de contact-info */
.contact-info .d-flex,
.contact-info .icon-wrapper,
.contact-info .icon-wrapper i,
.contact-info h5,
.contact-info p {
    /* Resetear estilos antiguos */
    margin: 0;
    padding: 0;
    display: initial;
    align-items: initial;
    justify-content: initial;
    min-width: initial;
    width: initial;
    height: initial;
}

/* Nuevo diseño para la sección de contacto */
.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-icon i {
    color: #fff;
    font-size: 18px;
}

.contact-text h5 {
    margin: 0 0 5px 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-text p {
    margin: 0;
    color: #555;
}

/* Noticias */
.news-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
}

.news-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-card img {
    height: 200px;
    object-fit: cover;
}

.badge {
    background-color: var(--primary-color);
}

/* Chatbot */
.chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Elevenlabs Convai Widget */
elevenlabs-convai {
    position: fixed;
    bottom: 20px;
    right: 150px; /* Aumentado de 90px a 150px para moverlo más a la izquierda */
    z-index: 1000;
}

.chat-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.chat-icon i {
    font-size: 24px;
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h5 {
    margin: 0;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.message {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.bot-message {
    background-color: #f1f1f1;
    color: #333;
    border-top-left-radius: 0;
    align-self: flex-start;
}

.user-message {
    background-color: var(--primary-color);
    color: white;
    border-top-right-radius: 0;
    align-self: flex-end;
    margin-left: auto;
}

.loading-message {
    animation: pulse 1.2s infinite;
    font-style: italic;
    opacity: 0.7;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.5;
    }
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
}

.chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
}

.send-chat {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 70px 0;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        text-align: center;
        padding: 50px 0;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    .chat-window {
        width: 300px;
    }
}

/* Social Icons */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
} 