:root {
    --bg-color: #14110F;
    --surface-color-1: #1A1410;
    --surface-color-2: #1D1712;
    --text-color: #FFEEDB;
    --accent-1: #FF9F1C; /* Naranja de Systrace */
    --accent-2: #FFD60A; /* Amarillo/Dorado */
    --border-color: #33281F;
    --image-overlay-opacity: 0.2; /* Opacidad para imágenes de fondo */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-color);
}

.section-full-height {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-glass {
    background-color: var(--surface-color-1);
    border: 1px solid var(--border-color);
    border-radius: 1rem; /* rounded-2xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Hero Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background-image: url('../img/servidores_data.jpg');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%); /* Aplicando el filtro de blanco y negro */
}
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color); /* Fondo principal */
    opacity: var(--image-overlay-opacity); /* Opacidad sobre la imagen */
    z-index: 1; /* Para que la imagen quede por debajo */
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(20, 17, 15, 0) 0%, var(--bg-color) 70%); /* Ajustado al nuevo bg-color */
    z-index: 2; /* Por encima de la imagen y su overlay de color */
}

/* Subtle Mesh/Dots (visible over transparent areas of gradient overlay) */
.hero-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: panDots 60s linear infinite;
    z-index: 3; /* Por encima de los gradientes, pero debajo del contenido */
}

@keyframes panDots {
    from { background-position: 0 0; }
    to { background-position: -200% 100%; }
}

/* Service Card Background Images */
.service-card-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    border-radius: 1rem;
}
.service-card-bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%); /* Aplicando el filtro de blanco y negro */
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}
.service-card-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--surface-color-1); /* Color de superficie de la tarjeta */
    opacity: var(--image-overlay-opacity); /* Opacidad sobre la imagen */
    z-index: 0;
    border-radius: 1rem;
}
.service-card-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.80) 100%); /* Degradado con opacidad ajustada */
    z-index: 1;
    border-radius: 1rem;
}

/* Scroll Snap */
body.scroll-snap-enabled {
    scroll-snap-type: y mandatory;
}
.scroll-snap-section {
    scroll-snap-align: start;
}

/* Custom buttons */
.btn-primary {
    background-image: linear-gradient(to right, var(--accent-1), var(--accent-2));
    color: var(--bg-color);
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 159, 28, 0.4); /* Ajustado al nuevo accent-1 */
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-secondary {
    border: 1px solid var(--border-color);
    color: var(--text-color);
    background-color: var(--surface-color-1);
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
    background-color: rgba(255, 159, 28, 0.05); /* Ajustado al nuevo accent-1 */
}
.btn-secondary:active {
    background-color: rgba(255, 159, 28, 0.1); /* Ajustado al nuevo accent-1 */
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Team Avatar Placeholders */
.avatar-placeholder {
    width: 4rem;
    height: 4rem;
    background-color: var(--surface-color-2);
    color: var(--accent-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    border-radius: 9999px; /* full */
    border: 1px solid var(--border-color);
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--surface-color-2);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    text-align: center;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}
#cookie-banner.show {
    transform: translateY(0);
}

/* Chatbot Styles */
#chatbot-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--accent-1);
    color: var(--bg-color);
    border-radius: 9999px;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(255, 159, 28, 0.4), 0 4px 6px -2px rgba(255, 159, 28, 0.2); /* Ajustado al nuevo accent-1 */
    z-index: 1001;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
#chatbot-fab:hover {
    transform: scale(1.05);
    background-color: var(--accent-2);
}

#chatbot-window {
    position: fixed;
    bottom: 7rem; /* Above FAB */
    right: 2rem;
    width: 90vw;
    max-width: 22rem;
    height: 70vh;
    max-height: 30rem;
    background-color: var(--surface-color-1);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}
#chatbot-window.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

#chatbot-header {
    background-color: var(--surface-color-2);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.chat-message {
    max-width: 80%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
}
.chat-message.user {
    background-color: var(--accent-1);
    color: var(--bg-color);
    align-self: flex-end;
    border-bottom-right-radius: 0.1rem;
}
.chat-message.bot {
    background-color: var(--surface-color-2);
    color: var(--text-color);
    align-self: flex-start;
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 0.1rem;
}

#chatbot-input-area {
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}
#chat-input {
    flex-grow: 1;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}
#chat-send-btn {
    background-color: var(--accent-1);
    color: var(--bg-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
#chat-send-btn:hover {
    background-color: var(--accent-2);
}

/* WhatsApp Button */
.whatsapp-button {
    background-color: #25D366; /* Color de fondo de WhatsApp */
    color: #FFFFFF; /* Color de texto blanco */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease; /* Transición suave */
}

.whatsapp-button:hover {
    background-color: #128C7E; /* Color de fondo más oscuro al pasar el mouse */
}

/* Estilos para el Footer */

/* Estilo para los enlaces del footer */
.footer-link {
    color: var(--text-color-secondary); /* Un gris más claro que el texto normal */
    transition: color 0.2s ease-in-out;
}

.footer-link:hover {
    color: var(--accent-1);
    text-decoration: none;
}

/* Estilo para los íconos de redes sociales */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--surface-color-2);
    color: var(--text-color-secondary);
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.social-icon:hover {
    background-color: var(--accent-1);
    color: var(--bg-color);
}

/* Clases para los campos del formulario */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    background-color: var(--surface-color-2);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 1rem;
    border-radius: 0.5rem; /* 8px */
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.3); /* Sombra de foco con el color accent-1 */
}