/* Chatbot Page Specific Styles - Sintesia Studio */

/* Variables globales para colores consistentes */
:root {
    --petrol-blue: #19376D;
    --petrol-blue-light: #29477D;
    --seo-accent-color: #207C8A;
    --seo-accent-color-hover: #269AAA;
    --old-gold: #AD9E87;
    --old-gold-light: #C3B39C;
    --pastel-bg: #f9f7f4;
    --pastel-bg-alt: #f3efea;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0 100px;
    color: white;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f203a 0%, #1a3a4a 100%);
}


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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(90deg, #fff 0%, #86e3ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 90%;
    line-height: 1.8;
}

.hero-buttons .btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-right: 15px;
    margin-bottom: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-width: 180px;
}

.hero-buttons .btn-primary {
    background: linear-gradient(45deg, var(--seo-accent-color), #1a7c8e);
    border: none;
    box-shadow: 0 5px 15px rgba(32, 124, 138, 0.4);
}

.hero-buttons .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(32, 124, 138, 0.6);
    transform: translateY(-3px);
    background: linear-gradient(45deg, #207c8a, var(--seo-accent-color-hover));
}

.hero-buttons .btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn-outline: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.7s;
    z-index: -1;
}

.hero-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.hero-buttons .btn-outline:hover:before {
    left: 100%;
}

/* Floating Chat Container */
.floating-chat-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 40vh;
    margin: 0 auto;
    perspective: 1000px;
}

/* Chat Message Styles */
.chat-message {
    position: absolute;
    display: flex;
    align-items: flex-start;
    border-radius: 15px;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 15px;
    max-width: 80%;
    opacity: 0;
    transform-origin: center;
}

/* Bot Message Specific */
.bot-message {
    left: 10px;
}

.message-1 {
    top: 25px;
    animation: dropIn 0.8s ease-out 0.5s forwards, float1 5s ease-in-out 1.3s infinite;
    transform: translateY(-50px) scale(0.9);
}

/* User Message Specific */
.user-message.message-2 {
    right: 25px;
    flex-direction: row-reverse;
    top: 250px;
    animation: slideInRight 0.8s ease-out 1.7s forwards, float2 4.8s ease-in-out 2.5s infinite;
    transform: translateX(50px) scale(0.9);
    width: 70%;
}

.message-3 {
    bottom: 25px;
    animation: riseIn 0.8s ease-out 3s forwards, float3 5.5s ease-in-out 3.8s infinite;
    transform: translateY(50px) scale(0.9);
}

/* Avatar Styling */
.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, var(--seo-accent-color), #1a7c8e);
    color: white;
}

.user-message .message-avatar {
    margin-right: 0;
    margin-left: 12px;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.message-content {
    padding: 10px 15px;
    background: #f5f7fa;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--seo-accent-color), #1a7c8e);
    color: white;
}

/* Animation Keyframes */
@keyframes dropIn {
    0% { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9); 
    }
    70% { 
        opacity: 1;
        transform: translateY(10px) scale(1.02); 
    }
    100% { 
        opacity: 1;
        transform: translateY(0) scale(1); 
    }
}

@keyframes slideInRight {
    0% { 
        opacity: 0;
        transform: translateX(50px) scale(0.9); 
    }
    70% { 
        opacity: 1;
        transform: translateX(-10px) scale(1.02); 
    }
    100% { 
        opacity: 1;
        transform: translateX(0) scale(1); 
    }
}

@keyframes riseIn {
    0% { 
        opacity: 0;
        transform: translateY(50px) scale(0.9); 
    }
    70% { 
        opacity: 1;
        transform: translateY(-10px) scale(1.02); 
    }
    100% { 
        opacity: 1;
        transform: translateY(0) scale(1); 
    }
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

.chatbot-screen {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.chatbot-message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--seo-accent-color), #1a7c8e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    font-size: 1.2rem;
}

.chatbot-bubble {
    background: #f5f7fa;
    padding: 12px 18px;
    border-radius: 18px 18px 18px 5px;
    max-width: 80%;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
}

.typing-indicator {
    display: flex;
    padding: 10px 0 5px 15px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #86e3ef;
    border-radius: 50%;
    margin-right: 5px;
    opacity: 0.7;
}

.typing-indicator span:nth-child(1) {
    animation: typing 1.5s infinite;
}

.typing-indicator span:nth-child(2) {
    animation: typing 1.5s infinite 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation: typing 1.5s infinite 0.4s;
}

