html {
    scroll-behavior: smooth;
}

body {
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

.bg-grid-pattern {
    background-image: linear-gradient(to right, #222 1px, transparent 1px),
    linear-gradient(to bottom, #222 1px, transparent 1px);
    background-size: 4rem 4rem;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
    pointer-events: none;
}

.glow-text {
    text-shadow: 0 0 30px rgba(255,255,255,0.3);
}

.card-hover:hover {
    background: linear-gradient(rgba(255,255,255,0.05), rgba(255,255,255,0.05));
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(255,255,255,0.1);
}

/* Estilos para inputs del formulario */
.form-input,
input.form-input,
textarea.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #27272a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #ffffff !important;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input::placeholder,
input.form-input::placeholder,
textarea.form-input::placeholder {
    color: #6b7280 !important;
    opacity: 1;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
    border-color: transparent;
}

.form-input:invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px #ef4444;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.error-message {
    color: #f87171;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.error-message.hidden {
    display: none;
}

/* Estilos para botones */
.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    background-color: #ffffff;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    transform: scale(1);
}

.btn-primary:hover {
    background-color: #e5e7eb;
    transform: scale(1.05);
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    color: #ffffff;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-contacto {
    color: #000000;
    background-color: #ffffff;
    padding: 0.625rem 1.5rem;
    font-weight: 700;
    border-radius: 9999px;
    font-size: 0.875rem;
    text-align: center;
    transition: all 0.3s ease;
    transform: scale(1);
    display: inline-block;
}

.btn-contacto:hover {
    background-color: #e5e7eb;
    transform: scale(1.05);
}

.btn-contacto:focus {
    outline: none;
    box-shadow: 0 0 0 4px #374151;
}

/* Estilos para cards de servicios */
.service-card {
    background-color: rgba(39, 39, 42, 0.4);
    backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.service-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(to bottom right, #1f2937, #000000);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.service-card:hover .service-card-icon {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Estilos para el modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    display: flex !important;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 42rem;
    margin: 0 1rem;
    background-color: #18181b;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close-btn {
    color: #9ca3af;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: #ffffff;
}

/* Estilos para el botón de iniciar proyecto */
.btn-iniciar-proyecto {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    background-color: #ffffff;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateY(0);
}

.btn-iniciar-proyecto:hover {
    background-color: #e5e7eb;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
}

/* Estilos para el botón de scroll */
.btn-scroll {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-scroll:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Estilos para el mensaje de éxito */
.success-message {
    padding: 1.5rem;
    text-align: center;
}

.success-icon-container {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background-color: rgba(34, 197, 94, 0.2);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon {
    font-size: 2.5rem;
    color: #4ade80;
}

