/* CSS Variables for Theme System */
:root {
    /* Black Crowsoft Dark Theme (Default) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #0f0f0f;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #666666;
    --accent-primary: #2c3e50;
    --accent-secondary: #34495e;
    --accent-color: #2a2a2a;
    --brand-blue: #1a1a1a;
    --brand-dark: #0a0a0a;
    --brand-light: #ecf0f1;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-bg: rgba(42, 42, 42, 0.1);
    --hover-overlay: rgba(42, 42, 42, 0.1);
    --gradient-primary: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    --gradient-secondary: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    --gradient-accent: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    --notification-bg: rgba(26, 26, 26, 0.95);
    --notification-success: #27ae60;
    --notification-error: #e74c3c;
    --notification-warning: #f39c12;
}

/* Solo modo oscuro */

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header y Navegación */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
    background: rgba(26, 26, 26, 0.95);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .navbar {
    background: rgba(248, 249, 250, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
    animation: logoEntrance 2s ease-out;
    transition: filter 0.3s ease;
}

/* Eliminado selector de tema claro */

.footer-logo {
    height: 30px;
    width: auto;
    margin-bottom: 10px;
}

.logo h2 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    animation: textSlideIn 2s ease-out 0.5s both;
    transition: color 0.3s ease;
}

.logo i {
    color: var(--text-primary);
    margin-right: 10px;
    animation: pulse 2s infinite;
    transition: color 0.3s ease;
}

/* Pantalla de Carga */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: #ffffff;
}

.loader-logo {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
    animation: logoSpin 2s ease-in-out infinite;
}

.loader-text {
    font-size: 2rem;
    font-weight: bold;
    margin: 20px 0 10px 0;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.loader-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin: 10px 0 20px 0;
    animation: fadeInOut 2s ease-in-out infinite;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

@keyframes logoSpin {
    0% {
        transform: rotateY(0deg) scale(1);
    }
    50% {
        transform: rotateY(180deg) scale(1.1);
    }
    100% {
        transform: rotateY(360deg) scale(1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translateX(-50px) rotate(-180deg);
    }
    50% {
        opacity: 0.7;
        transform: translateX(10px) rotate(-90deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

@keyframes textSlideIn {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Estilos del botón de tema eliminados - Solo modo oscuro */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 15px 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(45deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite alternate;
    transition: color 0.3s ease;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, #000, #333);
    color: #fff;
    border: 2px solid #fff;
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
    background: linear-gradient(45deg, #333, #555);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    position: relative;
    overflow: hidden;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.btn-secondary:hover {
    color: #000;
    transform: translateY(-2px);
}

.btn-secondary:hover::after {
    width: 300px;
    height: 300px;
}

.hero-image {
    text-align: center;
}

.hero-image i {
    font-size: 15rem;
    color: var(--text-primary);
    opacity: 0.8;
    animation: float 3s ease-in-out infinite, rotate 20s linear infinite;
    text-shadow: 0 0 20px var(--shadow-color);
    transition: color 0.3s ease;
}

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6); }
}

/* Calculadora de Presupuestos */
.budget-calculator {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: #ffffff;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #ffffff;
}

.service-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 992px) {
    .service-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .service-options {
        grid-template-columns: 1fr;
    }
}

.service-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    z-index: 1;
    display: block;
}

.service-option input[type="checkbox"] {
    display: none;
}

.service-content {
    display: block;
    width: 100%;
}

.service-option:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.service-option.selected {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    position: relative;
}

.service-option.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffffff;
    color: #000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.service-option i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.service-option span {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.service-option small {
    color: #cccccc;
    font-size: 0.8rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.feature-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ffffff;
}

.timeline-select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
}

.timeline-select option {
    background: #000000;
    color: #ffffff;
}

.client-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.client-info h3 {
    margin-bottom: 15px;
    color: #ffffff;
}

.client-info input,
.client-info textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
}

.client-info input::placeholder,
.client-info textarea::placeholder {
    color: #cccccc;
}

.calculator-result {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    height: fit-content;
    position: sticky;
    top: 20px;
}

@media (max-width: 768px) {
    .calculator-result {
        position: relative;
        top: 0;
        margin-top: 30px;
        width: 100%;
    }
}

.price-display {
    text-align: center;
    margin-bottom: 30px;
}

.price-display h3 {
    margin-bottom: 20px;
    color: #ffffff;
}