.chatbot-base {
    width: 80%;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    margin: -10px auto 0;
    border-radius: 0 0 10px 10px;
    filter: blur(5px);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.floating-element.el-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
    background: radial-gradient(circle, rgba(32, 124, 138, 0.2), transparent 70%);
    animation: float 15s infinite alternate;
}

.floating-element.el-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    background: radial-gradient(circle, rgba(173, 158, 135, 0.15), transparent 70%);
    animation: float 12s infinite alternate-reverse;
}

.floating-element.el-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 10%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    animation: float 18s infinite alternate;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes typing {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-5px); opacity: 1; }
}

/* Benefits Section */
.benefits-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    background-image: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(25, 55, 109, 0.85) 0%, rgba(32, 124, 138, 0.85) 100%);
    z-index: 1;
}

.benefits-section .container {
    position: relative;
    z-index: 2;
}

/* Benefit Cards */
.benefit-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Benefit Icons */
.benefit-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.8rem;
    font-size: 2rem;
    color: white;
    background: linear-gradient(135deg, var(--seo-accent-color) 0%, #1a7c8e 100%);
    box-shadow: 0 8px 20px rgba(32, 124, 138, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: rotate(-5deg);
}

.benefit-card:hover .benefit-icon {
    transform: rotate(0deg) scale(1.1);
}

/* Titles and Text */
.benefit-card h3 {
    color: var(--petrol-blue);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.8rem;
    text-align: center;
}

.benefit-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: calc(50% - 20px); /* Posición inicial centrada (mitad del ancho) */
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--seo-accent-color), transparent);
    transition: width 0.3s ease;
    transform-origin: left; /* Punto de origen a la izquierda */
}

.benefit-card:hover h3::after {
    width: 60px; /* Solo cambia el ancho, manteniendo el origen fijo */
}

.benefit-card p {
    color: #555;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.02rem;
    min-height: 80px;
}

/* Botón para tarjetas de beneficios */
.benefit-card .card-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--seo-accent-color), #1a7c8e);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    box-shadow: 0 4px 12px rgba(32, 124, 138, 0.3);
    position: relative;
    overflow: hidden;
    display: block;
    width: 80%;
    margin: 0 auto;
    text-align: center;
}

.benefit-card .card-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(32, 124, 138, 0.4);
    background: linear-gradient(45deg, #1a7c8e, var(--seo-accent-color-hover));
}

.benefit-card .card-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 30px;
    background: linear-gradient(45deg, var(--old-gold), #c5b594, var(--old-gold-light));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-card .card-button:hover::before {
    opacity: 1;
}

.section-title {
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--petrol-blue);
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
    font-size: 2.5rem;
}

/* Estilos para el separador de título */
.title-separator {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #39e5ed, transparent);
    margin: 15px auto 0;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(32, 124, 138, 0.4);
}

.title-separator::before,
.title-separator::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #39e5ed;
    border-radius: 50%;
    top: -2px;
    box-shadow: 0 0 10px rgba(57, 229, 237, 0.8);
}

.title-separator::before {
    left: 15%;
}

.title-separator::after {
    right: 15%;
}

.benefit-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.4s ease;
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.benefit-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    transform: scale(0.5);
}

.benefit-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(32, 124, 138, 0.3);
}

.benefit-card:hover::after {
    opacity: 1;
    transform: scale(1);
    transition: transform 1s ease, opacity 0.5s ease;
}

.benefit-card .benefit-icon {
    background: linear-gradient(135deg, var(--seo-accent-color) 0%, #1a7c8e 100%);
    color: #fff;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(32, 124, 138, 0.3);
    transform: rotate(-5deg);
}

.benefit-card .benefit-icon::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: rgba(32, 124, 138, 0.15);
    border-radius: 25px;
    z-index: -1;
}

.benefit-card .benefit-icon::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
}

.benefit-card .benefit-icon i {
    font-size: 1.8rem;
}

.benefit-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--petrol-blue);
    position: relative;
    padding-bottom: 0.8rem;
}

.benefit-card h3::after {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--seo-accent-color), transparent);
    transition: width 0.3s;
}


.benefit-card:hover::after {
    opacity: 1;
    transform: scale(1);
    transition: transform 1s ease, opacity 0.5s ease;
}

.benefit-card:hover h3::after {
    width: 80px;
    transform: translateX(0%) !important;
}
.benefit-card p {
    color: #555;
    margin-bottom: 0;
    line-height: 1.7;
    font-size: 1rem;
}

.benefit-decoration {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    opacity: 0.1;
    background: url('https://img.icons8.com/ios/100/000000/circled-thin-right.png');
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(-45deg);
    transition: all 0.5s ease;
}

.benefit-card:hover .benefit-decoration {
    transform: rotate(0deg);
    opacity: 0.15;
}

/* Indicador visual de beneficios */
.benefits-indicator {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 3px;
    margin: 4rem auto 0;
}

.benefits-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(32, 124, 138, 0.2), rgba(32, 124, 138, 0.8), rgba(32, 124, 138, 0.2));
    border-radius: 3px;
}

.benefits-dot {
    position: absolute;
    top: 50%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--seo-accent-color);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 5px rgba(32, 124, 138, 0.2);
    z-index: 1;
}

.benefits-dot-1 {
    left: 20%;
    animation: pulseDot 3s infinite;
}

.benefits-dot-2 {
    left: 50%;
    animation: pulseDot 3s infinite 1s;
}

.benefits-dot-3 {
    left: 80%;
    animation: pulseDot 3s infinite 2s;
}

@keyframes pulseDot {
    0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 5px rgba(32, 124, 138, 0.2); }
    50% { transform: translate(-50%, -50%) scale(1.2); box-shadow: 0 0 0 10px rgba(32, 124, 138, 0.1); }
    100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 5px rgba(32, 124, 138, 0.2); }
}

/* Flow graphics */
.feature-flow {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 8;
  width: 85%;
}

.flow-graphics {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.flow-graphic {
  position: absolute;
  border-radius: 50%;
  background: rgba(32, 124, 138, 0.1);
  filter: blur(20px);
}

.flow-graphic-1 {
  width: 150px;
  height: 150px;
  top: 10%;
  right: -50px;
  background: radial-gradient(circle, rgba(32, 124, 138, 0.15), rgba(32, 124, 138, 0.05));
  animation: float 8s infinite alternate ease-in-out;
}

.flow-graphic-2 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: -30px;
  background: radial-gradient(circle, rgba(25, 55, 109, 0.15), rgba(25, 55, 109, 0.05));
  animation: float 12s infinite alternate-reverse ease-in-out;
}

.flow-graphic-3 {
  width: 120px;
  height: 120px;
  bottom: -40px;
  right: 30%;
  background: radial-gradient(circle, rgba(173, 158, 135, 0.15), rgba(173, 158, 135, 0.05));
  animation: float 15s infinite alternate ease-in-out;
}

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.1); }
  100% { transform: translateY(10px) scale(0.95); }
}

/* Feature Section */
.feature-section {
    padding: 6rem 0;
    background-color: #0c1633; /* Fondo oscuro como en la imagen */
    color: #fff;
    position: relative;
    overflow: hidden;
}

.feature-container {
    position: relative;
}

/* Fondo con efecto de universo/espacio */
.feature-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(32, 124, 138, 0.15) 0%, rgba(12, 22, 51, 0) 70%);
    pointer-events: none;
}

/* Flow cards style como en la imagen */
.feature-flow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.feature-flow-item {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
  position: relative;
  z-index: 20; /* Mayor para estar por encima de la imagen */
  margin-bottom: 20px;
  width: 120%; /* Hace que el elemento sea más ancho */
  max-width: 500px;
  transform: translateX(30%); /* Desplaza a la derecha */
  overflow: hidden;
}

.feature-flow-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  z-index: -1;
}