.price-amount {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.currency {
    font-size: 2rem;
    vertical-align: top;
}

.price-breakdown {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.action-buttons .btn {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.guarantee-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    color: #00ff00;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .service-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .calculator-container {
        grid-template-columns: 1fr;
        padding: 0 15px;
        gap: 20px;
    }
    
    .service-options {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .service-option {
        padding: 15px;
    }
    
    .service-option i {
        font-size: 1.5rem;
    }
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Calculator Animations */
@keyframes priceUpdate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    }
    100% {
        transform: scale(1);
    }
}

.price-amount {
    animation: priceUpdate 0.5s ease;
}

/* Chatbot Styles */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #333, #555);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.chatbot-toggle i {
    color: white;
    font-size: 24px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: bounce 1s infinite;
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: #1a1a1a;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    animation: slideInUp 0.3s ease;
    border: 1px solid #333;
}

.chatbot-container.active {
    display: flex;
}

.chatbot-container.minimized {
    height: 60px;
}

.chatbot-header {
    background: linear-gradient(135deg, #333, #555);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #444;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

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

.chatbot-info h4 {
    color: white;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chatbot-status {
    color: #4CAF50;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.chatbot-status.online::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 2s infinite;
}

.chatbot-controls {
    display: flex;
    gap: 10px;
}

.minimize-btn, .close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.minimize-btn:hover, .close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #0f0f0f;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.message {
    display: flex;
    margin-bottom: 20px;
    animation: messageSlideIn 0.3s ease;
}

.message-avatar {
    width: 35px;
    height: 35px;
    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, #333, #555);
    color: white;
}

.user-message {
    flex-direction: row-reverse;
}

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

.message-content {
    background: #1a1a1a;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 70%;
    border: 1px solid #333;
}

.user-message .message-content {
    background: linear-gradient(135deg, #333, #555);
    color: white;
}

.message-content p {
    margin: 0;
    color: #e0e0e0;
    line-height: 1.4;
}

.user-message .message-content p {
    color: white;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.quick-btn {
    background: linear-gradient(135deg, #333, #555);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #666;
}

.quick-btn:hover {
    background: linear-gradient(135deg, #555, #777);
    transform: translateY(-2px);
}

.chatbot-input {
    padding: 20px;
    background: #1a1a1a;
    border-top: 1px solid #333;
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

#chatInput {
    flex: 1;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 25px;
    padding: 12px 20px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

#chatInput:focus {
    border-color: #555;
}

#chatInput::placeholder {
    color: #666;
}

.send-btn {
    background: linear-gradient(135deg, #333, #555);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: linear-gradient(135deg, #555, #777);
    transform: scale(1.05);
}

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

.typing-indicator {
    display: none;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding-left: 20px;
}

.typing-indicator.active {
    display: flex;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

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

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

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes messageSlideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Responsive Chatbot */
@media (max-width: 768px) {
    .chatbot-container {
        width: 90vw;
        height: 70vh;
        bottom: 20px;
        right: 5vw;
    }
    
    .chatbot-toggle {
        bottom: 20px;
        right: 20px;
    }
}

/* Web Audit Tool Styles */
.web-audit {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    position: relative;
}

.web-audit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="audit-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23333" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23audit-pattern)"/></svg>') repeat;
    opacity: 0.1;
}

.audit-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.audit-form {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.6s ease;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header i {
    font-size: 48px;
    color: #666;
    margin-bottom: 15px;
    display: block;
}

.form-header h3 {
    color: white;
    font-size: 28px;
    margin: 0;
    font-weight: 600;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: #0f0f0f;
    border: 2px solid #333;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #555;
    box-shadow: 0 0 20px rgba(85, 85, 85, 0.3);
}

.input-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
    margin-top: 12px;
}

.audit-options {
    margin: 30px 0;
}

.audit-options h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.option-card {
    background: #0f0f0f;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-card:hover {
    border-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.option-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-card input[type="checkbox"]:checked + .card-content {
    background: linear-gradient(135deg, #333, #555);
    color: white;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #ccc;
    transition: all 0.3s ease;
}

.card-content i {
    font-size: 24px;
}

.card-content span {
    font-weight: 500;
}

.audit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #333, #555);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.audit-btn:hover {
    background: linear-gradient(135deg, #555, #777);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.audit-loading {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    border: 1px solid #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.loading-content h3 {
    color: white;
    margin: 20px 0 40px;
    font-size: 24px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #333;
    border-top: 4px solid #666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-steps {
    display: flex;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
    gap: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #666;
    transition: all 0.3s ease;
    flex: 1;
}

.step.active {
    color: white;
}

.step.active i {
    color: #666;
    animation: pulse 1s infinite;
}

.step i {
    font-size: 24px;
    margin-bottom: 5px;
}

.step span {
    font-size: 14px;
    text-align: center;
}

.audit-results {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.6s ease;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.results-header i {
    font-size: 32px;
    color: #666;
}

.results-header h3 {
    color: white;
    font-size: 24px;
    margin: 0;
    flex: 1;
    margin-left: 15px;
}

.overall-score {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    position: relative;
}

.overall-score::after {
    content: '/100';
    font-size: 12px;
    position: absolute;
    bottom: 15px;
    right: 8px;
}

.score-breakdown {
    margin-bottom: 30px;
}

.score-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.score-label {
    color: #ccc;
    font-weight: 500;
    min-width: 120px;
}

.score-bar {
    flex: 1;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4757, #ffa502, #2ed573);
    border-radius: 4px;
    transition: width 1s ease;
    width: 0;
}

.score-value {
    color: white;
    font-weight: bold;
    min-width: 40px;
    text-align: right;
}

.recommendations {
    margin-bottom: 30px;
}

.recommendations h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommendation-item {
    background: #0f0f0f;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #666;
    animation: slideInLeft 0.5s ease;
}

.recommendation-item.high {
    border-left-color: #ff4757;
}

.recommendation-item.medium {
    border-left-color: #ffa502;
}

.recommendation-item.low {
    border-left-color: #2ed573;
}

.recommendation-item h5 {
    color: white;
    margin: 0 0 10px;
    font-size: 16px;
}

.recommendation-item p {
    color: #ccc;
    margin: 0;
    line-height: 1.5;
}

.audit-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.audit-actions .btn {
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.audit-actions .btn-primary {
    background: linear-gradient(135deg, #333, #555);
    color: white;
}

.audit-actions .btn-secondary {
    background: transparent;
    color: #ccc;
    border: 2px solid #333;
}

.audit-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Web Audit */
@media (max-width: 768px) {
    .audit-form {
        padding: 30px 20px;
    }
    
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .loading-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .results-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .audit-actions {
        flex-direction: column;
    }
    
    .score-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .score-bar {
        width: 100%;
    }
}



/* Servicios Section */
.services {
    padding: 100px 0;
    background: var(--bg-secondary);
    transition: background 0.3s ease;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.service-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px var(--shadow-color);
    background: var(--gradient-primary);
}

.service-card:hover i {
    color: var(--text-primary);
    transform: scale(1.2) rotate(360deg);
    text-shadow: 0 0 10px var(--shadow-color);
}

.service-card i {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    transition: color 0.3s ease;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats {
        grid-template-columns: 1fr;
    }
}

.stat {
    text-align: center;
    padding: 1rem;
}

.stat h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    animation: countUp 1s ease-out;
    transition: color 0.3s ease;
}

@keyframes countUp {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.stat p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.about-image {
    text-align: center;
}

.about-image i {
    font-size: 12rem;
    color: var(--text-primary);
    opacity: 0.7;
    animation: swing 4s ease-in-out infinite;
    transition: color 0.3s ease;
}

@keyframes swing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--text-primary);
    width: 40px;
    animation: glow 2s ease-in-out infinite alternate;
    transition: color 0.3s ease;
}

@keyframes glow {
    from { text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    to { text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 255, 255, 0.6); }
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.contact-item p {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 10px var(--shadow-color);
    background: var(--bg-tertiary);
}

/* Footer */
.footer {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 50px 0 20px;
    transition: all 0.3s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.footer-section h3 i {
    color: var(--text-primary);
    margin-right: 10px;
    animation: pulse 2s infinite;
    transition: color 0.3s ease;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 5px var(--shadow-color);
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    color: var(--text-primary);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

/* Booking Section */
.booking {
    padding: 100px 0;
    background: var(--bg-secondary);
    transition: background 0.3s ease;
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .booking-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.booking-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.booking-form h3 {
    color: var(--text-primary);
    margin-bottom: 30px;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: var(--bg-tertiary);
}

.calendar-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.calendar-container h3 {
    color: var(--text-primary);
    margin-bottom: 30px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    transition: color 0.3s ease;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

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

.calendar-nav:hover {
    background: var(--accent-secondary);
    transform: scale(1.1);
}

#currentMonth {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    transition: color 0.3s ease;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 20px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-weight: 500;
}

.calendar-day:hover {
    background: var(--hover-overlay);
    color: var(--text-primary);
}

.calendar-day.available {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.calendar-day.available:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.calendar-day.selected {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.calendar-day.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

.time-slots {
    margin-top: 30px;
    animation: slideInUp 0.3s ease;
}

.time-slots h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.time-slot {
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-weight: 500;
}

.time-slot:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.time-slot.selected {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.time-slot.unavailable {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.booking-summary {
    margin-top: 30px;
    padding: 25px;
    background: var(--gradient-primary);
    border-radius: 15px;
    animation: slideInUp 0.3s ease;
}

.booking-summary h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.summary-details p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-size: 1rem;
}

.summary-details strong {
    color: white;
}

#confirmBooking {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background: white;
    color: var(--accent-color);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#confirmBooking:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.booking-info {
    margin-top: 60px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-color: var(--accent-color);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
}

.info-card h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-image i {
        font-size: 8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Animaciones adicionales */
.service-card {
    animation: fadeInUp 0.6s ease forwards, cardFloat 6s ease-in-out infinite;
    opacity: 0;
    transform: translateY(30px);
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* Animación de escritura para títulos */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: #fff; }
}

/* Efecto de ondas en el fondo */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: waveMove 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes waveMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Partículas flotantes */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particleFloat 20s linear infinite;
    opacity: 0.6;
}

@keyframes particleFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Efectos de hover mejorados */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card:hover::before {
    opacity: 1;
}

/* Efecto de líneas animadas */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #000, transparent);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Animación de entrada para secciones */
.about, .services, .contact {
    animation: sectionSlideIn 1s ease-out;
}

@keyframes sectionSlideIn {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Efecto de matriz en el fondo */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: matrixMove 10s linear infinite;
    pointer-events: none;
}

@keyframes matrixMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

/* Animación de carga progresiva */
.stat {
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #000, #333, #000);
    animation: progressBar 2s ease-out forwards;
    animation-delay: 1s;
}

@keyframes progressBar {
    to { width: 100%; }
}

/* Efecto de respiración para iconos */
.contact-item i, .footer-section h3 i {
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Estilos para la sección de Valores de la Compañía */
.company-values {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    position: relative;
    overflow: hidden;
}

.company-values::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.values-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 50px;
}

.value-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

.value-card:hover::before {
    left: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.main-value {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid var(--accent-color);
}

.value-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.value-header i {
    font-size: 2.5rem;
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

.value-header h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
}

.value-details ul {
    list-style: none;
    padding: 0;
}

.value-details li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    padding-left: 25px;
}

.value-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.value-details li:last-child {
    border-bottom: none;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mission-card, .vision-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

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

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: iconFloat 3s ease-in-out infinite;
}

.card-icon i {
    font-size: 2rem;
    color: white;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.mission-card h3, .vision-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.mission-card p, .vision-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.company-logo-section {
    text-align: center;
    padding: 40px 0;
}

.logo-container {
    display: inline-block;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--accent-color), transparent);
    animation: rotate 4s linear infinite;
    z-index: -1;
}

.logo-container::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--bg-secondary);
    border-radius: 18px;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.crow-logo {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    animation: crowFly 2s ease-in-out infinite;
}

@keyframes crowFly {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.1); }
}

.logo-container h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 10px 0;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo-container p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    letter-spacing: 1px;
}

/* Responsive para valores de la compañía */
@media (max-width: 768px) {
    .company-values {
        padding: 60px 0;
    }
    
    .value-card {
        padding: 25px;
    }
    
    .value-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .value-header i {
        font-size: 2rem;
    }
    
    .value-header h3 {
        font-size: 1.5rem;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .mission-card, .vision-card {
        padding: 20px;
    }
    
    .logo-container {
        padding: 20px;
    }
    
    .crow-logo {
        font-size: 2.5rem;
    }
    
    .logo-container h4 {
        font-size: 1.2rem;
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.modal p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.modal ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.modal li {
    margin-bottom: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Media Queries para Responsividad */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
    
    .services-grid,
    .values-content,
    .footer-content {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content,
    .hero-image {
        width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info,
    .contact-form {
        width: 100%;
    }
    
    .budget-calculator .calculator-content {
        flex-direction: column;
    }
    
    .calculator-form,
    .price-display {
        width: 100%;
    }
    
    .price-display {
        margin-top: 30px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text,
    .about-image {
        width: 100%;
    }
    
    .about-image {
        margin-top: 30px;
        text-align: center;
    }
    
    .mission-vision {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat {
        width: 100%;
        margin-bottom: 20px;
    }
}