.feature-flow-item:hover {
  transform: translateY(-5px) translateX(35%);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.feature-icon-data {
  background: linear-gradient(135deg, #4361ee, #4895ef);
  color: #fff;
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.feature-icon-ai {
  background: linear-gradient(135deg, #f72585, #b5179e);
  color: #fff;
  box-shadow: 0 5px 15px rgba(247, 37, 133, 0.3);
}

.feature-icon-intelligence {
  background: linear-gradient(135deg, #4cc9f0, #4895ef);
  color: #fff;
  box-shadow: 0 5px 15px rgba(76, 201, 240, 0.3);
}

.feature-icon-analytics {
  background: linear-gradient(135deg, #fb8500, #ffb703);
  color: #fff;
  box-shadow: 0 5px 15px rgba(251, 133, 0, 0.3);
}

.feature-flow-item:hover .feature-icon {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.feature-text {
  flex: 1;
}

.feature-text h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #fff;
}

.feature-text p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.feature-img-container {
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  width: 80%; /* Cambiado de 90% a 100% para ocupar todo el ancho */
  min-height: 400px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  transition: all 0.5s ease;
}

.feature-img:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(12, 22, 51, 0.7), transparent);
  z-index: 2;
}

.feature-img-container:hover .feature-img {
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .feature-img-container {
    margin-top: 30px;
  }

  .feature-flow {
    margin-bottom: 2rem;
  }
}

/* Demo Section */
.demo-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--pastel-bg) 0%, #e6f0f9 100%);
}

.demo-card {
    border-radius: 20px;
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.demo-accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.demo-accordion.active {
    max-height: 800px;
}

.chatbot-toggle-btn {
    /*background: linear-gradient(135deg, var(--seo-accent-color) 0%, #1a5f69 100%);*/
    color: white;
    border: none;
    padding: 12px 24px;
    /*border-radius: 30px;*/
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    box-shadow: 0 4px 15px rgba(32, 124, 138, 0.3);
}

.chatbot-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(32, 124, 138, 0.4);
    background: linear-gradient(135deg, #269AAA 0%, #1f7482 100%);
}

.chatbot-toggle-btn .toggle-icon {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.chatbot-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

/* Hero Section con estilo futurista */
.chatbot-hero {
    background: #0c1021;
    color: #fff;
    padding: 160px 0 100px 0;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}


.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    filter: blur(2px);
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.13), rgba(0,0,0,0)) !important;
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));
    width: 100%;
}
 
.chatbot-hero .container {
    position: relative;
    z-index: 2;
}

.chatbot-hero .row {
    min-height: 450px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #86e3ef);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 90%;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* CTA Section */
.cta-section {
    padding: 7rem 0;
    background-color: #0c1528;
    position: relative;
    color: #fff;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1639322537228-f710d846310a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1632&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -2;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(25, 55, 109, 0.9) 0%, rgba(12, 21, 40, 0.95) 100%);
    z-index: -1;
}

.cta-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.cta-highlight {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(32, 124, 138, 0.4), transparent 70%);
    top: -150px;
    right: -100px;
    filter: blur(50px);
    z-index: -1;
}

.cta-highlight-2 {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(173, 158, 135, 0.3), transparent 70%);
    bottom: -100px;
    left: -50px;
    filter: blur(40px);
    z-index: -1;
}

.cta-title {
    margin-bottom: 2rem;
    font-weight: 800;
    font-size: 2.8rem;
    background: linear-gradient(to right, #ffffff, #86e3ef);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-text {
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.cta-buttons .btn-primary {
    background: linear-gradient(45deg, var(--petrol-blue), #021424);
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 15px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(2, 20, 36, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    border: none;
}

.cta-buttons .btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}
 

.cta-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(25, 55, 109, 0.6);
    background: linear-gradient(45deg, #207C8A, var(--petrol-blue-light));
    border-color: rgba(128, 200, 255, 0.6);
}
 

.cta-buttons .btn-outline {
    background: transparent;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 15px;
    position: relative;
    transition: all 0.3s ease;
    border: none;
    color: #e2bf73;
    background-clip: text;
    -webkit-background-clip: text;
    background-image: linear-gradient(45deg, var(--old-gold), #c5b594, var(--old-gold-light));
}



.cta-buttons .btn-outline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    z-index: -1;
    box-shadow: 0 5px 15px rgba(2, 20, 36, 0.3);
    padding: 2px;
    background: radial-gradient(circle, #6E542C, #c5b594, #534530);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.cta-buttons .btn-outline:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 12px;
    background: linear-gradient(-95deg, var(--petrol-blue), #021424);
    z-index: -1;
    transition: all 0.3s ease;
}

.cta-buttons .btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(25, 55, 109, 0.4); 
    
}



/* Elementos decorativos del CTA */
.cta-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.cta-dots {
    position: absolute;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 2px, transparent 3px);
    background-size: 20px 20px;
    opacity: 0.5;
    z-index: -1;
}

.cta-dots-1 {
    top: -50px;
    right: -50px;
    transform: rotate(15deg);
}

.cta-dots-2 {
    bottom: -50px;
    left: -50px;
    transform: rotate(-15deg);
}

/* Glass card */
.glass-card {
    border-radius: 20px;
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 2rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 35px rgba(31, 38, 135, 0.2);
}

/* Stats section */
.stats-section {
padding: 4rem 0;
}

.stats-item {
padding: 1.5rem;
text-align: center;
}

.stats-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 60px;
height: 60px;
background: linear-gradient(135deg, rgba(32, 124, 138, 0.1), rgba(32, 124, 138, 0.2));
border-radius: 50%;
margin-bottom: 1rem;
color: var(--seo-accent-color);
font-size: 1.5rem;
box-shadow: 0 5px 15px rgba(32, 124, 138, 0.15);
transition: all 0.3s ease;
border: 1px solid rgba(32, 124, 138, 0.1);
}

.stats-item:hover .stats-icon {
transform: translateY(-5px);
background: linear-gradient(135deg, rgba(32, 124, 138, 0.2), rgba(32, 124, 138, 0.3));
box-shadow: 0 8px 20px rgba(32, 124, 138, 0.25);
}

.stats-number {
display: block;
font-size: 2.5rem;
font-weight: 700;
color: var(--seo-accent-color);
margin-bottom: 0.5rem;
line-height: 1.2;
}

.stats-text {
display: block;
color: #555;
font-size: 1rem;
line-height: 1.5;
}

.stats-text small {
display: block;
margin-top: 0.25rem;
opacity: 0.8;
font-size: 0.85rem;
font-style: italic;
}

/* Chatbot Demo Window */
.chatbot-demo-window {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 550px;
    margin: 0 auto;
    background-color: #fff;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--seo-accent-color) 0%, #1a5f69 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    color: white;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.chatbot-avatar i {
    font-size: 20px;
}

.chatbot-title h4 {
    margin: 0;
    font-size: 18px;
}

.chatbot-title .status {
    font-size: 13px;
    margin: 0;
    opacity: 0.8;
}

.chatbot-messages {
    padding: 15px;
    height: 300px;
    overflow-y: auto;
    background-color: #f5f8fb;
}

.message {
    margin-bottom: 15px;
    display: flex;
}

.message.bot {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 75%;
    word-wrap: break-word;
}

.bot .message-content {
    background-color: #e6f0f9;
    color: #333;
    border-bottom-left-radius: 5px;
}

.user .message-content {
    background-color: var(--seo-accent-color);
    color: white;
    border-bottom-right-radius: 5px;
}

.chatbot-input {
    display: flex;
    padding: 10px 15px;
    background-color: #fff;
    border-top: 1px solid #e6e6e6;
}

.chatbot-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    margin-right: 10px;
}

.chatbot-input button {
    background-color: var(--seo-accent-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-input button:hover {
    background-color: var(--seo-accent-color-hover);
    transform: scale(1.05);
}

@media (max-width: 2200px) {
.message-3 {
	bottom: -44px;
}

}

/* Responsive adjustments movil */
@media (max-width: 991.98px) {
    .feature-section .text-center {
        margin-bottom: 3rem;
    }
    
    .feature-img-container {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .feature-flow {
        max-width: 90%;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.8rem;
        text-align: center;
    }
    
    .hero-text {
        font-size: 1.1rem;
        max-width: 100%;
        text-align: center;
    }
    
    .floating-chatbot {
        margin-top: 50px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 80%;
        margin-right: 0;
        min-width: 220px;
        padding: 14px 30px;
    }

}
 


@media (max-width: 767.98px) {
    .benefit-card {
        margin-bottom: 2rem;
    }

    
.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #86e3ef);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

    
    .cta-title {
        font-size: 2rem;
    }
    
    .stats-item {
        margin-bottom: 1.5rem;
    }
    
    .feature-flow-item::after {
        display: none;
    }

    .feature-flow-item {
        width: 100%;
        max-width: 500px;
    }

    .floating-chat-container {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: 45vh;
        margin: 0 auto;
        perspective: 1000px;
    }
        
    .message-1 {
        top: 25px;
        animation: dropIn 0.8s ease-out 0.5s forwards, float1 5s ease-in-out 1.3s infinite;
        transform: translateY(-50px) scale(0.9);
    }

    /* User Message Specific */
    .user-message.message-2 {
        right: 10px;
        flex-direction: row-reverse;
        top: 160px;
        animation: slideInRight 0.8s ease-out 1.7s forwards, float2 4.8s ease-in-out 2.5s infinite;
        transform: translateX(50px) scale(0.9);
        width: 100%;
    }

    .message-3 {
        bottom: 0;
        animation: riseIn 0.8s ease-out 3s forwards, float3 5.5s ease-in-out 3.8s infinite;
        transform: translateY(50px) scale(0.9);
        max-width: 100%;
    }


}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        min-width: 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }

    .message-3 {
        bottom: -97px;
       
    }

    .user-message.message-2 {
        top: 140px;
    }

}
